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

:root {
  --primary-red: #ff0000;
  --primary-white: #ffffff;
  --dark-red: #c8102e;
  --light-red: #ff4444;
  --gray: #333333;
  --light-gray: #f5f5f5;
  --border-gray: #dddddd;
  --success-green: #27ae60;
  --gold: #ffd700;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray);
  background: var(--light-gray);
  min-height: 100vh;
}

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

.header {
  background: var(--primary-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-image {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-red);
  margin: 0;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--primary-white);
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--dark-red);
  padding: 10px 25px;
  border: 2px solid var(--primary-red);
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.hero {
  margin-top: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--dark-red) 100%
  );
  color: var(--primary-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "🍁";
  position: absolute;
  font-size: 400px;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.draw-info {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin: 40px auto;
  max-width: 700px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.jackpot-amount {
  font-size: 4rem;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 15px;
}

.next-draw {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 20px 25px;
  border-radius: 15px;
  text-align: center;
  min-width: 90px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gold);
}

.countdown-label {
  font-size: 0.95rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.features {
  padding: 80px 0;
  background: var(--primary-white);
}

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

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

.feature-card {
  background: var(--light-gray);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  border: 2px solid var(--border-gray);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-red);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-red);
}

.feature-card p {
  color: #666;
  line-height: 1.8;
}

.how-to-play {
  padding: 80px 0;
  background: var(--light-gray);
}

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

.step {
  background: var(--primary-white);
  padding: 40px 30px;
  border-radius: 20px;
  position: relative;
  border: 2px solid var(--border-gray);
  transition: all 0.3s ease;
}

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

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--primary-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
}

.step h3 {
  margin-top: 20px;
  font-size: 1.4rem;
  color: var(--dark-red);
  margin-bottom: 15px;
}

.step p {
  color: #666;
  line-height: 1.8;
}

.prize-divisions {
  padding: 80px 0;
  background: var(--primary-white);
}

.divisions-table {
  background: var(--light-gray);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 40px;
  border: 2px solid var(--border-gray);
}

.division-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr 1fr;
  padding: 20px;
  border-bottom: 1px solid var(--border-gray);
  align-items: center;
  gap: 20px;
}

.division-row:first-child {
  background: var(--dark-red);
  color: var(--primary-white);
  font-weight: bold;
}

.division-row:not(:first-child):hover {
  background: rgba(255, 0, 0, 0.05);
}

.division-row:last-child {
  border-bottom: none;
}

.buy-section {
  padding: 100px 0 60px;
  min-height: 100vh;
  background: var(--light-gray);
}

.tickets-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  margin-top: 40px;
}

.ticket-creator {
  background: var(--primary-white);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--border-gray);
}

.game-selection {
  margin-bottom: 40px;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.game-card.active {
  border-color: var(--primary-red);
  background: rgba(255, 0, 0, 0.05);
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.game-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dark-red);
  margin-bottom: 10px;
}

.game-prize {
  font-size: 1.5rem;
  color: var(--primary-red);
  font-weight: bold;
  margin-bottom: 10px;
}

.game-odds {
  font-size: 0.9rem;
  color: #666;
}

.number-picker h3 {
  margin-bottom: 20px;
  color: var(--dark-red);
}

.number-mode-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.mode-btn {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--primary-red);
  background: transparent;
  color: var(--dark-red);
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.mode-btn:hover:not(.active) {
  background: rgba(255, 0, 0, 0.1);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
}

.number-btn {
  aspect-ratio: 1;
  border: 2px solid var(--border-gray);
  background: var(--primary-white);
  border-radius: 50%;
  font-weight: bold;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.number-btn:hover {
  border-color: var(--primary-red);
  background: rgba(255, 0, 0, 0.1);
}

.number-btn.selected {
  background: var(--primary-red);
  color: var(--primary-white);
  border-color: var(--primary-red);
}

.selected-numbers-display {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 0, 0, 0.05);
  border-radius: 10px;
  border: 1px solid var(--primary-red);
}

.selected-numbers-display p {
  color: var(--dark-red);
  margin-bottom: 10px;
  font-weight: 500;
}

#selectedNumbersList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 20px;
}

.selected-number {
  background: var(--primary-red);
  color: var(--primary-white);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.order-summary {
  background: var(--primary-white);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--border-gray);
  position: sticky;
  top: 100px;
  min-height: 300px;
}

.order-summary h3 {
  color: var(--dark-red);
  margin-bottom: 30px;
  text-align: center;
  font-size: 1.8rem;
}

#cartItemsContainer {
  min-height: 100px;
  margin-bottom: 20px;
}

.order-detail.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-gray);
  font-size: 0.95rem;
  line-height: 1.4;
}

.order-detail.cart-item:last-of-type {
  border-bottom: none;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--dark-red);
  border-top: 2px solid var(--primary-red);
  margin-top: 10px;
}

#checkoutBtn {
  width: 100%;
  padding: 18px;
  font-size: 1.2rem;
  margin-top: 20px;
}

#checkoutBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-container {
  margin-top: 80px;
  padding: 80px 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  background: var(--primary-white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  border: 2px solid var(--border-gray);
}

.auth-box h2 {
  color: var(--dark-red);
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

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

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-links a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

.content-page {
  margin-top: 80px;
  padding: 80px 0;
}

.content-container {
  background: var(--primary-white);
  padding: 60px;
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.content-container h1 {
  color: var(--dark-red);
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.content-container h2 {
  color: var(--dark-red);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.content-container h3 {
  color: var(--gray);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.content-container p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
}

.content-container ul,
.content-container ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.content-container li {
  margin-bottom: 10px;
  line-height: 1.8;
  color: #555;
}

.copyright {
  color: #888;
  font-size: 0.9rem;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #333;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  color: var(--primary-white);
  padding: 20px;
  z-index: 2500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-banner.hidden {
  display: none;
}

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

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

.cookie-text h3 {
  margin-bottom: 10px;
  color: var(--gold);
}

.cookie-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.cookie-text a {
  color: var(--primary-red);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.cookie-btn.accept {
  background: var(--success-green);
  color: var(--primary-white);
}

.cookie-btn.decline {
  background: transparent;
  color: var(--primary-white);
  border: 2px solid var(--primary-white);
}

.cookie-btn.settings {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.age-overlay.hidden {
  display: none;
}

.age-box {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  color: var(--primary-white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 90%;
}

.age-box h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--gold);
}

.age-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.age-subtitle {
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.95;
}

.age-warning {
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 20px;
  font-weight: bold;
}

.age-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.age-buttons button {
  padding: 15px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

#yesBtn {
  background: var(--success-green);
  color: var(--primary-white);
}

#noBtn {
  background: #333;
  color: var(--primary-white);
}

.age-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

  .order-summary {
    position: static;
  }

  .numbers-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .jackpot-amount {
    font-size: 2.5rem;
  }

  .countdown {
    gap: 10px;
  }

  .countdown-item {
    min-width: 70px;
    padding: 15px 20px;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .division-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    gap: 15px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-image {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .auth-box {
    padding: 30px;
  }

  .content-container {
    padding: 30px;
  }

  .numbers-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }

  .number-btn {
    font-size: 0.9rem;
  }

  .game-cards {
    grid-template-columns: 1fr;
  }

  .ticket-creator {
    padding: 30px;
  }

  .order-summary {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .jackpot-amount {
    font-size: 2rem;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .age-buttons {
    flex-direction: column;
  }

  .numbers-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .number-btn {
    font-size: 0.85rem;
  }

  .mode-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-white);
  color: var(--gray);
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

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

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-text h3 {
  margin-top: 0;
  color: var(--primary-red);
}

.cookie-text p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

.cookie-text a {
  color: var(--primary-red);
  font-weight: bold;
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 15px;
  border: 1px solid var(--primary-red);
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.cookie-btn.accept {
  background: var(--primary-red);
  color: var(--primary-white);
}

.cookie-btn.accept:hover {
  background: var(--dark-red);
}

.cookie-btn.decline {
  background: var(--light-gray);
  color: var(--gray);
}

.cookie-btn.decline:hover {
  background: var(--border-gray);
}

.cookie-btn.settings {
  background: var(--primary-white);
  color: var(--primary-red);
}

.cookie-btn.settings:hover {
  background: var(--light-gray);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  .cookie-btn {
    flex: 1;
    min-width: 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;
}
