/* 47 inventory · 48 wallet · 49 news journal · 50 checkout */

/* full-bleed только на широких экранах; mobile — в pages-adaptive-fix.css */
@media (min-width: 901px) {
    .main-content:has(.inv-stage),
    .main-content:has(.wl-stage),
    .main-content:has(.nw-stage),
    .main-content:has(.ck-stage),
    .main-content:has(.tr-stage) {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
}

.rarity { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.rarity.legendary { color: #f0c14b; }
.rarity.epic { color: #b08cff; }
.rarity.rare { color: #4de8ff; }
.rarity.uncommon { color: #3dff9a; }
.rarity.common { color: var(--va-text-muted); }

/* —— 47 inventory —— */
.inventory-page--inv .inventory-page-head {
    padding: 12px 20px 0;
}
.inv-stage {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 320px);
    min-height: calc(100vh - 160px);
}
.inv-grid {
    padding: 12px 16px 80px;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    align-content: start;
}
.inv-cell {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-color: #12151c;
    border: 1px solid var(--va-border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    color: #fff;
}
.inv-cell.on { outline: 2px solid var(--va-accent); outline-offset: 1px; }
.inv-cell .tag {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 8px;
    border-radius: var(--radius-md);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inv-cell-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
}
.inv-cell.rarity-border.legendary { box-shadow: inset 0 0 0 1px rgba(240, 193, 75, 0.55); }
.inv-cell.rarity-border.epic { box-shadow: inset 0 0 0 1px rgba(176, 140, 255, 0.55); }
.inv-cell.rarity-border.rare { box-shadow: inset 0 0 0 1px rgba(77, 232, 255, 0.45); }
.inv-cell.rarity-border.uncommon { box-shadow: inset 0 0 0 1px rgba(61, 255, 154, 0.4); }

.steam-inv-slot.rarity-border.legendary { box-shadow: inset 0 0 0 2px rgba(240, 193, 75, 0.65), 0 0 18px rgba(240, 193, 75, 0.18); }
.steam-inv-slot.rarity-border.epic { box-shadow: inset 0 0 0 2px rgba(176, 140, 255, 0.65), 0 0 18px rgba(176, 140, 255, 0.16); }
.steam-inv-slot.rarity-border.rare { box-shadow: inset 0 0 0 2px rgba(77, 232, 255, 0.55), 0 0 14px rgba(77, 232, 255, 0.14); }
.steam-inv-slot.rarity-border.uncommon { box-shadow: inset 0 0 0 2px rgba(61, 255, 154, 0.5); }
.steam-inv-slot.rarity-border.common { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

.inventory-page--inv {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
}
.inventory-page--inv .inventory-page-body {
    flex: 1 1 auto;
    min-height: 0;
}
.inventory-page--inv .inv-stage {
    min-height: calc(100vh - 140px);
}
.inv-side {
    padding: 16px 18px 24px;
    border-left: 1px solid var(--va-border);
    overflow: auto;
    background: color-mix(in srgb, var(--va-bg-elevated) 70%, transparent);
}
.inv-side .art {
    height: 180px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-color: #12151c;
    margin-bottom: var(--space-3);
    border: 1px solid var(--va-border);
}
.inv-side-actions { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }

/* —— 48 wallet —— */
.wl-stage {
    overflow: auto;
    padding: 20px 24px 80px;
    background: var(--va-bg, #0b0d12);
}
.wl-unified-head {
    max-width: 1100px;
    margin: 0 auto 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}
.wl-page-title { margin: 0 0 4px; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.wl-page-sub { margin: 0; font-size: 0.9rem; }
.wl-balance-card {
    max-width: 960px;
    margin: 0 auto 16px;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid var(--va-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.wl-balance-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
}
.wl-balance-vc {
    font-family: var(--va-display, Syne, Inter, sans-serif);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--va-accent, #66c0f4);
    text-shadow: 0 0 28px color-mix(in srgb, var(--va-accent) 35%, transparent);
}
.wl-balance-coin { font-size: 1.35rem; }
.wl-balance-rub { margin: 8px 0 0; font-size: 0.9rem; }
.wl-topup-row {
    max-width: 960px;
    margin: 0 auto 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wl-notice {
    max-width: 960px;
    margin: 0 auto 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid var(--va-border);
    background: rgba(255, 255, 255, 0.03);
}
.wl-notice--warn {
    border-color: color-mix(in srgb, #c45 45%, var(--va-border));
    background: color-mix(in srgb, #3d1f1f 70%, transparent);
    color: #f0b4b4;
}
.wl-actions--inline { margin: 0; max-width: none; }
.wl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wl-tab {
    border: 1px solid var(--va-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--va-text-muted);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.85rem;
}
.wl-tab.on {
    border-color: var(--va-accent);
    color: #fff;
    background: color-mix(in srgb, var(--va-accent) 18%, transparent);
}
.wl-panel {
    max-width: 1100px;
    margin: 0 auto;
}
.wl-panel.hidden { display: none; }
.wl-hero {
    max-width: 960px;
    margin: 0 auto 20px;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--va-border);
    background: color-mix(in srgb, var(--va-bg-elevated) 80%, transparent);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
}
.wl-hero h1 {
    font-family: var(--va-display, Syne, Inter, sans-serif);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: -0.05em;
    margin: 6px 0 10px;
}
.wl-packs {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.wl-pack {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--va-border);
    text-align: left;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}
.wl-pack.on {
    border-color: var(--va-accent);
    box-shadow: 0 0 24px var(--va-glow);
}
.wl-tx { max-width: 960px; margin: 22px auto 0; }
.wl-tx-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: 12px;
}
.wl-tx-head h3 { margin: 0; }
.wl-tx-count { font-size: .85rem; }
.wl-tx-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--va-border);
    background: rgba(255, 255, 255, 0.02);
}
.wl-tx-search { flex: 1 1 180px; min-width: 140px; max-width: 320px; }
.wl-tx-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1 1 200px;
}
.wl-tx-chip-sep {
    width: 1px;
    height: 20px;
    margin: 0 2px;
    background: var(--va-border);
    flex-shrink: 0;
}
.wl-tx-list-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--va-border);
    background: rgba(255, 255, 255, 0.02);
    padding: 4px 8px 10px;
}
.wl-tx-list-card .wl-tx-empty { padding: 12px 8px; }
.wl-tx-chip {
    border: 1px solid var(--va-border);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: .82rem;
    cursor: pointer;
}
.wl-tx-chip.on {
    border-color: var(--va-accent);
    background: rgba(255, 255, 255, 0.06);
}
.wl-tx-group { margin-bottom: 16px; }
.wl-tx-group-title {
    margin: 0 0 8px;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--va-muted, #9aa3b2);
}
.wl-tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid transparent;
}
.wl-tx-row + .wl-tx-row { margin-top: 2px; }
.wl-tx-row:hover {
    border-color: color-mix(in srgb, var(--va-border) 80%, var(--va-accent));
    background: rgba(255, 255, 255, 0.03);
}
.wl-tx-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}
.wl-tx-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    font-size: .95rem;
}
.wl-tx-meta { font-size: .8rem; margin-top: 2px; }
.wl-tx-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-tx-amt--pos { color: var(--va-ok, #3dd68c); }
.wl-tx-amt--out { color: var(--va-text, #e8ecf4); }
.wl-tx-empty { margin: 8px 0 0; }
.wl-actions { max-width: 960px; margin: 14px auto 0; display: flex; gap: var(--space-2); flex-wrap: wrap; }

.wl-stage.wl-loading {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.vcoin-shop-grid {
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.vcoin-shop-grid--fade {
    opacity: 0.35;
    transform: translateY(4px);
}
.vcoin-shop-grid--in {
    animation: vcoin-shop-in 0.22s ease;
}
@keyframes vcoin-shop-in {
    from { opacity: 0.4; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* —— 49 news journal —— */
.news-page--journal .nw-stage {
    overflow: auto;
    padding: 16px 22px 80px;
}
.nw-feat {
    max-width: 1100px;
    margin: 0 auto 16px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-3);
    min-height: 280px;
}
.nw-big {
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    background-color: #12151c;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: #fff;
    padding: 0;
    width: 100%;
}
.nw-big::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}
.nw-big .in {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: var(--z-base);
}
.nw-stack { display: flex; flex-direction: column; gap: 10px; }
.nw-row {
    flex: 1;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-color: #12151c;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: #fff;
    padding: 0;
}
.nw-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.nw-row span {
    position: relative;
    z-index: var(--z-base);
    display: block;
    padding: 14px;
}
.nw-digest {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.nw-digest article {
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--va-border);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}
.nw-digest article:hover { border-color: color-mix(in srgb, var(--va-accent) 50%, var(--va-border)); }

/* —— 50 checkout —— */
.ck-stage {
    overflow: auto;
    padding: 16px 24px 80px;
}
.ck-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-4);
}
.ck-pay { display: flex; flex-direction: column; gap: var(--space-2); }
.ck-pay button {
    text-align: left;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--va-border);
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}
.ck-pay button.on { border-color: var(--va-accent); }
.ck-sum {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--va-border);
    background: color-mix(in srgb, var(--va-bg-elevated) 75%, transparent);
}
.ck-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--va-text-muted);
}
.ck-art {
    height: 120px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-color: #12151c;
    margin-bottom: var(--space-3);
}
.ck-items { margin-bottom: var(--space-3); max-height: 180px; overflow: auto; }
.ck-item-row { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); font-size: 0.88rem; }
.ck-item-row .mini {
    width: 40px;
    height: 24px;
    border-radius: 6px;
    background-size: cover;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .inv-stage { grid-template-columns: 1fr; }
    .inv-side { border-left: 0; border-top: 1px solid var(--va-border); }
    .wl-packs, .nw-feat, .nw-digest, .ck-grid { grid-template-columns: 1fr; }
    .gc-packs { grid-template-columns: 1fr; }
}

/* —— Gift cards (self-service) —— */
.store-gift-cards-page .gc-hero {
    margin: 12px 0 20px;
}
.store-gift-cards-page .gc-hero h1 {
    margin: 0 0 6px;
    font-size: 1.6rem;
}
.gc-balance {
    margin-top: 10px;
}
.gc-packs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 28px;
}
.gc-pack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--va-border, rgba(255,255,255,.08));
    background: color-mix(in srgb, var(--va-bg-elevated, #161b22) 80%, transparent);
    color: inherit;
    cursor: pointer;
    text-align: left;
}
.gc-pack:hover:not(:disabled) {
    border-color: var(--va-accent, #66c0f4);
}
.gc-pack:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.gc-pack strong {
    font-size: 1.25rem;
}
.gc-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gc-card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--va-border, rgba(255,255,255,.08));
    background: rgba(255,255,255,.03);
}
.gc-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.gc-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,.25);
}
.gc-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(102, 192, 244, 0.15);
    color: #9fd6f5;
}
.gc-badge--sent {
    background: rgba(160, 140, 255, 0.18);
    color: #cbb8ff;
}
.gc-badge--used {
    background: rgba(255, 255, 255, 0.08);
    color: #9aa4b0;
}
.gc-friend-list {
    max-height: 280px;
    overflow: auto;
}
.gc-friend-row {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255,255,255,.04);
    color: inherit;
    cursor: pointer;
}
.gc-friend-row.on,
.gc-friend-row:hover {
    border-color: var(--va-accent, #66c0f4);
}

