/* ================================================================
   LOTTERY PLATFORM – MAIN DESIGN SYSTEM
   Modern Dark Theme with Gold Accents
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ----------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* Colors */
  --c-bg:          #0a0b0f;
  --c-bg2:         #111217;
  --c-bg3:         #1a1b23;
  --c-surface:     #1e2030;
  --c-surface2:    #252840;
  --c-border:      #2a2d45;
  --c-border2:     #353760;

  --c-gold:        #f5c842;
  --c-gold2:       #e6b520;
  --c-gold3:       #ffd970;
  --c-gold-dim:    rgba(245,200,66,0.12);

  --c-purple:      #7c5cbf;
  --c-purple2:     #9b7de0;
  --c-purple-dim:  rgba(124,92,191,0.15);

  --c-green:       #22c55e;
  --c-green-dim:   rgba(34,197,94,0.15);
  --c-red:         #ef4444;
  --c-red-dim:     rgba(239,68,68,0.15);
  --c-blue:        #3b82f6;
  --c-blue-dim:    rgba(59,130,246,0.15);
  --c-orange:      #f97316;
  --c-orange-dim:  rgba(249,115,22,0.15);

  --c-text:        #f1f3ff;
  --c-text2:       #a0a8c8;
  --c-text3:       #666c90;
  --c-text-muted:  #4a5080;

  /* Gradients */
  --g-gold:        linear-gradient(135deg, #f5c842 0%, #e6961e 100%);
  --g-purple:      linear-gradient(135deg, #7c5cbf 0%, #a855f7 100%);
  --g-hero:        linear-gradient(135deg, #0f0c29 0%, #1a1563 50%, #0a0b0f 100%);
  --g-card:        linear-gradient(145deg, #1e2030 0%, #252840 100%);
  --g-surface:     linear-gradient(180deg, #1e2030 0%, #181a2a 100%);

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold:   0 0 30px rgba(245,200,66,0.2);
  --shadow-purple: 0 0 30px rgba(124,92,191,0.3);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;

  /* Border Radius */
  --r-sm:  0px;
  --r-md:  0px;
  --r-lg:  0px;
  --r-xl:  0px;
  --r-full: 9999px;

  /* Typography */
  --font-base: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-mid:    0.25s ease;
  --t-slow:   0.4s ease;
}

/* ----------------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-base);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--c-gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-gold3); }

img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ----------------------------------------------------------------
   Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { color: var(--c-text2); }
small { font-size: 0.8rem; color: var(--c-text3); }

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-md); }
.container-sm { max-width: 600px; margin: 0 auto; padding: 0 var(--space-md); }

.section { padding: var(--space-2xl) 0; }
.section-sm { padding: var(--space-xl) 0; }

/* Grid */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Flex */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: var(--space-md); }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t-mid);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--g-gold);
  color: #0a0b0f;
  box-shadow: 0 4px 15px rgba(245,200,66,0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(245,200,66,0.5);
  color: #0a0b0f;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--c-surface2);
  color: var(--c-text);
  border: 1px solid var(--c-border2);
}
.btn-secondary:hover { border-color: var(--c-gold); color: var(--c-gold); }

.btn-outline {
  background: transparent;
  color: var(--c-gold);
  border: 2px solid var(--c-gold);
}
.btn-outline:hover { background: var(--c-gold-dim); }

.btn-danger { background: var(--c-red); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-success { background: var(--c-green); color: #fff; }
.btn-success:hover { background: #16a34a; color: #fff; }
.btn-purple { background: var(--g-purple); color: #fff; }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ----------------------------------------------------------------
   Forms
   ---------------------------------------------------------------- */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text2);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-bg3);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-gold-dim);
}
.form-input::placeholder { color: var(--c-text-muted); }
.form-input.error { border-color: var(--c-red); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a8c8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.form-hint { font-size: 0.8rem; color: var(--c-text3); margin-top: var(--space-xs); }
.form-error { font-size: 0.8rem; color: var(--c-red); margin-top: var(--space-xs); }

/* ----------------------------------------------------------------
   Cards
   ---------------------------------------------------------------- */
.card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-border2);
}
.card-body { padding: var(--space-lg); }
.card-header { padding: var(--space-lg); border-bottom: 1px solid var(--c-border); }
.card-footer { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--c-border); background: rgba(0,0,0,0.2); }

/* Glass card */
.card-glass {
  background: rgba(30, 32, 48, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
}

/* ----------------------------------------------------------------
   Badges & Status
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-open     { background: var(--c-green-dim); color: var(--c-green); border: 1px solid rgba(34,197,94,0.3); }
.badge-upcoming { background: var(--c-blue-dim);  color: var(--c-blue);  border: 1px solid rgba(59,130,246,0.3); }
.badge-sold-out { background: var(--c-orange-dim);color: var(--c-orange);border: 1px solid rgba(249,115,22,0.3); }
.badge-closed   { background: var(--c-purple-dim);color: var(--c-purple2);border: 1px solid rgba(124,92,191,0.3); }
.badge-declared { background: var(--c-gold-dim);  color: var(--c-gold);  border: 1px solid rgba(245,200,66,0.3); }
.badge-cancelled{ background: var(--c-red-dim);   color: var(--c-red);   border: 1px solid rgba(239,68,68,0.3); }
.badge-pending  { background: var(--c-orange-dim);color: var(--c-orange);border: 1px solid rgba(249,115,22,0.3); }
.badge-approved { background: var(--c-green-dim); color: var(--c-green); border: 1px solid rgba(34,197,94,0.3); }
.badge-rejected { background: var(--c-red-dim);   color: var(--c-red);   border: 1px solid rgba(239,68,68,0.3); }
.badge-paid     { background: var(--c-purple-dim);color: var(--c-purple2);border: 1px solid rgba(124,92,191,0.3); }
.badge-default  { background: var(--c-bg3); color: var(--c-text2); border: 1px solid var(--c-border); }

/* ----------------------------------------------------------------
   Tables
   ---------------------------------------------------------------- */
.table-wrapper { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-border); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--c-surface2);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-text2);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(42,45,69,0.5);
  font-size: 0.9rem;
  color: var(--c-text);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: rgba(245,200,66,0.03); }

/* ----------------------------------------------------------------
   Alerts & Flash Messages
   ---------------------------------------------------------------- */
.alert {
  padding: 14px 20px;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.alert-success { background: var(--c-green-dim); border-color: rgba(34,197,94,0.3); color: #4ade80; }
.alert-error   { background: var(--c-red-dim);   border-color: rgba(239,68,68,0.3);  color: #f87171; }
.alert-warning { background: var(--c-orange-dim);border-color: rgba(249,115,22,0.3); color: #fb923c; }
.alert-info    { background: var(--c-blue-dim);  border-color: rgba(59,130,246,0.3); color: #60a5fa; }
.alert .close-btn { margin-left: auto; cursor: pointer; opacity: 0.7; font-size: 1.2rem; line-height: 1; }
.alert .close-btn:hover { opacity: 1; }

/* ----------------------------------------------------------------
   Lottery Card
   ---------------------------------------------------------------- */
.lottery-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  position: relative;
}
.lottery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--c-gold2);
  border-color: var(--c-gold2);
}
.lottery-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-bg3) 100%);
}
.lottery-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1b23 0%, #252840 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.lottery-card-body { padding: var(--space-lg); }
.lottery-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--space-sm);
}
.lottery-card-prize {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-gold);
  font-family: var(--font-display);
  margin-bottom: var(--space-md);
}
.lottery-card-prize small { font-size: 0.75rem; font-weight: 500; color: var(--c-text3); display: block; }

/* Progress bar */
.progress-wrap { margin: var(--space-md) 0; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--c-text3);
  margin-bottom: var(--space-xs);
}
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--c-bg3);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--g-gold);
  border-radius: var(--r-full);
  transition: width 0.6s ease;
}
.progress-fill.sold-out { background: var(--c-red); }

.lottery-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--c-text3);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.lottery-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ----------------------------------------------------------------
   Wallet Balance Card
   ---------------------------------------------------------------- */
.wallet-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: var(--c-gold-dim);
  border-radius: 50%;
  filter: blur(60px);
}
.wallet-balance-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--c-text3); font-weight: 600; }
.wallet-balance-amount { font-size: 2.5rem; font-weight: 800; color: var(--c-gold); font-family: var(--font-display); line-height: 1.1; }

.balance-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.balance-item {
  background: rgba(0,0,0,0.3);
  border-radius: var(--r-md);
  padding: var(--space-md);
  border: 1px solid var(--c-border);
}
.balance-item-label { font-size: 0.78rem; color: var(--c-text3); text-transform: uppercase; letter-spacing: 0.5px; }
.balance-item-amount { font-size: 1.3rem; font-weight: 700; font-family: var(--font-display); margin-top: 4px; }
.balance-item-amount.deposit { color: var(--c-blue); }
.balance-item-amount.winning { color: var(--c-green); }

/* ----------------------------------------------------------------
   Navigation (User Bottom Nav – Mobile)
   ---------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(17,18,23,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
  display: none;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 16px;
  color: var(--c-text3);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color var(--t-fast);
  position: relative;
}
.bottom-nav-item.active { color: var(--c-gold); }
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item .notif-badge {
  position: absolute;
  top: 4px; right: 10px;
  background: var(--c-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ----------------------------------------------------------------
   Header / Navbar
   ---------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(10,11,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-gold);
  text-decoration: none;
}
.navbar-brand span { color: var(--c-text); }
.navbar-brand .brand-icon { font-size: 1.8rem; }

.navbar-links { display: flex; align-items: center; gap: var(--space-lg); }
.navbar-links a {
  color: var(--c-text2);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color var(--t-fast);
  position: relative;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--c-gold); }
.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--c-gold);
  border-radius: var(--r-full);
}

.navbar-actions { display: flex; align-items: center; gap: var(--space-sm); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  border: none;
  background: transparent;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--t-fast);
}

/* Menu Backdrop */
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 940;
  opacity: 0;
  transition: opacity var(--t-mid);
}
.menu-backdrop.open { display: block; opacity: 1; }

/* Mobile Sidebar */
.mobile-menu {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; max-width: 85vw;
  height: 100vh;
  z-index: 950;
  background: var(--c-bg2);
  border-left: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  transition: right var(--t-mid) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }

.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--c-border);
}
.sidebar-brand {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800; color: var(--c-gold);
}
.sidebar-brand span { color: var(--c-text); }
#close-menu {
  background: transparent; border: none; color: var(--c-text2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 8px; border-radius: var(--r-sm); transition: background var(--t-fast);
}
#close-menu:hover { background: var(--c-surface2); color: var(--c-text); }

.mobile-menu-links {
  padding: var(--space-md) var(--space-lg) var(--space-2xl);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu-links a {
  display: flex; align-items: center; gap: var(--space-md);
  color: var(--c-text); font-size: 1.05rem; font-weight: 500;
  padding: 12px 16px; border-radius: var(--r-md); transition: all var(--t-fast);
  text-decoration: none;
}
.mobile-menu-links a:hover { background: rgba(245,200,66,0.1); color: var(--c-gold); }
.mobile-menu-links a.logout-link { color: var(--c-red); }
.mobile-menu-links a.logout-link:hover { background: var(--c-red-dim); }

.menu-divider { height: 1px; background: var(--c-border); margin: var(--space-sm) 0; }
.menu-section-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--c-text3); font-weight: 700; margin: var(--space-sm) 0 var(--space-xs) 16px; }

/* Icon sizing helpers */
.icon-sm { width: 18px; height: 18px; }
.icon { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.text-gold { color: var(--c-gold); }
.text-green { color: var(--c-green); }
.text-red { color: var(--c-red); }
.text-blue { color: var(--c-blue); }
.text-orange { color: var(--c-orange); }
.text-silver { color: #C0C0C0; }
.text-bronze { color: #CD7F32; }

/* ----------------------------------------------------------------
   Hero Section
   ---------------------------------------------------------------- */
.hero {
  background: var(--g-hero);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,200,66,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,92,191,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--c-gold-dim);
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--c-gold);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}
.hero h1 { margin-bottom: var(--space-lg); }
.hero h1 .highlight {
  background: var(--g-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 1.15rem; color: var(--c-text2); margin-bottom: var(--space-xl); max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: var(--space-md); flex-wrap: wrap; }

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-gold);
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--c-text3); text-transform: uppercase; letter-spacing: 0.5px; }

/* ----------------------------------------------------------------
   Section Heading
   ---------------------------------------------------------------- */
.section-heading { text-align: center; margin-bottom: var(--space-2xl); }
.section-heading h2 { margin-bottom: var(--space-sm); }
.section-heading p { color: var(--c-text2); max-width: 600px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-gold);
  margin-bottom: var(--space-sm);
}

/* ----------------------------------------------------------------
   How It Works
   ---------------------------------------------------------------- */
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); }
.how-step {
  text-align: center;
  padding: var(--space-xl);
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-mid), transform var(--t-mid);
}
.how-step:hover { border-color: var(--c-gold); transform: translateY(-4px); }
.how-step-icon {
  width: 64px; height: 64px;
  background: var(--c-gold-dim);
  border: 1px solid rgba(245,200,66,0.3);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-lg);
}
.how-step h4 { margin-bottom: var(--space-sm); }

/* ----------------------------------------------------------------
   Winners Section
   ---------------------------------------------------------------- */
.winner-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.winner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--g-gold);
}
.winner-medal { font-size: 3rem; margin-bottom: var(--space-sm); }
.winner-name { font-size: 1rem; font-weight: 700; }
.winner-amount { font-size: 1.5rem; font-weight: 800; color: var(--c-gold); font-family: var(--font-display); }
.winner-ticket { font-size: 0.8rem; color: var(--c-text3); }
.winner-lottery { font-size: 0.85rem; color: var(--c-text2); }

/* ----------------------------------------------------------------
   Prize Display
   ---------------------------------------------------------------- */
.prizes-list { display: flex; flex-direction: column; gap: var(--space-md); }
.prize-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(0,0,0,0.3);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
}
.prize-item:first-child { border-color: rgba(245,200,66,0.4); background: var(--c-gold-dim); }
.prize-item:nth-child(2) { border-color: rgba(192,192,192,0.4); background: rgba(192,192,192,0.05); }
.prize-item:nth-child(3) { border-color: rgba(205,127,50,0.4); background: rgba(205,127,50,0.05); }
.prize-icon { font-size: 1.8rem; }
.prize-label { font-size: 0.85rem; color: var(--c-text2); }
.prize-amount { font-size: 1.3rem; font-weight: 800; color: var(--c-text); font-family: var(--font-display); margin-left: auto; }
.prize-item:first-child .prize-amount { color: var(--c-gold); }

/* ----------------------------------------------------------------
   Modal
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--c-surface2);
  border: none;
  color: var(--c-text2);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.modal-close:hover { background: var(--c-red); color: #fff; }

/* ----------------------------------------------------------------
   Ticket
   ---------------------------------------------------------------- */
.ticket {
  background: var(--g-card);
  border: 2px dashed var(--c-gold);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ticket::before {
  content: '';
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  background: var(--c-bg);
  border-radius: 50%;
}
.ticket::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  background: var(--c-bg);
  border-radius: 50%;
}
.ticket-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--c-gold);
  letter-spacing: 2px;
  margin: var(--space-md) 0;
}
.ticket-emoji { font-size: 3rem; margin-bottom: var(--space-sm); }

/* ----------------------------------------------------------------
   Loading / Spinner
   ---------------------------------------------------------------- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-xl) auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-xl); }
.page-btn {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-text2);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast);
}
.page-btn:hover, .page-btn.active { background: var(--c-gold); color: #0a0b0f; border-color: var(--c-gold); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ----------------------------------------------------------------
   Empty State
   ---------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--c-text3);
}
.empty-state-icon { font-size: 4rem; margin-bottom: var(--space-md); opacity: 0.5; }
.empty-state h3 { color: var(--c-text2); margin-bottom: var(--space-sm); }

/* ----------------------------------------------------------------
   Toast Notifications
   ---------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 20px;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.success { border-left: 4px solid var(--c-green); }
.toast.error   { border-left: 4px solid var(--c-red); }
.toast.warning { border-left: 4px solid var(--c-orange); }
.toast.info    { border-left: 4px solid var(--c-blue); }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.footer {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--c-gold); margin-bottom: var(--space-md); }
.footer-desc { color: var(--c-text3); font-size: 0.9rem; line-height: 1.7; }
.footer-col h5 { color: var(--c-text); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-md); }
.footer-col a { display: block; color: var(--c-text3); font-size: 0.88rem; margin-bottom: var(--space-sm); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--c-gold); }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: var(--c-text3);
}

/* ----------------------------------------------------------------
   Animations
   ---------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(245,200,66,0.3); }
  50%       { box-shadow: 0 0 40px rgba(245,200,66,0.6); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-float   { animation: float 3s ease-in-out infinite; }
.animate-glow    { animation: glow 2s ease-in-out infinite; }
.animate-fade-up { animation: fadeInUp 0.5s ease both; }

/* ----------------------------------------------------------------
   Utility Classes
   ---------------------------------------------------------------- */
.text-gold    { color: var(--c-gold); }
.text-green   { color: var(--c-green); }
.text-red     { color: var(--c-red); }
.text-blue    { color: var(--c-blue); }
.text-muted   { color: var(--c-text3); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.font-mono    { font-family: 'Courier New', monospace; }
.font-display { font-family: var(--font-display); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.w-full   { width: 100%; }
.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Divider */
.divider { border: none; border-top: 1px solid var(--c-border); margin: var(--space-lg) 0; }
.divider-text {
  text-align: center;
  position: relative;
  color: var(--c-text3);
  font-size: 0.85rem;
}
.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--c-border);
}
.divider-text::before { left: 0; }
.divider-text::after  { right: 0; }

/* ----------------------------------------------------------------
   Responsive Breakpoints
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hide-on-mobile { display: none !important; }
  .hamburger    { display: flex; }
  .bottom-nav   { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .balance-split { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 70px; }
  .stats-bar { gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 70px; }
  .toast-container { left: var(--space-md); right: var(--space-md); }
  .toast { min-width: unset; width: 100%; }
}
@media (max-width: 480px) {
  :root { font-size: 15px; }
  .container { padding: 0 var(--space-sm); }
  .btn-lg { padding: 14px 28px; }
  .modal { padding: var(--space-lg); }
}
