/* =================================================================
   SPACEDROP v5 — Design System
   Dark minimal theme: #0d0d0d bg, #ffd700 gold primary
================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Rajdhani:wght@500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ---------- Reset & Root ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0d0d0d;
    --bg2:       #141414;
    --bg3:       #1a1a1a;
    --bg4:       #212121;
    --border:    #2a2a2a;
    --border2:   #333;

    --gold:      #ffd700;
    --gold2:     #ffaa00;
    --gold-glow: rgba(255,215,0,.25);
    --green:     #00ff88;
    --green-d:   #00cc6a;
    --purple:    #bf00ff;
    --red:       #ff4444;
    --blue:      #00d4ff;

    --text:      #ffffff;
    --text2:     #a0a0a0;
    --text3:     #666666;

    --header-h:  64px;
    --r:         12px;
    --r-lg:      16px;
    --r-xl:      20px;

    --shadow:    0 4px 24px rgba(0,0,0,.6);
    --shadow-sm: 0 2px 12px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

h1,h2,h3,h4,h5 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ---------- Typography ---------- */
.glow-text { text-shadow: 0 0 20px var(--gold-glow); }
.text-gold  { color: var(--gold); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-blue  { color: var(--blue); }
.text-purple{ color: var(--purple); }
.text-muted { color: var(--text2); }

/* ---------- Buttons ---------- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: var(--r);
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--gold-glow); }
.btn-gold:active { transform: translateY(0); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text2);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border2);
    border-radius: var(--r);
    transition: all .2s;
    white-space: nowrap;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg3);
    color: var(--text2);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: all .2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }

.btn-steam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #000;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: var(--r);
    transition: all .2s;
    white-space: nowrap;
    text-transform: uppercase;
}
.btn-steam:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--gold-glow); }

.btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00cc6a, #00ff88);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: var(--r);
    transition: all .2s;
    text-transform: uppercase;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,255,136,.3); }

/* ---------- Header ---------- */
.v5-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(20,20,20,.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.v5-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.v5-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.v5-logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000;
    flex-shrink: 0;
}
.v5-logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Desktop Nav */
.v5-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.v5-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text2);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--r);
    transition: all .2s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.v5-nav-link i { font-size: 12px; }
.v5-nav-link:hover { color: var(--text); background: var(--bg3); }
.v5-nav-link.active { color: var(--gold); }
.v5-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Header Right */
.v5-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.v5-online {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
}
.v5-online-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; }
    50%      { opacity: .5; }
}
.v5-online-count { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:15px; }
.v5-online-label { color: var(--text2); font-size: 11px; }

/* User area */
.v5-user-area {
    position: relative;
}
.v5-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s;
}
.v5-user-btn:hover { border-color: var(--border2); }
.v5-user-btn img {
    width: 30px; height: 30px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.v5-user-name {
    font-weight: 600;
    font-size: 13px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v5-user-bal {
    font-size: 12px;
    color: var(--gold);
    font-weight: 700;
}
.v5-user-caret { color: var(--text3); font-size: 10px; }

.v5-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 8px;
    display: none;
    z-index: 200;
    box-shadow: var(--shadow);
}
.v5-dropdown.open { display: block; }

.v5-dropdown-balance {
    padding: 12px 12px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.v5-dropdown-balance-label { font-size: 11px; color: var(--text2); margin-bottom: 4px; }
.v5-dropdown-balance-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}

.v5-dropdown a,
.v5-dropdown button.v5-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r);
    color: var(--text2);
    font-size: 13px;
    font-weight: 500;
    transition: all .15s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.v5-dropdown a:hover,
.v5-dropdown button.v5-dd-item:hover { background: var(--bg4); color: var(--text); }
.v5-dropdown a i, .v5-dropdown button.v5-dd-item i { width: 16px; text-align: center; color: var(--text3); }
.v5-dropdown-sep { height: 1px; background: var(--border); margin: 6px 0; }

/* Balance add button in header */
.v5-add-bal-btn {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform .15s;
}
.v5-add-bal-btn:hover { transform: scale(1.1); }

/* Mobile menu button */
.v5-burger {
    display: none;
    width: 38px; height: 38px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r);
    align-items: center;
    justify-content: center;
    color: var(--text2);
    font-size: 16px;
    flex-shrink: 0;
}
.v5-burger:hover { color: var(--text); }

/* Mobile Nav Drawer */
.v5-mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(20,20,20,.99);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
}
.v5-mobile-nav.open { display: flex; }

.v5-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--r);
    color: var(--text2);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .3px;
    transition: all .15s;
}
.v5-mobile-link i { color: var(--gold); width: 18px; text-align: center; }
.v5-mobile-link:hover, .v5-mobile-link.active { background: var(--bg3); color: var(--text); }
.v5-mobile-link.active { color: var(--gold); }

.v5-mobile-sep { height: 1px; background: var(--border); margin: 6px 0; }

/* ---------- Weapon Bar (Live Wins) ---------- */
.v5-wins-bar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

/* ---------- Layout ---------- */
.v5-main {
    padding-top: 32px;
    padding-bottom: 80px;
    min-height: 60vh;
}

.v5-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Page Header (section titles) ---------- */
.v5-page-header {
    margin-bottom: 32px;
}
.v5-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.v5-page-sub { font-size: 14px; color: var(--text2); font-family: 'Inter', sans-serif; text-transform: none; }

/* ---------- Section ---------- */
.v5-section { margin-bottom: 48px; }
.v5-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.v5-section-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.v5-section-title i { font-size: 16px; }
.v5-section-link {
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
    transition: color .2s;
    white-space: nowrap;
}
.v5-section-link:hover { color: var(--gold); }

/* ---------- Filter Chips ---------- */
.v5-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.v5-filter-chip {
    padding: 7px 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.v5-filter-chip:hover { border-color: var(--border2); color: var(--text); }
.v5-filter-chip.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

/* ---------- Case Cards ---------- */
.v5-cases-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}
@media(min-width:480px) { .v5-cases-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:768px) { .v5-cases-grid { grid-template-columns: repeat(4,1fr); gap: 16px; } }
@media(min-width:1024px){ .v5-cases-grid { grid-template-columns: repeat(5,1fr); } }
@media(min-width:1280px){ .v5-cases-grid { grid-template-columns: repeat(6,1fr); } }

.v5-case-card {
    position: relative;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.v5-case-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 36px rgba(255,215,0,.15);
}

.v5-case-badge {
    position: absolute;
    top: 10px; right: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}
.v5-case-badge.gold  { background: var(--gold);   color: #000; }
.v5-case-badge.new   { background: var(--purple);  color: #fff; }
.v5-case-badge.hot   { background: var(--red);     color: #fff; animation: hotpulse 1.5s infinite; }
.v5-case-badge.free  { background: var(--green);   color: #000; }
.v5-case-badge.blue  { background: var(--blue);    color: #000; }
@keyframes hotpulse { 0%,100%{opacity:1} 50%{opacity:.7} }

.v5-case-img-wrap {
    padding: 16px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    position: relative;
}
.v5-case-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform .35s cubic-bezier(.4,0,.2,1), filter .35s;
    position: relative;
    z-index: 2;
}
.v5-case-card:hover .v5-case-img {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 8px 24px var(--gold-glow));
}
.v5-case-glow {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--gold-glow), transparent 70%);
    opacity: 0;
    transition: opacity .35s;
    z-index: 1;
}
.v5-case-card:hover .v5-case-glow { opacity: 1; }

.v5-case-body {
    padding: 0 12px 14px;
    text-align: center;
}
.v5-case-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.v5-case-items-count {
    font-size: 11px;
    color: var(--text3);
    margin-bottom: 8px;
}
.v5-case-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.v5-case-price span { font-size: 13px; color: var(--text2); }

.v5-case-progress {
    margin-top: 8px;
    height: 3px;
    background: var(--bg4);
    border-radius: 2px;
    overflow: hidden;
}
.v5-case-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold2));
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.v5-case-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

/* Open button overlay on hover */
.v5-case-hover-btn {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(13,13,13,.95), transparent);
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    z-index: 3;
}
.v5-case-card:hover .v5-case-hover-btn { opacity: 1; }

/* ---------- Promo Banner ---------- */
.v5-promo {
    background: linear-gradient(135deg, rgba(255,215,0,.08), rgba(255,170,0,.05));
    border-bottom: 1px solid rgba(255,215,0,.15);
    padding: 12px 20px;
}
.v5-promo-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.v5-promo-icon { color: var(--gold); font-size: 20px; flex-shrink: 0; }
.v5-promo-text { flex: 1; min-width: 200px; }
.v5-promo-title { font-size: 14px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .5px; }
.v5-promo-desc  { font-size: 12px; color: var(--text2); font-family: 'Inter', sans-serif; text-transform: none; }
.v5-promo-code-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg3);
    border: 1px solid rgba(255,215,0,.3);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}
.v5-promo-code-label { font-size: 10px; color: var(--text3); text-transform: uppercase; }
.v5-promo-code       { font-family: 'Rajdhani',sans-serif; font-size: 18px; font-weight: 700; color: var(--gold); }
.v5-promo-copy-btn {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    padding: 0;
    transition: color .2s;
}
.v5-promo-copy-btn:hover { color: var(--gold); }
.v5-promo-timer {
    font-size: 12px;
    color: var(--text2);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

/* ---------- Auth Modal ---------- */
.v5-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.v5-modal-box {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,.8);
}
.v5-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--bg4);
    border: none;
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    font-size: 14px;
    transition: color .2s;
}
.v5-modal-close:hover { color: var(--text); }
.v5-modal-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #000;
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ---------- Deposit Modal ---------- */
.v5-deposit-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.v5-deposit-modal.open { display: flex; }
.v5-deposit-box {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.v5-deposit-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.v5-deposit-title i { color: var(--gold); }

.v5-form-group { margin-bottom: 20px; }
.v5-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.v5-form-input {
    width: 100%;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 11px 14px;
    color: var(--text);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s;
}
.v5-form-input:focus { border-color: var(--gold); }
.v5-input-wrap { position: relative; }
.v5-input-suffix {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text2);
    font-size: 14px;
    pointer-events: none;
}
.v5-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    margin-top: 10px;
}
.v5-qa-btn {
    padding: 7px 4px;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.v5-qa-btn:hover { border-color: var(--gold); color: var(--gold); }

.v5-payment-methods {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
}
.v5-pm-btn {
    padding: 12px;
    background: var(--bg4);
    border: 2px solid var(--border);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all .2s;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
}
.v5-pm-btn:hover, .v5-pm-btn.selected { border-color: var(--gold); color: var(--gold); }
.v5-pm-btn img { height: 24px; object-fit: contain; }

.v5-total-block {
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.v5-total-label { font-size: 13px; color: var(--text2); }
.v5-total-val {
    font-family: 'Rajdhani',sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

.v5-promo-status { font-size: 12px; margin-top: 6px; }
.v5-promo-status.valid   { color: var(--green); }
.v5-promo-status.invalid { color: var(--red); }

.v5-modal-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

/* ---------- Footer ---------- */
.v5-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 48px 20px 24px;
}
.v5-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.v5-footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    margin-bottom: 36px;
}
@media(min-width:480px) { .v5-footer-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .v5-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.v5-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.v5-footer-about { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 16px; }
.v5-footer-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}
.v5-footer-links { display: flex; flex-direction: column; gap: 8px; }
.v5-footer-links a {
    font-size: 13px;
    color: var(--text2);
    transition: color .2s;
}
.v5-footer-links a:hover { color: var(--gold); }
.v5-footer-social {
    display: flex;
    gap: 10px;
}
.v5-social-btn {
    width: 38px; height: 38px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    font-size: 16px;
    transition: all .2s;
    text-decoration: none;
}
.v5-social-btn:hover { border-color: var(--gold); color: var(--gold); }
.v5-footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text3);
}

/* ---------- Mobile Bottom Nav ---------- */
.v5-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(20,20,20,.97);
    border-top: 1px solid var(--border);
    z-index: 900;
    padding: 8px 4px 10px;
    backdrop-filter: blur(20px);
}
.v5-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.v5-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    color: var(--text3);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    transition: color .2s;
    border-radius: 8px;
    min-width: 48px;
    text-decoration: none;
}
.v5-bottom-nav-item i { font-size: 18px; }
.v5-bottom-nav-item.active, .v5-bottom-nav-item:hover { color: var(--gold); }
.v5-bottom-nav-item img {
    width: 24px; height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

/* ---------- Card / Surface ---------- */
.v5-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
}
.v5-card-sm { padding: 16px; }
.v5-card-hover { transition: border-color .2s, box-shadow .2s; }
.v5-card-hover:hover { border-color: var(--border2); box-shadow: 0 4px 24px rgba(0,0,0,.4); }

/* ---------- Stats Grid ---------- */
.v5-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
@media(min-width:600px) { .v5-stats-row { grid-template-columns: repeat(4,1fr); } }
@media(min-width:900px) { .v5-stats-row { grid-template-columns: repeat(5,1fr); } }

.v5-stat {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.v5-stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.v5-stat-icon.gold   { background: rgba(255,215,0,.12);  color: var(--gold);   }
.v5-stat-icon.green  { background: rgba(0,255,136,.12);  color: var(--green);  }
.v5-stat-icon.red    { background: rgba(255,68,68,.12);  color: var(--red);    }
.v5-stat-icon.blue   { background: rgba(0,212,255,.12);  color: var(--blue);   }
.v5-stat-icon.purple { background: rgba(191,0,255,.12);  color: var(--purple); }

.v5-stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.v5-stat-value { font-family: 'Rajdhani',sans-serif; font-size: 22px; font-weight: 700; }

/* ---------- Item Cards (Inventory / Case items) ---------- */
.v5-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media(min-width:500px) { .v5-items-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:768px) { .v5-items-grid { grid-template-columns: repeat(4,1fr); gap: 14px; } }
@media(min-width:1024px){ .v5-items-grid { grid-template-columns: repeat(5,1fr); } }
@media(min-width:1280px){ .v5-items-grid { grid-template-columns: repeat(6,1fr); } }

.v5-item-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all .25s;
    position: relative;
}
.v5-item-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
}
.v5-item-card.rarity-consumer   ::before, .v5-item-card.rarity-consumer::before   { background: #b0b0b0; }
.v5-item-card.rarity-industrial::before  { background: #6db0e4; }
.v5-item-card.rarity-milspec::before     { background: #4a69b5; }
.v5-item-card.rarity-restricted::before  { background: #8b46a9; }
.v5-item-card.rarity-classified::before  { background: #d04494; }
.v5-item-card.rarity-covert::before      { background: #e84a4a; }
.v5-item-card.rarity-rare::before        { background: var(--gold); }
.v5-item-card.rarity-contraband::before  { background: linear-gradient(90deg,var(--gold),var(--gold2)); }
.v5-item-card.rarity-epic::before        { background: var(--purple); }
.v5-item-card.rarity-legendary::before   { background: var(--gold); }
.v5-item-card.rarity-mythic::before      { background: var(--red); }
.v5-item-card.rarity-common::before      { background: #888; }

.v5-item-card:hover { border-color: var(--border2); transform: translateY(-3px); }

.v5-item-img-wrap {
    padding: 14px 14px 6px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v5-item-img { width: 85%; height: 85%; object-fit: contain; }
.v5-item-body { padding: 0 10px 12px; }
.v5-item-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    line-height: 1.3;
}
.v5-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 6px;
    margin-top: 4px;
}
.v5-item-rarity { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .3px; }
.v5-item-price  { font-family: 'Rajdhani',sans-serif; font-size: 16px; font-weight: 700; color: var(--gold); }

/* Item action buttons */
.v5-item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 10px 10px;
}
.v5-item-action-btn {
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg4);
    color: var(--text2);
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}
.v5-item-action-btn:hover { color: var(--gold); border-color: var(--gold); }
.v5-item-action-btn.sell:hover  { color: var(--green); border-color: var(--green); }
.v5-item-action-btn.wdraw:hover { color: var(--blue);  border-color: var(--blue); }

/* ---------- Case Detail / Opening ---------- */
.v5-case-opening-page { padding: 0; }

.v5-case-hero {
    background: linear-gradient(135deg, var(--bg3), var(--bg2));
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.v5-case-hero-img {
    max-width: 260px;
    width: 100%;
    filter: drop-shadow(0 12px 30px var(--gold-glow));
    transition: transform .4s;
    animation: float 4s ease-in-out infinite;
}
.v5-case-hero-name { font-size: 32px; font-weight: 700; text-align: center; }
.v5-case-hero-desc { font-size: 14px; color: var(--text2); text-align: center; font-family:'Inter',sans-serif; text-transform: none; }

/* Roulettes */
#roulettesWrapper { width: 100%; }
.roulettes-grid { display: flex; flex-direction: column; gap: 12px; }
.roulette-container {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--bg2);
    border: 1px solid var(--border);
}
.roulette-track { display: flex; gap: 8px; padding: 8px; will-change: transform; }
.roulette-item {
    min-width: 130px;
    height: 144px;
    background: var(--bg3);
    border: 2px solid var(--border);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    flex-shrink: 0;
}
.roulette-item-skin {
    width: 80px; height: 80px;
    object-fit: contain;
}
.roulette-item-name {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.roulette-item-price { font-family:'Rajdhani',sans-serif; font-size: 14px; font-weight: 700; color: var(--gold); }
.roulette-indicator {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
    z-index: 5;
}
.roulette-indicator::before,
.roulette-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
}
.roulette-indicator::before { top: -8px; border-bottom-color: var(--gold); }
.roulette-indicator::after  { bottom: -8px; border-top-color: var(--gold); }

/* Controls */
.v5-open-controls {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.v5-qty-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v5-qty-label { font-size: 13px; color: var(--text2); white-space: nowrap; }
.v5-qty-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.v5-qty-btn {
    padding: 8px 16px;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.v5-qty-btn:hover, .v5-qty-btn.active { background: var(--gold); border-color: var(--gold); color: #000; }

/* Quick Open Toggle */
.v5-quick-open-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}
.v5-quick-open-toggle:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
}
.v5-quick-open-toggle input[type="checkbox"] {
    display: none;
}
.v5-quick-open-toggle input[type="checkbox"]:checked + .v5-quick-open-icon {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}
.v5-quick-open-toggle input[type="checkbox"]:checked ~ .v5-quick-open-text {
    color: var(--gold);
}
.v5-quick-open-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    font-size: 14px;
    transition: all 0.2s ease;
}
.v5-quick-open-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text2);
    transition: color 0.2s ease;
}

.v5-total-price-label { font-size: 13px; color: var(--text2); white-space: nowrap; }
.v5-total-price-label strong { color: var(--gold); font-family: 'Rajdhani',sans-serif; font-size: 18px; }

/* Drop Result */
.v5-drop-result {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: none;
}
.v5-drop-result-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 16px; color: var(--gold); }
.case-result-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
    margin-bottom: 16px;
}
.v5-result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Upgrade Page ---------- */
.v5-upgrade-arena {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    margin-bottom: 32px;
}
.v5-upgrade-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
}
@media(max-width:600px) {
    .v5-upgrade-grid { grid-template-columns: 1fr; gap: 16px; }
}
.v5-upgrade-slot {
    background: var(--bg4);
    border: 2px dashed var(--border2);
    border-radius: var(--r-lg);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all .25s;
}
.v5-upgrade-slot:hover { border-color: var(--gold); }
.v5-upgrade-slot.filled { border-style: solid; border-color: var(--gold); background: rgba(255,215,0,.04); cursor: default; }
.v5-upgrade-slot.target.filled { border-color: #ffaa00; }
.v5-upgrade-slot-empty-icon { font-size: 48px; opacity: .4; }
.v5-upgrade-slot-hint { font-size: 13px; color: var(--text2); text-align: center; }

.v5-upgrade-wheel-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.v5-upgrade-chance-display {
    font-family: 'Rajdhani',sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
}
.v5-upgrade-chance-bar {
    width: 120px;
    height: 6px;
    background: var(--bg4);
    border-radius: 3px;
    overflow: hidden;
}
.v5-upgrade-chance-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold2));
    border-radius: 3px;
    transition: width .4s;
}

/* ---------- Contracts Page ---------- */
.v5-contracts-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
@media(max-width:900px) { .v5-contracts-wrap { grid-template-columns: 1fr; } }

.v5-slots-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
}
.slot-circle {
    width: 66px; height: 66px;
    border-radius: 50%;
    border: 2px solid var(--border2);
    background: var(--bg4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all .2s;
}
.slot-circle.filled { border-style: solid; }

/* ---------- Giveaway Page ---------- */
.v5-giveaway-card {
    background: linear-gradient(135deg, var(--bg3), rgba(255,215,0,.04));
    border: 1px solid rgba(255,215,0,.2);
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-bottom: 28px;
}
.v5-giveaway-hero {
    padding: 40px 32px;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.v5-giveaway-img-wrap {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v5-giveaway-img {
    max-width: 180px;
    filter: drop-shadow(0 8px 30px var(--gold-glow));
    animation: float 4s ease-in-out infinite;
}
.v5-giveaway-info { flex: 1; min-width: 240px; }
.v5-giveaway-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.v5-giveaway-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.v5-giveaway-desc  { font-size: 14px; color: var(--text2); margin-bottom: 20px; font-family:'Inter',sans-serif; text-transform:none; }

.v5-timer-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.v5-timer-block {
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 12px 16px;
    text-align: center;
    min-width: 64px;
}
.v5-timer-val {
    font-family: 'Rajdhani',sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.v5-timer-lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.v5-timer-sep { color: var(--text3); font-size: 24px; font-weight: 700; align-self: center; margin-bottom: 14px; }

.v5-requirement-box {
    background: rgba(255,215,0,.06);
    border: 1px solid rgba(255,215,0,.2);
    border-radius: var(--r);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
}
.v5-requirement-box i { color: var(--gold); }

/* ---------- Bonuses Page ---------- */
.v5-bonus-intro {
    background: linear-gradient(135deg, var(--bg3), rgba(0,255,136,.04));
    border: 1px solid rgba(0,255,136,.15);
    border-radius: var(--r-xl);
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}
.v5-bonus-intro-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.v5-bonus-intro-sub { font-size: 14px; color: var(--text2); font-family:'Inter',sans-serif; text-transform:none; }

.v5-days-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4,1fr);
    margin: 24px 0;
}
@media(max-width:600px) { .v5-days-grid { grid-template-columns: repeat(3,1fr); gap: 8px; } }
@media(max-width:380px) { .v5-days-grid { grid-template-columns: repeat(2,1fr); } }

.v5-day-card {
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 8px;
    text-align: center;
    transition: all .25s;
    position: relative;
}
.v5-day-card.claimed {
    background: rgba(0,255,136,.07);
    border-color: rgba(0,255,136,.3);
}
.v5-day-card.available {
    background: rgba(255,215,0,.07);
    border-color: rgba(255,215,0,.4);
    box-shadow: 0 0 20px rgba(255,215,0,.1);
}
.v5-day-card.locked { opacity: .5; }

.v5-day-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.v5-day-coin { font-size: 32px; margin-bottom: 6px; }
.v5-day-amount { font-family:'Rajdhani',sans-serif; font-size: 18px; font-weight: 700; color: var(--gold); }
.v5-day-check {
    position: absolute;
    top: 8px; right: 8px;
    width: 18px; height: 18px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000;
}
.v5-day-lock { font-size: 20px; color: var(--text3); margin-top: 4px; }
.btn-claim-day {
    margin-top: 8px;
    padding: 7px 14px;
    background: linear-gradient(135deg,var(--gold),var(--gold2));
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s;
    text-transform: uppercase;
}
.btn-claim-day:hover { transform: translateY(-1px); }

/* Wheel Section */
.v5-wheel-section {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
}
.v5-wheel-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.v5-wheel-canvas-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Promo Activate */
.v5-promo-activate-box {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px;
    text-align: center;
}
.v5-promo-activate-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.v5-promo-activate-sub { font-size: 13px; color: var(--text2); margin-bottom: 20px; font-family:'Inter',sans-serif; text-transform:none; }
.v5-promo-input-row {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

/* ---------- Profile Page ---------- */
.v5-profile-header {
    background: linear-gradient(135deg, var(--bg3), var(--bg2));
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.v5-profile-avatar {
    width: 88px; height: 88px;
    border-radius: var(--r-lg);
    border: 3px solid var(--gold);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 24px var(--gold-glow);
}
.v5-profile-name { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.v5-profile-steam { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 6px; }
.v5-profile-since { font-size: 12px; color: var(--text3); margin-top: 4px; }
.v5-profile-bio   { font-size: 13px; color: var(--text2); margin-top: 8px; font-family:'Inter',sans-serif; text-transform:none; }

.v5-trade-form {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.v5-trade-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.v5-trade-input-row .v5-form-group { flex: 1; margin-bottom: 0; }

/* Inventory Filter Tabs */
.v5-inv-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.v5-inv-tab {
    padding: 8px 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.v5-inv-tab:hover, .v5-inv-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

/* ---------- Notifications ---------- */
.v5-notify-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.v5-notify {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    padding: 14px 16px;
    min-width: 280px;
    max-width: 340px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    pointer-events: all;
    box-shadow: var(--shadow);
    animation: slideInRight .3s ease;
}
.v5-notify.success { border-color: var(--green); }
.v5-notify.error   { border-color: var(--red); }
.v5-notify.warning { border-color: var(--gold); }
.v5-notify-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.v5-notify.success .v5-notify-icon { color: var(--green); }
.v5-notify.error   .v5-notify-icon { color: var(--red); }
.v5-notify.warning .v5-notify-icon { color: var(--gold); }
.v5-notify.info    .v5-notify-icon { color: var(--blue); }
.v5-notify-title  { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.v5-notify-msg    { font-size: 12px; color: var(--text2); font-family:'Inter',sans-serif; text-transform:none; }
@keyframes slideInRight { from{transform:translateX(120%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes slideOutRight { to{transform:translateX(120%);opacity:0} }

/* ---------- Page-specific overrides ---------- */
/* Weapon bar sits below fixed header via main padding-top */
.weapon-bar { margin-top: 0; }

/* Auth only shown in header (no sidebar) */
.sidebar, .mobile-top-bar { display: none !important; }

/* ---------- Responsive ---------- */
@media(max-width:768px) {
    .v5-nav, .v5-online { display: none; }
    .v5-burger { display: flex; }
    .v5-bottom-nav { display: block; }
    .v5-main { padding-bottom: 80px; }

    .v5-case-hero { padding: 20px 16px; }
    .v5-open-controls { padding: 16px; }
    .v5-quick-open-toggle { padding: 6px 10px; }
    .v5-quick-open-icon { width: 24px; height: 24px; font-size: 12px; }
    .v5-quick-open-text { font-size: 12px; }
    .v5-upgrade-arena { padding: 20px 16px; }
    .v5-giveaway-hero { padding: 24px 16px; gap: 20px; }
    .v5-giveaway-img-wrap { width: 150px; }

    .v5-contracts-wrap { grid-template-columns: 1fr; }
}

@media(max-width:480px) {
    .v5-header-inner { padding: 0 12px; gap: 10px; }
    .v5-container { padding: 0 12px; }
    .v5-main { padding-top: calc(var(--header-h) + 32px); }
    .v5-page-title { font-size: 24px; }
    .v5-user-name, .v5-user-bal { display: none; }
    .v5-user-btn { padding: 4px; border-radius: 8px; }
    .v5-timer-block { min-width: 52px; padding: 10px 10px; }
    .v5-timer-val { font-size: 24px; }
}

/* ---------- Utility ---------- */
.hidden   { display: none !important; }
.flex     { display: flex; }
.items-center { align-items: center; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.text-center { text-align: center; }
.w-full  { width: 100%; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.opacity-50 { opacity: .5; }

/* ---------- Empty State ---------- */
.v5-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text2);
}
.v5-empty i { font-size: 48px; color: var(--text3); margin-bottom: 14px; display: block; }
.v5-empty h3 { font-size: 18px; margin-bottom: 6px; }
.v5-empty p  { font-size: 14px; font-family:'Inter',sans-serif; text-transform:none; }

/* ---------- Loading spinner ---------- */
.v5-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ---------- Tag Badge ---------- */
.v5-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.v5-tag.gold   { background:rgba(255,215,0,.15); color:var(--gold); border:1px solid rgba(255,215,0,.3); }
.v5-tag.green  { background:rgba(0,255,136,.12); color:var(--green);border:1px solid rgba(0,255,136,.25); }
.v5-tag.red    { background:rgba(255,68,68,.12); color:var(--red);  border:1px solid rgba(255,68,68,.25); }
.v5-tag.blue   { background:rgba(0,212,255,.12); color:var(--blue); border:1px solid rgba(0,212,255,.25); }
.v5-tag.purple { background:rgba(191,0,255,.12); color:var(--purple);border:1px solid rgba(191,0,255,.25); }

/* ---- Live wins bar ---- */
.v5-wins-bar {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 48px;
}

/* -------- Notification Bell -------- */
.v5-bell-wrap {
    position: relative;
}
.v5-bell-btn {
    width: 38px; height: 38px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    color: var(--text2); font-size: 16px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    position: relative;
}
.v5-bell-btn:hover { color: var(--gold); border-color: var(--border2); }

.v5-bell-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--red);
    color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg2);
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.v5-bell-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    z-index: 500;
    display: none;
    overflow: hidden;
}
.v5-bell-dropdown.open { display: block; }

.v5-bell-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.v5-bell-read-all {
    background: none; border: none;
    color: var(--text3); font-size: 14px;
    cursor: pointer; padding: 4px;
    transition: color .2s;
}
.v5-bell-read-all:hover { color: var(--gold); }

.v5-bell-list {
    max-height: 380px;
    overflow-y: auto;
}
.v5-bell-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    line-height: 1.8;
}

.v5-bell-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
    display: flex; gap: 10px; align-items: flex-start;
}
.v5-bell-item:hover { background: var(--bg4); }
.v5-bell-item.unread { background: rgba(255,215,0,.04); }
.v5-bell-item.unread::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 5px;
}
.v5-bell-item.read::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    flex-shrink: 0;
}

.v5-bell-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.v5-bell-icon.info    { background: rgba(0,212,255,.12);  color: var(--blue);   }
.v5-bell-icon.success { background: rgba(0,255,136,.12);  color: var(--green);  }
.v5-bell-icon.warning { background: rgba(255,215,0,.12);  color: var(--gold);   }
.v5-bell-icon.error   { background: rgba(255,68,68,.12);  color: var(--red);    }

.v5-bell-item-title {
    font-size: 13px; font-weight: 700; color: var(--text);
    margin-bottom: 2px;
}
.v5-bell-item-body {
    font-size: 12px; color: var(--text2);
    line-height: 1.4;
    font-family: 'Inter',sans-serif; text-transform: none;
}
.v5-bell-item-time {
    font-size: 11px; color: var(--text3);
    margin-top: 4px;
    font-family: 'Inter',sans-serif; text-transform: none;
}
.v5-bell-item-btn {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 6px;
    color: var(--gold);
    font-size: 12px; font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.v5-bell-item-btn:hover { opacity: .7; }
.v5-bell-item-btn i { font-size: 10px; }

@media(max-width:480px) {
    .v5-bell-dropdown { width: calc(100vw - 24px); right: -48px; }
}

/* ---- Bridge: old CSS variable names → v5 tokens ---- */
:root {
    --primary:           var(--gold);
    --primary-dark:      var(--gold2);
    --primary-light:     #ffe066;
    --primary-rgb:       255, 215, 0;
    --secondary:         #00d4aa;
    --background:        var(--bg);
    --surface:           var(--bg3);
    --surface-light:     var(--bg4);
    --surface-lighter:   #282828;
    --sidebar:           var(--bg2);
    --text-primary:      var(--text);
    --text-secondary:    var(--text2);
    --text-muted:        var(--text3);
    --border-light:      var(--border2);
    --yellow:            #f59e0b;
    --rarity-common:     #b0b0b0;
    --rarity-rare:       #4a69b5;
    --rarity-epic:       #8b46a9;
    --rarity-legendary:  var(--gold);
    --rarity-mythic:     var(--red);
}
