/* ============================================================
   DAVID BROTHER MEGA TRUST LOTTERY — MAIN STYLES
   Dark luxury theme: Deep navy + gold + white
   © 2026 David Brother. All rights reserved.
   ============================================================ */

:root {
  --navy:       #0a0e1a;
  --navy-2:     #0f1628;
  --navy-3:     #141d35;
  --navy-card:  #121929;
  --gold:       #d4a017;
  --gold-2:     #f0c040;
  --gold-light: #ffd966;
  --gold-dim:   rgba(212,160,23,0.15);
  --gold-glow:  rgba(212,160,23,0.3);
  --white:      #ffffff;
  --white-80:   rgba(255,255,255,0.8);
  --white-50:   rgba(255,255,255,0.5);
  --white-20:   rgba(255,255,255,0.2);
  --white-10:   rgba(255,255,255,0.1);
  --white-5:    rgba(255,255,255,0.05);
  --green:      #10b981;
  --red:        #ef4444;
  --orange:     #f59e0b;
  --purple:     #8b5cf6;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold:0 8px 32px rgba(212,160,23,0.2);
  --font-display: 'Cinzel', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --sidebar-w:  260px;
  --nav-h:      70px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Page Loader ── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
  animation: loaderFailsafe 0.6s ease 3.5s forwards;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
@keyframes loaderFailsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.loader-logo {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: pulse 1.2s ease-in-out infinite;
}
.loader-gem {
  font-size: 3rem; color: var(--gold);
  filter: drop-shadow(0 0 16px var(--gold));
  animation: spin 2s linear infinite;
}
.loader-logo span {
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { color: var(--white-80); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--white-50); }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em;
  border: none; outline: none; transition: all var(--transition);
  cursor: pointer; white-space: nowrap; user-select: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: var(--navy); box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px var(--gold-glow);
  color: var(--navy);
}
.btn-outline {
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold-dim); color: var(--gold-2); }
.btn-ghost {
  background: var(--white-10); color: var(--white-80); border: none;
}
.btn-ghost:hover { background: var(--white-20); color: var(--white); }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.w-full { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { border-color: var(--gold-dim); box-shadow: var(--shadow-gold); }
.card-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--white-10); }
.card-title { font-family: var(--font-display); font-size: 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }
.card-gold {
  background: linear-gradient(135deg, rgba(212,160,23,0.12) 0%, rgba(212,160,23,0.04) 100%);
  border-color: rgba(212,160,23,0.3);
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white-50);
}
.form-control {
  width: 100%; padding: 11px 16px;
  background: var(--white-5); border: 1.5px solid var(--white-10);
  border-radius: var(--radius); color: var(--white);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); background: var(--gold-dim); }
.form-control::placeholder { color: var(--white-50); }
.form-control.is-invalid { border-color: var(--red); }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 5px; }
.form-hint { font-size: 0.78rem; color: var(--white-50); margin-top: 5px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d4a017' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  padding: 12px 16px; text-align: left;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  background: var(--white-5); border-bottom: 1px solid var(--white-10);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--white-5); color: var(--white-80); }
tbody tr:hover td { background: var(--white-5); }
tbody tr:last-child td { border-bottom: none; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-active    { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.badge-pending   { background: rgba(245,158,11,0.15); color: var(--orange); border: 1px solid rgba(245,158,11,0.3); }
.badge-danger    { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.badge-info      { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.badge-gold      { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(212,160,23,0.3); }
.membership-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; color: #fff; }

/* ── Alerts ── */
.alert {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 20px; font-size: 0.9rem;
  border: 1px solid;
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; }
.btn-close { margin-left: auto; background: none; border: none; color: inherit; font-size: 1.2rem; opacity: 0.6; cursor: pointer; }
.btn-close:hover { opacity: 1; }
.alert-success  { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-danger   { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-warning  { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info     { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); color: #a5b4fc; }

/* ── Stats Grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--navy-card); border: 1px solid var(--white-10);
  border-radius: var(--radius-lg); padding: 24px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.gold::before   { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.stat-card.green::before  { background: linear-gradient(90deg, var(--green), #34d399); }
.stat-card.purple::before { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.stat-card.red::before    { background: linear-gradient(90deg, var(--red), #f87171); }
.stat-icon { font-size: 1.8rem; margin-bottom: 12px; }
.stat-value { font-size: 2rem; font-weight: 700; font-family: var(--font-display); color: var(--white); }
.stat-label { font-size: 0.75rem; color: var(--white-50); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.stat-change { font-size: 0.75rem; margin-top: 8px; }
.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ── Navbar ── */
.main-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--white-10);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-gem { font-size: 1.5rem; color: var(--gold); filter: drop-shadow(0 0 8px var(--gold)); }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-title { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.15em; color: var(--gold); line-height: 1; }
.nav-sub   { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--white-50); text-transform: uppercase; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-wallet {
  display: flex; align-items: center; gap: 6px;
  background: var(--gold-dim); border: 1px solid rgba(212,160,23,0.3);
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* ── Sidebar ── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--navy-2);
  border-right: 1px solid var(--white-10);
  display: flex; flex-direction: column;
  z-index: 90; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--white-10) transparent;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--white-10);
}
.sidebar-gem { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; filter: drop-shadow(0 0 6px var(--gold)); }
.sidebar-title { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--gold); display: block; }
.sidebar-sub   { font-size: 0.62rem; color: var(--white-50); text-transform: uppercase; letter-spacing: 0.08em; display: block; }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.nav-section-label {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white-50); padding: 12px 10px 6px; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--white-80); font-size: 0.875rem;
  transition: all var(--transition); margin-bottom: 2px;
}
.nav-item:hover  { background: var(--white-10); color: var(--white); }
.nav-item.active { background: var(--gold-dim); color: var(--gold); border-left: 3px solid var(--gold); }
.nav-icon { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--white-10); }

/* ── Dashboard Mobile Topbar (hamburger to open sidebar) ── */
.dashboard-topbar {
  display: none;
  align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 80;
  height: var(--nav-h);
  padding: 0 16px;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--white-10);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-gem { font-size: 1.3rem; color: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
.topbar-title { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.15em; color: var(--gold); }
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 85;
  background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Dashboard Layout ── */
.dashboard-layout {
  display: flex; min-height: 100vh;
}
.dashboard-main {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0;
  padding: 32px;
  background: var(--navy);
}
.page-header { margin-bottom: 32px; }
.page-title  { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); margin-bottom: 4px; }
.page-subtitle { font-size: 0.875rem; color: var(--white-50); }
.breadcrumb { font-size: 0.8rem; color: var(--white-50); margin-bottom: 8px; }
.breadcrumb span { color: var(--gold); }

/* ── Public Layout ── */
.public-layout { display: flex; flex-direction: column; min-height: 100vh; }
.public-main   { flex: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 480px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 80vh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 60% 50%, rgba(212,160,23,0.1) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.08) 0%, transparent 50%),
              var(--navy);
}
.hero-bg-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px),
                    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim); border: 1px solid rgba(212,160,23,0.3);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: blink 1.5s ease-in-out infinite; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-2) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); opacity: 0.8; margin-bottom: 20px; display: block;
}
.hero-desc { font-size: 1.1rem; color: var(--white-80); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 48px; }
.hero-badges { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--white-80);
}
.hero-badge-icon { color: var(--gold); font-size: 1rem; }
.hero-visual {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: min(420px, 45%);
  opacity: 0.15; pointer-events: none;
  font-family: var(--font-display); font-size: clamp(8rem, 20vw, 18rem);
  color: var(--gold); line-height: 1; user-select: none;
}

/* ── Lottery Cards ── */
.lottery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.lottery-card {
  background: var(--navy-card); border: 1px solid var(--white-10);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.lottery-card:hover { transform: translateY(-4px); border-color: rgba(212,160,23,0.3); box-shadow: var(--shadow-gold); }
.lottery-banner {
  height: 160px; background: linear-gradient(135deg, var(--navy-3) 0%, rgba(212,160,23,0.15) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
  position: relative;
}
.lottery-status {
  position: absolute; top: 12px; right: 12px;
}
.lottery-body { padding: 20px; }
.lottery-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; color: var(--white); }
.lottery-prize { font-size: 1.8rem; font-weight: 700; color: var(--gold); font-family: var(--font-display); margin-bottom: 4px; }
.lottery-prize-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white-50); }
.lottery-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--white-10); }
.lottery-meta-item { text-align: center; }
.lottery-meta-value { font-weight: 700; color: var(--white); display: block; }
.lottery-meta-label { font-size: 0.7rem; color: var(--white-50); text-transform: uppercase; }
.lottery-progress { margin-top: 12px; }
.progress-bar { height: 4px; background: var(--white-10); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 4px; transition: width 0.5s ease; }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(212,160,23,0.06) 0%, var(--navy) 70%);
  padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--navy-card); border: 1px solid var(--white-10);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-gem { font-size: 2.5rem; color: var(--gold); display: block; margin-bottom: 8px; filter: drop-shadow(0 0 12px var(--gold)); }
.auth-brand { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.15em; color: var(--gold); display: block; }
.auth-sub { font-size: 0.75rem; color: var(--white-50); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-top: 4px; }
.auth-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 8px; }
.auth-desc { font-size: 0.875rem; color: var(--white-50); margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--white-10); }
.auth-divider span { font-size: 0.75rem; color: var(--white-50); white-space: nowrap; }
.auth-footer-text { text-align: center; font-size: 0.875rem; color: var(--white-50); margin-top: 20px; }

/* ── Footer ── */
.site-footer {
  background: var(--navy-2);
  border-top: 1px solid var(--white-10);
  padding: 48px 0 24px;
  margin-top: auto;
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.footer-brand { margin-bottom: 32px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.logo-gem { font-size: 1.8rem; color: var(--gold); filter: drop-shadow(0 0 8px var(--gold)); }
.logo-title { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.2em; color: var(--gold); display: block; }
.logo-sub   { font-size: 0.65rem; color: var(--white-50); text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.footer-tagline { font-size: 0.875rem; color: var(--white-50); margin-left: 48px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.badge-item { display: flex; align-items: center; gap: 12px; }
.badge-icon { font-size: 1.8rem; }
.badge-item strong { display: block; font-size: 0.875rem; color: var(--white); font-weight: 600; }
.badge-item small  { display: block; font-size: 0.72rem; color: var(--white-50); }
.footer-links { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--white-50); font-size: 0.875rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--white-10); padding-top: 20px; }
.footer-copy        { font-size: 0.8rem; color: var(--white-50); }
.footer-disclaimer  { font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ── Ticket Card ── */
.ticket-card {
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(212,160,23,0.05) 100%);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: var(--radius-lg); padding: 20px;
  position: relative; overflow: hidden;
}
.ticket-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.ticket-number { font-family: var(--font-mono); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.1em; }
.ticket-holes { position: absolute; top: 50%; right: -12px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
.ticket-hole { width: 20px; height: 20px; background: var(--navy); border-radius: 50%; border: 1px solid var(--white-10); }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--navy-card); border: 1px solid var(--white-10);
  border-radius: var(--radius-lg); padding: 32px;
  width: 100%; max-width: 500px;
  box-shadow: var(--shadow); animation: slideUp 0.25s ease;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-family: var(--font-display); color: var(--gold); }
.modal-close { background: none; border: none; color: var(--white-50); font-size: 1.5rem; line-height: 1; }
.modal-close:hover { color: var(--white); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--white-5); color: var(--white-80);
  border: 1px solid var(--white-10); font-size: 0.875rem;
  transition: all var(--transition);
}
.page-link:hover, .page-link.active { background: var(--gold-dim); color: var(--gold); border-color: rgba(212,160,23,0.3); }

/* ── Utilities ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.p-0    { padding: 0; }
.divider { height: 1px; background: var(--white-10); margin: 24px 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--white-50); }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--white-20); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite; display: inline-block;
}
.rng-proof {
  background: var(--navy); border: 1px solid var(--gold-dim);
  border-radius: 8px; padding: 12px 16px;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--gold); word-break: break-all;
}

/* ── Animations ── */
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

.fade-in { animation: fadeIn 0.5s ease; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--white-20); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--white-50); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); z-index: 95; }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; padding: 20px; }
  .dashboard-topbar { display: flex; }
  .sidebar-overlay { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .footer-badges { flex-direction: column; }
}

@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .lottery-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-outline { display: none; }
  .nav-brand-text { display: none; }
  .nav-actions { gap: 8px; }
  .nav-wallet { padding: 6px 10px; font-size: 0.78rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .dashboard-main { padding: 16px; }
  .card { padding: 16px; }
}

/* ── Print ── */
@media print {
  .sidebar, .main-nav, .btn, .nav-actions { display: none !important; }
  .dashboard-main { margin-left: 0 !important; }
  body { background: white; color: black; }
}
