/* ===================================================
   WEBSITEFORLOTTO.COM — Design System
   Dark luxury theme with gold/amber accents
   =================================================== */

/* Google Fonts */
@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 ===== */
:root {
  /* Colors — Dark Luxury Palette */
  --bg-primary: #07111f;
  --bg-secondary: #0b1728;
  --bg-tertiary: #102036;
  --bg-card: rgba(15, 31, 52, 0.82);
  --bg-card-hover: rgba(20, 41, 68, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* Accent Colors */
  --gold: #f4ad28;
  --gold-light: #ffd47a;
  --gold-dark: #ce8610;
  --gold-gradient: linear-gradient(135deg, #f4ad28, #ffd47a);
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dark: #6d28d9;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --green: #10b981;
  --green-light: #34d399;
  --red: #ef4444;
  --red-light: #f87171;
  --cyan: #06b6d4;

  /* Text */
  --text-primary: #f7f9fc;
  --text-secondary: #b8c4d4;
  --text-muted: #8291a5;
  --text-gold: #f4ad28;

  /* Borders */
  --border-color: rgba(174, 195, 220, 0.14);
  --border-hover: rgba(245, 166, 35, 0.3);
  --border-gold: rgba(245, 166, 35, 0.5);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 30px rgba(245, 166, 35, 0.15);
  --shadow-purple: 0 4px 30px rgba(139, 92, 246, 0.15);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #07111f 0%, #0b1a30 58%, #14223a 100%);
  --gradient-card: linear-gradient(145deg, rgba(17, 35, 58, 0.94), rgba(10, 24, 42, 0.9));
  --gradient-gold-text: linear-gradient(135deg, #f5a623, #ffd700);
  --gradient-purple: linear-gradient(135deg, #6d28d9, #8b5cf6);
  --gradient-blue: linear-gradient(135deg, #2563eb, #3b82f6);
  --gradient-cta: linear-gradient(135deg, #f5a623, #e09100);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Animated background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 600px 400px at 20% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 80%, rgba(245, 166, 35, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 60% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gold {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--text-muted);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header p {
  margin-top: var(--space-md);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Header / Navigation ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

#site-header.scrolled {
  background: rgba(6, 6, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000;
}

.nav-logo span.accent {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  margin-left: var(--space-sm);
}

.nav-cta .btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 40px rgba(245, 166, 35, 0.3);
  color: #000;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(245, 166, 35, 0.1);
  transform: translateY(-2px);
  color: var(--gold-light);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ===== Cards ===== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-highlight {
  border-color: var(--border-gold);
}

.card-highlight::before {
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.3), transparent);
}

/* ===== Lottery Ball Styles ===== */
.lottery-balls {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  position: relative;
  animation: ballPop 0.4s ease backwards;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.3);
}

.ball:nth-child(1) { animation-delay: 0.1s; }
.ball:nth-child(2) { animation-delay: 0.2s; }
.ball:nth-child(3) { animation-delay: 0.3s; }
.ball:nth-child(4) { animation-delay: 0.4s; }
.ball:nth-child(5) { animation-delay: 0.5s; }
.ball:nth-child(6) { animation-delay: 0.6s; }
.ball:nth-child(7) { animation-delay: 0.7s; }

.ball-white {
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  color: #1a1a2e;
}

.ball-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ball-gold {
  background: linear-gradient(135deg, #f5a623, #d4910b);
  color: #1a1a2e;
}

.ball-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.ball-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.ball-purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.ball-sm {
  width: 38px;
  height: 38px;
  font-size: 0.85rem;
}

.ball-lg {
  width: 58px;
  height: 58px;
  font-size: 1.2rem;
}

.ball-bonus {
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.3), inset 0 -3px 6px rgba(0,0,0,0.2);
}

@keyframes ballPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.15) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* ===== Jackpot Display ===== */
.jackpot-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4rem);
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
}

.jackpot-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ===== Jackpot Cards ===== */
.jackpot-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.jackpot-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.jackpot-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.jackpot-card .lottery-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.jackpot-card .next-draw {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* ===== Grid Layouts ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  animation: fadeInUp 0.6s ease 0.1s backwards;
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

/* Floating lottery balls background animation */
.hero-bg-balls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-balls .floating-ball {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: floatBall linear infinite;
}

@keyframes floatBall {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

/* ===== Results Table ===== */
.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.results-table thead th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-color);
}

.results-table tbody tr {
  transition: background var(--transition-fast);
}

.results-table tbody tr:hover {
  background: var(--bg-glass-hover);
}

.results-table tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: var(--space-xs);
  padding: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  width: fit-content;
  margin: 0 auto var(--space-2xl);
}

.tab {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  background: var(--bg-card);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
}

/* ===== Form Elements ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Number input grid for checker */
.number-input-grid {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.number-input {
  width: 56px;
  height: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--bg-glass);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.number-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  background: rgba(245, 166, 35, 0.05);
}

.number-input.matched {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.number-input.not-matched {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.05);
}

/* ===== Stats / Charts ===== */
.stat-card {
  text-align: center;
  padding: var(--space-xl);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Frequency bars */
.freq-bar-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.freq-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.freq-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.freq-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
  background: var(--gradient-cta);
}

.freq-bar.cold {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.freq-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 30px;
  text-align: right;
}

/* ===== Cookie Consent ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: var(--space-lg) var(--space-xl);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.9rem;
  max-width: 700px;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* ===== Age Gate ===== */
.age-notice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red-light);
}

/* ===== Footer ===== */
#site-footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  max-width: 700px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-lg);
}

/* ===== Blog Cards ===== */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  height: 200px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: var(--space-xl);
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.blog-card-body h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.blog-card-body h3 a {
  color: var(--text-primary);
}

.blog-card-body h3 a:hover {
  color: var(--gold);
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* ===== Page Banner (inner pages) ===== */
.page-banner {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  margin-bottom: var(--space-md);
}

.page-banner p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ===== Legal Page Content ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.legal-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.4rem;
}

.legal-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}

/* ===== Tool Section ===== */
.tool-container {
  max-width: 700px;
  margin: 0 auto;
}

.tool-result {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
}

.tool-result.success {
  border-color: rgba(16, 185, 129, 0.3);
}

.tool-result.no-match {
  border-color: rgba(239, 68, 68, 0.2);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease backwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-xl) auto;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: var(--space-md); }
.gap-2 { gap: var(--space-xl); }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-xs);
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-color);
    align-items: stretch;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: var(--space-md);
    font-size: 1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .tabs {
    overflow-x: auto;
    max-width: 100%;
  }

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

  .ball {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .ball-lg {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .number-input {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .ball {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }

  .jackpot-amount {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }
}

/* ===== Brand and results experience refresh ===== */
.nav-logo .logo-icon {
  padding: 0;
  overflow: hidden;
  background: none;
}

.nav-logo .logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

#site-header.scrolled {
  background: rgba(7, 17, 31, 0.94);
}

.card {
  box-shadow: 0 16px 44px rgba(1, 7, 16, 0.18);
}

.card:hover {
  transform: none;
  box-shadow: 0 18px 52px rgba(1, 7, 16, 0.28);
}

.ball-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ball {
  animation-duration: 260ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.page-hero {
  min-height: 330px !important;
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl) !important;
}

.page-hero h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.results-section {
  padding-top: var(--space-2xl);
}

.results-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: var(--space-xl);
  align-items: start;
}

.results-main {
  min-width: 0;
}

.results-freshness {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 22px;
  padding: 12px 16px;
  border: 1px solid rgba(62, 213, 152, 0.25);
  border-radius: var(--radius-md);
  background: rgba(11, 28, 44, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.results-freshness .freshness-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  color: #05140f;
  background: #3ed598;
  font-weight: 900;
}

.results-freshness strong,
.results-freshness span { display: block; }
.results-freshness div > span { margin-top: 2px; color: var(--text-muted); font-size: 0.82rem; }
.results-freshness.status-degraded { border-color: rgba(255, 190, 71, 0.32); }
.results-freshness.status-degraded .freshness-icon { background: #ffbe47; }
.results-freshness.status-stale { border-color: rgba(255, 101, 116, 0.36); }
.results-freshness.status-stale .freshness-icon { color: #fff; background: #ff6574; }
.results-freshness.status-checking .freshness-icon { color: #07111f; background: var(--accent); }

.game-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.game-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.025);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.game-tab span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.game-tab:hover {
  border-color: rgba(93, 168, 255, 0.4);
}

.game-tab.active {
  border-color: var(--gold);
  color: var(--text-primary);
  background: rgba(244, 173, 40, 0.09);
  box-shadow: inset 0 0 0 1px rgba(244, 173, 40, 0.12);
}

.latest-result-card {
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.latest-result-grid {
  display: grid;
  grid-template-columns: minmax(170px, .72fr) minmax(320px, 1.4fr) auto;
  gap: var(--space-xl);
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.latest-result-title {
  margin: 4px 0 2px;
  font-size: 1.45rem;
}

.latest-result-date,
.source-note {
  color: var(--text-muted);
  font-size: .86rem;
}

.latest-result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-card {
  padding: 0;
  overflow: hidden;
}

.history-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.history-header h2 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.results-table tbody td {
  padding: 12px var(--space-lg);
  height: 66px;
}

.results-table tbody td:first-child {
  font-weight: 650;
  white-space: nowrap;
}

.result-detail-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(184,196,212,.35);
  text-underline-offset: 3px;
}

.result-detail-link:hover {
  color: var(--gold-light);
}

.load-more-wrap {
  padding: var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.results-sidebar {
  display: grid;
  gap: var(--space-md);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.action-card {
  padding: var(--space-lg);
}

.action-card h2,
.action-card h3 {
  font-size: 1.1rem;
}

.action-card p {
  margin: 8px 0 16px;
  font-size: .9rem;
}

.action-card .btn {
  width: 100%;
}

.data-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: .82rem;
}

.data-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

.jackpot-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin: 0 0 var(--space-lg);
}

.jackpot-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.025);
}

.jackpot-summary strong {
  display: block;
  font-size: 1rem;
}

.jackpot-value {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-align: right;
}

.jackpot-meta {
  color: var(--text-muted);
  font-size: .75rem;
}

.ticket-list {
  display: grid;
  gap: var(--space-md);
}

.ticket-card {
  display: grid;
  grid-template-columns: minmax(150px,.7fr) minmax(280px,1.3fr) auto;
  gap: var(--space-lg);
  align-items: center;
}

.ticket-status {
  text-align: right;
}

.ticket-status strong {
  display: block;
  color: var(--gold-light);
  font-size: 1.1rem;
}

.ticket-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.result-watch-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-xl);
  padding: clamp(20px,3vw,30px);
  border: 1px solid rgba(244,173,40,.28);
  border-radius: var(--radius-lg);
  background: radial-gradient(360px 180px at 100% 0%,rgba(244,173,40,.11),transparent 72%),var(--gradient-card);
  box-shadow: var(--shadow-md);
}

.result-watch-panel.status-enabled { border-color: rgba(52,211,153,.35); }
.result-watch-panel h2 { margin: 4px 0 6px; font-size: clamp(1.25rem,2.5vw,1.8rem); }
.result-watch-panel p { max-width: 600px; }
.result-watch-panel small { display:block; margin-top:7px; color:var(--text-muted); font-size:.7rem; }
.result-watch-panel>div:last-child { display:grid; justify-items:end; gap:9px; }
.result-watch-icon { display:grid; place-items:center; width:54px; height:54px; border-radius:16px; background:rgba(244,173,40,.12); color:var(--gold-light); font:900 1.2rem var(--font-display); }
.status-enabled .result-watch-icon { background:rgba(52,211,153,.12); color:var(--green-light); }
.result-watch-state,.watching-chip { color:var(--text-muted); font-size:.68rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.status-enabled .result-watch-state,.watching-chip { color:var(--green-light); }
.watching-chip { display:inline-block; margin-top:5px; }
.ticket-pending { border-color:rgba(52,211,153,.25); }
.result-watch-badge { display:inline-block; margin-bottom:10px; padding:6px 10px; border:1px solid rgba(52,211,153,.3); border-radius:999px; background:rgba(52,211,153,.09); color:var(--green-light); font-size:.68rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }

.scan-ticket-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) 240px;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding: clamp(22px,4vw,34px);
  overflow: hidden;
  border: 1px solid rgba(52,211,153,.3);
  border-radius: var(--radius-lg);
  background: radial-gradient(360px 220px at 100% 0%,rgba(52,211,153,.13),transparent 72%),var(--gradient-card);
  box-shadow: var(--shadow-md);
}
.scan-ticket-copy h2 { margin: 4px 0 8px; }
.scan-ticket-copy .btn { display:inline-flex; margin-top:18px; }
.scan-ticket-copy small { display:block; margin-top:10px; color:var(--text-muted); font-size:.72rem; }
.scan-preview { min-height:180px; padding:10px; border:1px solid var(--border-color); border-radius:14px; background:rgba(0,0,0,.22); }
.scan-preview img { width:100%; height:150px; border-radius:9px; object-fit:cover; }
.scan-progress { margin-top:9px; color:var(--green-light); font-size:.72rem; font-weight:700; }
.scan-review { grid-column:1/-1; padding-top:var(--space-lg); border-top:1px solid var(--border-color); }
.scan-review-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.scan-review-heading h3 { margin-top:4px; }
.scan-private-chip { padding:6px 10px; border-radius:999px; background:rgba(52,211,153,.1); color:var(--green-light); font-size:.66rem; font-weight:800; text-transform:uppercase; }
.scan-play-list { display:grid; gap:10px; margin-top:14px; }
.scan-play { display:grid; grid-template-columns:70px 1fr auto; gap:12px; align-items:center; width:100%; padding:12px; color:var(--text-primary); text-align:left; border:1px solid var(--border-color); border-radius:12px; background:rgba(255,255,255,.025); cursor:pointer; transition:var(--transition-fast); }
.scan-play:hover,.scan-play:focus-visible { border-color:var(--border-gold); background:rgba(244,173,40,.06); outline:none; }
.scan-play>span:first-child { color:var(--text-muted); font-size:.72rem; font-weight:800; text-transform:uppercase; }
.scan-play .ball-container { flex-wrap:nowrap; }
.scan-play strong { color:var(--gold-light); font-size:.76rem; white-space:nowrap; }
.scan-error { padding:14px 16px; border:1px solid rgba(248,113,113,.35); border-radius:12px; background:rgba(239,68,68,.08); }
.scan-error strong { color:var(--red-light); }
.scan-error p { margin-top:4px; font-size:.82rem; }

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  border-radius: 18px;
  background: rgba(244,173,40,.1);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 900;
}

.save-confirmation {
  margin-top: var(--space-md);
  color: var(--green-light);
  font-weight: 650;
}

.draw-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-xl);
  align-items: start;
}

.draw-detail-card {
  text-align: center;
  padding: var(--space-2xl);
}

.draw-detail-card .ball-container {
  justify-content: center;
  margin: var(--space-xl) 0;
}

.state-payout-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

@media (max-width: 960px) {
  .results-shell,
  .draw-detail-layout {
    grid-template-columns: 1fr;
  }

  .results-sidebar {
    grid-template-columns: repeat(2, 1fr);
    position: static;
  }

  .latest-result-grid {
    grid-template-columns: minmax(150px,.7fr) 1.3fr;
  }

  .latest-result-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 680px) {
  .page-hero {
    min-height: 270px !important;
  }

  .results-section {
    padding-top: var(--space-lg);
  }

  .game-switcher,
  .jackpot-strip,
  .results-sidebar {
    grid-template-columns: 1fr;
  }

  .game-switcher {
    display: grid;
  }

  .latest-result-grid,
  .ticket-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .latest-result-actions {
    grid-column: auto;
  }

  .latest-result-actions .btn {
    width: 100%;
  }

  .history-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-table thead {
    display: none;
  }

  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td {
    display: block;
    width: 100%;
  }

  .results-table tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .results-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    height: auto;
    padding: 4px 0;
    border: 0;
  }

  .results-table tbody td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .results-table tbody td:nth-child(2) {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-status {
    text-align: left;
  }

  .result-watch-panel { grid-template-columns:auto 1fr; align-items:start; }
  .result-watch-panel>div:last-child { grid-column:1/-1; width:100%; justify-items:stretch; }
  .result-watch-panel>div:last-child .btn { width:100%; }

  .scan-ticket-card { grid-template-columns:1fr; }
  .scan-preview { min-height:0; }
  .scan-review { grid-column:auto; }
  .scan-review-heading { align-items:flex-start; flex-direction:column; }
  .scan-play { grid-template-columns:1fr; }
  .scan-play .ball-container { flex-wrap:wrap; }

  .state-payout-picker {
    grid-template-columns: 1fr;
  }

  .ticket-actions {
    justify-content: flex-start;
  }
}

/* ===== Revenue MVP: Payout Calculator & Prize Checker ===== */
.calculator-hero {
  min-height: 470px;
  padding-bottom: var(--space-3xl);
}

.calculator-section {
  padding-top: 0;
  margin-top: -72px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
  gap: var(--space-xl);
  align-items: start;
}

.calculator-controls {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  background: rgba(13, 13, 32, 0.96);
  box-shadow: var(--shadow-lg);
}

.calculator-heading,
.breakdown-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.calculator-heading > span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.reset-link {
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.compact-grid { gap: var(--space-md); }

.money-input,
.percent-input {
  display: flex;
  align-items: center;
  min-height: 48px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.money-input:focus-within,
.percent-input:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.18);
}

.money-input span,
.percent-input span {
  padding-left: 14px;
  color: var(--gold);
  font-weight: 700;
}

.money-input input,
.percent-input input {
  min-width: 0;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
}

.money-input small {
  padding-right: 12px;
  color: var(--text-muted);
}

.percent-input span {
  order: 2;
  padding: 0 14px 0 0;
}

.field-help {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.result-summary-card {
  min-height: 185px;
  padding: var(--space-xl);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.cash-summary {
  background: linear-gradient(145deg, rgba(245, 166, 35, 0.22), rgba(20, 20, 45, 0.82));
  border-color: rgba(245, 166, 35, 0.32);
}

.annuity-summary {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.24), rgba(20, 20, 45, 0.82));
  border-color: rgba(139, 92, 246, 0.34);
}

.result-summary-card strong {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1;
}

.result-summary-card > span:last-child,
.summary-label {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.summary-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.breakdown-card,
.annuity-card,
.calculator-note {
  grid-column: 1 / -1;
}

.breakdown-heading h2,
.annuity-card h2 { font-size: 1.25rem; }

.breakdown-heading > span {
  padding: 5px 10px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold);
  font-size: 0.75rem;
  white-space: nowrap;
}

.breakdown-heading p {
  margin-top: 4px;
  font-size: 0.82rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 13px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.breakdown-row strong { color: var(--text-primary); }

.total-row {
  margin-top: 4px;
  color: var(--text-primary);
  font-weight: 700;
}

.total-row strong { color: var(--gold); }

.annuity-table-wrap { overflow-x: auto; }
.annuity-table { width: 100%; border-collapse: collapse; }
.annuity-table th,
.annuity-table td { padding: 12px 8px; border-top: 1px solid var(--border-color); text-align: right; }
.annuity-table th:first-child,
.annuity-table td:first-child { text-align: left; }
.annuity-table th { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.annuity-table td { color: var(--text-secondary); }
.annuity-table td:last-child { color: var(--text-primary); font-weight: 600; }
.schedule-extra { display: none; }

.calculator-note {
  padding: 0 var(--space-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.utility-explainer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.utility-copy {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.wide-copy { margin-top: 0; border-top: 0; }
.utility-copy h2 { margin-bottom: var(--space-md); }
.utility-copy > p + p { margin-top: var(--space-md); }
.explainer-grid { margin: var(--space-2xl) 0; }
.explainer-grid h3 { margin: var(--space-md) 0 var(--space-sm); }
.step-chip {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.14);
  color: var(--gold);
  font-weight: 800;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check-option input { width: 18px; height: 18px; accent-color: var(--gold); }
.result-kicker { margin-top: var(--space-md); color: var(--text-secondary); }
.prize-result {
  margin: var(--space-sm) 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 800;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.prize-note { font-size: 0.8rem; }

@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .calculator-controls { position: static; }
}

@media (max-width: 600px) {
  .calculator-section { margin-top: -35px; }
  .calculator-results { grid-template-columns: 1fr; }
  .result-summary-card { min-height: 150px; }
  .breakdown-card,
  .annuity-card,
  .calculator-note { grid-column: 1; }
  .compact-grid { grid-template-columns: 1fr; }
  .breakdown-heading { align-items: flex-start; }
}

/* ===== Print Styles ===== */
@media print {
  body::before,
  #site-header,
  #site-footer,
  .cookie-banner,
  .hero-bg-balls {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    border: 1px solid #ccc;
    background: #fff;
  }
}

/* ===================================================
   NEW COMPONENTS — World-Class Upgrade
   =================================================== */

/* ===== Confetti Animation ===== */
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg) scale(1); opacity: 1; }
  50% { opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg) scale(0.5); opacity: 0; }
}

/* ===== Countdown Timer ===== */
.countdown-grid {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  min-width: 50px;
  text-align: center;
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

.countdown-sep {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: -12px;
}

.countdown-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.countdown-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.countdown-card .lottery-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.countdown-card .draw-tonight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-light);
  animation: pulse 1.5s infinite;
  margin-bottom: var(--space-md);
}

/* ===== Email Signup Bar ===== */
.email-signup-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(10, 10, 30, 0.97), rgba(20, 15, 40, 0.97));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-gold);
  padding: var(--space-md) var(--space-xl);
  z-index: 9998;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: 0 -4px 30px rgba(245, 166, 35, 0.1);
}

.email-signup-bar.visible {
  transform: translateY(0);
}

.email-signup-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.email-signup-text {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.email-signup-icon { font-size: 1.5rem; }

.email-signup-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.email-signup-form {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.email-signup-input {
  padding: 10px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
  width: 260px;
  transition: border-color var(--transition-fast);
}

.email-signup-input:focus { border-color: var(--gold); }

.email-signup-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
  line-height: 1;
  transition: color var(--transition-fast);
}

.email-signup-close:hover { color: var(--text-primary); }

/* ===== Skeleton Loading ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, rgba(255,255,255,0.06) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--space-sm);
}

.skeleton-title {
  height: 28px;
  width: 60%;
  margin-bottom: var(--space-md);
}

/* ===== Calculator Styles ===== */
.calc-container { max-width: 900px; margin: 0 auto; }

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--gold-gradient);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.4);
}

.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.calc-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--gold-gradient);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.calc-result-card {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.calc-take-home {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin: var(--space-md) 0;
}

.calc-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.calc-breakdown-item {
  padding: var(--space-md);
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  text-align: center;
}

.calc-breakdown-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.calc-breakdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Toggle Switch ===== */
.toggle-group {
  display: flex;
  padding: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  width: fit-content;
}

.toggle-option {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.toggle-option.active {
  background: var(--gradient-cta);
  color: #000;
  box-shadow: var(--shadow-sm);
}

/* ===== Simulator Styles ===== */
.sim-machine {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, rgba(20, 20, 50, 0.9), rgba(10, 10, 30, 0.95));
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 60px rgba(0,0,0,0.5);
}

.sim-machine canvas { width: 100%; height: 100%; display: block; }

.sim-slots {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  padding: var(--space-lg);
  flex-wrap: wrap;
}

.sim-slot {
  width: 64px;
  height: 64px;
  border: 2px dashed var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  transition: all var(--transition-base);
}

.sim-slot.filled {
  border-style: solid;
  border-color: var(--gold);
  animation: ballPop 0.5s ease;
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}

.sim-slot.filled.bonus {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* ===== Dream Calculator ===== */
.dream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.dream-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.dream-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.dream-emoji { font-size: 3rem; margin-bottom: var(--space-md); }

.dream-count {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.dream-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.dream-price {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Odds Visualizer ===== */
.odds-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.odds-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: all var(--transition-base);
}

.odds-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.odds-card-icon { font-size: 2.5rem; flex-shrink: 0; }

.odds-card-odds {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
}

.odds-card-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.odds-dot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 500px;
  margin: var(--space-xl) auto;
}

.odds-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.odds-dot.highlight {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: pulse 2s infinite;
}

/* ===== Social Proof ===== */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--green-light);
  font-weight: 500;
}

.social-proof .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ===== Share Button ===== */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  color: var(--blue-light);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.share-btn:hover { background: rgba(59, 130, 246, 0.2); }

/* ===== Responsive additions ===== */
@media (max-width: 768px) {
  .email-signup-inner { flex-direction: column; text-align: center; }
  .email-signup-text { flex-direction: column; }
  .email-signup-form { width: 100%; flex-direction: column; }
  .email-signup-input { width: 100%; }
  .countdown-value { font-size: 1.5rem; }
  .calc-take-home { font-size: 2rem; }
  .dream-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-slot { width: 50px; height: 50px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .countdown-unit { min-width: 45px; }
  .countdown-value { font-size: 1.2rem; }
  .dream-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}
