:root {
    --primary: #0f172a;
    --accent: #1d4ed8;
    --accent-hover: #1e40af;
    --bg-body: #f5f5f7;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

    --sp-bg: #ffffff;
    --sp-primary: #1d4ed8;
    --sp-text: #0f172a;
    --sp-muted: #6b7280;
    --sp-border: #e5e7eb;
    --sp-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

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

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

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

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-links {
    display: none;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

.hero {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.time-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 80px;
}

.time-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.time-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

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

main {
    flex: 1;
    padding: 2rem 0 !important;
}

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

.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.config-step {
    margin-bottom: 2rem;
}

.config-step h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.config-step p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

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

.selection-option:hover {
    border-color: var(--accent);
}

.selection-option.active {
    border-color: var(--accent);
    background-color: #eff6ff;
    color: var(--accent);
    font-weight: 600;
}

.summary-bar {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.info-block {
    margin-bottom: 2rem;
}

.info-block h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-block p,
.info-block li {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.odds-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

.odds-table th {
    color: var(--primary);
    background: #f8fafc;
}

.ball-row {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.ball {
    width: 36px;
    height: 36px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.search-bar input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.result-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-white);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.draw-meta {
    font-weight: 600;
    color: var(--primary);
}

.draw-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-details {
    flex: 1;
}

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

.qty-btn {
    background: var(--border);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.remove-btn {
    color: #ef4444;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
}

.payment-box {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.success-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 6px;
    display: none;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.faq-question {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.community-section {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.community-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.community-section p {
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

.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;
}

.checkout-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.checkout-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

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

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
    cursor: pointer;
}

.error-text {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.input-error {
    border-color: #ef4444 !important;
}

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

    .full-width {
        grid-column: span 2;
    }
}

.leaderboard-section {
    margin-top: 3rem;
}

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

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

.leaderboard-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

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

.rank-icon {
    color: #fbbf24;
    margin-right: 0.5rem;
}

.stats-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

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

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

.stat-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hot-header {
    color: #dc2626;
}

.cold-header {
    color: #2563eb;
}

.stat-balls-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stat-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.stat-ball.hot {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
}

.stat-ball.cold {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

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

.age-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.age-gate-modal {
  background: var(--sp-bg);
  color: var(--sp-text);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--sp-shadow);
  text-align: center;
}

.age-gate-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.age-gate-modal p {
  font-size: 0.95rem;
  color: var(--sp-muted);
  margin-bottom: 1.5rem;
}

.age-gate-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
  

.btn-primary,
.btn-outline {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--sp-primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(30, 64, 175, 0.45);
}

.btn-outline {
  background: #ffffff;
  color: var(--sp-primary);
  border-color: var(--sp-primary);
}

.btn-outline:hover {
  background: #eff6ff;
}
 

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(50%) translateY(150%);
  background: #ffffff;
  color: var(--sp-text);
  max-width: 950px;
  width: calc(100% - 2rem);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  box-shadow: var(--sp-shadow);
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner-text h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sp-muted);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

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

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

  .cookie-banner-actions .btn-primary,
  .cookie-banner-actions .btn-outline {
    width: auto;
  }
}
 

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.18s ease;
}

.cookie-modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  background: #ffffff;
  color: var(--sp-text);
  max-width: 520px;
  width: 92%;
  border-radius: 1rem;
  box-shadow: var(--sp-shadow);
  padding: 1.25rem 1.5rem 1.25rem;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cookie-modal-header h3 {
  font-size: 1.1rem;
}

.cookie-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--sp-muted);
  line-height: 1;
}

.cookie-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: #f9fafb;
}

.cookie-option strong {
  font-size: 0.95rem;
}

.cookie-option p {
  font-size: 0.85rem;
  margin: 0.2rem 0 0;
  color: var(--sp-muted);
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
 

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

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e5e7eb;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: var(--sp-primary);
}

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

.switch input:disabled + .slider {
  background-color: #d1d5db;
}
 

.cookie-settings-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--sp-border);
  background: #ffffff;
  color: var(--sp-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  z-index: 9997;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.cookie-settings-fab:hover {
  background: #eef2ff;
  transform: translateY(-1px);
}
 

@media (max-width: 480px) {
  .age-gate-modal {
    padding: 1.5rem;
  }
}