:root {
  --primary-color: #C8102E;
  --primary-dark: #8a0b20;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --bg-light: #f3f4f6;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --success: #10b981;
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bronze: #CD7F32;
  --hot: #e11d48;
  --cold: #0ea5e9;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  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%;
}

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

header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav ul {
  display: flex;
  gap: 20px;
}

.main-nav a {
  font-weight: 500;
}

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

.cart-link {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-badge {
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 10px;
}

.hero-strip {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 15px 0;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.countdown {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 4px;
}

.btn-hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s;
}

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

main {
  flex: 1;
  padding: 40px 0 !important;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: var(--text-dark);
}

.ticket-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 30px;
  max-width: 600px;
  margin: 0 auto 50px;
}

.ticket-step {
  margin-bottom: 25px;
}

.ticket-step h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.radio-list label {
  display: block;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.radio-list label:hover {
  border-color: var(--primary-color);
  background-color: #fdf2f2;
}

.radio-list input:checked+label {
  border-color: var(--primary-color);
  background-color: #fff1f2;
  color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color) inset;
}

.radio-list input {
  display: none;
}

select,
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.price-total {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: right;
  margin: 20px 0;
  color: var(--primary-color);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  text-align: center;
}

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

.btn-primary:active {
  transform: scale(0.99);
}

.btn-secondary {
  padding: 10px 20px;
  background: #e5e7eb;
  color: var(--text-dark);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.info-section {
  margin-bottom: 50px;
}

.info-content {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
  margin-bottom: 20px;
  color: var(--text-dark);
  font-size: 1.5rem;
}

.odds-table,
.cart-table,
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.odds-table th,
.cart-table th,
.results-table th,
.odds-table td,
.cart-table td,
.results-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.odds-table th,
.cart-table th,
.results-table th {
  background-color: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
}

.result-card {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.ball {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.2);
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.cart-summary {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  height: fit-content;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.summary-total {
  border-top: 2px solid var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.btn-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.btn-remove:hover {
  color: #b91c1c;
}


.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.feature-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}


.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid var(--bg-light);
}


.leaderboard-rank {
  font-weight: bold;
  text-align: center;
  width: 60px;
}

.rank-icon {
  font-size: 1.2rem;
}

.rank-1 {
  color: var(--gold);
}

.rank-2 {
  color: var(--silver);
}

.rank-3 {
  color: var(--bronze);
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.stat-card {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: bold;
}

.hot-header {
  color: var(--hot);
}

.cold-header {
  color: var(--cold);
}

.stat-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-ball {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--white);
  box-shadow: inset -1px -1px 3px rgba(0, 0, 0, 0.2);
}

.hot-ball {
  background-color: var(--hot);
}

.cold-ball {
  background-color: var(--cold);
}



.age-warning {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 20px 40px;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--border-color);
}

.cookie-content {
  flex: 1;
  min-width: 300px;
}

.cookie-settings-modal {
  text-align: left;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.hidden {
  display: none !important;
}


@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 15px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ticket-card {
    padding: 20px;
  }

  .btn-group {
    flex-direction: column;
  }

  .odds-table th,
  .odds-table td,
  .cart-table th,
  .cart-table td,
  .results-table th,
  .results-table td {
    padding: 10px;
    font-size: 0.9rem;
  }
}

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

.policy-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.policy-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.policy-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.policy-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.policy-content li {
  margin-bottom: 8px;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background-color: var(--bg-light);
  font-weight: bold;
  color: var(--text-dark);
}

.browser-list strong {
  color: var(--text-dark);
}

.policy-content ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.policy-content li {
  margin-bottom: 10px;
}

.policy-content strong {
  color: var(--text-dark);
}

.contact-box {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin-top: 20px;
}

.rp-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 10px;
  font-size: 1.6rem;
}

.rp-content h3 {
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 700;
}

.rp-content p {
  margin-bottom: 15px;
  text-align: justify;
  color: var(--text-light);
}

.rp-content ul {
  list-style: none;
  margin-bottom: 20px;
}

.rp-content li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
  color: var(--text-light);
}

.rp-content li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success);
}

.warning-box {
  background-color: #fef2f2;
  border-left: 5px solid #ef4444;
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

.warning-box h4 {
  color: #b91c1c;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.resource-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.resource-card h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.resource-card a {
  color: var(--text-dark);
  font-weight: bold;
  text-decoration: underline;
}