/**
 * pages/profile.css — C.3.7 (порциями).
 * Порция 1: pure .avatar* (+ потомки). steam-/profile- — позже.
 * Overrides wave8/wave11/mini-profile не трогались.
 * @keyframes avatar-drop-spin остаётся в style.css (работает глобально).
 */

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #4c6ef5;
    background: #2a2e3d;
}

.avatar-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}

.avatar-editor-modal.hidden {
    display: none;
}

.avatar-editor-content {
    width: min(1100px, calc(100vw - 24px));
    max-height: 94vh;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--va-border, #2a2e3d);
    background: var(--va-bg-card, #1b1e28);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

.avatar-editor-header,
.avatar-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 16px 20px;
    border-bottom: 1px solid var(--va-border, #2a2e3d);
}

.avatar-editor-footer {
    border-bottom: none;
    border-top: 1px solid var(--va-border, #2a2e3d);
    justify-content: flex-end;
}

.avatar-editor-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.avatar-editor-close {
    border: none;
    background: transparent;
    color: var(--va-text-muted, #8d8d8d);
    font-size: 1.2rem;
    cursor: pointer;
}

.avatar-editor-body {
    display: flex;
    gap: var(--space-5);
    padding: 20px;
    overflow: auto;
}

.avatar-editor-canvas-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--va-border, #2a475e);
    background: #0a0c10;
    flex-shrink: 0;
    isolation: isolate;
}

.avatar-drop-zone {
    position: absolute;
    inset: 0;
    z-index: var(--z-raised);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed #2a2e3d;
    border-radius: 12px;
    background: rgba(26, 30, 40, 0.75);
    transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-base), opacity 0.3s ease;
    cursor: pointer;
}

.avatar-drop-zone.hidden {
    display: none;
}

.avatar-drop-zone.dropped {
    opacity: 0;
    pointer-events: none;
}

.avatar-drop-zone.dragover {
    border-color: #4c6ef5;
    background: rgba(76, 110, 245, 0.12);
    transform: scale(1.01);
}

.avatar-drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    text-align: center;
    pointer-events: none;
}

.avatar-drop-zone-content .btn {
    pointer-events: auto;
}

.avatar-drop-icon {
    font-size: 48px;
    line-height: 1;
}

.avatar-drop-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--va-text, #e6e6e6);
}

.avatar-drop-hint {
    font-size: 0.88rem;
    color: var(--va-text-muted, #8d8d8d);
}

.avatar-drop-loading {
    position: absolute;
    inset: 0;
    z-index: var(--z-drawer);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 12px;
    color: var(--va-text, #e6e6e6);
}

.avatar-drop-loading.hidden {
    display: none;
}

.avatar-drop-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #2a2e3d;
    border-top-color: #4c6ef5;
    border-radius: 50%;
    animation: avatar-drop-spin 0.8s linear infinite;
}

.avatar-crop-square {
    position: absolute;
    z-index: var(--z-raised);
    box-sizing: border-box;
    border: 2px solid #4c6ef5;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
}

.avatar-crop-square.hidden {
    display: none;
}

.avatar-crop-square.resizing {
    transition: none;
}

.avatar-crop-square .crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #4c6ef5;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.avatar-crop-square .crop-handle:hover {
    transform: scale(1.25);
    box-shadow: 0 0 14px rgba(76, 110, 245, 0.65);
}

.avatar-crop-square .crop-handle:active {
    transform: scale(0.92);
}

.avatar-crop-square .crop-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.avatar-crop-square .grid-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.18);
}

.avatar-crop-square .grid-line.horizontal {
    left: 0;
    right: 0;
    height: 1px;
}

.avatar-crop-square .grid-line.horizontal.top { top: 33.333%; }

.avatar-crop-square .grid-line.horizontal.bottom { top: 66.666%; }

.avatar-crop-square .grid-line.vertical {
    top: 0;
    bottom: 0;
    width: 1px;
}

.avatar-crop-square .grid-line.vertical.left { left: 33.333%; }

.avatar-crop-square .grid-line.vertical.right { left: 66.666%; }

.avatar-crop-square:hover .crop-size-indicator,
.avatar-crop-square.resizing .crop-size-indicator {
    opacity: 1;
}

.avatar-editor-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-3);
}

.avatar-editor-zoom input[type="range"] {
    width: 200px;
    accent-color: var(--va-accent, #4c6ef5);
}

.avatar-editor-zoom .zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--va-border, #2a2e3d);
    background: transparent;
    color: var(--va-text, #e6e6e6);
    cursor: pointer;
}

.avatar-editor-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 180px;
}

.avatar-preview-circle {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--va-accent, #4c6ef5);
    background: #0a0c10;
}

.avatar-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview-sizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.avatar-preview-sizes .size-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.avatar-preview-sizes img {
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--va-border, #2a475e);
    background: #0a0c10;
}

.avatar-preview-sizes img[data-preview-size="64"] { width: 64px; height: 64px; }

.avatar-preview-sizes img[data-preview-size="128"] { width: 96px; height: 96px; }

.avatar-preview-sizes img[data-preview-size="256"] { width: 112px; height: 112px; }

/* —— C.3.7 steam part 1/4 (rules 1-53 of 209) —— */

.steam-profile-header {
    position: relative;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-5);
}

.steam-profile-header .steam-header-text {
    flex: 1;
    min-width: 0;
    padding-right: 72px;
}

.steam-profile-root {
    width: 100%;
    position: relative;
    overflow: visible;
    min-height: calc(100vh - var(--profile-chrome-top) - var(--profile-chrome-bottom));
}

.steam-profile-bg-fixed {
    position: fixed;
    top: var(--profile-chrome-top);
    left: 0;
    right: 0;
    bottom: var(--profile-chrome-bottom);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.steam-bg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(var(--profile-center-max), 100%) minmax(0, 1fr);
    width: 100%;
    height: 100%;
}

.steam-bg-left {
    grid-column: 1;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.steam-bg-center-gap {
    grid-column: 2;
}

.steam-bg-right {
    grid-column: 3;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
}

.steam-profile-foreground {
    position: relative;
    z-index: var(--z-base);
}

.steam-profile-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    pointer-events: none;
}

.steam-profile-columns {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - var(--profile-chrome-top) - var(--profile-chrome-bottom));
    position: relative;
    z-index: var(--z-base);
    padding: 0;
    box-sizing: border-box;
}

.steam-side-strip {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    position: relative;
    overflow: hidden;
    height: 100%;
    background: linear-gradient(180deg, var(--va-bg-elevated, #0e1419), var(--va-bg-card, #151b24));
}

.steam-bg-left.has-animated-background,
.steam-bg-right.has-animated-background {
    background: transparent;
}

.steam-profile-center {
    flex: 0 1 var(--profile-center-max);
    width: 100%;
    max-width: var(--profile-center-max);
    background: linear-gradient(180deg, color-mix(in srgb, var(--va-bg, #1b2838) 88%, transparent) 0%, var(--va-bg, #1b2838) 42%, var(--va-bg-elevated, #171a21) 100%);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.42);
}

.steam-banner {
    display: none;
}

.steam-profile-header {
    display: flex;
    gap: 20px;
    padding: 28px 24px 20px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.steam-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.steam-avatar {
    width: 168px;
    height: 168px;
    border: 4px solid var(--va-accent, #66c0f4);
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--va-border, #2a475e);
    display: block;
}

/* Profile header avatar = AvatarWithFrame contract (user-framed-avatar). */
.steam-avatar-wrap.profile-avatar-preview,
.user-framed-avatar.profile-avatar-preview {
    width: var(--profile-avatar-size, var(--ufa-size, 168px));
    height: var(--profile-avatar-size, var(--ufa-size, 168px));
    /* Avatar sits inside frame hole — tighter than chat default. */
    --frame-avatar-ratio: 86%;
    --frame-overlay-ratio: 108%;
}

.steam-avatar-wrap.profile-avatar-preview:not(.has-frame),
.user-framed-avatar.profile-avatar-preview.user-framed-avatar--plain {
    overflow: hidden;
    border-radius: 50%;
}

.steam-avatar-wrap.profile-avatar-preview:not(.has-frame) .steam-avatar,
.user-framed-avatar.profile-avatar-preview.user-framed-avatar--plain .user-framed-avatar-img {
    width: 100%;
    height: 100%;
    border-width: 3px;
    border-radius: 50%;
}

/* Framed: wrap stays visible for decorative overlay; avatar never rounded past frame. */
.steam-avatar-wrap.profile-avatar-preview.has-frame,
.user-framed-avatar.profile-avatar-preview.user-framed-avatar--framed {
    overflow: visible !important;
    border-radius: 0;
}

.steam-profile-header,
.steam-profile-foreground,
.steam-profile-columns,
.steam-profile-center {
    overflow: visible;
}

/* Аватар под формой рамки; сама рамка не клипится */
.steam-avatar-wrap.profile-avatar-preview.has-frame .steam-avatar,
.user-framed-avatar.profile-avatar-preview.user-framed-avatar--framed .user-framed-avatar-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--frame-avatar-ratio, 86%);
    height: var(--frame-avatar-ratio, 86%);
    border: none;
    border-radius: 0;
    object-fit: cover;
    z-index: 1;
}

.steam-avatar-wrap.profile-avatar-preview.avatar-shape-circle.has-frame .steam-avatar,
.user-framed-avatar.profile-avatar-preview.user-framed-avatar--circle.user-framed-avatar--framed .user-framed-avatar-img {
    border-radius: 50%;
    -webkit-clip-path: circle(50%);
            clip-path: circle(50%);
}

.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square.has-frame .steam-avatar,
.user-framed-avatar.profile-avatar-preview.user-framed-avatar--square.user-framed-avatar--framed .user-framed-avatar-img {
    border-radius: 0 !important;
    -webkit-clip-path: none;
            clip-path: none;
}

.user-framed-avatar.profile-avatar-preview .user-framed-avatar-frame,
.steam-avatar-wrap.profile-avatar-preview .steam-avatar-frame {
    border-radius: 0 !important;
}

.steam-avatar-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--frame-overlay-ratio, 106%);
    height: var(--frame-overlay-ratio, 106%);
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    border-radius: 0;
}

/* frame_config — 1:1 с FrameOverlay.
   Размеры/offset задаются как готовые % из JS (--frame-*-pct), без unitless*%. */
.steam-avatar-wrap.has-frame-config .steam-avatar-frame,
.steam-avatar-frame[data-frame-layout="config"] {
    left: calc(50% + var(--frame-ox-pct, 0%));
    top: calc(50% + var(--frame-oy-pct, 0%));
    width: var(--frame-size-pct, 100%);
    height: var(--frame-size-pct, 100%);
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    object-fit: fill;
}

/* Legacy composed bake из старого FrameOverlay */
.steam-avatar-frame[data-frame-layout="composed"],
.steam-avatar-wrap.has-composed-frame .steam-avatar-frame {
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.has-frame {
    overflow: visible !important;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-circle,
.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-circle .steam-avatar {
    border-radius: 50%;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview:not(.has-frame) .steam-avatar {
    border-radius: 50%;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .steam-avatar-frame {
    object-fit: contain;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.has-frame-config .steam-avatar-frame,
.steam-profile-header .steam-avatar-wrap.profile-avatar-preview .steam-avatar-frame[data-frame-layout="config"] {
    object-fit: fill;
}

.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square.has-composed-frame .steam-avatar-frame {
    object-fit: fill;
}

.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .steam-avatar,
.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .steam-avatar-frame,
.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square.has-animated-avatar .animated-avatar-video {
    border-radius: 0;
}

.steam-avatar-wrap.has-frame.frame-fallback::after,
.steam-avatar-wrap.frame-fallback::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 3px solid var(--va-accent, #66c0f4);
    border-radius: 0;
    box-shadow: 0 0 14px rgba(102, 192, 244, 0.45);
    pointer-events: none;
    z-index: 2;
}

.steam-header-text h1 {
    font-size: 32px;
    margin: 0 0 6px;
    color: #fff;
}

.steam-mini-profile {
    color: var(--va-text-muted, #8f98a0);
    margin: 0 0 8px;
}

.steam-status-line {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--va-text, #c7d5e0);
    font-size: 14px;
}

.steam-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.steam-level-badge {
    display: inline-block;
    margin-top: var(--space-2);
    padding: 4px 10px;
    background: var(--va-border, #2a475e);
    border-radius: 3px;
    color: var(--va-accent, #66c0f4);
    font-size: 13px;
}

.steam-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.steam-header-btn {
    font-size: 12px;
}

.steam-header-wallets {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-2);
    color: var(--va-text-muted, #8f98a0);
    font-size: 13px;
}

.steam-main-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--va-border, #2a475e);
    padding: 0 12px;
    background: color-mix(in srgb, var(--va-bg, #1b2838) 60%, transparent);
}

.steam-main-tab {
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    padding: 14px 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.steam-main-tab:hover {
    color: var(--va-text, #c7d5e0);
    background: var(--va-border, #2a475e);
}

.steam-main-tab.active {
    color: #fff;
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 38%, var(--va-bg-card, #16202d));
    border-bottom-color: var(--va-accent, #66c0f4);
}

.steam-main-pane {
    display: none;
    padding: 16px 20px 32px;
}

.steam-main-pane.active {
    display: block;
}

.steam-profile-tab-layout {
    display: flex;
    gap: 20px;
}

.steam-profile-main-col {
    flex: 1;
    min-width: 0;
}

.steam-profile-side-col {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    align-self: flex-start;
}

.steam-stat-cards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    background: var(--va-border, #2a475e);
    border-radius: 5px;
    padding: var(--space-4);
    margin-bottom: 14px;
}

.steam-stat-card {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.steam-stat-card strong {
    display: block;
    color: var(--va-accent, #66c0f4);
    font-size: 22px;
}

.steam-stat-card span {
    color: var(--va-text-muted, #8f98a0);
    font-size: 12px;
}

.steam-panel {
    background: var(--va-border, #2a475e);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 14px;
}

/* —— C.3.7 steam part 2/4 —— */

.steam-panel-title {
    color: var(--va-accent, #66c0f4);
    font-size: 14px;
    margin: 0 0 10px;
}

.steam-showcase-empty,
.steam-showcase-card {
    background: var(--va-bg-elevated, #171a21);
    border: 1px dashed var(--va-border-strong, #3d6b8a);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 14px;
}

.steam-showcase-card.dashed {
    border-style: dashed;
}

.steam-showcase-games {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: 10px;
}

.steam-side-heading {
    color: var(--va-accent, #66c0f4);
    font-size: 12px;
    font-weight: bold;
    margin: 12px 0 6px;
    text-transform: uppercase;
}

.steam-side-link {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    font-size: 12px;
    padding: 4px 0;
    cursor: pointer;
}

.steam-side-link:hover {
    color: var(--va-text, #c7d5e0);
}

.steam-friend-mini {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    background: transparent;
    border: none;
    color: var(--va-text, #c7d5e0);
    padding: 4px 0;
    cursor: pointer;
    font-size: 12px;
}

.steam-friend-mini img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.steam-side-activity {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    font-size: 12px;
    color: var(--va-text, #c7d5e0);
}

.steam-side-activity img {
    width: 64px;
    height: 36px;
    object-fit: cover;
}

.steam-games-grid.large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-3);
}

.steam-game-tile {
    cursor: pointer;
    background: var(--va-bg-card, #16202d);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.steam-game-tile img {
    width: 100%;
    aspect-ratio: 460/215;
    object-fit: cover;
}

.steam-game-tile span {
    display: block;
    padding: var(--space-2);
    font-size: 13px;
}

.steam-profile-overlay .steam-profile-modal-full {
    width: min(1180px, 98vw);
    max-height: 94vh;
    overflow: auto;
    background: var(--va-bg, #1b2838);
    border-radius: var(--radius-md);
    margin: 2vh auto;
    position: relative;
}

/* Крестик остаётся видимым при прокрутке профиля: sticky внутри скроллящейся модалки. */
.steam-profile-close-top {
    position: sticky;
    top: 12px;
    float: right;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 12px 14px 0 12px;
    border-radius: 12px;
    border: 1px solid var(--va-border, #343b48);
    background: rgba(8, 12, 18, 0.86);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.steam-profile-close-top:hover {
    background: rgba(20, 28, 38, 0.96);
    border-color: var(--va-accent, #66c0f4);
    transform: scale(1.05);
}

.steam-profile-modal-inner .steam-profile-center {
    max-width: 100%;
}

/* Steam-редактор */
.steam-edit-modal {
    width: min(1680px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    height: min(960px, calc(100vh - 16px));
    max-height: calc(100vh - 16px);
    background: var(--va-bg, #1b2838);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.steam-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--va-border, #2a475e);
    flex-shrink: 0;
}

.steam-edit-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.steam-edit-nav {
    width: 230px;
    flex-shrink: 0;
    border-right: 1px solid var(--va-border, #2a475e);
    padding: 12px 0;
    overflow-y: auto;
}

.steam-edit-nav-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
}

.steam-edit-nav-item:hover,
.steam-edit-nav-item.active {
    color: #fff;
    background: var(--va-border, #2a475e);
}

.steam-edit-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 24px;
    -webkit-overflow-scrolling: touch;
}

.steam-edit-pane {
    display: none;
}

.steam-edit-pane.active {
    display: block;
}

.steam-edit-pane label {
    display: block;
    margin-bottom: var(--space-3);
    color: var(--va-text, #c7d5e0);
}

.steam-edit-pane label.checkbox-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.steam-edit-pane label.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--va-accent, #5865f2);
}

.steam-edit-pane input,
.steam-edit-pane textarea,
.steam-edit-pane select {
    width: 100%;
    margin-top: var(--space-1);
}

.steam-edit-avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    border: 3px solid var(--va-accent, #66c0f4);
    object-fit: cover;
}

.steam-edit-banner-preview {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.steam-edit-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: var(--space-4);
    border-top: 1px solid var(--va-border, #2a475e);
}

.steam-banner.has-animated-background {
    min-height: 220px;
}

.steam-profile-backdrop.has-animated-background,
.steam-side-strip.has-animated-background {
    min-height: 100%;
    height: 100%;
}

.steam-profile-bg-fixed .steam-side-strip {
    background: linear-gradient(180deg, var(--va-bg-elevated, #0e1419), var(--va-bg-card, #151b24));
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square:not(.has-frame) .steam-avatar,
.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .steam-avatar-frame,
.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .animated-avatar-video {
    border-radius: 0;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square.has-frame .steam-avatar {
    border-radius: 0;
    -webkit-clip-path: none;
            clip-path: none;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-circle.has-frame .steam-avatar {
    border-radius: 50%;
    -webkit-clip-path: circle(50%);
            clip-path: circle(50%);
}

.steam-edit-banner-preview.has-animated-background {
    min-height: 140px;
    border-radius: 10px;
}

.steam-bg-left.profile-bg-edge-blur-left::before,
.steam-bg-right.profile-bg-edge-blur-right::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.steam-bg-left.profile-bg-edge-blur-left::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 32%, transparent 58%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 28%, transparent 52%);
}

.steam-bg-right.profile-bg-edge-blur-right::before {
    background:
        linear-gradient(270deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 32%, transparent 58%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 28%, transparent 52%);
}

.steam-bg-left.profile-bg-edge-blur-left::after,
.steam-bg-right.profile-bg-edge-blur-right::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.steam-bg-left.profile-bg-edge-blur-left::after {
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image:
        linear-gradient(90deg, #000 0%, #000 30%, transparent 62%),
        linear-gradient(0deg, transparent 42%, #000 100%);
            mask-image:
        linear-gradient(90deg, #000 0%, #000 30%, transparent 62%),
        linear-gradient(0deg, transparent 42%, #000 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.steam-bg-right.profile-bg-edge-blur-right::after {
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image:
        linear-gradient(270deg, #000 0%, #000 30%, transparent 62%),
        linear-gradient(0deg, transparent 42%, #000 100%);
            mask-image:
        linear-gradient(270deg, #000 0%, #000 30%, transparent 62%),
        linear-gradient(0deg, transparent 42%, #000 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.steam-edit-footer.hidden {
    display: none;
}

.steam-showcases-section {
    margin-bottom: 18px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.steam-showcases-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.steam-showcases-head .steam-panel-title {
    margin: 0;
}

.steam-showcases-grid {
    display: grid;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

.steam-showcase-card,
.showcase-card-modern {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* —— C.3.7 steam part 3/4 —— */

.steam-profile-page {
    max-width: none;
    width: 100%;
    margin: 0;
}

.steam-profile-banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: -40px;
}

.steam-profile-header {
    display: flex;
    gap: 20px;
    padding: 48px 16px 16px;
    background: linear-gradient(180deg, transparent, var(--va-bg, #1b2838) 60%);
    border-radius: var(--radius-sm);
}

.steam-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 3px solid var(--va-accent, #66c0f4);
}

.steam-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    border-bottom: 1px solid var(--va-border, #2a475e);
    padding: 0 8px;
}

.steam-profile-tab {
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.steam-profile-tab.active {
    color: #fff;
    border-bottom-color: var(--va-accent, #66c0f4);
}

.steam-profile-tab em {
    font-style: normal;
    color: var(--va-accent, #66c0f4);
    margin-left: var(--space-1);
}

.steam-profile-pane {
    display: none;
    padding: var(--space-4);
}

.steam-profile-pane.active {
    display: block;
}

.steam-profile-modal {
    width: min(920px, 96vw);
    max-height: 90vh;
    overflow: auto;
    background: var(--va-bg, #1b2838);
    border-radius: 6px;
    padding: var(--space-4);
}

.steam-games-grid,
.steam-friends-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.steam-friend-card-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.steam-friend-compare {
    width: 100px;
    font-size: 0.75rem;
}

.steam-friend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    width: 100px;
    padding: var(--space-2);
    background: var(--va-bg-card, #16202d);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--va-text, #c7d5e0);
}

.steam-friend-card img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.steam-activity-item {
    display: flex;
    gap: var(--space-3);
    padding: 12px 0;
    border-bottom: 1px solid var(--va-border, #2a475e);
    cursor: pointer;
}

.steam-activity-item img {
    width: 64px;
    height: 36px;
    object-fit: cover;
    border-radius: 2px;
}

.steam-ach-list,
.steam-reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.steam-review-item {
    background: var(--va-bg-card, #16202d);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
}

/* --- Комментарии профиля (Steam-style) --- */
.steam-comments-panel {
    padding: 0 !important;
    overflow: hidden;
}

.steam-comments-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--va-border, #2a3f5a);
    background: color-mix(in srgb, var(--va-bg-card, #16202d) 55%, transparent);
}

.steam-comments-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--va-text, #e3e6eb);
    text-transform: none;
    letter-spacing: 0;
}

.steam-comments-sub {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--va-text-muted, #8f98a0);
}

.steam-comments-head-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
    flex-shrink: 0;
}

.steam-comments-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--va-text-muted, #8f98a0);
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
}

.steam-comments-subscribe input {
    accent-color: var(--va-accent, #66c0f4);
}

.steam-comments-pager {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.steam-comments-pager button {
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.78rem;
    cursor: pointer;
}

.steam-comments-pager button:hover:not(:disabled) {
    color: var(--va-text, #fff);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 18%, transparent);
}

.steam-comments-pager button.active {
    color: var(--va-text, #fff);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 28%, transparent);
}

.steam-comments-pager button:disabled {
    opacity: 0.35;
    cursor: default;
}

.steam-comments-compose {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--va-border, #2a3f5a);
    background: color-mix(in srgb, var(--va-bg, #1b2838) 80%, transparent);
}

.steam-comments-compose-avatar {
    flex-shrink: 0;
}

.steam-comments-compose-form {
    flex: 1;
    min-width: 0;
}

.steam-comments-compose-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 3px;
    border: 1px solid var(--va-border, #3d5a7a);
    background: color-mix(in srgb, var(--va-bg-elevated, #0e1419) 85%, transparent);
    color: var(--va-text, #c7d5e0);
    font: inherit;
    font-size: 0.86rem;
}

.steam-comments-compose-form input:focus {
    outline: none;
    border-color: var(--va-accent, #66c0f4);
}

.steam-comments-list {
    padding: 0;
}

.steam-comment-item {
    display: flex;
    gap: var(--space-3);
    padding: 14px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--va-border, #2a3f5a) 65%, transparent);
}

.steam-comment-item:last-child {
    border-bottom: none;
}

.steam-comment-avatar {
    flex-shrink: 0;
}

.steam-comment-body {
    flex: 1;
    min-width: 0;
}

.steam-comment-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.steam-comment-author {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--va-text, #e3e6eb);
    cursor: pointer;
}

.steam-comment-author:hover {
    color: var(--va-accent, #66c0f4);
}

.steam-comment-date {
    font-size: 0.74rem;
    color: var(--va-text-muted, #8f98a0);
}

.steam-comment-text {
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--va-text, #c7d5e0);
    word-break: break-word;
}

.steam-comment-actions {
    margin-top: 6px;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.steam-comment-more {
    border: 0;
    background: transparent;
    color: var(--va-text-muted, #8f98a0);
    font-size: 1.15rem;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.steam-comment-more:hover,
.steam-comment-more[aria-expanded="true"] {
    color: var(--va-text, #c7d5e0);
    background: color-mix(in srgb, var(--va-bg-elevated, #1b2838) 80%, transparent);
}

.steam-comment-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 13020;
    min-width: 220px;
    padding: 6px;
    border-radius: 10px;
    background: var(--va-bg-elevated, #1b2838);
    border: 1px solid var(--va-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.steam-comment-menu.steam-comment-menu--portal {
    position: fixed;
    top: auto;
    left: auto;
}

.steam-comment-menu.hidden {
    display: none;
}

.steam-comment-menu button {
    border: 0;
    background: transparent;
    color: var(--va-text, #c7d5e0);
    text-align: left;
    padding: 8px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.82rem;
}

.steam-comment-menu button:hover {
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 16%, transparent);
}

.steam-comments-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.86rem;
}

.steam-comments-pager-bottom {
    justify-content: center;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--va-border, #2a3f5a);
    background: color-mix(in srgb, var(--va-bg-card, #16202d) 40%, transparent);
}

/* --- Инвентарь (Steam-like) --- */
.steam-inventory-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    margin-top: var(--space-3);
}

.steam-inventory-cats {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    position: sticky;
    top: 12px;
}

.steam-inventory-main .inv-search-label {
    display: block;
    margin-bottom: 0;
}

.steam-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: var(--space-3);
}

/* —— C.3.7 steam part 4/4 —— */

.steam-inv-tile {
    background: linear-gradient(180deg, var(--va-bg, #1b2838), var(--va-bg-card, #16202d));
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    cursor: default;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.steam-inv-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 192, 244, 0.45);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.steam-inv-tile.hidden {
    display: none;
}

.steam-inv-tile-preview {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--va-bg-elevated, #0e1419);
}

.steam-inv-tile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steam-inv-tile-name {
    display: block;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--va-text, #c7d5e0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-inv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.steam-inv-head-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.steam-inv-head-ava {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid #3d4450;
}

.steam-inv-head .page-title {
    margin: 0;
    font-size: 1.45rem;
    color: #fff;
}

.steam-inv-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: var(--space-2);
    margin-bottom: 14px;
}

.steam-inv-game {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #2a475e;
    border-radius: 3px;
    background: #16202d;
    color: #c7d5e0;
    cursor: pointer;
    text-align: left;
}

.steam-inv-game:hover {
    border-color: #66c0f4;
    background: #1b2838;
}

.steam-inv-game.on {
    background: #1b2838;
    border-color: #66c0f4;
    box-shadow: inset 0 0 0 1px rgba(102, 192, 244, 0.35);
}

.steam-inv-game-ico {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #0e141b;
    border-radius: 3px;
    color: #66c0f4;
    flex-shrink: 0;
}

.steam-inv-game-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.steam-inv-game-meta b {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-inv-game-meta small {
    color: #8f98a0;
}

.steam-inv-panel {
    border: 1px solid #3d4450;
    background: #1b2838;
    padding: var(--space-4);
}

.steam-inv-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: 14px;
}

.steam-inv-brand {
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    color: #fff;
    font-weight: 800;
}

.steam-inv-search {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    max-width: 520px;
    font-size: 0.85rem;
    color: #8f98a0;
}

.steam-inv-search .search-input {
    width: 100%;
    background: #16202d;
    border: 1px solid #2a475e;
    color: #fff;
}

.steam-inv-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    gap: var(--space-4);
    align-items: start;
}

.steam-inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: var(--space-1);
    background: #101822;
    border: 1px solid #2a475e;
    padding: var(--space-2);
    min-height: 280px;
    max-height: min(62vh, 560px);
    overflow: auto;
}

.steam-inv-slot {
    aspect-ratio: 1;
    border: 2px solid transparent;
    background: #16202d;
    padding: 3px;
    cursor: pointer;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: auto;
    position: relative;
    z-index: var(--z-base);
    border-radius: 3px;
    min-height: 0;
}

.steam-inv-slot-preview {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.steam-inv-slot-preview img,
.steam-inv-slot-preview .vcoin-theme-preview,
.steam-inv-detail-preview img,
.steam-inv-detail-preview .vcoin-theme-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
}

.steam-inv-slot-preview .vcoin-theme-preview,
.steam-inv-detail-preview .vcoin-theme-preview {
    min-height: 100%;
    border-radius: 2px;
    transform: scale(1);
}

.steam-inv-detail-preview {
    display: grid;
    place-items: center;
    min-height: 110px;
    max-height: 140px;
    margin-bottom: var(--space-3);
    background: #101822;
    border: 1px solid #2a475e;
    overflow: hidden;
}

.steam-inv-body {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
    gap: 14px;
    align-items: start;
}

.steam-inv-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
    margin-bottom: var(--space-3);
}

.steam-inv-game {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 10px;
    border: 1px solid #2a475e;
    border-radius: 3px;
    background: #16202d;
    color: #c7d5e0;
    cursor: pointer;
    text-align: left;
}

.steam-inv-game-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: #0e141b;
    border-radius: 3px;
    color: #66c0f4;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.steam-inv-slot-preview .inv-icon-demo,
.steam-inv-detail-preview .inv-icon-demo {
    width: 70%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #0e141b;
    color: #66c0f4;
    font-size: 0.7rem;
    font-weight: 700;
}

.steam-inv-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.steam-inv-slot .inv-cell-fallback {
    font-size: 1.4rem;
    color: #66c0f4;
    font-weight: 700;
}

.steam-inv-slot:hover {
    border-color: rgba(102, 192, 244, 0.45);
}

.steam-inv-slot.on {
    border-color: #66c0f4;
    box-shadow: 0 0 0 1px #66c0f4 inset;
}

.steam-inv-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: 10px;
    color: #8f98a0;
}

.steam-inv-detail {
    background: #16202d;
    border: 1px solid #2a475e;
    padding: 14px;
    min-height: 360px;
}

.steam-inv-detail-preview {
    display: grid;
    place-items: center;
    min-height: 160px;
    margin-bottom: var(--space-3);
    background: #101822;
    border: 1px solid #2a475e;
}

.steam-inv-detail-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.steam-inv-detail h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.15rem;
}

.steam-inv-type {
    margin: 0 0 10px;
    font-size: 0.82rem;
}

.steam-inv-desc {
    margin: 0 0 12px;
    color: #c7d5e0;
    font-size: 0.9rem;
}

.steam-inv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.steam-inv-tag {
    padding: 3px 8px;
    border-radius: 2px;
    background: #1b2838;
    border: 1px solid #3d4450;
    font-size: 0.75rem;
    color: #8f98a0;
    text-transform: capitalize;
}

.steam-inv-detail .inv-side-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.steam-inv-detail .inv-side-actions .btn-success {
    background: #5ba32b;
    border-color: #5ba32b;
    color: #fff;
}

.steam-inv-tile .inv-sell-btn {
    margin-top: var(--space-2);
    width: 100%;
}

.steam-header-friend-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* —— C.3.7 profile-* —— */

.profile-page {
    max-width: 960px;
    margin: 0 auto;
}

.profile-banner {
    height: 180px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--va-bg, #1b2838), var(--va-border, #2a475e));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--va-bg, #1b2838) 90%, transparent));
}

.profile-header-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    margin-top: -48px;
    padding: 0 20px 24px;
    position: relative;
    z-index: var(--z-base);
}

.profile-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    border: 4px solid var(--va-bg, #1b2838);
    object-fit: cover;
    background: var(--va-border, #2a475e);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-header-main h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-1);
}

.profile-login {
    color: var(--va-accent, #66c0f4);
    font-size: 0.95rem;
}

.profile-email,
.profile-since {
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.85rem;
    margin-top: var(--space-1);
}

.profile-level {
    margin-top: var(--space-4);
    max-width: 360px;
}

.profile-wallets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.profile-stat {
    background: var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    text-align: center;
}

.profile-stat span {
    display: block;
    font-size: 0.8rem;
    color: var(--va-text-muted, #8f98a0);
    margin-bottom: 6px;
}

.profile-stat strong {
    font-size: 1.5rem;
    color: var(--va-text, #c7d5e0);
}

.profile-recent-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.profile-recent-card {
    background: var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.profile-recent-card:hover {
    transform: translateY(-2px);
}

.profile-recent-card img {
    width: 100%;
    aspect-ratio: 460 / 215;
    object-fit: cover;
}

.profile-recent-card span {
    display: block;
    padding: var(--space-2);
    font-size: 0.85rem;
}

.profile-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding: 0 20px 24px;
}

.profile-edit-panel {
    margin: 0 20px 32px;
    padding: var(--space-5);
    background: var(--va-border, #2a475e);
    border-radius: var(--radius-md);
}

.profile-edit-form {
    display: grid;
    gap: 14px;
}

.profile-edit-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--va-text, #c7d5e0);
}

.profile-edit-form input,
.profile-edit-form select,
.profile-edit-form textarea {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--va-bg, #1b2838);
    background: var(--va-bg, #1b2838);
    color: #fff;
    font: inherit;
}

.profile-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: var(--space-2);
}

.profile-card {
    background: #2a2e3d;
    border-radius: 12px;
    padding: var(--space-5);
    max-width: 420px;
    margin-top: 20px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4c6ef5;
    margin-bottom: var(--space-4);
    background: #1b1e28;
}

.profile-card p {
    margin-bottom: var(--space-2);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin: 16px 0;
}

.profile-level-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    min-width: 56px;
    height: 56px;
    padding: 0 10px;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    font-family: var(--va-display, Syne, sans-serif);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    color: #0a0c10;
    background: linear-gradient(145deg, #8fd3ff, #66c0f4);
    box-shadow: 0 8px 24px rgba(102, 192, 244, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.profile-level-badge .profile-level-num {
    line-height: 1;
}

.profile-level-badge[data-tier="1"] { background: linear-gradient(145deg, #9aa4b2, #6b7280); color: #fff; box-shadow: none; }

.profile-level-badge[data-tier="5"] { background: linear-gradient(145deg, #7dd3a0, #3dd68c); }

.profile-level-badge[data-tier="10"] { background: linear-gradient(145deg, #8fd3ff, #4aa3ff); }

.profile-level-badge[data-tier="20"] { background: linear-gradient(145deg, #a78bfa, #7c5cff); color: #fff; }

.profile-level-badge[data-tier="30"] { background: linear-gradient(145deg, #f0abfc, #d946ef); color: #fff; }

.profile-level-badge[data-tier="40"] { background: linear-gradient(145deg, #fdba74, #f97316); color: #1a0a00; }

.profile-level-badge[data-tier="50"] { background: linear-gradient(145deg, #fbbf24, #f59e0b); box-shadow: 0 0 22px rgba(245, 158, 11, 0.45); }

.profile-level-badge[data-tier="60"] { background: linear-gradient(145deg, #fb7185, #e11d48); color: #fff; }

.profile-level-badge[data-tier="70"] { background: linear-gradient(145deg, #22d3ee, #0891b2); color: #041016; box-shadow: 0 0 24px rgba(34, 211, 238, 0.4); }

.profile-level-badge[data-tier="80"] { background: linear-gradient(145deg, #c084fc, #7e22ce); color: #fff; box-shadow: 0 0 26px rgba(126, 34, 206, 0.45); }

.profile-level-badge[data-tier="90"] { background: linear-gradient(145deg, #fde68a, #f59e0b 40%, #b45309); color: #1a0a00; box-shadow: 0 0 28px rgba(245, 158, 11, 0.55); }

.profile-level-badge[data-tier="100"] {
    background: linear-gradient(135deg, #fff7ae, #f5d76e 35%, #c9a227 70%, #fff1a8);
    color: #1a1200;
    box-shadow: 0 0 32px rgba(245, 215, 110, 0.65);
    border-color: rgba(255, 247, 174, 0.7);
}

.profile-edit-modal {
    width: min(880px, 100%);
    max-height: 90vh;
    background: var(--va-bg, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.profile-edit-header h2 {
    color: var(--va-accent, #66c0f4);
    font-size: 1.25rem;
    margin: 0;
}

.profile-edit-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.profile-edit-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
    background: #17202a;
    border-right: 1px solid var(--va-border, #2a475e);
}

.profile-edit-tab {
    text-align: left;
    background: transparent;
    border: none;
    color: var(--va-text, #c7d5e0);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font: inherit;
}

.profile-edit-tab.active,
.profile-edit-tab:hover {
    background: var(--va-border, #2a475e);
}

.profile-edit-form {
    padding: 20px;
    overflow-y: auto;
}

.profile-edit-pane {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.profile-edit-pane.active {
    display: flex;
}

.profile-about {
    margin-top: var(--space-2);
    color: var(--va-text, #c7d5e0);
    line-height: 1.5;
}

.profile-bg-layout-split.steam-profile-root {
    width: 100%;
    margin: 0;
}

.profile-bg-layout-full .steam-profile-backdrop {
    display: block;
}

.profile-bg-layout-full .steam-bg-grid {
    display: none;
}

.profile-bg-layout-full .steam-profile-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.profile-bg-mobile-fallback {
    display: none !important;
}

.profile-bg-layout-full .steam-side-strip {
    background: transparent;
}

.profile-avatar-preview {
    width: var(--profile-avatar-size, 120px);
    height: var(--profile-avatar-size, 120px);
    overflow: hidden;
    border-radius: 0;
}

.profile-avatar-preview.has-frame {
    overflow: visible !important;
}

.profile-avatar-preview .steam-avatar {
    width: 100%;
    height: 100%;
    border-width: 3px;
    border-radius: 0;
}

.profile-recent-card.small {
    width: 100px;
}

.profile-edit-overlay .steam-edit-modal {
    border: 1px solid var(--va-border, #2a475e);
}

.profile-edit-overlay {
    overflow-y: auto;
}

.profile-editor-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 14px;
    margin: 12px 0 16px;
    padding-right: var(--space-1);
}

.profile-editor-assets-grid--frames,
.profile-editor-assets-grid--backgrounds {
    max-height: min(520px, 58vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: auto;
    scroll-padding: var(--space-2);
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.profile-editor-assets-grid--split {
    max-height: min(360px, 44vh);
}

.profile-bg-split-grids {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin: 12px 0 4px;
}

.profile-bg-split-pane {
    min-width: 0;
    padding: var(--space-3);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.12);
}

.profile-editor-subtitle--small {
    font-size: 0.85rem;
    margin: 10px 0 6px;
}

.profile-editor-block--background {
    min-width: 0;
}

.profile-bg-split-upload {
    grid-column: 1 / -1;
}

.profile-editor-mini-preview--card {
    background: var(--va-surface-2, #2a2e3d);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 12px;
    padding: var(--space-4);
    margin: 12px 0 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-editor-mini-preview .mini-preview-card {
    color: #fff;
}

.profile-editor-mini-preview .mini-preview-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-editor-mini-preview .mini-preview-name {
    font-weight: 700;
    font-size: 15px;
}

.profile-editor-mini-preview .mini-preview-login {
    font-size: 12px;
}

.profile-editor-mini-preview .mini-preview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-3);
    font-size: 12px;
}

.profile-editor-mini-preview .mini-preview-achievement {
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.profile-editor-mini-preview .mini-preview-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.profile-editor-mini-preview .mini-preview-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
}

.profile-editor-mini-preview .mini-preview-btn.primary {
    color: #fff;
}

.profile-editor-mini-preview .mini-preview-btn.outline {
    background: transparent;
    border: 1px solid currentColor;
}

.profile-editor-mini-preview .mini-preview-btn.outline {
    background: transparent;
    border: 1px solid currentColor;
}

.profile-bg-editor-preview {
    display: flex;
    min-height: 220px;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--va-border, #2a475e);
    margin: 0 0 16px;
    position: relative;
    background: var(--va-bg-elevated, #171a21);
}

.profile-bg-editor-preview .profile-bg-preview-backdrop {
    position: absolute;
    inset: 0;
    display: none;
}

.profile-bg-editor-preview.profile-bg-layout-full .profile-bg-preview-backdrop {
    display: block;
}

.profile-bg-editor-preview .profile-bg-preview-left,
.profile-bg-editor-preview .profile-bg-preview-right {
    flex: 1 1 28%;
    min-width: 48px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0e1419, #151b24);
}

.profile-bg-editor-preview .profile-bg-preview-center {
    flex: 0 1 44%;
    min-width: 120px;
    background: linear-gradient(180deg, rgba(27, 40, 56, 0.95), rgba(23, 26, 33, 0.98));
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.profile-bg-layout-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0 0 12px;
}

.profile-editor-block {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border-radius: 12px;
    border: 1px solid var(--va-border, #2a475e);
    background: rgba(0, 0, 0, 0.12);
}

.profile-editor-block-title {
    margin: 0 0 12px;
    font-size: 1rem;
}

.profile-editor-subtitle {
    margin: 16px 0 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--va-text-muted, #8d8d8d);
}

.profile-editor-block-row {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.profile-editor-block-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 14px;
    padding-left: 10px;
}

.profile-editor-file-label {
    display: block;
    margin-top: var(--space-3);
}

.profile-bg-mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.profile-bg-mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding: 14px;
    border-radius: 10px;
    border: 2px solid var(--va-border, #2a475e);
    background: var(--va-bg-elevated, #171a21);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.profile-bg-mode-card:hover {
    border-color: rgba(102, 192, 244, 0.45);
}

.profile-bg-mode-card.active {
    border-color: var(--va-accent, #66c0f4);
    background: rgba(102, 192, 244, 0.08);
}

.profile-bg-mode-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.profile-bg-mode-card strong {
    font-size: 0.95rem;
}

.profile-bg-mode-card .muted {
    font-size: 0.82rem;
    line-height: 1.35;
}

.profile-bg-layout-section {
    margin: 0 0 10px;
}

.profile-bg-layout-section--full {
    display: none;
}

.profile-bg-editor-preview.profile-bg-layout-split {
    padding: 0 5%;
    box-sizing: border-box;
}

.profile-bg-editor-preview.profile-bg-layout-split .profile-bg-preview-left,
.profile-bg-editor-preview.profile-bg-layout-split .profile-bg-preview-right {
    flex: 1 1 33%;
    min-width: 0;
    max-width: none;
}

.profile-bg-editor-preview.profile-bg-layout-split .profile-bg-preview-center {
    flex: 0 1 34%;
}

.profile-bg-split-target {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.profile-bg-split-target .btn.active {
    border-color: var(--va-accent, #66c0f4);
    color: var(--va-accent, #66c0f4);
}

.profile-editor-mini-preview.has-animated-background {
    min-height: 180px;
}

.profile-bg-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0 0 16px;
}

.profile-bg-split-pane [data-bg-edit-side] {
    margin-bottom: 10px;
}

.profile-editor-asset {
    background: var(--va-surface-2, #2a2e3d);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.profile-editor-asset:hover {
    border-color: var(--va-accent, #4c6ef5);
}

.profile-editor-asset.equipped {
    border-color: #f5c542;
}

.profile-editor-asset-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-color: #1b1e28;
}

.profile-editor-asset-name {
    font-size: 12px;
    margin-bottom: var(--space-1);
}

.profile-editor-asset-badge {
    font-size: 10px;
    color: var(--va-muted, #8d8d8d);
    margin-bottom: var(--space-2);
}

.profile-editor-asset-badge.premium {
    color: #f5c542;
}

.profile-editor-showcase-slot {
    background: var(--va-surface-2, #2a2e3d);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: 8px 0;
    border: 1px solid transparent;
}

.profile-editor-showcase-slot.active {
    border-color: var(--va-accent, #4c6ef5);
}

.profile-editor-showcase-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-editor-showcase-slot.inactive {
    opacity: 0.72;
}

.profile-editor-privacy-option {
    margin: 8px 0;
}

.profile-editor-privacy-option label {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: var(--space-3);
    align-items: start;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--va-border, #2a2e3d);
    cursor: pointer;
}

.profile-editor-privacy-option label > span {
    min-width: 0;
}

.profile-editor-privacy-option input[type="radio"] {
    margin: 2px 0 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.profile-editor-privacy-option label:hover {
    background: var(--va-surface-2, #2a2e3d);
}

.profile-editor-mini-preview {
    background: var(--va-surface-2, #2a2e3d);
    border-radius: 12px;
    padding: var(--space-5);
    min-height: 160px;
    margin: 16px 0;
}

.profile-editor-mini-preview .mini-preview-row {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.profile-editor-vcoins {
    font-size: 13px;
    color: #f5c542;
    margin-bottom: var(--space-3);
}

.profile-owner-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.profile-wallets-inline {
    margin-top: var(--space-3);
}

.profile-comments-list {
    max-height: none;
    overflow: visible;
}

.profile-comment-form textarea {
    width: 100%;
    margin: 8px 0;
}

.profile-points-modal .profile-points-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.profile-points-overlay {
    z-index: 20500;
}
.profile-points-modal-v2 {
    width: min(720px, 96vw);
    max-height: min(88vh, 840px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.profile-points-head {
    align-items: flex-start;
    gap: 12px;
}
.profile-points-balance-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 8px 0 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--va-accent, #66c0f4) 35%, transparent);
    font-size: 0.9rem;
}
.profile-points-balance-pill strong {
    color: var(--va-accent, #66c0f4);
    font-size: 1.1rem;
}
.profile-points-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 12px;
    border-bottom: 1px solid var(--va-border, #2a475e);
}
.profile-points-tab {
    -webkit-appearance: none;
            appearance: none;
    border: 1px solid var(--va-border, #2a475e);
    background: color-mix(in srgb, var(--va-bg-card, #1b2838) 90%, #000);
    color: var(--va-text-muted, #8f98a0);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.85rem;
}
.profile-points-tab.active {
    color: #0b141c;
    background: var(--va-accent, #66c0f4);
    border-color: var(--va-accent, #66c0f4);
    font-weight: 700;
}
.profile-points-body {
    flex: 1;
    overflow: auto;
    padding: 16px 20px 22px;
}
.profile-points-hint { margin: 0 0 14px; }
.profile-points-empty { margin: 24px 0; text-align: center; }
.profile-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.profile-points-grid--feature {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.profile-points-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--va-border, #2a475e);
    background: color-mix(in srgb, var(--va-bg-elevated, #151b24) 94%, #000);
    min-width: 0;
}
.profile-points-card h3 {
    margin: 0;
    font-size: 0.95rem;
}
.profile-points-card .muted {
    margin: 0;
    font-size: 0.8rem;
    min-height: 1.2em;
}
.profile-points-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 16%, transparent);
    color: var(--va-accent, #66c0f4);
}
.profile-points-preview {
    width: 100%;
    border-radius: 10px;
    background: #0c1018 center/cover no-repeat;
    border: 1px solid color-mix(in srgb, var(--va-border, #2a475e) 70%, transparent);
}
.profile-points-preview--frame {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}
.profile-points-preview--bg,
.profile-points-preview--theme {
    aspect-ratio: 16 / 9;
}
.profile-points-buy {
    margin-top: auto;
    width: 100%;
}
.profile-points-buy:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.profile-points-slot-pick {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
}
.steam-profile-center,
.steam-profile-main-col,
.profile-col-primary,
.steam-main-content,
.steam-main-pane {
    min-width: 0;
    max-width: 100%;
}
.showcase-favorite-game,
.showcase-reviews-list {
    min-width: 0;
    max-width: 100%;
}

.profile-art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.profile-art-item {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.profile-art-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.profile-comment-item .chat-author-row {
    grid-row: span 2;
}

/* legacy grid fallback */
.profile-comment-item {
    display: flex;
    gap: var(--space-3);
    padding: 14px 16px;
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 14px 0;
}

.profile-referral-panel .profile-referral-code-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 10px 0;
}
.profile-referral-panel code {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--va-border, rgba(255,255,255,0.12));
}
.profile-referral-share-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* —— Profile compare with friend —— */
.profile-compare-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
}
.profile-compare-overlay.hidden { display: none; }
.profile-compare-sheet {
    position: relative;
    width: min(720px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--va-border, rgba(255,255,255,.1));
    background: var(--va-bg-elevated, #121820);
    padding: 20px 22px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.profile-compare-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.7;
}
.pc-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.pc-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.pc-user img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a2330;
}
.pc-vs {
    font-weight: 800;
    opacity: 0.55;
    letter-spacing: 0.08em;
}
.pc-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.pc-metric {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}
.pc-metric-label {
    font-size: 0.8rem;
    margin-bottom: 6px;
    opacity: 0.8;
}
.pc-bars { display: flex; flex-direction: column; gap: 6px; }
.pc-bar-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px;
    align-items: center;
}
.pc-bar-row.is-win .pc-bar-val { color: #7dcea0; font-weight: 700; }
.pc-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.pc-bar i {
    display: block;
    height: 100%;
    background: #66c0f4;
    border-radius: inherit;
}
.pc-bar--friend i { background: #a78bfa; }
.pc-diff { font-size: 0.75rem; margin-top: 4px; }
.pc-section { margin-top: 16px; }
.pc-section h3 { margin: 0 0 10px; font-size: 1rem; }
.pc-games {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    font-size: 0.85rem;
}
.pc-games-col h4 { margin: 0 0 6px; font-size: 0.8rem; opacity: 0.85; }
.pc-first {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.pc-first-card {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    text-align: center;
}
.pc-first-card.is-win {
    border: 1px solid rgba(125, 206, 160, 0.45);
    background: rgba(125, 206, 160, 0.1);
}
.pc-first-list { display: flex; flex-direction: column; gap: 6px; }
.pc-first-row {
    display: grid;
    grid-template-columns: 48px 1fr 1fr;
    gap: 8px;
    font-size: 0.85rem;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.03);
}
.pc-who.me { color: #66c0f4; font-weight: 700; }
.pc-who.fr { color: #a78bfa; font-weight: 700; }

@media (max-width: 700px) {
    .pc-metrics,
    .pc-games,
    .pc-first { grid-template-columns: 1fr; }
    .pc-first-row { grid-template-columns: 48px 1fr; }
    .pc-first-row .muted { grid-column: 2; }
}

/* Modal profile: fixed bg paints behind opaque modal — absolute layer inside modal */
.steam-profile-overlay .steam-profile-modal-full {
    width: min(1480px, 96vw);
    background: transparent;
    overflow: auto;
}
.steam-profile-modal-inner {
    position: relative;
    overflow: hidden;
    min-height: min(88vh, 900px);
    background: transparent;
}
.steam-profile-modal-inner .steam-profile-bg-fixed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    /* override page-level position:fixed so bg stays inside the modal */
    pointer-events: none;
}
.steam-profile-modal-inner .steam-profile-center {
    /* keep room for side strips so equipped background is visible */
    max-width: min(var(--profile-center-max, 920px), 100%);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--va-bg, #1b2838) 82%, transparent) 0%,
        color-mix(in srgb, var(--va-bg, #1b2838) 94%, transparent) 42%,
        var(--va-bg-elevated, #171a21) 100%
    );
}
.steam-profile-modal-inner .steam-profile-foreground,
.steam-profile-modal-inner .steam-profile-columns {
    position: relative;
    z-index: 1;
}
.steam-profile-modal-inner.profile-bg-layout-full .steam-profile-backdrop {
    display: block;
}

/* ===== Profile v2 redesign ===== */
.profile-header-v2 {
    gap: var(--space-4);
    align-items: flex-start;
}
.profile-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: var(--space-2) 0 var(--space-3);
}
.profile-metrics-row > div {
    display: flex;
    flex-direction: column;
    min-width: 4.5rem;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--va-bg-elevated, #171a21) 80%, transparent);
    border: 1px solid color-mix(in srgb, var(--va-border, #2a475e) 60%, transparent);
}
.profile-metrics-row b {
    font-size: var(--text-lg);
    color: #fff;
    line-height: var(--leading-tight);
}
.profile-xp-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-2) 0;
    max-width: 280px;
}
.profile-xp-bar {
    flex: 1;
    height: 6px;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--va-border, #2a475e) 70%, transparent);
    overflow: hidden;
}
.profile-xp-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--va-accent, #66c0f4), #22d3ee);
    border-radius: inherit;
}
.profile-header-tools {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}
.profile-tab-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    gap: var(--space-5);
    align-items: start;
}
@media (max-width: 900px) {
    .profile-tab-v2 {
        grid-template-columns: 1fr;
    }
}
.profile-activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.profile-activity-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-2);
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.profile-activity-row:hover {
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 12%, transparent);
}
.profile-activity-row img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.profile-activity-row span { flex: 1; min-width: 0; }
.profile-friends-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: var(--space-2);
}
.profile-goto-friends { margin-top: var(--space-3); width: 100%; }
.profile-now-playing-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-2);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--va-bg-elevated, #171a21) 90%, transparent);
    color: inherit;
    cursor: pointer;
}
.profile-now-playing-card img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.showcase-empty-modern {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-5);
    border: 1px dashed color-mix(in srgb, var(--va-accent, #66c0f4) 40%, transparent);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--va-bg-elevated, #171a21) 70%, transparent);
}
.showcase-empty-icon {
    font-size: var(--text-2xl);
    color: var(--va-accent, #66c0f4);
}

/* Editor dark fields + sticky footer */
.steam-edit-pane input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]),
.steam-edit-pane textarea,
.steam-edit-pane select,
.profile-about-textarea {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--va-border, #2a475e);
    background: var(--va-bg, #0f1218) !important;
    color: var(--va-text, #eef1f6) !important;
    font: inherit;
    caret-color: var(--va-accent, #66c0f4);
}
.steam-edit-pane textarea::placeholder,
.profile-about-textarea::placeholder {
    color: var(--va-text-muted, #8b93a7);
}
.steam-edit-pane input:focus,
.steam-edit-pane textarea:focus,
.steam-edit-pane select:focus {
    outline: 2px solid color-mix(in srgb, var(--va-accent, #66c0f4) 55%, transparent);
    outline-offset: 1px;
}
.steam-edit-content {
    position: relative;
    padding-bottom: 72px;
}
.steam-edit-footer--sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) 0;
    margin-top: var(--space-4);
    background: linear-gradient(180deg, transparent, var(--va-bg-elevated, #171a21) 28%);
    border-top: 1px solid var(--va-border, #2a475e);
}
.steam-edit-nav-item.active {
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 18%, transparent);
    color: #fff;
    border-color: var(--va-accent, #66c0f4);
}
.steam-edit-nav-ico {
    opacity: 0.75;
    margin-right: 4px;
}
.profile-bg-mode-seg {
    display: inline-flex;
    padding: 3px;
    gap: 0;
    border-radius: var(--radius-md);
    background: var(--va-bg, #0f1218);
    border: 1px solid var(--va-border, #2a475e);
}
.profile-bg-mode-seg .profile-bg-mode-card {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: 0;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    color: var(--va-text-muted, #8b93a7);
}
.profile-bg-mode-seg .profile-bg-mode-card.active {
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 22%, transparent);
    color: #fff;
}
.profile-editor-active-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    background: color-mix(in srgb, #22c55e 85%, #000);
    color: #fff;
}
.profile-editor-asset-preview { position: relative; }
.showcase-editor-empty {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--va-border, #2a475e);
    margin-bottom: var(--space-4);
}
.profile-editor-empty-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
}
.profile-editor-privacy-option label {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--va-border, #2a475e);
    background: color-mix(in srgb, var(--va-bg, #0f1218) 80%, transparent);
    cursor: pointer;
}
.profile-editor-privacy-option label:has(input:checked) {
    border-color: var(--va-accent, #66c0f4);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 12%, transparent);
}

/* ===== Profile editor iteration 2: draft / showcase cards / presets / breadcrumb ===== */
.steam-edit-header-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}
.steam-edit-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
}
.steam-edit-breadcrumb .btn-link {
    color: var(--va-text-muted, #8b93a7);
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}
.steam-edit-breadcrumb .btn-link:hover {
    color: var(--va-accent, #66c0f4);
    text-decoration: underline;
}
.steam-edit-crumb-sep {
    color: var(--va-text-muted, #8b93a7);
    opacity: 0.6;
}
.steam-edit-crumb-current {
    color: #fff !important;
    font-weight: var(--weight-semibold);
}
.steam-edit-draft-hint {
    margin-left: auto;
    font-size: var(--text-xs);
}
.showcase-card-v2 {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--va-border, #2a475e);
    background: color-mix(in srgb, var(--va-bg-elevated, #171a21) 88%, transparent);
}
.showcase-card-v2.is-hidden {
    opacity: 0.62;
    border-style: dashed;
}
.showcase-card-v2.is-visible {
    border-color: color-mix(in srgb, var(--va-accent, #66c0f4) 45%, var(--va-border, #2a475e));
}
.showcase-card-title-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.showcase-card-v2-actions,
.showcase-card-v2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}
.showcase-visibility-btn,
.editor-showcase-vis-btn {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 100%;
    font-weight: 600;
    color: #0b141c !important;
    background: var(--va-accent, #66c0f4) !important;
    border: 1px solid color-mix(in srgb, var(--va-accent, #66c0f4) 70%, #fff) !important;
    white-space: nowrap;
}
.showcase-visibility-btn[aria-pressed="false"],
.editor-showcase-vis-btn[aria-pressed="false"] {
    color: #c7d5e0 !important;
    background: #1b2838 !important;
    border-color: #4a5a6e !important;
}
.showcase-buy-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin: 0 0 16px;
    border-radius: 12px;
    border: 1px solid #2a475e;
    background: color-mix(in srgb, #171a21 90%, #66c0f4);
}
.showcase-buy-panel.is-maxed {
    opacity: 0.72;
}
.showcase-buy-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.showcase-buy-copy strong {
    color: #e8eef5;
}
.showcase-buy-price {
    margin: 4px 0 0;
    font-weight: 700;
    color: var(--va-accent, #66c0f4);
}
#showcase-buy-slot-vcoin {
    flex-shrink: 0;
    white-space: nowrap;
}
.showcase-visibility-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
    color: var(--va-text, #c7d5e0);
    position: relative;
    z-index: 1;
    max-width: 100%;
}
.showcase-visibility-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.showcase-visibility-track {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #2a3544;
    border: 2px solid #4a5a6e;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.showcase-visibility-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e8eef5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, background 0.15s ease;
}
.showcase-visibility-switch input:checked + .showcase-visibility-track {
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 70%, #0b141c);
    border-color: var(--va-accent, #66c0f4);
}
.showcase-visibility-switch input:checked + .showcase-visibility-track .showcase-visibility-knob {
    transform: translateX(18px);
    background: #0b141c;
}
.showcase-visibility-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
    min-width: 0;
}
.showcase-visibility-label {
    font-weight: 700;
    font-size: 0.9rem;
}
.showcase-configure-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Dark native <select> / <option> in showcase editor */
.showcase-config-body select,
.showcase-config-body .search-input,
.showcase-ach-filters select,
.showcase-filter-row select,
.steam-edit-pane select,
.steam-edit-modal select,
.profile-editor-showcase-slot select {
    color-scheme: dark;
    background-color: #121820 !important;
    color: #e8eef5 !important;
    border-color: #2a475e;
}
.showcase-config-body select option,
.showcase-ach-filters select option,
.showcase-filter-row select option,
.steam-edit-pane select option,
.steam-edit-modal select option,
.profile-editor-showcase-slot select option {
    background-color: #121820;
    color: #e8eef5;
}
.showcase-editor-grid--cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
}
.showcase-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.showcase-config-overlay {
    position: fixed !important;
    inset: 0;
    z-index: 21000 !important;
}
.showcase-config-modal {
    max-width: 560px;
    max-height: min(86vh, 720px);
    display: flex;
    flex-direction: column;
}
.showcase-config-body {
    overflow: auto;
    padding: var(--space-4);
    flex: 1;
}
.mini-color-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}
.color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.color-preset-swatch {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background: var(--swatch, #333);
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.color-preset-swatch:hover {
    transform: scale(1.08);
}
.color-preset-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--va-accent, #66c0f4) 70%, transparent);
}
.color-custom-picker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--va-text-muted, #8b93a7);
}
.color-custom-picker input[type="color"] {
    width: 40px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

/* —— Profile header v3 + notif center + mini bg —— */
.profile-header-v3 {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px 28px;
    align-items: start;
    padding: 20px 22px;
}
.profile-header-avatar-col { flex-shrink: 0; }
.profile-header-main-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.profile-header-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.profile-header-name-row h1 { margin: 0; }
.profile-header-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.profile-metric-btn {
    -webkit-appearance: none;
            appearance: none;
    border: 0;
    background: inherit;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-align: left;
}
.profile-metric-btn:hover b { color: var(--va-accent, #66c0f4); }
.profile-tab-v3 {
    grid-template-columns: 1fr;
}
.profile-tab-v3 .steam-profile-side-col { display: none; }
.profile-tab-v3 .profile-col-primary {
    width: 100%;
    max-width: none;
    grid-column: 1 / -1;
}
.profile-metrics-row span {
    display: block;
    font-size: 0.72rem;
    color: var(--va-text-muted, #8f98a0);
}
.mini-bg-selector-block { margin: 12px 0 16px; }
.mini-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin: 8px 0 12px;
    max-height: min(320px, 40vh);
    overflow: auto;
    padding-right: 4px;
}
.mini-asset-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--va-border, #2a475e);
    background: color-mix(in srgb, var(--va-bg-card, #1b2838) 92%, #000);
    cursor: pointer;
    text-align: left;
    color: inherit;
}
.mini-asset-option.selected {
    border-color: var(--va-accent, #66c0f4);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--va-accent, #66c0f4) 55%, transparent);
}
.mini-asset-option.locked { opacity: 0.45; cursor: not-allowed; }
.mini-asset-thumb {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    background: #0c1018 center/cover no-repeat;
}
.mini-asset-name { font-size: 0.78rem; line-height: 1.2; }
.mini-bg-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.mini-editor-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.profile-editor-mini-preview--portrait {
    width: 100%;
    max-width: 260px;
    min-height: 340px;
    aspect-ratio: 3 / 4;
}
.mini-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.mini-delay-field { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mini-delay-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mini-delay-row input[type="range"] {
    flex: 1 1 auto;
    max-width: 280px;
}
.profile-editor-asset--compact {
    min-width: 0;
}
.profile-editor-asset--compact .profile-editor-asset-preview {
    aspect-ratio: 16 / 10;
    position: relative;
}
.profile-editor-asset-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    z-index: 2;
}
.profile-editor-asset-del:hover { background: #c0392b; }
.animated-asset-actions {
    display: flex;
    gap: 6px;
}
.animated-asset-actions .btn { flex: 1; }
.profile-bg-split-target {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}
.showcase-pick-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.showcase-pick-meta strong {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.showcase-pick-fallback {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1b2838;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #66c0f4;
    flex-shrink: 0;
}
.showcase-legacy-editor { display: none; }
.animated-avatar-toolbar { margin-bottom: 10px; }

@media (max-width: 900px) {
    .mini-editor-layout { grid-template-columns: 1fr; }
    .privacy-toggle-list { grid-template-columns: 1fr; }
}

.notif-center-overlay { z-index: 13000; }
.notif-center-modal {
    width: min(720px, 96vw);
    max-height: min(86vh, 820px);
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--va-accent, #66c0f4) 32%, var(--va-border, #2a475e));
    background:
        radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--va-accent, #66c0f4) 14%, transparent), transparent 55%),
        color-mix(in srgb, var(--va-bg-elevated, #151b24) 97%, #000);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
    overflow: hidden;
}
.notif-center-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--va-border, #2a475e) 80%, transparent);
}
.notif-center-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notif-center-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.notif-center-unread-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0b1220;
    background: var(--va-accent, #66c0f4);
}
.notif-center-sub { margin: 6px 0 0; font-size: 0.82rem; line-height: 1.35; }
.notif-center-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.notif-center-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px 8px;
}
.notif-filter-btn {
    border: 1px solid var(--va-border, #2a475e);
    background: color-mix(in srgb, var(--va-bg-card, #1b2838) 55%, transparent);
    color: var(--va-text-muted, #8f98a0);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.notif-filter-btn:hover {
    border-color: color-mix(in srgb, var(--va-accent, #66c0f4) 40%, var(--va-border, #2a475e));
    color: var(--va-text, #c7d5e0);
}
.notif-filter-btn.on {
    color: #0b1220;
    background: var(--va-accent, #66c0f4);
    border-color: transparent;
    font-weight: 600;
}
.notif-center-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 16px 12px;
}
.notif-sort-label {
    font-size: 0.82rem;
    color: var(--va-text-muted, #8f98a0);
}
.notif-center-sort,
#notif-center-sort {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 280px;
    color-scheme: dark;
    background: color-mix(in srgb, var(--va-bg-card, #1b2838) 92%, #000) !important;
    border: 1px solid var(--va-border, #2a475e) !important;
    color: var(--va-text, #c7d5e0) !important;
    border-radius: 10px;
    padding: 8px 12px;
}
.notif-center-sort option,
#notif-center-sort option {
    background: #151b24;
    color: #e6eef5;
}
.notif-center-count {
    margin-left: auto;
    font-size: 0.8rem;
}
.notif-center-list {
    overflow: auto;
    padding: 0 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 180px;
}
.notif-center-item {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--va-border, #2a475e) 80%, transparent);
    background: color-mix(in srgb, var(--va-bg-card, #1b2838) 88%, #000);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.notif-center-item:hover {
    border-color: color-mix(in srgb, var(--va-accent, #66c0f4) 45%, var(--va-border, #2a475e));
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 10%, var(--va-bg-card, #1b2838));
    transform: translateY(-1px);
}
.notif-center-item.is-unread {
    border-color: color-mix(in srgb, var(--va-accent, #66c0f4) 50%, var(--va-border, #2a475e));
    box-shadow: inset 3px 0 0 var(--va-accent, #66c0f4);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 8%, var(--va-bg-card, #1b2838));
}
.notif-center-item-main { min-width: 0; flex: 1; }
.notif-center-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.notif-center-item-main strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.3;
}
.notif-center-body { margin: 4px 0 0; color: var(--va-text-muted, #8f98a0); font-size: 0.9rem; line-height: 1.4; }
.notif-center-time { font-size: 0.72rem; white-space: nowrap; }
.notif-center-open {
    flex-shrink: 0;
    border-radius: 999px !important;
    background: var(--va-accent, #66c0f4) !important;
    color: #0b1220 !important;
    border: 0 !important;
    font-weight: 700;
}
.notif-kind-chip {
    display: inline-block;
    margin-bottom: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.06);
    color: var(--va-text-muted, #8f98a0);
}
.notif-kind-chip[data-kind="social"] {
    background: color-mix(in srgb, #60a5fa 22%, transparent);
    color: #9ecbff;
}
.notif-kind-chip[data-kind="store"] {
    background: color-mix(in srgb, #34d399 20%, transparent);
    color: #8eefc2;
}
.notif-center-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--va-text-muted, #8f98a0);
}
.notif-center-empty-ico {
    display: inline-block;
    font-size: 1.6rem;
    margin-bottom: 8px;
    opacity: 0.7;
}
.notif-center-empty p { margin: 4px 0; }
.notif-center-foot {
    padding: 10px 16px 14px;
    border-top: 1px solid color-mix(in srgb, var(--va-border, #2a475e) 70%, transparent);
    font-size: 0.75rem;
    text-align: center;
}
.settings-referral-panel { margin-top: 8px; }

/* Privacy editor v2 */
.privacy-pane-v2 { max-width: 720px; }
.privacy-pane-title { margin-bottom: 4px; }
.privacy-pane-sub { margin: 0 0 14px; }
.privacy-vis-grid,
.privacy-vis-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 18px;
}
.privacy-vis-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--va-border, #2a475e);
    background: color-mix(in srgb, var(--va-bg-card, #1b2838) 92%, #000);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.privacy-vis-card:hover {
    border-color: color-mix(in srgb, var(--va-accent, #66c0f4) 45%, var(--va-border, #2a475e));
}
.privacy-vis-card:has(input:checked) {
    border-color: var(--va-accent, #66c0f4);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 12%, var(--va-bg-card, #1b2838));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--va-accent, #66c0f4) 40%, transparent),
        0 0 18px color-mix(in srgb, var(--va-accent, #66c0f4) 18%, transparent);
}
.privacy-vis-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.privacy-vis-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--va-text-muted, #8f98a0) 70%, var(--va-border, #2a475e));
    flex-shrink: 0;
    position: relative;
    background: transparent;
}
.privacy-vis-card:has(input:checked) .privacy-vis-radio {
    border-color: var(--va-accent, #66c0f4);
}
.privacy-vis-card:has(input:checked) .privacy-vis-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--va-accent, #66c0f4);
}
.privacy-vis-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.privacy-vis-card-body strong { font-size: 1rem; color: var(--va-text, #e8eef5); }
.privacy-details-block {
    padding: 16px 18px 18px;
    border-radius: 14px;
    border: 1px solid var(--va-border, #2a475e);
    background: color-mix(in srgb, var(--va-bg-elevated, #151b24) 94%, #000);
    margin-bottom: 18px;
}
.privacy-toggle-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 16px;
}
.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--va-bg-card, #1b2838) 85%, transparent);
    border: 1px solid color-mix(in srgb, var(--va-border, #2a475e) 75%, transparent);
    cursor: pointer;
    min-height: 50px;
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.privacy-toggle:hover,
.privacy-toggle:has(input:focus-visible) {
    border-color: var(--va-accent, #66c0f4);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--va-accent, #66c0f4) 25%, transparent);
}
.privacy-toggle:has(input:checked) {
    border-color: color-mix(in srgb, var(--va-accent, #66c0f4) 55%, var(--va-border, #2a475e));
}
.privacy-toggle input {
    accent-color: var(--va-accent, #66c0f4);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.privacy-select-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--va-text, #c7d5e0);
    margin-top: 4px;
}
.privacy-select,
.privacy-select-field .search-input {
    color-scheme: dark;
    max-width: 420px;
}
.privacy-save-btn-v2 {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--va-accent, #66c0f4);
    color: #0b141c;
    border: none;
    box-shadow: 0 0 22px color-mix(in srgb, var(--va-accent, #66c0f4) 35%, transparent);
}
.privacy-save-btn-v2:hover {
    filter: brightness(1.06);
}

/* Showcase enriched cards */
.showcase-favorite-game {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 16px;
    align-items: start;
}
.showcase-fav-cover {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}
.showcase-fav-cover img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    background: #111;
}
.showcase-fav-meta { min-width: 0; }
.showcase-fav-playtime { margin: 0 0 6px; }
.showcase-fav-ach-group { margin-top: 10px; }
.showcase-fav-ach-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--va-accent, #66c0f4);
    margin-bottom: 4px;
}
.showcase-fav-ach-group ul {
    margin: 0;
    padding-left: 16px;
    color: var(--va-text, #c7d5e0);
    font-size: 0.88rem;
}
.showcase-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.showcase-review-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background: color-mix(in srgb, #000 35%, transparent);
}
.showcase-review-game {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}
.showcase-review-game img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
}
.showcase-review-body p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--va-text, #c7d5e0);
}
.showcase-review-rating { color: #f0c14b; letter-spacing: 1px; }
.showcase-shot-picker .showcase-game-option img {
    width: 72px;
    height: 48px;
    object-fit: cover;
}
.showcase-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.showcase-ach-rarity.rarity-legendary { color: #f0a020; }
.showcase-ach-rarity.rarity-rare { color: #c060ff; }
.showcase-ach-rarity.rarity-uncommon { color: #66c0f4; }
@media (max-width: 700px) {
    .showcase-favorite-game,
    .showcase-review-card { grid-template-columns: 1fr; }
    .showcase-filter-row { grid-template-columns: 1fr; }
}
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.social-row .social-platform-select {
    flex: 0 1 160px;
    min-width: 140px;
    color-scheme: dark;
}
.social-row input[type="url"] {
    flex: 1 1 200px;
    min-width: 160px;
}

@media (max-width: 720px) {
    .profile-header-v3 { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding: 12px; }
    .profile-header-main-col { align-items: center; width: 100%; }
    .profile-header-name-row, .profile-header-actions-row, .steam-header-actions { justify-content: center; }
    .privacy-vis-grid { grid-template-columns: 1fr; }
    .profile-metrics-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .profile-metrics-row > * { min-width: 0; width: 100%; }
    .profile-xp-row { max-width: none; width: 100%; }
    .steam-main-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .steam-main-tabs::-webkit-scrollbar { display: none; }
    .steam-main-tab { flex: 0 0 auto; white-space: nowrap; }
}


/* —— Responsive —— */
@media (max-width: 479px) {
  .profile-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1536px) {
  .profile-page, .profile-shell { max-width: min(1680px, 100%); margin-inline: auto; }
}
