:root {
  --bg-dark: #120a21;
  --bg-card: #1e1436;
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --accent: #a3e635;
  --text-main: #ffffff;
  --text-muted: #a9a5b6;
  --danger: #ef4444;
  --border: #342b57;
  --font-family: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  position: sticky;
  top: 0;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  background: transparent;
  color: var(--text-main);
  font-size: 1.2rem;
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.mobile-toggle {
  display: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1.5rem;
}

.hero {

  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.timer-box {
  background: rgba(255, 255, 255, 0.05);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-family: monospace;
  font-size: 1.25rem;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.section {
  padding: 3rem 0;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.grid-selection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.selection-option input {
  display: none;
}

.selection-option label {
  display: block;
  background-color: var(--bg-dark);
  border: 2px solid var(--border);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.selection-option label span {
  display: block;
}

.game-price {
  color: var(--primary);
  font-weight: bold;
}

.selection-option input:checked+label {
  border-color: var(--primary);

  background-color: rgba(139, 92, 246, 0.1);
}

.multi-draw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.draw-btn {
  background-color: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  flex: 1;
}

.draw-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.total-display {
  font-size: 1.5rem;
  font-weight: 700;
}

.error-msg {
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

.info-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.info-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

.odds-table th,
.odds-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

.odds-table th {
  background-color: var(--bg-dark);
  color: var(--text-main);
}

.last-win-card {
  text-align: center;
}

.win-numbers {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.num-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--bg-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

 

.draw-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.draw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: white;
  border-radius: 6px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  border-radius: 6px;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: var(--bg-card);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 4px;
}

.delete-btn {
  color: var(--danger);
  background: transparent;
  margin-left: 1rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  border: 1px solid var(--primary);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.modal-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .grid-selection {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
  }

  .draw-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}


.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stat-header h3 {
  margin: 0;
  color: var(--text-main);
}

.stat-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}


.num-badge.hot {
  background-color: #ef4444;
  color: white;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.num-badge.cold {
  background-color: #3b82f6;
  color: white;
  opacity: 0.8;
}


.table-responsive {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.leaderboard-table th {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.prize-amount {
  color: var(--accent) !important;
  font-weight: bold;
  font-family: monospace;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.age-gate-modal {
  max-width: 480px;
  width: 90%;
  background: #120a21;
  color: #f9fafb;
  border-radius: 18px;
  padding: 24px 24px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: left;
  border: 1px solid rgba(139, 92, 246, 0.6);
}

.age-gate-modal h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.age-gate-modal p {
  margin: 0 0 20px;
  line-height: 1.5;
  font-size: 0.98rem;
  color: #e5e7eb;
}

.age-gate-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}



.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #120a21;
  color: #f9fafb;
  padding: 14px 18px;
  z-index: 9998;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.6);
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-text h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}



.cookie-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 15, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cookie-settings-modal {
  max-width: 540px;
  width: 92%;
  background: #120a21;
  color: #f9fafb;
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.6);
}

.cookie-settings-modal h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.cookie-settings-modal p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: #e5e7eb;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.cookie-option:first-of-type {
  border-top: none;
}

.cookie-option-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cookie-option-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.cookie-option-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cookie-tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}



.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1f2937;
  border-radius: 999px;
  transition: 0.25s;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  border-radius: 999px;
  background-color: #e5e7eb;
  transition: 0.25s;
}

.toggle-switch input:checked+.toggle-slider {
  background-color: #8b5cf6;
}

.toggle-switch input:checked+.toggle-slider:before {
  transform: translateX(18px);
}



.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #8b5cf6;
  color: #f9fafb;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.45);
}

.btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.55);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.btn-secondary:hover {
  background: rgba(31, 41, 55, 0.8);
  transform: translateY(-1px);
}



.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}



@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .age-gate-modal {
    padding: 20px 18px 16px;
  }
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-group input {
  width: auto;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}


.mini-cart-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.total-highlight {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.total-highlight span:last-child {
  color: var(--accent);
}

.full-width-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  padding: 1rem;
}


@media (min-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }

  .form-row {
    flex-direction: row;
  }

  .sticky-summary {
    position: sticky;
    top: 100px;
  }
}.footer-imgs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-imgs img {
    padding: 12px;
    margin: 12px;
    height: 55px;
    background: white;
    border-radius: 10px;
}