/* =====================================================
   LUXURY ROULETTE - MAIN STYLESHEET
   ===================================================== */

:root {
  --bg-primary:    #07070f;
  --bg-secondary:  #0d0d1a;
  --bg-card:       #111124;
  --bg-card2:      #16162a;
  --border-color:  rgba(212,175,55,0.2);
  --gold:          #D4AF37;
  --gold-light:    #f0d060;
  --gold-dim:      rgba(212,175,55,0.15);
  --red:           #c0392b;
  --red-light:     #e74c3c;
  --green-casino:  #1a7a2b;
  --text:          #f0f0f0;
  --text-primary:  #f0f0f0;
  --text-secondary:#9090b0;
  --text-muted:    #555580;
  --success:       #27ae60;
  --danger:        #e74c3c;
  --warning:       #f39c12;
  --info:          #2980b9;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold:   0 0 20px rgba(212,175,55,0.3);
  --transition:    all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── Typography ────────────────────────────────── */
h1,h2,h3,h4,h5 { font-weight: 700; color: var(--text-primary); }
.text-gold { color: var(--gold); }
.text-red  { color: var(--red-light); }
.text-green{ color: var(--success); }
.text-muted{ color: var(--text-secondary); }
.text-center { text-align: center; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* ─── Utility ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }  .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }.mb-16 { margin-bottom: 16px; }.mb-24 { margin-bottom: 24px; }
.p-16  { padding: 16px; }    .p-24  { padding: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.rounded { border-radius: var(--radius); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Navbar ─────────────────────────────────────── */
.navbar {
  background: rgba(7,7,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}
.navbar-brand span { -webkit-text-fill-color: var(--red-light); }
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--gold-dim);
  color: var(--gold);
}
.navbar-balance {
  background: var(--gold-dim);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: var(--transition); }

/* ─── Cards ──────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { border-color: rgba(212,175,55,0.4); }
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title::before { content: ''; display: inline-block; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
  border-radius: 0 var(--radius) 0 100%;
}
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
.stat-card .stat-change { font-size: 0.8rem; margin-top: 6px; }
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8960c);
  color: #000;
}
.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
  color: #000;
}
.btn-red {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: #fff;
}
.btn-red:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-danger:hover  { filter: brightness(1.1); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ─── Forms ──────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); background: rgba(212,175,55,0.05); box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AF37' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.85rem; color: var(--danger); margin-top: 4px; }

/* ─── Alerts ─────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-success { background: rgba(39,174,96,0.12); border-color: rgba(39,174,96,0.4); color: #5dde8b; }
.alert-danger  { background: rgba(231,76,60,0.12);  border-color: rgba(231,76,60,0.4);  color: #ff7060; }
.alert-warning { background: rgba(243,156,18,0.12); border-color: rgba(243,156,18,0.4); color: #f5c842; }
.alert-info    { background: rgba(41,128,185,0.12); border-color: rgba(41,128,185,0.4); color: #60aeff; }

/* ─── Badges ─────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-pending  { background: rgba(243,156,18,0.2);  color: #f5c842; border: 1px solid rgba(243,156,18,0.4); }
.badge-approved { background: rgba(39,174,96,0.2);   color: #5dde8b; border: 1px solid rgba(39,174,96,0.4); }
.badge-rejected { background: rgba(231,76,60,0.2);   color: #ff7060; border: 1px solid rgba(231,76,60,0.4); }
.badge-red   { background: rgba(192,57,43,0.3);   color: #ff6b5b; }
.badge-black { background: rgba(255,255,255,0.08); color: #ccc; }
.badge-green { background: rgba(26,122,43,0.3);   color: #5dde8b; }
.badge-gold  { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border-color); }

/* ─── Tables ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th {
  background: rgba(212,175,55,0.08);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}
td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
tr:hover td { background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: none; }

/* ─── Sidebar layout ─────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-brand {
  padding: 24px 20px;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-section-title {
  padding: 12px 20px 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--gold-dim);
  color: var(--gold);
  border-left-color: var(--gold);
}
.sidebar-link .icon { width: 18px; text-align: center; font-size: 1rem; }
.main-content { flex: 1; padding: 32px; overflow-x: hidden; }
.page-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.page-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 32px; }

/* ─── Live activity feed ─────────────────────────── */
#activity-feed {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 320px;
}
.activity-popup {
  background: rgba(13,13,26,0.95);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInLeft 0.4s ease, fadeOut 0.4s ease 4.6s forwards;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.activity-popup .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.activity-popup .activity-text { font-size: 0.82rem; line-height: 1.4; }
.activity-popup .activity-text strong { color: var(--gold); }
.activity-popup .activity-time { font-size: 0.72rem; color: var(--text-muted); }
.win-popup   .avatar { background: rgba(212,175,55,0.2); }
.dep-popup   .avatar { background: rgba(39,174,96,0.2);  }
.with-popup  .avatar { background: rgba(231,76,60,0.2);  }

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ─── Auth pages ─────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,175,55,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(192,57,43,0.07) 0%, transparent 60%),
              var(--bg-primary);
  padding: 40px 20px;
}
.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo h1 {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ─── Landing ────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 80% at 20% 60%, rgba(192,57,43,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(212,175,55,0.12) 0%, transparent 60%),
    var(--bg-primary);
  padding: 60px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 540px; margin-bottom: 32px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat .value { font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.hero-stat .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.hero-image { position: relative; }
.hero-wheel-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.section { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.section-title span { color: var(--gold); }
.section-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 48px; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-card .stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }
.testimonial-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; font-style: italic; }
.testimonial-card .author { font-weight: 700; font-size: 0.88rem; }

.bonus-banner {
  background: linear-gradient(135deg, rgba(192,57,43,0.3), rgba(212,175,55,0.2));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bonus-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 60%);
  animation: rotateSlow 20s linear infinite;
}
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.bonus-amount { font-size: 4rem; font-weight: 900; color: var(--gold); }
.urgency-timer { display: flex; gap: 16px; justify-content: center; margin-top: 24px; }
.timer-block { background: rgba(0,0,0,0.4); border-radius: var(--radius-sm); padding: 12px 16px; text-align: center; min-width: 64px; }
.timer-block .num { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.timer-block .lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

.live-feed-section { background: var(--bg-secondary); border-radius: var(--radius); padding: 24px; }
.live-feed-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: fadeInDown 0.5s ease;
}
.live-feed-item:last-child { border-bottom: none; }
.live-feed-item .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-win  { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot-dep  { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dot-with { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
}
.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

/* ─── Crypto badge ───────────────────────────────── */
.crypto-option {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: transparent;
}
.crypto-option:hover, .crypto-option.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.crypto-option .crypto-icon { font-size: 2rem; margin-bottom: 8px; }
.crypto-option .crypto-name { font-weight: 700; font-size: 0.95rem; }
.crypto-option .crypto-rate { font-size: 0.78rem; color: var(--text-muted); }

.address-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: monospace;
  font-size: 0.82rem;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.copy-btn { color: var(--gold); font-size: 0.8rem; cursor: pointer; flex-shrink: 0; }
.copy-btn:hover { color: var(--gold-light); }

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #333;
  text-align: center;
  padding: 8px;
}

/* ─── Steps ──────────────────────────────────────── */
.steps { display: flex; gap: 0; }
.step { flex: 1; text-align: center; position: relative; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--border-color);
}
.step.done::after { background: var(--gold); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}
.step.active .step-num { background: var(--gold); color: #000; }
.step.done .step-num { background: var(--success); color: #fff; }
.step-label { font-size: 0.78rem; color: var(--text-muted); }

/* ─── History ────────────────────────────────────── */
.history-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.history-tab {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.history-tab:hover, .history-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ─── Pagination ─────────────────────────────────── */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }
.page-btn.disabled { opacity: 0.3; cursor: not-allowed; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .hero { padding: 40px 0; }
}

@media (max-width: 768px) {
  /* Grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Sidebar */
  .sidebar { display: none; }
  .sidebar.open {
    display: block;
    position: fixed;
    z-index: 200;
    width: 260px;
    top: 0; left: 0;
    height: 100vh;
    box-shadow: 4px 0 24px rgba(0,0,0,0.6);
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
  }
  .sidebar-overlay.open { display: block; }
  .hamburger { display: flex; }
  .main-content { padding: 16px 14px; }

  /* Navbar */
  .navbar { padding: 0 14px; height: 56px; }
  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: rgba(7,7,15,0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px 20px;
    gap: 4px;
    z-index: 150;
    backdrop-filter: blur(20px);
  }
  .navbar-nav.open .nav-link { padding: 12px 16px; font-size: 1rem; }
  .navbar-nav.open .btn { width: 100%; justify-content: center; margin-top: 8px; }
  .navbar-balance { font-size: 0.85rem; padding: 5px 10px; }

  /* Hero */
  .hero { min-height: auto; padding: 40px 0 50px; }
  .hero .container > div { grid-template-columns: 1fr !important; gap: 30px !important; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); letter-spacing: -0.5px; }
  .hero p   { font-size: 0.95rem; }
  .hero-image { display: flex; justify-content: center; }
  .hero-image > div { width: 220px !important; height: 220px !important; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; flex-wrap: wrap; margin-top: 28px; }
  .hero-stat .value { font-size: 1.3rem; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 0.9rem; margin-bottom: 28px; }

  /* Bonus banner */
  .bonus-banner { padding: 28px 18px; }
  .bonus-amount { font-size: 2.6rem; }
  .urgency-timer { gap: 10px; }
  .timer-block { min-width: 54px; padding: 10px 12px; }
  .timer-block .num { font-size: 1.5rem; }

  /* Live feed / how-it-works 2-col → 1-col */
  .live-feed-section { padding: 16px; }

  /* Steps */
  .steps { flex-direction: column; gap: 16px; }
  .step::after { display: none; }

  /* Auth */
  .auth-wrapper { padding: 20px 14px; }
  .auth-box { padding: 26px 18px; }
  .auth-logo h1 { font-size: 1.7rem; }

  /* Tables → horizontal scroll */
  .table-wrap { border-radius: 0; }
  th, td { padding: 10px 12px; font-size: 0.82rem; }

  /* Cards */
  .card { padding: 16px; }
  .stat-card { padding: 16px 18px; }
  .stat-card .stat-value { font-size: 1.5rem; }

  /* Buttons */
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }

  /* Activity popup — smaller on mobile */
  #activity-feed { max-width: 280px; left: 10px; bottom: 10px; }
  .activity-popup { padding: 10px 12px; }
  .activity-popup .activity-text { font-size: 0.76rem; }

  /* Footer */
  .footer { padding: 36px 0 20px; }
  .footer .grid-3 { gap: 24px; }

  /* Page title */
  .page-title { font-size: 1.3rem; }
  .page-subtitle { font-size: 0.85rem; margin-bottom: 20px; }

  /* Admin topbar stack */
  .admin-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar-actions { width: 100%; }
  .topbar-actions form { flex-wrap: wrap; gap: 8px; }
  .topbar-actions .search-box { flex: 1; min-width: 160px; }

  /* Dashboard stat grid */
  .metrics-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .grid-4, .metrics-grid { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: 1.7rem; }
  .bonus-amount { font-size: 2rem; }
  .section-title { font-size: 1.4rem; }
  .auth-box { padding: 20px 14px; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat { display: flex; gap: 12px; align-items: center; }
  .hero-stat .value { font-size: 1.2rem; }
  .timer-block { min-width: 46px; padding: 8px 10px; }
  .timer-block .num { font-size: 1.2rem; }
  /* Chips in chip row */
  .chip { width: 38px; height: 38px; font-size: 0.6rem; }
}

/* ─── Mobile Bottom Navigation ───────────────────── */
/* Always position:fixed → out of document flow on ALL viewport sizes */
.mob-bottom-nav {
  position: fixed;
  bottom: -80px; /* hidden below viewport on desktop */
  left: 0; right: 0;
  height: 60px;
  display: flex;
  flex-direction: row;
  background: rgba(8,8,12,0.98);
  border-top: 1px solid var(--border-color);
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.mbn-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  color: var(--text-muted); font-size: 0.56rem;
  text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none; transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  padding: 6px 4px; border-top: 2px solid transparent;
  position: relative;
}
.mbn-icon { font-size: 1.25rem; line-height: 1; }
.mbn-lbl  { font-size: 0.54rem; }
.mbn-tab.active { color: var(--gold); border-top-color: var(--gold); }
.mbn-tab:hover  { color: var(--gold); }
@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(231,76,60,0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(231,76,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}
.mbn-badge {
  position: absolute; top: 4px; right: calc(50% - 20px);
  background: #e74c3c; color: #fff;
  font-size: 0.55rem; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  animation: badge-pulse 1.8s ease-in-out infinite;
}
.notif-badge {
  margin-left: auto;
  background: #e74c3c; color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  animation: badge-pulse 1.8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .mob-bottom-nav { bottom: 0; pointer-events: auto; } /* slide into view */
  .app-layout .main-content { padding-bottom: 80px; }
  #activity-feed { bottom: 70px !important; }
}

/* ─── Dashboard mobile balance hero card ─────────── */
.dash-balance-card  { display: none; }
.dash-desktop-header { display: flex; }
@media (max-width: 768px) {
  .dash-balance-card {
    display: flex; flex-direction: column; align-items: center;
    background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
    border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 24px 20px 20px; margin-bottom: 20px; text-align: center;
  }
  .dash-balance-card .dbc-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
  .dash-balance-card .dbc-val { font-size: 2.8rem; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 16px; }
  .dash-balance-card .dbc-play { background: linear-gradient(135deg,#d4af37,#b8941f); color: #000; font-weight: 800; border-radius: 30px; padding: 12px 36px; font-size: 1rem; text-decoration: none; display: inline-block; }
  .dash-desktop-header { display: none; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 1.4rem; }
  .stat-card .stat-icon  { font-size: 1.6rem; margin-bottom: 4px; }
}
