:root {
    --red: #e8192c;
    --red-dark: #a50f1e;
    --red-bright: #ff2d42;
    --red-glow: rgba(232,25,44,0.4);
    --white: #ffffff;
    --white-dim: rgba(255,255,255,0.85);
    --white-muted: rgba(255,255,255,0.45);
    --white-ghost: rgba(255,255,255,0.07);
    --bg: #090909;
    --bg2: #111114;
    --bg3: #18181d;
    --border: rgba(255,255,255,0.07);
    --border-red: rgba(232,25,44,0.3);
    --discord: #5865F2;
    --youtube: #FF0000;
    --youtube-dark: #cc0000;
    --youtube-glow: rgba(255,0,0,0.35);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 998; opacity: 0.7;
}
#bgVideo {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    min-width: 100vw; min-height: 100vh;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.15) saturate(0.3);
    will-change: transform;
    backface-visibility: hidden;
}
.bg-overlay {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(232,25,44,0.1) 0%, transparent 55%),
                linear-gradient(180deg, rgba(9,9,9,0.6) 0%, rgba(9,9,9,0.96) 100%);
    z-index: -1;
}

/* LOADING */
#loadingScreen {
    position: fixed; inset: 0; z-index: 1000;
    background: #090909;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.loading-logo {
    width: 72px; height: 72px; border-radius: 50%;
    border: 3px solid var(--red);
    box-shadow: 0 0 30px var(--red-glow);
    margin-bottom: 22px;
    animation: logoPulse 1.4s ease-in-out infinite;
}
@keyframes logoPulse {
    0%,100% { box-shadow: 0 0 20px rgba(232,25,44,0.4); }
    50%      { box-shadow: 0 0 50px rgba(232,25,44,0.8); }
}
.loading-wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem; letter-spacing: 5px;
    margin-bottom: 32px; line-height: 1;
}
.loading-wordmark span { color: var(--red); }
.loading-bar-wrap {
    width: 200px; height: 2px;
    background: rgba(255,255,255,0.07);
    border-radius: 2px; overflow: hidden;
}
.loading-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--red-dark), var(--red-bright));
    border-radius: 2px; transition: width 0.25s ease;
}
.loading-label {
    margin-top: 14px; font-size: 0.7rem;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--white-muted);
}
#loadingScreen.fade-out {
    transition: opacity 0.55s ease;
    opacity: 0; pointer-events: none;
}

/* SOUND */
.sound-panel {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 300;
    display: flex; align-items: center;
    background: rgba(9,9,9,0.88);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-red);
    border-radius: 100px;
    padding: 7px 14px 7px 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sound-panel:hover { border-color: var(--red); box-shadow: 0 4px 24px var(--red-glow); }
.sound-icon-btn {
    background: none; border: none;
    color: var(--white-muted);
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.9rem;
    transition: color 0.2s; flex-shrink: 0; padding: 0;
}
.sound-icon-btn:hover { color: var(--white); }
.sound-icon-btn.on { color: var(--red); }
.volume-slider {
    -webkit-appearance: none; appearance: none;
    width: 76px; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px; outline: none;
    cursor: pointer; margin-left: 7px;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--red); cursor: pointer;
    box-shadow: 0 0 5px var(--red-glow);
    transition: transform 0.15s;
}
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.35); }
.volume-slider::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%; border: none;
    background: var(--red); cursor: pointer;
}
.volume-pct {
    font-size: 0.68rem; font-weight: 700;
    color: var(--white-muted); margin-left: 8px;
    min-width: 26px; text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

/* NAVBAR */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100; height: 62px; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(9,9,9,0.88); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; cursor: pointer; }
.nav-logo img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); }
.nav-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.55rem; letter-spacing: 3px; color: var(--white); }
.nav-logo-text span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--white-muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.8px; padding: 7px 14px; border-radius: 8px; transition: all 0.2s; cursor: pointer; text-transform: uppercase; }
.nav-link:hover { color: var(--white); background: var(--white-ghost); }
.nav-link.active { color: var(--red); }
#nav-key { display: none !important; }
#nav-key.role-granted { display: inline-flex !important; }
#nav-login-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--discord); color: white;
    padding: 8px 18px; border-radius: 10px;
    font-size: 0.82rem; font-weight: 700;
    border: none; cursor: pointer; transition: all 0.2s;
}
#nav-login-btn:hover { background: #4752C4; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(88,101,242,0.4); }
.nav-user { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); object-fit: cover; }
.nav-username { font-size: 0.88rem; font-weight: 600; color: var(--white-dim); }
.user-dropdown {
    position: absolute; top: calc(100% + 14px); right: 0;
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 14px; padding: 6px; min-width: 190px;
    display: none; box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    animation: dropIn 0.18s ease;
}
.user-dropdown.open { display: block; }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; font-size: 0.83rem; color: var(--white-dim); cursor: pointer; transition: all 0.15s; }
.dropdown-item:hover { background: var(--white-ghost); color: var(--white); }
.dropdown-item.danger { color: #f87171; }
.dropdown-item.danger:hover { background: rgba(248,113,113,0.08); }
.dropdown-item i { width: 14px; text-align: center; font-size: 0.85rem; }
#dd-key-item { display: none; }

/* PAGES */
.page { display: none; padding-top: 62px; min-height: 100vh; }
.page.active { display: block; }

/* HERO */
.hero { min-height: calc(100vh - 62px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.hero-content { max-width: 680px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(232,25,44,0.1); border: 1px solid var(--border-red);
    color: var(--red-bright); padding: 5px 16px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 22px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4.5rem, 13vw, 10rem); line-height: 0.88; letter-spacing: 4px; margin-bottom: 12px; }
.hero h1 .line-white { color: var(--white); display: block; }
.hero h1 .line-red { color: var(--red); display: block; }
.hero-sub { font-size: 1rem; color: var(--white-muted); max-width: 460px; margin: 0 auto 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--red); color: white; padding: 13px 30px; border-radius: 11px; font-size: 0.88rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.25s; display: flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 8px 28px var(--red-glow); }
.btn-outline { background: transparent; color: var(--white-dim); padding: 13px 30px; border-radius: 11px; font-size: 0.88rem; font-weight: 600; border: 1px solid var(--border); cursor: pointer; transition: all 0.25s; display: flex; align-items: center; gap: 8px; }
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: var(--white-ghost); color: var(--white); transform: translateY(-2px); }
.btn-youtube { background: var(--youtube); color: white; padding: 13px 30px; border-radius: 11px; font-size: 0.88rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.25s; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-youtube:hover { background: var(--youtube-dark); transform: translateY(-2px); box-shadow: 0 8px 28px var(--youtube-glow); }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; color: var(--red); letter-spacing: 2px; line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--white-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.social-bar { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.social-btn { display: flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 10px; font-size: 0.82rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.25s; text-decoration: none; }
.social-btn-discord { background: rgba(88,101,242,0.15); color: #818cf8; border: 1px solid rgba(88,101,242,0.3); }
.social-btn-discord:hover { background: rgba(88,101,242,0.25); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(88,101,242,0.3); }
.social-btn-youtube { background: rgba(255,0,0,0.12); color: #ff4444; border: 1px solid rgba(255,0,0,0.3); }
.social-btn-youtube:hover { background: rgba(255,0,0,0.22); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,0,0,0.3); }

/* SECTION */
.section { padding: 70px 40px; max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.73rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 2px; line-height: 1; margin-bottom: 40px; }
.section-title span { color: var(--red); }

/* PRODUCTS */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.product-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: all 0.3s ease; position: relative; }
.product-card::before { content: ''; position: absolute; inset: 0; border-radius: 18px; background: linear-gradient(135deg, rgba(232,25,44,0.05) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.product-card:hover { transform: translateY(-5px); border-color: var(--border-red); }
.product-card:hover::before { opacity: 1; }
.card-banner { width: 100%; height: 140px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #150508, #0e0e15); }
.card-banner-inner { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; letter-spacing: 4px; color: var(--red); opacity: 0.35; position: relative; z-index: 1; }
.card-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(232,25,44,0.08) 0%, transparent 55%); }
.card-body { padding: 20px; }
.card-tags { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
.tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px; padding: 2px 9px; border-radius: 100px; }
.tag-red { background: rgba(232,25,44,0.13); color: var(--red-bright); border: 1px solid rgba(232,25,44,0.22); }
.tag-white { background: rgba(255,255,255,0.06); color: var(--white-muted); border: 1px solid var(--border); }
.tag-green { background: rgba(74,222,128,0.08); color: #4ade80; border: 1px solid rgba(74,222,128,0.18); }
.card-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 5px; }
.card-desc { font-size: 0.81rem; color: var(--white-muted); line-height: 1.6; margin-bottom: 16px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: 'Bebas Neue', sans-serif; font-size: 1.55rem; letter-spacing: 1px; }
.price-free { color: #4ade80; }
.card-price small { font-family: 'Inter', sans-serif; font-size: 0.68rem; color: var(--white-muted); font-weight: 400; vertical-align: middle; }
.btn-buy { background: var(--red); color: white; padding: 9px 20px; border-radius: 9px; font-size: 0.8rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-buy:hover { background: var(--red-bright); box-shadow: 0 4px 18px var(--red-glow); transform: translateY(-1px); }
.btn-buy-free { background: rgba(74,222,128,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.btn-buy-free:hover { background: rgba(74,222,128,0.2); }

/* COMMUNITY */
.stats-page-wrap { max-width: 1100px; margin: 0 auto; padding: 50px 40px; }
.live-counter-hero {
    background: linear-gradient(135deg, rgba(232,25,44,0.08) 0%, rgba(232,25,44,0.02) 100%);
    border: 1px solid var(--border-red);
    border-radius: 24px; padding: 48px 40px;
    text-align: center; margin-bottom: 32px;
    position: relative; overflow: hidden;
}
.live-counter-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(232,25,44,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.live-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(232,25,44,0.1); border: 1px solid var(--border-red);
    color: var(--red-bright); padding: 5px 16px; border-radius: 100px;
    font-size: 0.73rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 20px;
}
.live-label .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: blink 1.5s ease-in-out infinite; }
.live-count-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 15vw, 9rem);
    letter-spacing: 8px; color: var(--red);
    line-height: 0.9; margin-bottom: 10px;
    text-shadow: 0 0 60px rgba(232,25,44,0.4);
}
.live-count-label { font-size: 1.1rem; font-weight: 600; color: var(--white-muted); letter-spacing: 2px; text-transform: uppercase; }
.community-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.community-stat-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 18px; padding: 26px 24px;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.community-stat-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color, var(--red)), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.community-stat-card:hover { border-color: var(--border-red); transform: translateY(-3px); }
.community-stat-card:hover::before { opacity: 1; }
.csc-icon { font-size: 1.5rem; margin-bottom: 14px; }
.csc-value { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; letter-spacing: 2px; line-height: 1; margin-bottom: 4px; }
.csc-label { font-size: 0.75rem; color: var(--white-muted); letter-spacing: 1px; text-transform: uppercase; }
.csc-sub { font-size: 0.7rem; color: var(--white-muted); margin-top: 6px; opacity: 0.7; }
.login-history-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 24px; }
.login-history-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.login-history-header h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.login-history-header h3 i { color: var(--red); }
.activity-feed { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.activity-feed-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.activity-feed-header h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.activity-feed-header h3 i { color: var(--red); }
.activity-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s; animation: activitySlide 0.4s ease;
}
@keyframes activitySlide { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:translateX(0); } }
.activity-item:hover { background: var(--white-ghost); }
.activity-item:last-child { border-bottom: none; }
.activity-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red-dark), var(--bg3));
    border: 2px solid var(--border-red);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: var(--red);
    flex-shrink: 0; overflow: hidden;
}
.activity-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.activity-info { flex: 1; }
.activity-name { font-size: 0.88rem; font-weight: 600; color: var(--white-dim); }
.activity-action { font-size: 0.75rem; color: var(--white-muted); margin-top: 2px; }
.activity-time { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--white-muted); white-space: nowrap; }

/* KEY ADMIN */
.key-admin-wrap { max-width: 960px; }
.token-bar {
    background: var(--bg2); border: 1px solid var(--border-red);
    border-radius: 14px; padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.token-bar label { font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.token-input { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--white); padding: 10px 14px; border-radius: 9px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; outline: none; transition: border-color 0.2s; min-width: 200px; }
.token-input:focus { border-color: var(--red); }
.btn-sm { padding: 10px 18px; border-radius: 9px; font-size: 0.8rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.btn-sm-red { background: var(--red); color: white; }
.btn-sm-red:hover { background: var(--red-bright); box-shadow: 0 4px 14px var(--red-glow); }
.btn-sm-outline { background: transparent; color: var(--white-muted); border: 1px solid var(--border); }
.btn-sm-outline:hover { color: var(--white); background: var(--white-ghost); }
.btn-sm-danger { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }
.btn-sm-danger:hover { background: rgba(248,113,113,0.18); }
.btn-sm-warn { background: rgba(251,146,60,0.1); color: #fb923c; border: 1px solid rgba(251,146,60,0.25); }
.btn-sm-warn:hover { background: rgba(251,146,60,0.18); }
.admin-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
@media (max-width: 700px) { .admin-panels { grid-template-columns: 1fr; } }
.admin-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.admin-box-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.admin-box-header h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: 2px; }
.admin-box-header i { color: var(--red); }
.admin-box-body { padding: 20px 22px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white-muted); margin-bottom: 6px; }
.form-input { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--white); padding: 11px 14px; border-radius: 10px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--red); }
.form-input::placeholder { color: var(--white-muted); font-family: 'Inter', sans-serif; font-size: 0.82rem; }
.form-select { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--white); padding: 11px 14px; border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 0.85rem; outline: none; transition: border-color 0.2s; cursor: pointer; }
.form-select:focus { border-color: var(--red); }

/* STATS DASHBOARD */
.stats-dashboard { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 24px; }
.stats-dashboard-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.stats-dashboard-header h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.stats-dashboard-header h3 i { color: var(--red); }
.stats-summary-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
@media (max-width: 700px) { .stats-summary-cards { grid-template-columns: repeat(3, 1fr); } }
.stat-mini-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; transition: border-color 0.2s; }
.stat-mini-card:hover { border-color: var(--border-red); }
.stat-mini-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: 1px; color: var(--red); line-height: 1; margin-bottom: 3px; }
.stat-mini-label { font-size: 0.68rem; color: var(--white-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.cooldown-banner { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 14px; border: 1px solid; margin-bottom: 20px; font-size: 0.85rem; font-weight: 600; }
.cooldown-banner.ready { background: rgba(74,222,128,0.07); border-color: rgba(74,222,128,0.25); color: #4ade80; }
.cooldown-banner.waiting { background: rgba(251,146,60,0.07); border-color: rgba(251,146,60,0.25); color: #fb923c; }
.cooldown-banner i { font-size: 1.1rem; flex-shrink: 0; }
.cooldown-timer { font-family: 'JetBrains Mono', monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; }

/* KEYS TABLE */
.keys-table-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.keys-table-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.keys-table-header h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.keys-table-header h3 i { color: var(--red); }
.keys-count-pill { font-size: 0.72rem; font-weight: 700; padding: 3px 11px; border-radius: 100px; background: rgba(232,25,44,0.1); color: var(--red); border: 1px solid var(--border-red); }
.search-bar { background: var(--bg); border: 1px solid var(--border); color: var(--white); padding: 8px 14px; border-radius: 9px; font-size: 0.83rem; outline: none; transition: border-color 0.2s; width: 220px; }
.search-bar:focus { border-color: var(--red); }
.search-bar::placeholder { color: var(--white-muted); }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 1px solid var(--border); }
thead th { padding: 12px 16px; text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white-muted); }
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--white-ghost); }
tbody td { padding: 13px 16px; font-size: 0.83rem; vertical-align: middle; }
.key-cell { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--white-dim); display: flex; align-items: center; gap: 8px; }
.key-status-badge { font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.5px; white-space: nowrap; }
.status-active { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.status-inactive { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.2); }
.status-expired { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }
.run-count-badge { display: inline-block; background: rgba(232,25,44,0.1); border: 1px solid rgba(232,25,44,0.22); color: var(--red-bright); border-radius: 100px; padding: 2px 11px; font-size: 0.72rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; min-width: 34px; text-align: center; letter-spacing: 0.5px; }
.run-count-badge.zero { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: var(--white-muted); }
.expiry-badge { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; background: rgba(251,146,60,0.1); color: #fb923c; border: 1px solid rgba(251,146,60,0.2); white-space: nowrap; }
.expiry-badge.expired { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.2); }
.expiry-badge.unlimited { background: rgba(74,222,128,0.1); color: #4ade80; border-color: rgba(74,222,128,0.2); }
.maps-badge { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.map-tag { font-size: 0.6rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: rgba(129,140,248,0.1); color: #818cf8; border: 1px solid rgba(129,140,248,0.2); }
.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.empty-state { padding: 40px; text-align: center; color: var(--white-muted); font-size: 0.88rem; }
.empty-state i { font-size: 2rem; display: block; margin-bottom: 10px; opacity: 0.35; }
.spinner-sm { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.15); border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.access-denied-box { max-width: 480px; margin: 80px auto; text-align: center; background: var(--bg2); border: 1px solid rgba(248,113,113,0.25); border-radius: 22px; padding: 50px 36px; }
.access-denied-icon { font-size: 3rem; color: #f87171; margin-bottom: 20px; display: block; }
.access-denied-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 3px; color: #f87171; margin-bottom: 10px; }
.access-denied-sub { font-size: 0.88rem; color: var(--white-muted); line-height: 1.75; margin-bottom: 28px; }
.role-badge-display { display: inline-flex; align-items: center; gap: 8px; background: rgba(248,113,113,0.07); border: 1px solid rgba(248,113,113,0.2); border-radius: 100px; padding: 6px 16px; font-size: 0.78rem; color: #f87171; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 24px; }
.role-tag { font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; letter-spacing: 0.5px; background: rgba(232,25,44,0.12); color: var(--red); border: 1px solid rgba(232,25,44,0.25); margin-left: 4px; }

/* DASHBOARD */
.dash-header { padding: 36px 40px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(232,25,44,0.06) 0%, transparent 55%); }
.dash-welcome { display: flex; align-items: center; gap: 18px; }
.dash-avatar { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--red); box-shadow: 0 0 18px var(--red-glow); object-fit: cover; }
.dash-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 2px; }
.dash-tag { font-size: 0.75rem; color: var(--white-muted); font-weight: 600; margin-top: 2px; }
.dash-body { padding: 30px 40px; display: flex; flex-direction: column; gap: 24px; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.dash-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 15px; padding: 22px; transition: border-color 0.2s; }
.dash-card:hover { border-color: var(--border-red); }
.dash-card-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px; }
.icon-red { background: rgba(232,25,44,0.13); color: var(--red); }
.icon-blue { background: rgba(88,101,242,0.12); color: #818cf8; }
.icon-green { background: rgba(74,222,128,0.09); color: #4ade80; }
.icon-orange { background: rgba(251,146,60,0.12); color: #fb923c; }
.icon-youtube { background: rgba(255,0,0,0.12); color: #ff4444; }
.dash-card-value { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; letter-spacing: 1px; line-height: 1; margin-bottom: 3px; word-break: break-all; }
.dash-card-label { font-size: 0.75rem; color: var(--white-muted); letter-spacing: 0.5px; }
.my-key-card { background: linear-gradient(135deg, rgba(232,25,44,0.07) 0%, rgba(232,25,44,0.02) 100%); border: 1px solid var(--border-red); border-radius: 18px; padding: 24px 28px; }
.my-key-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; color: var(--red); }
.my-key-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.my-key-info-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.my-key-info-label { font-size: 0.7rem; color: var(--white-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.my-key-info-value { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--white-dim); font-weight: 600; }
.my-key-info-value.good { color: #4ade80; }
.my-key-info-value.warn { color: #fb923c; }
.my-key-info-value.expired { color: #f87171; }
.maps-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.rank-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; }
.rank-owner { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.rank-member { background: rgba(129,140,248,0.1); color: #818cf8; border: 1px solid rgba(129,140,248,0.3); }
.rank-premium { background: rgba(232,25,44,0.12); color: var(--red-bright); border: 1px solid var(--border-red); }
.discord-card { background: linear-gradient(135deg, rgba(88,101,242,0.12) 0%, rgba(88,101,242,0.04) 100%); border: 1px solid rgba(88,101,242,0.25); border-radius: 18px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.discord-card-left { display: flex; align-items: center; gap: 16px; }
.discord-card-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(88,101,242,0.2); border: 1px solid rgba(88,101,242,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #818cf8; }
.discord-card-name { font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.discord-card-sub { font-size: 0.8rem; color: var(--white-muted); }
.btn-discord-inv { background: var(--discord); color: white; padding: 10px 22px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn-discord-inv:hover { background: #4752C4; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(88,101,242,0.4); }
.youtube-card { background: linear-gradient(135deg, rgba(255,0,0,0.1) 0%, rgba(255,0,0,0.03) 100%); border: 1px solid rgba(255,0,0,0.25); border-radius: 18px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.youtube-card-left { display: flex; align-items: center; gap: 16px; }
.youtube-card-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,0,0,0.15); border: 1px solid rgba(255,0,0,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #ff4444; }
.btn-youtube-card { background: var(--youtube); color: white; padding: 10px 22px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.btn-youtube-card:hover { background: var(--youtube-dark); transform: translateY(-1px); box-shadow: 0 4px 18px var(--youtube-glow); }

/* MODALS */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.82); backdrop-filter: blur(10px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: var(--bg3); border: 1px solid var(--border); border-radius: 24px; padding: 40px 36px; max-width: 440px; width: 100%; text-align: center; animation: modalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; }
@keyframes modalIn { from { opacity:0; transform:scale(0.88) translateY(18px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--white-ghost); border: none; color: var(--white-muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: rgba(255,255,255,0.13); color: var(--white); }
.modal-logo { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--red); margin-bottom: 18px; }
.modal h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.85rem; letter-spacing: 2px; margin-bottom: 8px; }
.modal p { color: var(--white-muted); font-size: 0.87rem; line-height: 1.7; margin-bottom: 24px; }
.discord-login-full { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: var(--discord); color: white; padding: 15px 20px; border-radius: 13px; font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.25s; }
.discord-login-full i { font-size: 1.2rem; }
.discord-login-full:hover { background: #4752C4; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(88,101,242,0.5); }
.buy-price-display { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 2px; color: var(--red); margin: 16px 0; }
.buy-features { text-align: left; margin-bottom: 24px; }
.buy-feature { display: flex; align-items: center; gap: 10px; font-size: 0.83rem; color: var(--white-muted); padding: 6px 0; }
.buy-feature i { color: #4ade80; font-size: 0.75rem; width: 14px; }
.confirm-modal-body { text-align: center; }
.confirm-icon { font-size: 2.4rem; margin-bottom: 14px; }
.confirm-modal-body h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 8px; }
.confirm-modal-body p { color: var(--white-muted); font-size: 0.85rem; line-height: 1.65; margin-bottom: 24px; }
.confirm-key-display { font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; background: var(--bg); border: 1px solid var(--border-red); border-radius: 9px; padding: 10px 14px; color: var(--red); margin-bottom: 22px; word-break: break-all; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions button { flex: 1; padding: 13px; border-radius: 11px; font-size: 0.88rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s; }
.confirm-cancel { background: var(--white-ghost); color: var(--white-dim); }
.confirm-cancel:hover { background: rgba(255,255,255,0.12); }
.confirm-delete { background: #f87171; color: white; }
.confirm-delete:hover { background: #ef4444; box-shadow: 0 4px 18px rgba(248,113,113,0.4); }
.confirm-reset { background: #fb923c; color: white; }
.confirm-reset:hover { background: #f97316; box-shadow: 0 4px 18px rgba(251,146,60,0.4); }

/* TOAST */
.toast-container { position: fixed; bottom: 22px; right: 78px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg3); border: 1px solid var(--border); border-left: 3px solid var(--red); color: var(--white); padding: 13px 18px; border-radius: 11px; font-size: 0.83rem; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: toastIn 0.3s ease; max-width: 300px; box-shadow: 0 10px 40px rgba(0,0,0,0.45); }
.toast.success { border-left-color: #4ade80; }
.toast.info { border-left-color: #818cf8; }
.toast.warn { border-left-color: #fb923c; }
@keyframes toastIn { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }

footer { border-top: 1px solid var(--border); padding: 36px 40px; text-align: center; color: var(--white-muted); font-size: 0.8rem; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: 4px; color: var(--white); margin-bottom: 6px; }
.footer-logo span { color: var(--red); }
.footer-socials { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.footer-social-link { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.footer-social-link.discord { color: #818cf8; border: 1px solid rgba(88,101,242,0.2); }
.footer-social-link.discord:hover { background: rgba(88,101,242,0.1); }
.footer-social-link.youtube { color: #ff4444; border: 1px solid rgba(255,0,0,0.2); }
.footer-social-link.youtube:hover { background: rgba(255,0,0,0.1); }
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }

@media (max-width: 768px) {
    nav { padding: 0 18px; }
    .nav-links { display: none; }
    .section, .dash-body, .dash-header, .stats-page-wrap { padding-left: 18px; padding-right: 18px; }
}
