/* ===== RESET & VARS ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.3);
    --legendary: #ffd700;
    --covert: #eb4b4b;
    --classified: #d32ce6;
    --restricted: #8847ff;
    --milspec: #4b69ff;
    --industrial: #5e98d9;
    --consumer: #b0c3d9;
    --free-color: #22c55e;
    --border: rgba(255,255,255,0.06);
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary); color: var(--text-primary);
    overflow-x: hidden; min-height: 100vh;
}
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ===== BG ===== */
.bg-effects { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,0.08) 0%, transparent 60%); }
.bg-grid {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15; animation: float 20s ease-in-out infinite; }
.bg-glow-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -100px; }
.bg-glow-2 { width: 500px; height: 500px; background: var(--covert); bottom: 20%; right: -150px; animation-delay: -7s; }
.bg-glow-3 { width: 400px; height: 400px; background: var(--classified); top: 50%; left: 30%; animation-delay: -14s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
    background: rgba(10, 10, 15, 0.92); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-content { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 24px; color: var(--accent); }
.logo-text { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 20px; color: var(--text-primary); letter-spacing: 1px; }
.logo-text .accent { color: var(--accent); }
.logo-gg { color: var(--text-muted); font-size: 16px; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
    display: flex; align-items: center; gap: 8px; padding: 8px 16px;
    color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500;
    border-radius: 8px; transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent); background: rgba(245,158,11,0.1); }
.inv-count {
    background: var(--covert); color: white; font-size: 11px; font-weight: 700;
    padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.balance {
    display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px;
    background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2);
    border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--accent);
}
.btn-add {
    width: 28px; height: 28px; border-radius: 6px; border: none;
    background: var(--accent); color: var(--bg-primary); cursor: pointer;
    font-size: 12px; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.btn-add:hover { transform: scale(1.1); }
.user-menu { position: relative; }
.user-avatar-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 10px; }
.user-avatar-btn img { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--border); transition: var(--transition); }
.user-avatar-btn:hover img { border-color: var(--accent); }
.user-name-tag { font-size: 13px; font-weight: 600; color: var(--text-secondary); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
    position: absolute; top: calc(100% + 12px); right: 0; min-width: 240px;
    background: linear-gradient(180deg, #1e1e32, #14142a);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
    padding: 6px; display: none; z-index: 100;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
    animation: dropIn 0.25s cubic-bezier(0.16,1,0.3,1);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }
.user-dropdown.open { display: block; }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 8px; }
.dropdown-btn {
    width: 100%; padding: 11px 16px; border: none; border-radius: 10px;
    background: transparent; color: var(--text-secondary); font-size: 13px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 10px; text-align: left;
}
.dropdown-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.dropdown-btn i { width: 18px; text-align: center; font-size: 14px; }
.dropdown-btn.accent { color: var(--accent); }
.dropdown-btn.accent:hover { background: rgba(245,158,11,0.08); }
.dropdown-btn.danger { color: #ef4444; }
.dropdown-btn.danger:hover { background: rgba(239,68,68,0.08); }
.dropdown-user-info {
    padding: 14px 16px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 4px;
}
.dropdown-user-avatar {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #d97706);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: var(--bg-primary);
}
.dropdown-user-details { flex: 1; }
.dropdown-user-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.dropdown-user-bal { font-size: 12px; color: #22c55e; font-weight: 600; }

/* ===== LEADERBOARD ===== */
#leaderboardModal { background: linear-gradient(160deg, #0c0c18 0%, #0f0a1a 25%, #0a0a0f 50%, #0a1018 75%, #0c0c18 100%); }
#leaderboardModal.active { display: block; }
.lb-page {
    width: 100%; min-height: 100vh; overflow-y: auto;
    padding: 88px 24px 60px; max-width: 800px; margin: 0 auto;
    animation: pageSlideIn 0.5s cubic-bezier(0.16,1,0.3,1);
}
.lb-header { text-align: center; margin-bottom: 40px; }
.lb-header h1 {
    font-family: 'Orbitron',sans-serif; font-size: 24px; font-weight: 900;
    letter-spacing: 3px; margin-bottom: 8px; display: flex; align-items: center;
    justify-content: center; gap: 12px;
}
.lb-header h1 i { color: var(--accent); }
.lb-header p { color: var(--text-muted); font-size: 14px; }

.lb-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 16px; margin-bottom: 40px; padding: 0 20px;
}
.lb-pod {
    text-align: center; padding: 24px 20px 20px;
    border-radius: 18px; border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02); backdrop-filter: blur(8px);
    flex: 1; max-width: 200px; position: relative;
    transition: var(--transition);
}
.lb-pod:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.1); }
.lb-1st { background: linear-gradient(180deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02)); border-color: rgba(245,158,11,0.2); padding-top: 36px; }
.lb-2nd { background: linear-gradient(180deg, rgba(192,192,192,0.06), rgba(192,192,192,0.01)); border-color: rgba(192,192,192,0.15); }
.lb-3rd { background: linear-gradient(180deg, rgba(205,127,50,0.06), rgba(205,127,50,0.01)); border-color: rgba(205,127,50,0.15); }
.lb-pod-crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 24px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(245,158,11,0.4)); }
.lb-pod-avatar {
    width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; color: var(--text-secondary);
}
.lb-pod-avatar.gold { background: linear-gradient(135deg, var(--accent), #d97706); color: var(--bg-primary); border-color: var(--accent); }
.lb-pod-rank { font-family: 'Orbitron',sans-serif; font-size: 12px; font-weight: 800; color: var(--text-muted); margin-bottom: 4px; }
.lb-pod-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.lb-1st .lb-pod-name { color: var(--accent); }
.lb-pod-amount { font-family: 'Orbitron',sans-serif; font-size: 14px; font-weight: 800; color: #22c55e; }

.lb-table {}
.lb-row {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 20px; border-radius: 12px; margin-bottom: 6px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}
.lb-row:hover { background: rgba(255,255,255,0.04); }
.lb-row-rank { font-family: 'Orbitron',sans-serif; font-size: 14px; font-weight: 800; color: var(--text-muted); width: 30px; text-align: center; }
.lb-row-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: var(--text-muted);
}
.lb-row-name { flex: 1; font-size: 14px; font-weight: 600; }
.lb-row-amount { font-family: 'Orbitron',sans-serif; font-size: 13px; font-weight: 700; color: #22c55e; }

/* Promo Code Modal */
.promo-box {
    background: linear-gradient(180deg, #1e1e32, #14142a, #0e0e1a);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 24px;
    padding: 48px 40px; max-width: 440px; width: 92%; text-align: center;
    position: relative; z-index: 1;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    animation: winPopIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.promo-icon {
    width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--accent);
}
.promo-box h2 { font-family: 'Orbitron',sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.promo-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; line-height: 1.5; }
.promo-input-wrap {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 0 18px; margin-bottom: 12px;
    transition: border-color 0.3s;
}
.promo-input-wrap:focus-within { border-color: var(--accent); }
.promo-input-wrap i { color: var(--text-muted); font-size: 16px; }
.promo-input-wrap input {
    flex: 1; padding: 16px 0; border: none; background: transparent;
    color: var(--text-primary); font-size: 18px; font-weight: 700;
    outline: none; letter-spacing: 2px; text-transform: uppercase;
    font-family: 'Orbitron',sans-serif;
}
.promo-msg {
    min-height: 24px; font-size: 13px; font-weight: 600; margin-bottom: 12px;
    transition: all 0.3s ease;
}
.promo-msg.success { color: #22c55e; }
.promo-msg.error { color: #ef4444; }
.promo-submit {
    width: 100%; padding: 16px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: var(--bg-primary); font-weight: 800; font-size: 16px;
    cursor: pointer; transition: var(--transition); margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.promo-submit:hover { filter: brightness(1.1); transform: translateY(-2px); }
.promo-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.promo-hint { font-size: 12px; color: var(--text-muted); opacity: 0.6; }

/* Auth Modal */
.auth-box {
    background: linear-gradient(180deg, #1e1e32, #14142a, #0e0e1a);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 24px;
    padding: 48px 40px; max-width: 400px; width: 92%; text-align: center;
    position: relative; z-index: 1;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    animation: winPopIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.auth-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
    border-radius: 10px; border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03); color: #666; cursor: pointer;
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.auth-close:hover { background: rgba(239,68,68,0.15); color: #ef4444; }
.auth-logo {
    font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 900;
    color: var(--text-primary); margin-bottom: 24px; letter-spacing: 1px;
}
.auth-logo i { color: var(--accent); margin-right: 8px; }
.auth-logo span { color: var(--accent); }
.auth-box h2 { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-box p { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.auth-field {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 0 16px; margin-bottom: 12px;
    transition: border-color 0.3s;
}
.auth-field:focus-within { border-color: var(--accent); }
.auth-field i { color: var(--text-muted); font-size: 14px; }
.auth-field input {
    flex: 1; padding: 14px 0; border: none; background: transparent;
    color: var(--text-primary); font-size: 15px; outline: none;
}
.auth-error { color: #ef4444; font-size: 12px; min-height: 20px; margin-bottom: 8px; }
.auth-submit {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: var(--bg-primary); font-weight: 800; font-size: 16px;
    cursor: pointer; transition: var(--transition); margin-bottom: 16px;
}
.auth-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.auth-switch { font-size: 13px; color: var(--text-muted); }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; margin-left: 4px; }

/* ===== HERO ===== */
.hero { position: relative; z-index: 1; padding: 140px 0 60px; text-align: center; overflow: hidden; }
.hero-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
    display: flex; justify-content: center; align-items: flex-start;
    pointer-events: none; overflow: hidden;
}
.hero-bg img {
    width: auto; height: 100%; max-width: none; min-width: 100%;
    object-fit: cover; object-position: top center;
    opacity: 0.25; filter: blur(1px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.hero-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
    background: rgba(245,158,11,0.15); color: var(--accent);
    border: 1px solid rgba(245,158,11,0.3); margin-bottom: 24px;
    letter-spacing: 1px;
}
.hero-title { font-family: 'Orbitron', sans-serif; font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent), #ef4444, var(--classified));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 18px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 40px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 800; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ===== LIVE FEED ===== */
.live-feed {
    position: relative; z-index: 1; padding: 20px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(18, 18, 26, 0.5); overflow: hidden;
}
.feed-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #ef4444; letter-spacing: 2px; }
.pulse { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.feed-track { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.feed-track::-webkit-scrollbar { display: none; }
.feed-item {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    padding: 8px 14px 8px 8px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 10px;
    animation: slideIn 0.5s ease-out;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } }
.feed-item img { width: 44px; height: 33px; border-radius: 6px; object-fit: cover; background: rgba(255,255,255,0.03); }
.feed-item-info { display: flex; flex-direction: column; gap: 2px; }
.feed-item-name { font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.feed-item-user { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.feed-item-price { font-size: 12px; font-weight: 700; color: #22c55e; white-space: nowrap; }
.feed-item.rarity-legendary .feed-item-name { color: var(--legendary); }
.feed-item.rarity-covert .feed-item-name { color: var(--covert); }
.feed-item.rarity-classified .feed-item-name { color: var(--classified); }
.feed-item.rarity-restricted .feed-item-name { color: var(--restricted); }
.feed-item.rarity-milspec .feed-item-name { color: var(--milspec); }

/* ===== SECTIONS ===== */
.section { position: relative; z-index: 1; padding: 60px 0; }
.section-header { margin-bottom: 32px; }
.section-title {
    font-family: 'Orbitron', sans-serif; font-size: 22px; font-weight: 800;
    display: flex; align-items: center; gap: 14px; margin-bottom: 8px;
    letter-spacing: 1px; text-transform: uppercase;
}
.section-title i {
    color: var(--bg-primary); font-size: 16px;
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), #d97706);
}
.section-subtitle { font-size: 14px; color: var(--text-muted); padding-left: 50px; }

/* ===== CASE CARDS ===== */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.featured-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.case-card {
    position: relative; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; cursor: pointer; transition: var(--transition);
    display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.15); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.case-card:hover .case-glow { opacity: 1; }
.case-glow { position: absolute; inset: 0; opacity: 0; transition: var(--transition); pointer-events: none; z-index: 0; }
.case-card.legendary .case-glow { background: radial-gradient(ellipse at 50% 30%, rgba(255,215,0,0.1) 0%, transparent 70%); }
.case-card.covert .case-glow { background: radial-gradient(ellipse at 50% 30%, rgba(235,75,75,0.1) 0%, transparent 70%); }
.case-card.classified .case-glow { background: radial-gradient(ellipse at 50% 30%, rgba(211,44,230,0.1) 0%, transparent 70%); }
.case-card.restricted .case-glow { background: radial-gradient(ellipse at 50% 30%, rgba(136,71,255,0.1) 0%, transparent 70%); }
.case-card.milspec .case-glow { background: radial-gradient(ellipse at 50% 30%, rgba(75,105,255,0.1) 0%, transparent 70%); }
.case-card.free-case .case-glow { background: radial-gradient(ellipse at 50% 30%, rgba(34,197,94,0.15) 0%, transparent 70%); }
.case-card.free-case { border-color: rgba(34,197,94,0.3); }
.case-card.free-case:hover { border-color: rgba(34,197,94,0.5); box-shadow: 0 8px 32px rgba(34,197,94,0.15); }

.case-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
}
.case-badge.hot { background: linear-gradient(135deg, #ef4444, #f97316); color: white; }
.case-badge.new { background: linear-gradient(135deg, #22c55e, #10b981); color: white; }
.case-badge.sale { background: linear-gradient(135deg, var(--classified), #8b5cf6); color: white; }
.free-badge { background: linear-gradient(135deg, #22c55e, #059669) !important; color: white; font-size: 13px !important; padding: 5px 14px !important; }

.case-image {
    position: relative; z-index: 1; padding: 0;
    display: flex; align-items: center; justify-content: center;
    min-height: 220px; overflow: hidden;
}
.case-image img {
    width: 100%; height: 100%; min-height: 220px; object-fit: cover;
    transition: var(--transition);
}
.case-card:hover .case-image img { transform: scale(1.08); }

.case-info {
    position: relative; z-index: 2; padding: 12px 16px 16px;
    display: flex; flex-direction: column; gap: 8px; flex: 1;
    background: linear-gradient(0deg, var(--bg-card) 50%, transparent 100%);
    margin-top: -30px;
}
.case-name-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.case-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-desc { display: none; }
.case-price { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.price { font-size: 14px; font-weight: 800; color: var(--accent); }
.free-price { color: var(--free-color) !important; }
.old-price { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.btn-open {
    margin-top: 8px; width: 100%; padding: 11px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #22c55e, #059669);
    color: white; font-weight: 700; font-size: 13px;
    cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    letter-spacing: 0.5px; opacity: 1; transform: none;
    box-shadow: 0 4px 16px rgba(34,197,94,0.2);
}
.btn-open:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.3); }
.btn-free { background: linear-gradient(135deg, #22c55e, #059669) !important; }
.btn-free:hover { box-shadow: 0 8px 24px rgba(34,197,94,0.3) !important; }

.case-card.legendary .case-name { color: var(--legendary); }
.case-card.covert .case-name { color: var(--covert); }
.case-card.classified .case-name { color: var(--classified); }
.case-card.restricted .case-name { color: var(--restricted); }
.case-card.milspec .case-name { color: var(--milspec); }
.free-name { color: var(--free-color) !important; }
.case-card.free-case .case-image img {
    width: 100%; height: 100%; min-height: 220px; object-fit: cover;
}

/* ===== WINS ===== */
.wins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.win-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; text-align: center; transition: var(--transition);
}
.win-card:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }
.win-card img { width: 160px; height: 93px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.win-card .win-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.win-card .win-user { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.win-card .win-value { font-size: 14px; font-weight: 700; color: #22c55e; }
.win-card.rarity-legendary .win-name { color: var(--legendary); }
.win-card.rarity-covert .win-name { color: var(--covert); }
.win-card.rarity-classified .win-name { color: var(--classified); }

/* ===== MODALS (inventory, deposit) ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: var(--bg-primary);
    display: none; overflow: hidden;
}
.modal-overlay.active { display: flex; align-items: center; justify-content: center; }
#caseModal.active, #upgraderModal.active { display: block; }
.modal {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 100%; max-width: 800px;
    max-height: 90vh; overflow-y: auto; position: relative;
    animation: modalIn 0.3s ease-out;
}
.modal-wide { max-width: 900px; }
.modal-small { max-width: 480px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } }
.modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 16px;
}
.modal-close:hover { background: rgba(239,68,68,0.2); color: #ef4444; }
.modal-header { padding: 32px 32px 16px; text-align: center; }
.modal-header h2 { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.modal-header p { color: var(--text-muted); font-size: 14px; }
.case-page {
    width: 100%; height: 100%; overflow-y: auto;
    background: var(--bg-primary); position: relative;
    padding-top: 64px; padding-bottom: 60px;
}
.case-page-close {
    position: fixed; top: 20px; right: 24px; z-index: 100;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--border); background: rgba(22,22,31,0.9);
    backdrop-filter: blur(8px); color: var(--text-secondary);
    cursor: pointer; font-size: 18px; display: flex;
    align-items: center; justify-content: center; transition: var(--transition);
}
.case-page-close:hover { background: rgba(239,68,68,0.15); color: #ef4444; border-color: rgba(239,68,68,0.3); }

/* Roulette section */
.case-roulette-section {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 200px); position: relative;
    border-bottom: 1px solid var(--border); padding: 40px 0;
    flex-direction: column; gap: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(245,158,11,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(235,75,75,0.04) 0%, transparent 40%),
        linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(10,10,15,1) 100%);
}
.roulette-container {
    position: relative; width: calc(100% - 48px); max-width: 1100px;
    height: 160px; overflow: hidden; border-radius: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border);
}
.roulette-pointer {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 3px; height: 100%; background: var(--accent); z-index: 10;
    box-shadow: 0 0 24px var(--accent-glow), 0 0 60px rgba(245,158,11,0.15);
}
.roulette-pointer::before { content: '▼'; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 18px; text-shadow: 0 0 10px var(--accent-glow); }
.roulette-pointer::after { content: '▲'; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 18px; text-shadow: 0 0 10px var(--accent-glow); }
.roulette-track {
    display: flex; gap: 10px; position: absolute;
    top: 0; left: 0; height: 100%;
    align-items: center; padding: 0 10px;
    will-change: left;
}
.roulette-item {
    flex-shrink: 0; width: 130px; height: 130px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.02); border: 2px solid var(--border);
    border-radius: 10px; padding: 10px;
}
.roulette-item img { width: 100%; height: 100%; object-fit: contain; }
.roulette-item.rarity-legendary { border-color: var(--legendary); background: rgba(255,215,0,0.04); }
.roulette-item.rarity-covert { border-color: var(--covert); background: rgba(235,75,75,0.04); }
.roulette-item.rarity-classified { border-color: var(--classified); background: rgba(211,44,230,0.04); }
.roulette-item.rarity-restricted { border-color: var(--restricted); background: rgba(136,71,255,0.04); }
.roulette-item.rarity-milspec { border-color: var(--milspec); background: rgba(75,105,255,0.04); }
.roulette-item.rarity-consumer { border-color: var(--consumer); background: rgba(176,195,217,0.04); }

/* Controls */
.case-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding: 24px; flex-wrap: wrap;
}
.case-open-counts { display: flex; gap: 4px; }
.count-btn {
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-secondary); font-weight: 700; font-size: 16px;
    cursor: pointer; transition: var(--transition);
}
.count-btn:hover { border-color: var(--accent); color: var(--accent); }
.count-btn.active { background: rgba(245,158,11,0.15); border-color: var(--accent); color: var(--accent); }
.btn-spin {
    padding: 14px 48px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #059669);
    color: white; font-weight: 800; font-size: 16px;
    cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px; box-shadow: 0 4px 20px rgba(34,197,94,0.25);
    display: flex; align-items: center; gap: 8px;
}
.btn-spin:hover { filter: brightness(1.1); box-shadow: 0 8px 30px rgba(34,197,94,0.35); transform: translateY(-1px); }
.btn-spin:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-test-open {
    padding: 14px 24px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg-card); color: var(--text-secondary); font-weight: 600;
    font-size: 14px; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
}
.btn-test-open:hover { border-color: var(--text-secondary); color: var(--text-primary); }

/* Contents header */
.case-contents-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 32px 24px 20px; max-width: 1200px; margin: 0 auto;
}
.case-contents-title h2 {
    font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.case-contents-title p { font-size: 13px; color: var(--text-muted); }
.btn-check-odds {
    padding: 10px 20px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg-card); color: var(--text-secondary); font-weight: 600;
    font-size: 13px; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
}
.btn-check-odds:hover { border-color: var(--accent); color: var(--accent); }

/* Items grid — large cards */
.case-items-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px; padding: 0 24px 40px; max-width: 1200px; margin: 0 auto;
}
.case-item-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px; text-align: center;
    position: relative; overflow: hidden; transition: var(--transition);
}
.case-item-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.case-item-card .item-chance-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700;
    background: rgba(0,0,0,0.5); color: var(--text-secondary);
}
.case-item-card img {
    width: 100%; height: 100px; object-fit: contain; margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.case-item-card .item-weapon { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.case-item-card .item-skin-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.case-item-card .item-price { font-size: 13px; font-weight: 600; color: #22c55e; }
.case-item-card.rarity-legendary { border-bottom: 3px solid var(--legendary); }
.case-item-card.rarity-legendary .item-skin-name { color: var(--legendary); }
.case-item-card.rarity-covert { border-bottom: 3px solid var(--covert); }
.case-item-card.rarity-covert .item-skin-name { color: var(--covert); }
.case-item-card.rarity-classified { border-bottom: 3px solid var(--classified); }
.case-item-card.rarity-classified .item-skin-name { color: var(--classified); }
.case-item-card.rarity-restricted { border-bottom: 3px solid var(--restricted); }
.case-item-card.rarity-restricted .item-skin-name { color: var(--restricted); }
.case-item-card.rarity-milspec { border-bottom: 3px solid var(--milspec); }
.case-item-card.rarity-milspec .item-skin-name { color: var(--milspec); }
.case-item-card.rarity-consumer { border-bottom: 3px solid var(--consumer); }
.case-item-card.rarity-consumer .item-skin-name { color: var(--consumer); }

/* ===== INVENTORY PAGE ===== */
#inventoryModal.active { display: block; }
.inv-page {
    width: 100%; min-height: 100vh; overflow-y: auto;
    position: relative;
    padding: 88px 24px 60px; max-width: 1200px; margin: 0 auto;
    animation: pageSlideIn 0.5s cubic-bezier(0.16,1,0.3,1);
}
#inventoryModal {
    background: linear-gradient(160deg, #0c0c18 0%, #0f0a1a 25%, #0a0a0f 50%, #0a1018 75%, #0c0c18 100%);
}
.inv-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.inv-title { font-family: 'Orbitron',sans-serif; font-size: 22px; font-weight: 900; letter-spacing: 2px; display: flex; align-items: center; gap: 12px; }
.inv-title i { color: var(--accent); }
.inv-stats { display: flex; gap: 16px; }
.inv-stat { padding: 8px 16px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.inv-stat span { color: var(--accent); font-weight: 800; font-family: 'Orbitron',sans-serif; }
.inv-trade-link {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px;
    border-radius: 12px; background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); margin-bottom: 16px;
}
.inv-trade-link i { color: var(--text-muted); font-size: 20px; }
.inv-trade-link input {
    flex: 1; padding: 8px 0; border: none; background: transparent;
    color: var(--text-primary); font-size: 13px; outline: none;
}
.inv-save-btn {
    padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px;
    background: rgba(255,255,255,0.03); color: var(--text-secondary);
    font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.inv-save-btn:hover { border-color: var(--accent); color: var(--accent); }

.inventory-notice {
    margin-bottom: 20px; padding: 14px 20px; border-radius: 12px;
    background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.12);
    color: #ef4444; font-size: 14px; display: flex; align-items: center; gap: 12px;
}
.inventory-notice.unlocked {
    background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.12); color: #22c55e;
}
.inventory-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.inventory-empty {
    grid-column: 1 / -1; text-align: center; padding: 100px 20px; color: var(--text-muted);
}
.inventory-empty i {
    font-size: 64px; margin-bottom: 24px; display: block; opacity: 0.12;
    background: linear-gradient(135deg, var(--accent), var(--classified));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; opacity: 0.3;
}
.inventory-empty p { font-size: 15px; line-height: 1.6; }
.inv-item {
    background: linear-gradient(160deg, rgba(30,30,50,0.8), rgba(22,22,31,0.9));
    border: 1px solid rgba(255,255,255,0.05); border-radius: 16px;
    padding: 18px; text-align: center; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: visible;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.inv-item::before {
    content: ''; position: absolute; inset: 0; border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 60%);
    pointer-events: none;
}
.inv-item:hover {
    border-color: rgba(255,255,255,0.12); transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.inv-item:hover .inv-actions { opacity: 1; transform: translateY(0); }
.inv-item img { width: 100%; height: 80px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.inv-item .inv-item-name { font-size: 12px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-item .inv-item-value { font-size: 15px; font-weight: 800; color: #22c55e; margin-bottom: 8px; font-family: 'Orbitron',sans-serif; }
.inv-actions {
    display: flex; gap: 6px; opacity: 0; transform: translateY(8px);
    transition: all 0.25s ease;
}
.inv-act-btn {
    flex: 1; padding: 8px 4px; border: 1px solid var(--border); border-radius: 8px;
    background: rgba(255,255,255,0.03); color: var(--text-secondary);
    font-size: 10px; font-weight: 700; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.inv-act-btn:hover { border-color: var(--accent); color: var(--accent); }
.inv-act-btn.sell:hover { border-color: #22c55e; color: #22c55e; }
.inv-act-btn.withdraw:hover { border-color: #3b82f6; color: #3b82f6; }
.inv-item .btn-lock-info { font-size: 10px; color: var(--text-muted); margin-top: 6px; }

/* Withdraw animation */
.inv-withdraw-loading {
    position: absolute; inset: 0; border-radius: 16px; z-index: 10;
    background: rgba(10,10,15,0.85); backdrop-filter: blur(6px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.inv-withdraw-spinner {
    width: 36px; height: 36px; border: 3px solid rgba(245,158,11,0.15);
    border-top-color: var(--accent); border-radius: 50%;
    animation: withdrawSpin 0.8s linear infinite;
}
@keyframes withdrawSpin { to { transform: rotate(360deg); } }
.inv-withdraw-text {
    font-size: 11px; color: var(--text-muted); text-align: center;
    line-height: 1.4; max-width: 140px;
}
.inv-withdraw-text strong { color: var(--accent); display: block; font-size: 12px; margin-bottom: 2px; }
.inv-withdraw-done {
    position: absolute; inset: 0; border-radius: 16px; z-index: 10;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; animation: successGlow 0.6s ease;
}
@keyframes successGlow {
    0% { background: rgba(34,197,94,0.3); box-shadow: inset 0 0 40px rgba(34,197,94,0.2); }
    100% { background: rgba(34,197,94,0.1); box-shadow: none; }
}
.inv-withdraw-check {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #059669);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: white;
    animation: checkPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 4px 20px rgba(34,197,94,0.3);
}
@keyframes checkPop { from { transform: scale(0) rotate(-45deg); } to { transform: scale(1) rotate(0); } }
.inv-withdraw-done-text { font-size: 11px; color: #22c55e; font-weight: 700; }

/* Multi-track roulette */
#rouletteTracks { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1100px; padding: 0 24px; }

/* ===== DEPOSIT PAGE ===== */
#depositModal.active { display: block; }
.deposit-page {
    width: 100%; height: 100%; overflow-y: auto;
    background: var(--bg-primary); position: relative; padding: 88px 24px 60px;
    animation: pageSlideIn 0.5s cubic-bezier(0.16,1,0.3,1);
}
.dep-banner {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    padding: 14px 24px; border-radius: 14px; margin-bottom: 24px;
    background: linear-gradient(135deg, #d4a017, #f59e0b, #eab308);
    color: #0a0a0f; font-weight: 700; font-size: 14px; flex-wrap: wrap;
}
.dep-banner-pct { font-family: 'Orbitron',sans-serif; font-size: 24px; font-weight: 900; }
.dep-banner-timer { display: flex; gap: 6px; }
.timer-block {
    background: rgba(0,0,0,0.2); border-radius: 8px; padding: 6px 10px;
    text-align: center; min-width: 48px;
}
.timer-block span { display: block; font-family: 'Orbitron',sans-serif; font-size: 18px; font-weight: 900; }
.timer-block small { font-size: 9px; letter-spacing: 1px; opacity: 0.7; }

.dep-layout { display: flex; gap: 24px; max-width: 1200px; margin: 0 auto; }
.dep-left { flex: 1; min-width: 0; }
.dep-right { width: 440px; flex-shrink: 0; }

.dep-safe {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    border-radius: 12px; background: rgba(34,197,94,0.06);
    border: 1px solid rgba(34,197,94,0.12);
    color: #22c55e; font-size: 13px; font-weight: 600; margin-bottom: 16px;
    backdrop-filter: blur(8px);
}
.dep-methods-grid { display: flex; flex-direction: column; gap: 8px; }
.dep-method-group { }
.dep-mcard {
    padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}
.dep-mcard::after {
    content: ''; position: absolute; inset: -1px; border-radius: 14px;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03) 100%);
    pointer-events: none; z-index: 0;
}
.dep-mcard > * { position: relative; z-index: 1; }
.dep-mcard:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
}
.dep-mcard.active {
    border-color: rgba(245,158,11,0.3);
    background: rgba(245,158,11,0.04);
}
.dep-mcard-row { display: flex; align-items: center; justify-content: space-between; }
.dep-mcard-left { display: flex; flex-direction: column; gap: 4px; }
.dep-arrow { color: var(--text-muted); font-size: 12px; transition: transform 0.3s; }
.dep-method-group.open .dep-arrow { transform: rotate(180deg); }
.dep-mcard-bonus {
    font-size: 10px; font-weight: 800; color: #22c55e;
    letter-spacing: 1px; text-shadow: 0 0 10px rgba(34,197,94,0.4);
}
.dep-mcard-tag {
    font-size: 9px; font-weight: 700; color: var(--accent);
    letter-spacing: 1px; text-transform: uppercase;
    text-shadow: 0 0 10px rgba(245,158,11,0.3);
}
.dep-mcard-icons { font-size: 15px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.dep-mcard small { font-size: 11px; color: rgba(255,255,255,0.35); }

/* Sub-options (expandable) */
.dep-sub-options {
    display: none; padding: 6px 0 6px 16px;
    flex-direction: column; gap: 4px;
}
.dep-method-group.open .dep-sub-options { display: flex; }
.dep-sub-btn {
    padding: 10px 16px; border: 1px solid rgba(255,255,255,0.04); border-radius: 10px;
    background: rgba(255,255,255,0.02); color: var(--text-secondary);
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 10px; text-align: left;
}
.dep-sub-btn:hover {
    background: rgba(255,255,255,0.05); color: var(--text-primary);
    border-color: rgba(255,255,255,0.08); transform: translateX(4px);
}
.dep-sub-btn.selected {
    background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2);
    color: var(--accent);
}

/* Right side */
.dep-promo-section {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
    padding: 28px; margin-bottom: 20px;
}
.dep-promo-section h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.dep-promo-section p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.dep-promo-section p strong { color: var(--accent); }
.dep-promo-row { display: flex; gap: 10px; }
.dep-promo-input {
    flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg-primary); color: var(--text-primary); font-size: 14px; outline: none;
    transition: border-color 0.3s;
}
.dep-promo-input:focus { border-color: var(--accent); }
.dep-promo-btn {
    padding: 12px 20px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.2);
    color: var(--accent); font-weight: 700; font-size: 11px;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
    letter-spacing: 0.5px;
}
.dep-promo-btn:hover { background: rgba(245,158,11,0.2); border-color: var(--accent); }

.dep-amount-section {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
    padding: 28px;
}
.dep-label { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: block; }
.dep-input-row {
    display: flex; align-items: center; border: 1px solid var(--border);
    border-radius: 10px; background: var(--bg-primary); margin-bottom: 16px; overflow: hidden;
}
.dep-curr-tag {
    padding: 12px 14px; background: rgba(255,255,255,0.03); color: var(--text-muted);
    font-weight: 700; font-size: 13px; border-right: 1px solid var(--border);
}
.dep-main-input {
    flex: 1; padding: 12px 16px; border: none; background: transparent;
    color: var(--text-primary); font-size: 18px; font-weight: 700; outline: none;
    font-family: 'Orbitron',sans-serif;
}
.dep-amounts-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dep-amt {
    padding: 10px 18px; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
    background: rgba(255,255,255,0.03); color: var(--text-secondary); font-weight: 700;
    font-size: 14px; cursor: pointer; transition: all 0.25s ease; position: relative;
    backdrop-filter: blur(4px);
}
.dep-amt:hover { border-color: rgba(245,158,11,0.3); color: var(--accent); background: rgba(245,158,11,0.06); }
.dep-amt.selected { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); color: var(--accent); box-shadow: 0 0 12px rgba(245,158,11,0.1); }
.dep-amt-tag {
    position: absolute; top: -6px; right: -4px; background: #22c55e; color: white;
    font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 4px;
}
.dep-terms { font-size: 11px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.dep-terms a { color: var(--accent); text-decoration: none; }
.dep-receive {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-radius: 12px;
    background: rgba(34,197,94,0.04); border: 1px solid rgba(34,197,94,0.1);
    margin-bottom: 16px; backdrop-filter: blur(4px);
}
.dep-receive span { font-size: 13px; color: var(--text-muted); }
.dep-receive-amount { color: #22c55e; font-size: 18px; }
.dep-receive-amount strong { font-family: 'Orbitron',sans-serif; font-weight: 900; }
.dep-receive-amount small { font-size: 11px; opacity: 0.7; margin-left: 6px; }
.dep-go-btn {
    width: 100%; padding: 18px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a, #22c55e);
    background-size: 200% 100%; animation: greenShimmer 3s ease infinite;
    color: white; font-weight: 800; font-size: 18px; cursor: pointer;
    transition: var(--transition); font-family: 'Inter',sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 4px 24px rgba(34,197,94,0.3);
    letter-spacing: 0.5px; text-transform: uppercase;
}
@keyframes greenShimmer { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }
.dep-go-btn:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 40px rgba(34,197,94,0.4); }

@media (max-width: 900px) {
    .dep-layout { flex-direction: column; }
    .dep-right { width: 100%; }
    .dep-methods-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== WIN POPUP ===== */
.win-popup-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center;
}
.win-popup-overlay.active { display: flex; }
#confettiCanvas {
    position: fixed; inset: 0; z-index: 3001; pointer-events: none;
    width: 100%; height: 100%;
}
.win-popup {
    position: relative; z-index: 3002; text-align: center; padding: 48px 40px 36px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 20px; max-width: 420px; width: 90%;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.7) translateY(30px); } }
.win-close {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
    border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-muted); cursor: pointer; display: flex; align-items: center;
    justify-content: center; font-size: 14px; transition: var(--transition); z-index: 5;
}
.win-close:hover { background: rgba(239,68,68,0.2); color: #ef4444; border-color: rgba(239,68,68,0.3); }
.win-popup-glow {
    position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
    width: 280px; height: 280px; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.15); } }
.win-rarity-label {
    position: relative; z-index: 1; display: inline-block;
    padding: 3px 14px; border-radius: 20px; font-size: 11px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
#winSkinImg {
    position: relative; z-index: 1; width: 280px; height: 163px;
    object-fit: contain; margin-bottom: 20px; border-radius: 8px;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6));
    animation: skinFloat 3s ease-in-out infinite;
}
@keyframes skinFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.win-popup h2 { font-family: 'Orbitron', sans-serif; font-size: 18px; margin-bottom: 6px; position: relative; z-index: 1; }
.win-popup-value { font-size: 36px; font-weight: 900; color: #22c55e; margin-bottom: 4px; position: relative; z-index: 1; font-family: 'Orbitron', sans-serif; }
.win-popup-info { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; position: relative; z-index: 1; }
.win-actions { display: flex; gap: 10px; justify-content: center; position: relative; z-index: 1; }
.win-btn {
    padding: 10px 20px; border: none; border-radius: 10px; font-weight: 700;
    font-size: 13px; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif;
}
.win-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.win-btn-sell { background: linear-gradient(135deg, #22c55e, #059669); color: white; }
.win-btn-upgrade { background: linear-gradient(135deg, var(--accent), #d97706); color: var(--bg-primary); }
.win-btn-inventory { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.win-btn-inventory:hover { border-color: var(--accent); }

/* ===== ROULETTE WINNER HIGHLIGHT ===== */
.roulette-item.winner-highlight {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(245,158,11,0.4), inset 0 0 20px rgba(245,158,11,0.1);
    border-color: var(--accent) !important;
    animation: winnerPulse 1s ease-in-out infinite;
}
@keyframes winnerPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(245,158,11,0.4); }
    50% { box-shadow: 0 0 50px rgba(245,158,11,0.6), 0 0 80px rgba(245,158,11,0.2); }
}

/* ===== UPGRADER ===== */
#upgraderModal {
    background: linear-gradient(160deg, #0c0c18 0%, #0f0a1a 25%, #0a0a0f 50%, #0a1018 75%, #0c0c18 100%);
}
.upgrader-page {
    width: 100%; height: 100%; overflow-y: auto;
    position: relative; padding: 88px 24px 60px;
}
.upgrader-title {
    font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 900;
    text-align: center; letter-spacing: 3px; margin-bottom: 20px; color: var(--text-primary);
}

/* Steps */
.upgrade-steps { display: flex; gap: 12px; max-width: 1000px; margin: 0 auto 32px; }
.upgrade-step {
    flex: 1; padding: 14px 18px; border-radius: 12px; font-size: 12px; line-height: 1.5;
    background: linear-gradient(135deg, rgba(75,105,255,0.15), rgba(75,105,255,0.05));
    border: 1px solid rgba(75,105,255,0.2); color: var(--text-secondary);
}
.upgrade-step.purple { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05)); border-color: rgba(139,92,246,0.2); }
.upgrade-step.pink { background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(236,72,153,0.05)); border-color: rgba(236,72,153,0.2); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; font-weight: 800; font-size: 11px;
    background: rgba(255,255,255,0.1); margin-right: 8px; vertical-align: middle;
}

/* Main area */
.upgrade-main {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; max-width: 1100px; margin: 0 auto 40px; min-height: 360px;
}

/* Slots */
.upgrade-slot { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; max-width: 320px; }
.upgrade-card {
    width: 100%; aspect-ratio: 4/3; border-radius: 20px;
    background: linear-gradient(160deg, #1a1a2e 0%, #12121a 50%, #0e0e1a 100%);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); overflow: hidden;
    position: relative; min-height: 240px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.upgrade-card:hover { border-color: rgba(255,255,255,0.15); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.upgrade-card-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    color: var(--text-muted); font-size: 14px;
}
.upgrade-card-placeholder i { font-size: 40px; opacity: 0.2; }
.upgrade-card.has-item {
    padding: 24px; flex-direction: column; justify-content: center;
    border-style: solid;
}
.upgrade-card.has-item img {
    width: 100%; max-height: 150px; object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}
.upgrade-slot-info { text-align: center; }
.upgrade-slot-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.upgrade-slot-price { font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 800; color: #22c55e; }

/* Center wheel */
.upgrade-center { display: flex; flex-direction: column; align-items: center; gap: 24px; flex-shrink: 0; }
.upgrade-wheel-container {
    position: relative; width: 280px; height: 280px;
    filter: drop-shadow(0 0 50px rgba(245,158,11,0.06));
}
.upgrade-wheel-rings { position: absolute; inset: 0; animation: wheelRotateSlow 30s linear infinite; }
@keyframes wheelRotateSlow { to { transform: rotate(360deg); } }
.wheel-ring { position: absolute; border-radius: 50%; }
.ring-outer { inset: 0; border: 1px solid rgba(245,158,11,0.12); }
.ring-mid { inset: 12px; border: 1px dashed rgba(245,158,11,0.07); }
.ring-inner { inset: 24px; border: 1px solid rgba(245,158,11,0.04); }
#upgradeWheel { position: absolute; inset: 0; z-index: 2; }
.upgrade-wheel-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 3; text-align: center; pointer-events: none;
}
.upgrade-pct {
    font-family: 'Orbitron', sans-serif; font-size: 34px; font-weight: 900;
    color: var(--text-primary); line-height: 1; text-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.upgrade-pct-label { font-size: 10px; color: var(--text-muted); margin-top: 6px; letter-spacing: 1.5px; text-transform: uppercase; }
.wheel-spinner {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 24px; background: var(--accent);
    border-radius: 2px; z-index: 4; opacity: 0;
    box-shadow: 0 0 14px var(--accent-glow); transition: opacity 0.3s;
}
.wheel-spinner.active { opacity: 1; }
.upgrade-multiplier {
    font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700;
    color: var(--text-muted); padding: 8px 20px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(22,22,31,0.9), rgba(14,14,26,0.9));
    border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.upgrade-boost {
    text-align: center; padding: 12px 16px; border-radius: 12px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
}
.upgrade-boost label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 8px; }
.boost-input-row {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 6px 12px; width: 120px; margin: 0 auto 6px;
}
.boost-input-row span { color: var(--text-muted); font-weight: 700; font-size: 14px; }
.boost-input-row input {
    width: 70px; border: none; background: transparent; color: var(--text-primary);
    font-size: 16px; font-weight: 700; outline: none; text-align: center;
    font-family: 'Orbitron',sans-serif;
}
.boost-preview { font-size: 12px; color: #22c55e; font-weight: 600; }
.btn-upgrade-go {
    padding: 16px 56px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, #d4a017, #b8860b, #d4a017);
    background-size: 200% 100%; animation: goldShimmer 3s ease infinite;
    color: var(--bg-primary); font-weight: 800; font-size: 17px;
    cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 10px; letter-spacing: 1px;
    box-shadow: 0 4px 24px rgba(212,160,23,0.3);
}
@keyframes goldShimmer { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }
.btn-upgrade-go:hover { filter: brightness(1.15); transform: translateY(-2px); box-shadow: 0 8px 36px rgba(212,160,23,0.4); }
.btn-upgrade-go:disabled { opacity: 0.3; cursor: not-allowed; transform: none; filter: none; animation: none; }

/* Bottom pickers */
.upgrade-pickers {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    max-width: 1100px; margin: 0 auto; padding-top: 32px;
    border-top: 1px solid var(--border);
}
.upgrade-picker-section {}
.picker-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.picker-header h3 {
    font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 800;
    letter-spacing: 1px; display: flex; align-items: center; gap: 8px;
}
.picker-count {
    background: var(--accent); color: var(--bg-primary); font-size: 11px;
    padding: 2px 8px; border-radius: 10px; font-family: 'Inter', sans-serif;
}
.picker-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px; max-height: 300px; overflow-y: auto; padding-right: 4px;
}
.picker-grid::-webkit-scrollbar { width: 4px; }
.picker-grid::-webkit-scrollbar-track { background: transparent; }
.picker-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.pick-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px; text-align: center;
    cursor: pointer; transition: var(--transition);
}
.pick-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pick-card.selected { border-color: var(--accent); background: rgba(245,158,11,0.08); }
.pick-card img { width: 100%; height: 55px; object-fit: contain; margin-bottom: 6px; }
.pick-card .pick-name { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.pick-card .pick-val { font-size: 11px; font-weight: 700; color: #22c55e; }

@keyframes upgradeLose { 0%{opacity:1;transform:scale(1);} 30%{transform:scale(1.05);} 100%{opacity:0;transform:scale(0.3) rotateZ(15deg);filter:grayscale(1) brightness(0.3);} }
@keyframes upgradeWin { 0%{transform:scale(1);} 50%{transform:scale(1.1);} 100%{transform:scale(1);} }
@keyframes wheelGlow { 0%,100%{box-shadow:0 0 20px rgba(245,158,11,0.2);} 50%{box-shadow:0 0 40px rgba(245,158,11,0.4);} }

@media (max-width: 900px) {
    .upgrade-main { flex-direction: column; gap: 24px; }
    .upgrade-slot { max-width: 100%; }
    .upgrade-steps { flex-direction: column; }
    .upgrade-pickers { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
    position: relative; z-index: 1; padding: 60px 0 30px;
    border-top: 1px solid var(--border); background: rgba(10,10,15,0.8); margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: var(--transition); font-size: 16px;
}
.social-links a:hover { color: var(--accent); border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.1); }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); text-decoration: none; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.payment-methods { display: flex; gap: 16px; font-size: 24px; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { .nav-links { display: none; } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .hero-stats { flex-direction: column; gap: 20px; }
    .cases-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .case-items-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .case-controls { gap: 10px; }
    .roulette-container { margin-left: 12px; margin-right: 12px; height: 140px; }
    .roulette-item { width: 110px; height: 110px; }
    .case-contents-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .inventory-grid, .inventory-notice { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
    .deposit-grid, .deposit-custom { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
    .cases-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .case-image { min-height: 140px; padding: 12px 8px 4px; }
    .case-image img { max-width: 140px; }
    .case-info { padding: 0 12px 14px; }
    .case-name { font-size: 13px; }
    .price { font-size: 15px; }
    .balance span { display: none; }
    .deposit-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== SMOOTH TRANSITIONS ===== */
.modal-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modal-overlay.active {
    opacity: 1;
}
.case-page, .upgrader-page {
    animation: pageSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pageSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.case-card {
    animation: cardFadeIn 0.4s ease backwards;
}
.case-card:nth-child(1) { animation-delay: 0.05s; }
.case-card:nth-child(2) { animation-delay: 0.1s; }
.case-card:nth-child(3) { animation-delay: 0.15s; }
.case-card:nth-child(4) { animation-delay: 0.2s; }
.case-card:nth-child(5) { animation-delay: 0.25s; }
.case-card:nth-child(6) { animation-delay: 0.3s; }
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.case-item-card {
    animation: cardFadeIn 0.4s ease backwards;
}
.case-item-card:nth-child(1) { animation-delay: 0.05s; }
.case-item-card:nth-child(2) { animation-delay: 0.1s; }
.case-item-card:nth-child(3) { animation-delay: 0.15s; }
.case-item-card:nth-child(4) { animation-delay: 0.2s; }
.pick-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.inv-item {
    animation: cardFadeIn 0.3s ease backwards;
}
.section {
    animation: sectionFadeIn 0.6s ease backwards;
}
@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast notifications */
.sg-toast {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
    z-index: 20000; padding: 14px 28px; border-radius: 12px;
    font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px;
    opacity: 0; transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none; backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.sg-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sg-toast-success {
    background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.25);
    color: #22c55e;
}
.sg-toast-error {
    background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.25);
    color: #ef4444;
}
.sg-toast-info {
    background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.25);
    color: #f59e0b;
}

/* ===== AI CHAT WIDGET ===== */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9000; }
.chat-toggle {
    width: 56px; height: 56px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: var(--bg-primary); font-size: 22px; cursor: pointer;
    box-shadow: 0 4px 24px rgba(245,158,11,0.3);
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
}
.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(245,158,11,0.4); }
.chat-widget.open .chat-toggle { display: none; }
.chat-box {
    display: none; width: 360px; height: 480px; border-radius: 20px;
    background: linear-gradient(180deg, #1a1a2e, #12121a);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    flex-direction: column; overflow: hidden;
    animation: chatSlideUp 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes chatSlideUp { from { opacity: 0; transform: translateY(20px) scale(0.95); } }
.chat-widget.open .chat-box { display: flex; }
.chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar, .chat-agent-pic {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.chat-avatar {
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: var(--bg-primary);
}
.chat-agent-pic {
    object-fit: cover; border: 2px solid rgba(34,197,94,0.4);
}
.chat-name { font-size: 14px; font-weight: 700; }
.chat-status { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.chat-online { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.chat-close {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: rgba(255,255,255,0.04); color: var(--text-muted);
    cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.chat-close:hover { background: rgba(239,68,68,0.15); color: #ef4444; }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px; display: flex;
    flex-direction: column; gap: 12px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
    max-width: 80%; padding: 10px 14px; border-radius: 14px;
    font-size: 13px; line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
    background: rgba(255,255,255,0.05); color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: var(--bg-primary); font-weight: 500;
    border-bottom-right-radius: 4px;
}
.chat-msg.bot .chat-bubble.typing { color: var(--text-muted); }
.chat-msg.system { justify-content: center; }
.chat-msg.system .chat-bubble {
    background: none; color: var(--text-muted); font-size: 12px;
    text-align: center; max-width: 100%; padding: 6px 0;
}
.chat-input-row {
    display: flex; gap: 8px; padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}
.chat-input-row input {
    flex: 1; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; background: rgba(255,255,255,0.03);
    color: var(--text-primary); font-size: 13px; outline: none;
}
.chat-input-row input:focus { border-color: var(--accent); }
.chat-input-row button {
    width: 40px; height: 40px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: var(--bg-primary); font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.chat-input-row button:hover { filter: brightness(1.1); }
