/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === GAMER RED/BLACK PALETTE === */
  --bg-dark:      #080808;
  --bg-darker:    #030303;
  --bg-card:      #0f0f0f;
  --bg-card2:     #141414;
  --bg-glass:     rgba(220,38,38,0.04);
  --bg-glass2:    rgba(255,255,255,0.04);
  --border:       rgba(220,38,38,0.15);
  --border-glow:  rgba(220,38,38,0.5);
  --border-dim:   rgba(255,255,255,0.06);

  --red:          #dc2626;
  --red-bright:   #ef4444;
  --red-deep:     #991b1b;
  --red-glow:     #7f1d1d;
  --red-neon:     #ff2020;

  --gold:         #f59e0b;
  --gold-bright:  #fbbf24;
  --green:        #22c55e;
  --blue:         #3b82f6;
  --purple:       #8b5cf6;
  --cyan:         #06b6d4;

  --text-primary:   #f5f5f5;
  --text-secondary: #a1a1aa;
  --text-muted:     #52525b;
  --text-red:       #fca5a5;

  --sidebar-w: 265px;
  --radius:    12px;
  --radius-sm: 7px;
  --shadow:    0 8px 32px rgba(0,0,0,0.6);
  --shadow-red:0 0 30px rgba(220,38,38,0.2);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.8);

  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

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

/* Scanline overlay for gamer feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-bright); }

/* ===================== TYPOGRAPHY ===================== */
h1,h2,h3 { font-family: 'Rajdhani', 'Inter', sans-serif; letter-spacing: .5px; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-secondary); }
a  { text-decoration: none; color: inherit; }

.font-orbitron { font-family: 'Orbitron', monospace; }

/* ===================== GAMER GRID BG ===================== */
.grid-bg {
  background-image:
    linear-gradient(rgba(220,38,38,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.88rem; cursor: pointer;
  border: none; transition: var(--transition);
  letter-spacing: .5px; position: relative; overflow: hidden;
  font-family: 'Rajdhani', 'Inter', sans-serif;
  text-transform: uppercase;
}
.btn::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(rgba(255,255,255,0.08), transparent);
  opacity:0; transition: opacity .2s;
}
.btn:hover::after { opacity:1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 4px 20px rgba(220,38,38,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(220,38,38,0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(220,38,38,0.6), 0 0 20px rgba(220,38,38,0.3);
  transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, #15803d, var(--green));
  color: #fff; border: 1px solid rgba(34,197,94,0.3);
}
.btn-danger {
  background: linear-gradient(135deg, #450a0a, var(--red));
  color: #fff; border: 1px solid rgba(220,38,38,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text-primary);
  border: 1px solid var(--border-dim);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); background: rgba(220,38,38,0.06); }
.btn-gold {
  background: linear-gradient(135deg, #92400e, var(--gold));
  color: #000; font-weight: 800; border: 1px solid rgba(245,158,11,0.3);
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-gold:hover { box-shadow: 0 6px 30px rgba(245,158,11,0.5); transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ===================== INPUTS ===================== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1.5px; text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
}
.form-control {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text-primary); font-family: inherit; font-size: 0.92rem;
  transition: var(--transition); outline: none; width: 100%;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15), 0 0 12px rgba(220,38,38,0.1);
  background: rgba(220,38,38,0.04);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
select.form-control option { background: #1a1a1a; }

/* ===================== CARDS ===================== */
.card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card-hover { transition: var(--transition); }
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), var(--shadow-red);
  border-color: rgba(220,38,38,0.3);
}

/* ===================== BADGES ===================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 3px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
}
.badge-green  { background: rgba(34,197,94,0.12);  color: #4ade80;  border: 1px solid rgba(34,197,94,.2); }
.badge-red    { background: rgba(220,38,38,0.15);   color: #f87171;  border: 1px solid rgba(220,38,38,.25); }
.badge-gold   { background: rgba(245,158,11,0.15);  color: #fbbf24;  border: 1px solid rgba(245,158,11,.25); }
.badge-blue   { background: rgba(59,130,246,0.12);  color: #60a5fa;  border: 1px solid rgba(59,130,246,.2); }
.badge-purple { background: rgba(139,92,246,0.12);  color: #a78bfa;  border: 1px solid rgba(139,92,246,.2); }
.badge-android{ background: rgba(61,220,132,0.12);  color: #3ddc84;  border: 1px solid rgba(61,220,132,.2); }
.badge-ios    { background: rgba(200,200,200,0.1);   color: #d1d5db;  border: 1px solid rgba(200,200,200,.15); }

/* ===================== AUTH PAGES ===================== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; position: relative; overflow: hidden;
  background: var(--bg-darker);
}

/* Animated bg elements */
.auth-page::before {
  content:''; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(220,38,38,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(153,27,27,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(220,38,38,0.06) 0%, transparent 50%);
}
.auth-page::after {
  content:''; position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(220,38,38,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.auth-container {
  width: 100%; max-width: 440px; position: relative; z-index: 1;
  animation: fadeInUp .5s ease;
}

/* Decorative red lines */
.auth-deco {
  position: fixed; pointer-events:none; z-index:0;
}
.auth-deco-top {
  top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.auth-deco-bottom {
  bottom:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.auth-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px; justify-content: center;
}
.auth-logo .logo-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 30px rgba(220,38,38,0.5), 0 4px 20px rgba(220,38,38,0.3);
  animation: pulse-red 3s infinite;
}
.auth-logo .brand {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem; font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #fca5a5 50%, var(--red-bright) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.auth-box {
  background: rgba(10,10,10,0.95);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 0 60px rgba(220,38,38,0.1), var(--shadow-lg), inset 0 1px 0 rgba(220,38,38,0.1);
  position: relative; overflow: hidden;
}
.auth-box::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.auth-box::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.5), transparent);
}
.auth-box h2 { margin-bottom: 6px; font-family:'Rajdhani',sans-serif; letter-spacing:1px; }
.auth-box > p { margin-bottom: 24px; font-size: 0.88rem; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-footer { margin-top: 22px; text-align: center; font-size: 0.86rem; color: var(--text-muted); }
.auth-footer a { color: var(--red-bright); font-weight: 600; cursor: pointer; }
.auth-footer a:hover { text-decoration: underline; }

.auth-tabs {
  display: flex; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm);
  padding: 4px; margin-bottom: 28px; border: 1px solid var(--border-dim);
}
.auth-tab {
  flex: 1; padding: 10px; text-align: center; border-radius: 5px;
  cursor: pointer; font-weight: 700; font-size: 0.86rem;
  transition: var(--transition); color: var(--text-muted);
  letter-spacing: .8px; text-transform: uppercase; font-family: 'Rajdhani', sans-serif;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; box-shadow: 0 2px 12px rgba(220,38,38,0.4);
}

/* ===================== LANDING PAGE ===================== */
.landing {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-darker); position: relative; overflow: hidden;
}
.landing::before {
  content:''; position:fixed; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse at 10% 40%, rgba(220,38,38,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 60%, rgba(153,27,27,0.1) 0%, transparent 45%);
}
.landing::after {
  content:''; position:fixed; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(220,38,38,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px; border-bottom: 1px solid rgba(220,38,38,0.15);
  backdrop-filter: blur(10px); position: sticky; top:0; z-index:100;
  background: rgba(3,3,3,0.9);
}
.landing-nav::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo .logo-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 0 15px rgba(220,38,38,0.4);
}
.nav-logo span {
  font-family: 'Orbitron', monospace; font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, #fff, #fca5a5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}
.nav-actions { display: flex; gap: 12px; align-items: center; }

.landing-hero {
  flex: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px; flex-direction: column;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 4px;
  background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.3);
  font-size: 0.82rem; font-weight: 700; color: #fca5a5;
  margin-bottom: 32px; animation: fadeInUp .4s ease;
  letter-spacing: 1px; text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
}
.hero-badge .dot { width:8px; height:8px; border-radius:50%; background:var(--red-bright); box-shadow: 0 0 8px var(--red-bright); animation: blink 1.5s infinite; }

.landing-hero h1 {
  max-width: 780px; line-height: 1.1; font-family: 'Orbitron', monospace;
  background: linear-gradient(135deg, #ffffff 0%, #fca5a5 40%, var(--red-bright) 70%, #991b1b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 22px; animation: fadeInUp .5s ease .1s both;
  text-shadow: none;
}
.landing-hero > p {
  max-width: 520px; font-size: 1.05rem; line-height: 1.7;
  animation: fadeInUp .5s ease .2s both; margin-bottom: 42px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; animation: fadeInUp .5s ease .3s both; }

/* Red divider */
.hero-divider {
  width: 100%; max-width: 600px; height: 1px; margin: 52px auto 0;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.4), transparent);
  position: relative;
}
.hero-divider::before {
  content:''; position:absolute; top:-2px; left:50%; transform:translateX(-50%);
  width: 6px; height: 6px; border-radius:50%; background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.hero-stats {
  display: flex; gap: 60px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px; animation: fadeInUp .5s ease .4s both;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block; font-size: 2.2rem; font-weight: 900;
  font-family: 'Orbitron', monospace;
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item span { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

/* ===================== DASHBOARD LAYOUT ===================== */
.dashboard { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: #090909;
  border-right: 1px solid rgba(220,38,38,0.12);
  display: flex; flex-direction: column;
  position: fixed; left:0; top:0; z-index: 200;
  transition: transform .3s ease;
}
.sidebar::after {
  content:''; position:absolute; top:0; bottom:0; right:0; width:1px;
  background: linear-gradient(to bottom, transparent, rgba(220,38,38,0.3), transparent);
}

.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px 16px; border-bottom: 1px solid rgba(220,38,38,0.1);
  position: relative;
}
.sidebar-logo::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.sidebar-logo .logo-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(220,38,38,0.4);
}
.sidebar-logo .brand-name {
  font-family: 'Orbitron', monospace; font-size: 0.85rem; font-weight: 800;
  color: #fff; letter-spacing: 2px; line-height: 1.2;
}
.sidebar-logo small { display:block; font-size:0.7rem; color:var(--text-muted); font-weight:400; margin-top:1px; letter-spacing:.5px; }

.sidebar-nav { flex: 1; padding: 14px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sidebar-section-label {
  font-size: 0.65rem; font-weight: 700; color: rgba(220,38,38,0.5);
  text-transform: uppercase; letter-spacing: 2.5px;
  padding: 12px 10px 5px; font-family: 'Rajdhani', sans-serif;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition); color: var(--text-muted);
  font-weight: 600; font-size: 0.88rem; position: relative;
  border: 1px solid transparent;
  font-family: 'Rajdhani', sans-serif; letter-spacing: .5px;
}
.nav-item:hover {
  background: rgba(220,38,38,0.06); color: var(--text-primary);
  border-color: rgba(220,38,38,0.12);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(153,27,27,0.08));
  color: var(--red-bright); border-color: rgba(220,38,38,0.25);
}
.nav-item.active::before {
  content:''; position:absolute; left:-1px; top:50%; transform:translateY(-50%);
  width:3px; height:65%; background: var(--red);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--red);
}
.nav-item .nav-icon { font-size: 1.05rem; width: 22px; text-align: center; }
.nav-badge {
  margin-left: auto; background: var(--red); color:#fff;
  border-radius:3px; font-size:0.68rem; font-weight:800; padding:2px 7px;
  box-shadow: 0 0 8px rgba(220,38,38,0.5); animation: pulse-red 2s infinite;
}

.sidebar-user {
  padding: 14px 16px; border-top: 1px solid rgba(220,38,38,0.1);
  display: flex; align-items: center; gap: 12px; position: relative;
}
.sidebar-user::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; font-family: 'Orbitron', monospace;
  box-shadow: 0 0 10px rgba(220,38,38,0.3);
}
.user-info { flex:1; min-width:0; }
.user-info strong { display:block; font-size:0.84rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-family:'Rajdhani',sans-serif; letter-spacing:.5px; }
.user-info small { font-size:0.7rem; color:var(--red-bright); letter-spacing:1px; text-transform:uppercase; }
.user-logout { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:1.05rem; transition:color .2s; padding:4px; }
.user-logout:hover { color: var(--red-bright); }

/* ===================== MAIN CONTENT ===================== */
.main-content { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-dark); }

.topbar {
  position: sticky; top:0; z-index:100;
  background: rgba(8,8,8,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220,38,38,0.12);
  padding: 14px 30px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.topbar::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, var(--red), transparent 60%);
}
.topbar h2 { font-size: 1.05rem; font-weight: 700; font-family:'Rajdhani',sans-serif; letter-spacing:1.5px; text-transform:uppercase; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.coin-display {
  display: flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
  border-radius: 4px; padding: 6px 16px;
  font-weight: 800; font-size: 0.9rem; color: #fbbf24;
  font-family: 'Orbitron', monospace;
}

.page-content {
  padding: 28px 30px; flex: 1;
  background: linear-gradient(to bottom, rgba(220,38,38,0.02), transparent 300px), var(--bg-dark);
}

/* ===================== STAT CARDS ===================== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0; transition: opacity .3s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.2); }
.stat-card:hover::before { opacity:1; }

.stat-icon {
  width: 50px; height: 50px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.si-red    { background: rgba(220,38,38,0.12); color: var(--red-bright); border: 1px solid rgba(220,38,38,0.2); }
.si-green  { background: rgba(34,197,94,0.1);  color: #4ade80;  border: 1px solid rgba(34,197,94,0.15); }
.si-gold   { background: rgba(245,158,11,0.1); color: var(--gold); border: 1px solid rgba(245,158,11,0.15); }
.si-blue   { background: rgba(59,130,246,0.1); color: #60a5fa;  border: 1px solid rgba(59,130,246,0.15); }
.si-purple { background: rgba(139,92,246,0.1); color: #a78bfa;  border: 1px solid rgba(139,92,246,0.15); }
.si-pink   { background: rgba(244,63,94,0.1);  color: #fb7185;  border: 1px solid rgba(244,63,94,0.15); }

.stat-info .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; font-family:'Rajdhani',sans-serif; }
.stat-info .value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-top: 2px; font-family:'Orbitron',monospace; }
.stat-info .change { font-size: 0.76rem; margin-top: 3px; }
.change.up   { color: #4ade80; }
.change.down { color: var(--red-bright); }

/* ===================== TABLES ===================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-dim); }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
thead tr { background: rgba(220,38,38,0.05); border-bottom: 1px solid rgba(220,38,38,0.12); }
thead th { padding: 13px 16px; text-align: left; font-size: 0.7rem; font-weight: 800; color: rgba(220,38,38,0.7); text-transform: uppercase; letter-spacing: 1.5px; white-space: nowrap; font-family:'Rajdhani',sans-serif; }
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.03); transition: background .2s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(220,38,38,0.04); }
tbody td { padding: 13px 16px; color: var(--text-secondary); }
tbody td strong { color: var(--text-primary); }

/* ===================== GAME KEYS GRID ===================== */
.keys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.key-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
  cursor: pointer; position: relative;
}
.key-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 30px rgba(220,38,38,0.15);
  border-color: rgba(220,38,38,0.35);
}
.key-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, var(--red), rgba(220,38,38,0.3), transparent);
  opacity:0; transition:opacity .3s; z-index:2;
}
.key-card:hover::before { opacity:1; }
.key-card-img {
  height: 145px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.key-card-img .gradient-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg-card));
}
.key-card-body { padding: 15px; }
.key-card-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; font-family:'Rajdhani',sans-serif; letter-spacing:.5px; }
.key-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.key-price { display: flex; align-items: center; gap: 6px; font-size: 1.15rem; font-weight: 800; color: var(--gold); font-family:'Orbitron',monospace; }
.key-stock { font-size: 0.74rem; color: var(--text-muted); }

/* Platform badges */
.platform-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 3px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; font-family:'Rajdhani',sans-serif;
}
.plat-pc       { background:rgba(59,130,246,0.12); color:#60a5fa; border:1px solid rgba(59,130,246,.2);}
.plat-steam    { background:rgba(103,193,245,0.1); color:#67c1f5; border:1px solid rgba(103,193,245,.2);}
.plat-epic     { background:rgba(255,255,255,0.07);color:#d1d5db; border:1px solid rgba(255,255,255,.12);}
.plat-android  { background:rgba(61,220,132,0.1);  color:#3ddc84; border:1px solid rgba(61,220,132,.2);}
.plat-ios      { background:rgba(200,200,220,0.1); color:#c7d2fe; border:1px solid rgba(200,200,220,.15);}
.plat-xbox     { background:rgba(16,185,129,0.1);  color:#34d399; border:1px solid rgba(16,185,129,.2);}
.plat-ps       { background:rgba(59,130,246,0.12); color:#3b82f6; border:1px solid rgba(59,130,246,.2);}
.plat-nintendo { background:rgba(239,68,68,0.1);   color:#f87171; border:1px solid rgba(239,68,68,.2);}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed; inset:0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .2s ease;
}
.modal {
  background: #0e0e0e; border: 1px solid rgba(220,38,38,0.2);
  border-radius: 14px; padding: 30px; width: 100%; max-width: 500px;
  box-shadow: 0 0 60px rgba(220,38,38,0.12), var(--shadow-lg);
  animation: slideUp .3s ease; position: relative;
}
.modal::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-size: 1.1rem; font-family:'Rajdhani',sans-serif; letter-spacing:1px; }
.modal-close { background: rgba(220,38,38,0.1); border:1px solid rgba(220,38,38,0.2); color: var(--red-bright); cursor: pointer; font-size: 1rem; line-height:1; transition: all .2s; padding:6px 10px; border-radius:5px; }
.modal-close:hover { background: var(--red); color:#fff; }
.modal-body { display: flex; flex-direction: column; gap: 15px; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Confirm modal */
.modal-confirm-icon { text-align:center; font-size:3.5rem; margin-bottom:12px; }

/* ===================== TOPUP PACKAGES ===================== */
.topup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.topup-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius); padding: 20px 14px; text-align: center;
  cursor: pointer; transition: var(--transition); position: relative; overflow:hidden;
}
.topup-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, var(--red), rgba(220,38,38,0.3));
  opacity:0; transition:opacity .2s;
}
.topup-card:hover::before, .topup-card.selected::before { opacity:1; }
.topup-card:hover, .topup-card.selected {
  border-color: rgba(220,38,38,0.4); background: rgba(220,38,38,0.06);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,38,38,0.15);
}
.topup-card .coins { font-size: 1.7rem; font-weight: 900; color: var(--gold); font-family:'Orbitron',monospace; }
.topup-card .coin-icon { font-size: 1.4rem; margin-bottom: 6px; }
.topup-card .price { font-size: 1rem; font-weight: 700; margin-top: 6px; font-family:'Orbitron',monospace; }
.topup-card .bonus { font-size: 0.72rem; color: #4ade80; margin-top: 4px; font-weight: 700; letter-spacing:.5px; }

/* ===================== ALERTS ===================== */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.86rem; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(34,197,94,0.08);  border: 1px solid rgba(34,197,94,0.2);  color: #4ade80; }
.alert-error   { background: rgba(220,38,38,0.08);  border: 1px solid rgba(220,38,38,0.2);  color: var(--red-bright); }
.alert-info    { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: #60a5fa; }
.alert-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); color: #fbbf24; }

/* ===================== TOAST NOTIFICATIONS ===================== */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; max-width: 350px;
}
.toast {
  background: #111; border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm); padding: 14px 18px;
  box-shadow: var(--shadow-lg); animation: slideInRight .3s ease;
  display: flex; align-items: center; gap: 12px; font-size: 0.87rem;
}
.toast.toast-success { border-left: 3px solid #4ade80; }
.toast.toast-error   { border-left: 3px solid var(--red-bright); }
.toast.toast-info    { border-left: 3px solid var(--blue); }
.toast.toast-warning { border-left: 3px solid var(--gold); }
.toast-icon { font-size: 1.2rem; }
.toast-msg strong { display:block; font-weight:700; margin-bottom:2px; font-family:'Rajdhani',sans-serif; letter-spacing:.5px; }
.toast-msg span   { color: var(--text-muted); font-size: 0.8rem; }

/* ===================== KEY REVEAL ===================== */
.key-reveal {
  background: rgba(220,38,38,0.06); border: 1px dashed rgba(220,38,38,0.35);
  border-radius: var(--radius-sm); padding: 16px;
  font-family: 'Courier New', monospace; font-size: 1rem; font-weight: 700;
  color: #fca5a5; letter-spacing: 2px; text-align: center;
  user-select: all; cursor: text;
  box-shadow: 0 0 20px rgba(220,38,38,0.08), inset 0 0 30px rgba(220,38,38,0.04);
}

/* ===================== SECTION HEADER ===================== */
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.section-header h2 { font-size: 1.15rem; font-weight: 700; font-family:'Rajdhani',sans-serif; letter-spacing:1px; text-transform:uppercase; }

/* ===================== EMPTY STATE ===================== */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 16px; filter: grayscale(0.5); }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; font-family:'Rajdhani',sans-serif; }
.empty-state p { font-size: 0.87rem; }

/* ===================== PROFILE ===================== */
.profile-avatar {
  width: 70px; height: 70px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; font-family:'Orbitron',monospace;
  box-shadow: 0 0 25px rgba(220,38,38,0.4);
}

/* ===================== FILTER BAR ===================== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.filter-chip {
  padding: 6px 16px; border-radius: 4px; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); border: 1px solid var(--border-dim);
  color: var(--text-muted); background: var(--bg-card);
  font-family:'Rajdhani',sans-serif; letter-spacing:.8px; text-transform:uppercase;
}
.filter-chip:hover { border-color: rgba(220,38,38,0.3); color: var(--red-bright); }
.filter-chip.active { background: linear-gradient(135deg, var(--red), var(--red-deep)); border-color:transparent; color:#fff; box-shadow:0 0 12px rgba(220,38,38,0.3); }

/* Search box */
.search-box { position: relative; display: flex; align-items: center; }
.search-box input { padding-left: 40px; }
.search-box .search-icon { position: absolute; left: 13px; color: var(--text-muted); font-size: 1rem; pointer-events:none; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn       { from{opacity:0} to{opacity:1} }
@keyframes fadeInUp     { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideUp      { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideInRight { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }
@keyframes pulse-red    { 0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,0.4)} 50%{box-shadow:0 0 0 10px rgba(220,38,38,0)} }
@keyframes blink        { 0%,100%{opacity:1;box-shadow:0 0 6px var(--red-bright)} 50%{opacity:.4;box-shadow:none} }
@keyframes spin         { to{transform:rotate(360deg)} }
@keyframes glitch-1     { 0%,100%{clip-path:inset(0)} 25%{clip-path:inset(8% 0 78% 0);transform:translateX(-2px)} 50%{clip-path:inset(55% 0 18% 0);transform:translateX(2px)} 75%{clip-path:inset(30% 0 45% 0);transform:translateX(-1px)} }

.fade-in    { animation: fadeIn .3s ease; }
.fade-in-up { animation: fadeInUp .4s ease; }

/* ===================== RED ACCENT DIVIDER ===================== */
.red-divider {
  height: 1px; margin: 20px 0;
  background: linear-gradient(90deg, var(--red), rgba(220,38,38,0.3), transparent);
}

/* ===================== HAMBURGER BUTTON ===================== */
.hamburger-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(153,27,27,0.05));
  border: 1px solid rgba(220,38,38,0.4);
  color: var(--red-bright); cursor: pointer; font-size: 1.5rem;
  transition: var(--transition); flex-shrink: 0;
  box-shadow: 0 0 15px rgba(220,38,38,0.2), inset 0 0 10px rgba(220,38,38,0.1);
}
.hamburger-btn:hover { 
  background: linear-gradient(135deg, rgba(220,38,38,0.25), rgba(153,27,27,0.1)); 
  border-color: var(--red); 
  box-shadow: 0 0 20px rgba(220,38,38,0.4), inset 0 0 15px rgba(220,38,38,0.2);
  transform: translateY(-1px);
}
.hamburger-btn:active { transform: scale(0.94); }

/* ===================== SIDEBAR OVERLAY (mobile backdrop) ===================== */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 190;
  animation: fadeIn .25s ease;
}
.sidebar-overlay.active { display: block; }

/* Sidebar close button (mobile only) */
.sidebar-close-btn {
  display: none;
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(220,38,38,0.2), rgba(153,27,27,0.1));
  border: 1px solid rgba(220,38,38,0.4);
  color: var(--red-bright); cursor: pointer; font-size: 1.2rem;
  align-items: center; justify-content: center;
  transition: var(--transition); z-index: 10;
  box-shadow: 0 0 15px rgba(220,38,38,0.2);
}
.sidebar-close-btn:hover { 
  background: var(--red); color: #fff; 
  box-shadow: 0 0 20px rgba(220,38,38,0.5);
  transform: rotate(90deg);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 800px) {
  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    z-index: 200;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0,0,0,0.8), 0 0 60px rgba(220,38,38,0.1);
  }
  .sidebar-close-btn { display: flex; }
  .sidebar-logo { padding-right: 50px; }

  /* Main layout */
  .main-content { margin-left: 0; }
  .page-content { padding: 14px 12px; }
  .topbar { padding: 10px 14px; }

  /* Hamburger */
  .hamburger-btn { display: flex; }

  /* Landing page */
  .landing-nav { padding: 12px 16px; }
  .landing-nav .nav-actions { gap: 8px; }
  .landing-nav .btn { padding: 8px 14px; font-size: 0.78rem; }

  /* Stats grid - 2 columns on mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; gap: 12px; }
  .stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .stat-info .value { font-size: 1.2rem; }

  /* Game keys grid - 1 column */
  .keys-grid { grid-template-columns: 1fr; }

  /* Dashboard 2-column grids -> 1 column */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Tables - horizontal scroll with better UX */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }
  thead th { font-size: 0.65rem; padding: 10px 12px; }
  tbody td { padding: 10px 12px; font-size: 0.82rem; }

  /* Topup grid */
  .topup-grid { grid-template-columns: repeat(2, 1fr); }

  /* Modal */
  .modal { padding: 20px 16px; border-radius: 12px 12px 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: 100% !important; width: 100%; }

  /* Hero stats */
  .hero-stats { gap: 24px; }

  /* Filter bar */
  .filter-bar { gap: 7px; }
  .filter-chip { padding: 5px 11px; font-size: 0.72rem; }

  /* Section header */
  .section-header { flex-wrap: wrap; gap: 10px; }

  /* Topbar title truncate */
  .topbar h2 { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .topbar-right { gap: 8px; }
  .coin-display { padding: 5px 10px; font-size: 0.8rem; }

  /* Chat */
  .chat-container { height: 420px; }
  .chat-reseller-list { width: 120px; }
  .chat-msg { max-width: 85%; }

  /* Home section */
  .home-section { padding: 40px 16px; }
  .home-nav { padding: 14px 16px; }
  .home-nav-logo .brand-title { font-size: 0.9rem; letter-spacing: 1.5px; }

  /* Stories */
  .stories-tray { gap: 10px; }

  /* Toast */
  #toast-container { bottom: 80px; right: 12px; left: 12px; max-width: 100%; }

  /* Help widget */
  #help-widget { bottom: 80px; left: 14px; }

  /* Key reveal - wrap on mobile */
  .key-reveal { font-size: 0.82rem; letter-spacing: 1px; word-break: break-all; }
}

/* Very small screens — icons only */
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topup-grid { grid-template-columns: 1fr 1fr; }
  .landing-nav .btn:last-child { display: none; }
}

/* Tablets (800px - 1024px) */
@media (min-width: 801px) and (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .page-content { padding: 20px 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .keys-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== NEW HOMEPAGE ===================== */
.home-hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  background: #000; overflow: hidden;
}
.home-hero-img {
  position: absolute; inset: 0; z-index: 0;
  background: url('hero.png') center/cover no-repeat;
  opacity: 0.35; filter: saturate(1.4) contrast(1.1);
}
.home-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.7) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(220,38,38,0.25) 0%, transparent 55%);
}
.home-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events:none;
  background-image:
    linear-gradient(rgba(220,38,38,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.home-nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  border-bottom: 1px solid rgba(220,38,38,0.2);
  background: rgba(0,0,0,0.6); backdrop-filter: blur(12px);
}
.home-nav::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--red) 40%, var(--red-bright) 60%, transparent);
}
.home-nav-logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.home-nav-logo .logo-box {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(220,38,38,0.5);
}
.home-nav-logo .brand-title {
  font-family: 'Orbitron', monospace; font-size: 1.2rem; font-weight: 900;
  letter-spacing: 3px; color: #fff;
  text-shadow: 0 0 20px rgba(220,38,38,0.8);
}
.home-nav-logo .brand-sub { font-size: .65rem; color: var(--red-bright); letter-spacing: 2px; text-transform: uppercase; }

.home-hero-content {
  position: relative; z-index: 5;
  flex: 1; display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 60px 20px 40px;
}
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 22px; border-radius: 3px;
  background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.35);
  font-size: .75rem; font-weight: 800; color: #fca5a5;
  letter-spacing: 2.5px; text-transform: uppercase; font-family: 'Rajdhani', sans-serif;
  margin-bottom: 28px; animation: fadeInUp .4s ease;
}
.home-eyebrow .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright); animation: blink 1.5s infinite;
}
.home-main-title {
  font-family: 'Orbitron', monospace; font-weight: 900; line-height: 1.05;
  font-size: clamp(2.2rem, 6vw, 5rem);
  margin-bottom: 8px; animation: fadeInUp .5s ease .1s both;
  color: #fff; text-shadow: 0 0 40px rgba(220,38,38,0.6);
}
.home-main-title .red-word {
  background: linear-gradient(135deg, var(--red-bright), #ff6060, var(--red));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(220,38,38,0.8));
}
.home-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.7);
  max-width: 600px; line-height: 1.7; margin-bottom: 40px;
  animation: fadeInUp .5s ease .2s both;
}
.home-cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; animation: fadeInUp .5s ease .3s both; }
.btn-hero-primary {
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff; font-family: 'Orbitron', monospace; font-size: .9rem; font-weight: 700;
  padding: 16px 36px; border-radius: 5px; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 2px;
  box-shadow: 0 0 40px rgba(220,38,38,0.5), 0 8px 30px rgba(0,0,0,0.5);
  transition: all .2s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-hero-primary:hover { box-shadow: 0 0 60px rgba(220,38,38,0.7), 0 10px 40px rgba(0,0,0,0.6); transform: translateY(-2px) scale(1.02); }
.btn-hero-ghost {
  background: rgba(255,255,255,0.06); color: #fff;
  font-family: 'Orbitron', monospace; font-size: .85rem; font-weight: 700;
  padding: 16px 32px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.15); cursor: pointer;
  text-transform: uppercase; letter-spacing: 2px; backdrop-filter: blur(8px);
  transition: all .2s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-hero-ghost:hover { border-color: rgba(220,38,38,0.5); background: rgba(220,38,38,0.1); }

/* Platform chips on hero */
.home-platforms {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 40px; animation: fadeInUp .5s ease .4s both;
}
.plat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  font-size: .78rem; font-weight: 700; color: rgba(255,255,255,0.7);
  font-family: 'Rajdhani', sans-serif; letter-spacing: 1px; text-transform: uppercase;
  backdrop-filter: blur(8px); cursor: default;
}

/* Stats strip */
.home-stats-strip {
  position: relative; z-index: 5;
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  border-top: 1px solid rgba(220,38,38,0.2);
  background: rgba(0,0,0,0.75); backdrop-filter: blur(12px);
}
.home-stat-cell {
  flex: 1; min-width: 150px; text-align: center;
  padding: 28px 20px;
  border-right: 1px solid rgba(220,38,38,0.12);
  position: relative;
}
.home-stat-cell:last-child { border-right: none; }
.home-stat-cell::before {
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  height: 2px; width: 40px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.home-stat-val {
  font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 900;
  color: var(--red-bright); display: block; line-height: 1.1;
  text-shadow: 0 0 20px rgba(220,38,38,0.5);
}
.home-stat-label { font-size: .68rem; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; font-family: 'Rajdhani', sans-serif; margin-top: 4px; display: block; }

/* Featured games section */
.home-section { padding: 80px 60px; position: relative; z-index: 2; }
.home-section-title {
  text-align: center; margin-bottom: 50px;
}
.home-section-title h2 {
  font-family: 'Orbitron', monospace; font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; color: #fff; margin-bottom: 10px;
}
.home-section-title h2 span { color: var(--red-bright); }
.home-section-title p { color: rgba(255,255,255,0.5); font-size: .9rem; }

/* Featured game cards on homepage */
.home-games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
.home-game-card {
  border-radius: 10px; overflow: hidden; position: relative;
  aspect-ratio: 3/4; cursor: pointer;
  transition: all .3s; border: 1px solid rgba(255,255,255,0.05);
}
.home-game-card:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(220,38,38,0.4); box-shadow: 0 20px 50px rgba(220,38,38,0.2), 0 10px 30px rgba(0,0,0,0.6); }
.home-game-card-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.home-game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.home-game-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.8;
}
.home-game-card-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
}
.home-game-card-info strong { display: block; font-size: .88rem; font-weight: 700; font-family: 'Rajdhani', sans-serif; margin-bottom: 4px; }
.home-game-card-info .hgc-price { color: var(--gold); font-family: 'Orbitron', monospace; font-size: .78rem; font-weight: 800; }

/* How it works */
.home-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.home-step {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(220,38,38,0.12);
  border-radius: 12px; padding: 28px; text-align: center; position: relative; overflow: hidden;
  transition: all .3s;
}
.home-step:hover { border-color: rgba(220,38,38,0.3); background: rgba(220,38,38,0.05); transform: translateY(-3px); }
.home-step::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent); opacity:0; transition:.3s;
}
.home-step:hover::before { opacity:1; }
.home-step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace; font-size: 1.2rem; font-weight: 900;
  margin: 0 auto 16px; box-shadow: 0 0 20px rgba(220,38,38,0.4);
}
.home-step h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.home-step p { font-size: .84rem; }

/* Home footer */
.home-footer {
  background: #000; border-top: 1px solid rgba(220,38,38,0.15);
  padding: 32px 60px; text-align: center;
  position: relative; z-index: 2;
}
.home-footer::before {
  content:''; display:block; height:1px; margin-bottom:28px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.home-footer p { font-size: .82rem; color: rgba(255,255,255,0.3); }
.home-footer a { color: var(--red-bright); }

/* ===================== HELP CHAT WIDGET ===================== */
#help-widget {
  position: fixed; bottom: 28px; left: 28px; z-index: 8000;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.help-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; cursor: pointer; box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all .3s; border: 2px solid rgba(255,255,255,0.1);
  animation: help-pulse 3s infinite;
}
.help-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.7); }
@keyframes help-pulse { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.5)} 50%{box-shadow:0 4px 30px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.12)} }

.help-panel {
  background: #111; border: 1px solid rgba(220,38,38,0.2); border-radius: 14px;
  padding: 18px; min-width: 240px; box-shadow: var(--shadow-lg);
  animation: slideUp .3s ease; display: none; flex-direction: column; gap: 10px;
  position: relative;
}
.help-panel::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px; border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--red), #25D366);
}
.help-panel.open { display: flex; }
.help-panel-header {
  font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700;
  color: #fff; letter-spacing: .8px; margin-bottom: 4px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.help-panel-header .online-dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; box-shadow: 0 0 8px #25D366; animation: blink 1.5s infinite; }
.help-contact-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 8px; cursor: pointer;
  text-decoration: none; color: #fff; font-weight: 600; font-size: .88rem;
  transition: all .2s; border: 1px solid rgba(255,255,255,0.08);
}
.help-contact-btn:hover { transform: translateX(3px); }
.help-wa { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.2); }
.help-wa:hover { background: rgba(37,211,102,0.18); border-color: rgba(37,211,102,0.4); }
.help-tg { background: rgba(0,136,204,0.1); border-color: rgba(0,136,204,0.2); }
.help-tg:hover { background: rgba(0,136,204,0.18); border-color: rgba(0,136,204,0.4); }
.help-contact-icon { font-size: 1.4rem; }
.help-contact-info strong { display: block; font-family: 'Rajdhani',sans-serif; letter-spacing: .5px; }
.help-contact-info small { font-size: .74rem; color: var(--text-muted); }

/* ===================== BUY CONFIRM MODAL ===================== */
.buy-confirm-card {
  background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2);
  border-radius: 10px; padding: 16px; text-align: center; margin-bottom: 8px;
}
.buy-confirm-card .game-icon { font-size: 3rem; display: block; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(220,38,38,0.4)); }
.buy-confirm-card .game-name { font-family: 'Rajdhani',sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: .5px; }
.buy-confirm-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: .87rem; }
.buy-confirm-row:last-child { border-bottom: none; }
.buy-confirm-row span:first-child { color: var(--text-muted); }
.buy-confirm-row span:last-child { font-weight: 700; }

/* ===================== GAME CARD COVERS (Steam CDN) ===================== */
.key-card-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.key-card-img-fallback { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:4rem; z-index:1; }

/* ===================== LANDING FEATURES SECTION ===================== */
.landing-features {
  padding: 80px 60px; position: relative; z-index: 1;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(220,38,38,0.12);
  border-bottom: 1px solid rgba(220,38,38,0.12);
}
.features-heading { text-align: center; margin-bottom: 52px; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(220,38,38,0.12);
  border-radius: 14px; padding: 32px 24px; text-align: center;
  transition: all .3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity:0; transition:opacity .3s;
}
.feature-card:hover { border-color: rgba(220,38,38,0.35); background: rgba(220,38,38,0.06); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(220,38,38,0.1); }
.feature-card:hover::before { opacity:1; }
.feature-icon {
  font-size: 2.6rem; margin-bottom: 18px; display: block;
  filter: drop-shadow(0 0 12px rgba(220,38,38,0.5));
}
.feature-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: .5px; }
.feature-card p { font-size: .87rem; color: var(--text-muted); line-height: 1.65; }

/* ===================== LANDING CTA SECTION ===================== */
.landing-cta {
  padding: 100px 20px; text-align: center; position: relative; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(220,38,38,0.1) 0%, transparent 70%);
}
.landing-cta h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); color: #fff; margin-bottom: 14px; }
.landing-cta p { color: var(--text-muted); font-size: 1rem; margin-bottom: 36px; }
.landing-cta .btn { font-size: 1.05rem; padding: 16px 40px; }

/* ===================== LANDING FOOTER ===================== */
.landing-footer {
  padding: 32px 20px 28px; text-align: center;
  background: rgba(0,0,0,0.6);
  border-top: 1px solid rgba(220,38,38,0.12);
  position: relative; z-index: 1;
}
.landing-footer .nav-logo { justify-content: center; margin-bottom: 10px; }

/* Show reseller badge only on desktop */
@media (min-width: 801px) {
  #reseller-badge-desktop { display: inline-flex !important; }
}


/* ===================== LOGO IMAGE ===================== */
.logo-img {
  width: 38px; height: 38px; border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(220,38,38,0.5);
  flex-shrink: 0;
  border: 1px solid rgba(220,38,38,0.3);
}
.nav-logo .logo-img { width: 38px; height: 38px; }
.auth-logo .logo-img { animation: pulse-red 3s infinite; }

/* ===================== GLITCH TITLE ===================== */
.glitch-title {
  position: relative; display: inline-block;
}
.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%; overflow: hidden;
  background: transparent;
}
.glitch-title::before {
  left: 2px; text-shadow: -1px 0 #ff0000;
  animation: glitch-clip-1 4s infinite linear alternate-reverse;
  opacity: 0.6;
}
.glitch-title::after {
  left: -2px; text-shadow: 1px 0 #00ffcc;
  animation: glitch-clip-2 4s infinite linear alternate-reverse;
  opacity: 0.4;
}
@keyframes glitch-clip-1 {
  0%,100%  { clip-path: inset(0 0 98% 0); }
  20%      { clip-path: inset(30% 0 60% 0); transform: translateX(3px); }
  40%      { clip-path: inset(70% 0 10% 0); transform: translateX(-2px); }
  60%      { clip-path: inset(10% 0 80% 0); transform: translateX(2px); }
  80%      { clip-path: inset(55% 0 30% 0); transform: translateX(-3px); }
}
@keyframes glitch-clip-2 {
  0%,100%  { clip-path: inset(98% 0 0 0); }
  20%      { clip-path: inset(10% 0 70% 0); transform: translateX(-3px); }
  40%      { clip-path: inset(60% 0 20% 0); transform: translateX(2px); }
  60%      { clip-path: inset(20% 0 50% 0); transform: translateX(-2px); }
  80%      { clip-path: inset(40% 0 40% 0); transform: translateX(3px); }
}

.hack-subtitle {
  color: var(--text-muted); margin-top: 10px; font-size: .92rem;
  font-family: 'Courier New', monospace;
  animation: fadeInUp .5s ease .2s both;
}

/* ===================== HACKING TERMINAL ===================== */
.hack-terminal {
  background: #0a0a0a;
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 10px; overflow: hidden;
  max-width: 820px; margin: 0 auto;
  box-shadow: 0 0 40px rgba(220,38,38,0.1), 0 20px 60px rgba(0,0,0,0.8);
  font-family: 'Courier New', monospace;
  animation: fadeInUp .6s ease .3s both;
}
.hack-terminal-bar {
  background: #1a1a1a;
  border-bottom: 1px solid rgba(220,38,38,0.2);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.t-dot {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
}
.t-red    { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.t-yellow { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.t-green  { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.t-title {
  flex: 1; text-align: center;
  font-size: .75rem; color: rgba(255,255,255,0.4);
  font-family: 'Courier New', monospace; letter-spacing: .5px;
}
.hack-terminal-body {
  padding: 20px 18px;
  min-height: 220px; max-height: 360px;
  overflow-y: auto;
  background: linear-gradient(to bottom, #050505, #080808);
}
.hack-terminal-body::-webkit-scrollbar { width: 3px; }
.hack-terminal-body::-webkit-scrollbar-thumb { background: rgba(220,38,38,0.4); }

.hack-line {
  display: flex; align-items: baseline; gap: 0;
  font-size: .82rem; line-height: 1.8;
  min-height: 1.5em;
}
.hack-prefix {
  font-weight: 700; white-space: pre; font-family: 'Courier New', monospace;
  flex-shrink: 0;
}
.hack-text {
  font-family: 'Courier New', monospace; color: #e5e5e5;
  word-break: break-all;
}
.hack-prompt {
  display: flex; align-items: center; gap: 6px; font-size: .82rem;
  color: #4ade80; font-family: 'Courier New', monospace;
}
.hack-cursor-line {
  display: inline-block; width: 8px; height: 14px;
  background: #4ade80; animation: blink 1s step-end infinite;
  vertical-align: middle;
}
.hack-blink {
  display: inline-block; color: #ef4444;
  animation: blink 0.8s step-end infinite;
  font-family: 'Courier New', monospace;
  font-size: inherit; line-height: 1;
}

/* ===================== AUTH HACK LINE ===================== */
.auth-hack-line {
  margin-top: 4px;
  padding: 8px 12px;
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  min-height: 32px;
  display: flex; align-items: center; gap: 4px;
  color: #4ade80;
  overflow: hidden;
}

/* ===================== HERO ANIMATION ===================== */
.hero-glitch-wrap {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  letter-spacing: 3px;
  position: relative;
  /* gradient applied by JS */
  min-width: 2ch;
}

/* Blinking typewriter cursor in paragraph */
.hero-type-cursor {
  display: inline-block;
  color: var(--red-bright);
  font-weight: 700;
  animation: blink .7s step-end infinite;
  margin-left: 1px;
  font-family: 'Orbitron', monospace;
}

/* Subtitle red border-right cursor from JS - smooth transition */
#hero-subtitle-text {
  transition: opacity .2s;
  font-family: 'Orbitron', monospace;
}

/* Stats and buttons smooth reveal */
#hero-btns  { transition: opacity .5s ease, transform .5s ease; }
#hero-stats { transition: opacity .6s ease .1s, transform .6s ease .1s; }
#hero-div   { transition: opacity .5s ease; }

/* Scanline sweep animation on hero area */
.landing-hero::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.6), transparent);
  animation: hero-scanline 3s ease-in-out infinite;
  pointer-events: none; z-index: 2;
}
@keyframes hero-scanline {
  0%   { top: 10%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* ===================== LANDING FOOTER ===================== */
.landing-footer {
  border-top: 1px solid rgba(220,38,38,0.18);
  padding: 28px 20px 32px;
  text-align: center;
  position: relative;
  background: rgba(3,3,3,0.95);
  z-index: 1;
}
.landing-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 40%, var(--red-bright) 60%, transparent);
}

/* ===== PREMIUM FOOTER — Cyber-Signature Style ===== */
.footer-premium-credit {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  transition: all 0.3s ease;
}

.credit-main {
  font-weight: 500;
  text-transform: uppercase;
}

.credit-separator {
  color: var(--red);
  font-weight: bold;
  opacity: 0.6;
}

.credit-dev {
  display: flex;
  align-items: center;
  gap: 6px;
}

.heart-pulse {
  display: inline-block;
  color: #ff003c;
  animation: heart-beat 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(255, 0, 60, 0.4));
}

.dev-name-glow {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  color: #fff;
  position: relative;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.dev-name-glow::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  color: var(--red-bright);
  overflow: hidden;
  border-right: 2px solid var(--red-bright);
  animation: signature-scan 4s steps(10) infinite;
  filter: drop-shadow(0 0 8px var(--red-bright));
}

.footer-premium-credit:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer-premium-credit:hover .dev-name-glow {
  color: var(--red-bright);
  text-shadow: 0 0 15px var(--red-bright);
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

@keyframes signature-scan {
  0%, 10% { width: 0; opacity: 0; }
  15% { opacity: 1; }
  60%, 80% { width: 100%; opacity: 1; }
  90%, 100% { width: 100%; opacity: 0; }
}

/* Add a subtle digital rain effect behind the footer */
.landing-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(220, 38, 38, 0.05), transparent);
  pointer-events: none;
  z-index: -1;
}


/* ===================== CHAT SYSTEM (CYBER-GLASSMORPHISM THEME) ===================== */
.chat-container { 
  display: flex; 
  flex-direction: column; 
  height: 650px; 
  max-height: 75vh; 
  background: rgba(15, 15, 18, 0.7); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 38, 38, 0.2); 
  border-radius: 20px; 
  overflow: hidden; 
  position: relative; 
  font-family: 'Inter', sans-serif; 
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(220, 38, 38, 0.05); 
}

.chat-container::before { 
  content: ''; 
  position: absolute; 
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.5), transparent);
  z-index: 5;
}

.chat-layout { display: flex; height: 100%; }

/* Sidebar: Reseller List */
.chat-reseller-list { 
  display: flex; 
  flex-direction: column; 
  width: 280px; 
  border-right: 1px solid rgba(255, 255, 255, 0.05); 
  background: rgba(0, 0, 0, 0.3); 
  overflow-y: auto; 
  z-index: 2;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.chat-reseller-item { 
  padding: 18px 20px; 
  cursor: pointer; 
  font-size: 0.9rem; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.02); 
}

.chat-reseller-item:hover { background: rgba(220, 38, 38, 0.08); }

.chat-reseller-item.active { 
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.12) 0%, transparent 100%); 
  border-left: 4px solid var(--red-bright); 
  padding-left: 16px;
}

.chat-reseller-name { font-weight: 600; color: #fff; letter-spacing: 0.5px; }

/* Main Chat Area */
.chat-main { display: flex; flex-direction: column; flex: 1; position: relative; z-index: 2; background: rgba(0, 0, 0, 0.1); }

.chat-topbar { 
  padding: 18px 25px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
  background: rgba(10, 10, 12, 0.5); 
  color: #fff; 
  display: flex; 
  align-items: center; 
  font-weight: 700; 
  font-size: 1rem; 
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 25px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  position: relative; 
  scroll-behavior: smooth;
}

/* Message Bubbles */
.chat-msg { 
  max-width: 75%; 
  padding: 12px 18px; 
  border-radius: 18px; 
  position: relative; 
  font-size: 0.92rem; 
  line-height: 1.5; 
  color: #e0e0e0; 
  margin-bottom: 4px; 
  animation: msg-slide-up 0.4s ease-out backwards;
}

@keyframes msg-slide-up {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg-admin { 
  align-self: flex-start; 
  background: rgba(255, 255, 255, 0.06); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-bottom-left-radius: 4px; 
}

.chat-msg-user { 
  align-self: flex-end; 
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(153, 27, 27, 0.9)); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-bottom-right-radius: 4px; 
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.chat-msg-header { 
  display: block; 
  font-size: 0.65rem; 
  opacity: 0.5; 
  margin-top: 6px; 
  text-align: right;
  font-family: 'Rajdhani', sans-serif; 
  text-transform: uppercase; 
  letter-spacing: 0.8px; 
}

.chat-text { word-break: break-word; white-space: pre-wrap; }

/* Input Area */
.chat-input-area { 
  display: flex; 
  gap: 15px; 
  padding: 20px 25px; 
  background: rgba(10, 10, 12, 0.8); 
  align-items: center; 
  border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.chat-input { 
  flex: 1; 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 30px; 
  padding: 14px 22px; 
  color: #fff; 
  font-size: 0.95rem; 
  outline: none; 
  transition: all 0.3s; 
}

.chat-input:focus { 
  background: rgba(255, 255, 255, 0.06); 
  border-color: var(--red-bright); 
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.15); 
}

.chat-btn { 
  background: linear-gradient(135deg, var(--red), var(--red-deep)); 
  border: none; 
  border-radius: 50%; 
  width: 50px; 
  height: 50px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: #fff; 
  font-size: 1.3rem; 
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3); 
}

.chat-btn:hover { 
  transform: scale(1.1) rotate(-5deg); 
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.5); 
  background: var(--red-bright); 
}

.chat-btn:active { transform: scale(0.9); }


/* ===================== PREMIUM STORIES SYSTEM ===================== */
.stories-container.premium-tray {
  margin-bottom: 30px;
  padding: 15px 5px;
  background: rgba(220, 38, 38, 0.02);
  border-radius: 15px;
  border: 1px solid rgba(220, 38, 38, 0.05);
  overflow: hidden;
  position: relative;
}

.stories-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 5px 10px;
  scrollbar-width: none;
}

.stories-scroll::-webkit-scrollbar { display: none; }

.story-card {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-card:hover { transform: scale(1.08); }

.story-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: #000;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.story-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  z-index: -1;
  background: linear-gradient(45deg, var(--red), #ff6b6b, var(--red-deep));
  opacity: 0.8;
}

.story-avatar-wrap.unviewed::before {
  animation: neon-rotate 3s linear infinite;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.story-avatar-wrap.viewed::before {
  background: rgba(255, 255, 255, 0.15);
  opacity: 0.4;
}

.story-avatar-wrap.border-gold::before {
  background: linear-gradient(45deg, #ffd700, #fff3b0, #b8860b);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #000;
}

.story-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}

.story-card:hover .story-label { color: #fff; }

.story-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 10px;
  background: #000;
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.story-del-btn {
  position: absolute;
  top: -2px;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: 2px solid #000;
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-card:hover .story-del-btn {
  opacity: 1;
  transform: scale(1);
}

/* Add Story Button */
.neon-border-dash::before {
  background: linear-gradient(45deg, var(--red), transparent, var(--red)) !important;
  border: 2px dashed var(--red);
  animation: dash-rotate 10s linear infinite;
}

.story-avatar-add {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.1);
  transition: 0.3s;
}

.plus-icon {
  font-size: 1.8rem;
  color: var(--red-bright);
  text-shadow: 0 0 10px var(--red);
}

.story-card:hover .story-avatar-add {
  background: rgba(220, 38, 38, 0.2);
}

/* Story Viewer Premium */
.story-viewer-premium {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.sv-container {
  width: 100%;
  max-width: 500px;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #050505;
}

.sv-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px 20px 40px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.sv-progress-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 15px;
}

.sv-progress-fill {
  height: 2px;
  flex: 1;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.sv-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 5s linear;
}

.sv-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sv-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sv-user-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--red-bright);
  padding: 2px;
  background: #000;
}

.sv-user-pic.border-gold { border-color: var(--gold); }

.sv-user-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.sv-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
}

.sv-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  opacity: 0.7;
  transition: 0.2s;
}

.sv-close-btn:hover { opacity: 1; transform: rotate(90deg); }

.sv-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sv-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sv-caption-wrap {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  text-align: center;
}

.sv-caption-text {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.5;
  text-shadow: 0 2px 8px #000;
  font-family: 'Inter', sans-serif;
}

@keyframes neon-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dash-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 500px) {
  .sv-container { border-radius: 0; }
}


/* Group Chat Styles */
.chat-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.chat-tab-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}
.chat-tab-btn.active {
  background: rgba(220,38,38,0.15);
  border-color: var(--red);
  color: var(--red-bright);
}
