:root {
  --primary-color: #0066cc;
  --secondary-color: #ffd700;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --text-color: #333;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

.main-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff !important;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.nav-link {
  color: #fff !important;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
}

.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.8) 0%,
    rgba(22, 33, 62, 0.9) 100%
  );
}

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

.min-vh-50 {
  min-height: 50vh;
}

.jackpot-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.jackpot-label {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jackpot-amount {
  font-size: 3rem;
  font-weight: bold;
  color: var(--success-color);
  margin: 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.next-draw {
  color: #666;
  font-size: 1rem;
}

.age-banner {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  border-bottom: 3px solid #dc3545;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.age-banner h5 {
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.age-banner p {
  color: var(--dark-color);
}

.features-section {
  background: var(--light-color);
}

.feature-box {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-box h4 {
  margin: 1rem 0;
  font-weight: 600;
  color: var(--dark-color);
}

.game-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.game-icon {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.game-card h3 {
  text-align: center;
  color: var(--dark-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

.game-stats {
  background: var(--light-color);
  border-radius: 10px;
  padding: 1rem;
  margin-top: auto;
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.stat-label {
  font-weight: 600;
  color: #666;
}

.stat-value {
  font-weight: bold;
  color: var(--primary-color);
}

.step-card {
  position: relative;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.winner-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.winner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.winner-card h5 {
  font-weight: bold;
  color: var(--dark-color);
  margin-top: 1rem;
}

.location {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.prize-amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--success-color);
  margin: 1rem 0;
}

.game-name {
  color: var(--primary-color);
  font-weight: 600;
}

.why-choose {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.why-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.why-item i {
  font-size: 2rem;
  margin-top: 0.5rem;
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: var(--dark-color);
  color: #fff;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-body {
  padding: 1.5rem;
  background: #fff;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
  padding: 5rem 0;
}

.auth-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  background: var(--light-color);
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.security-notice {
  background: var(--light-color);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.legal-section {
  min-height: 60vh;
  padding: 4rem 0;
}

.legal-content {
  background: #fff;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.legal-content h3 {
  color: var(--dark-color);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.contact-info {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
}

.tip-card {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.help-resources {
  display: grid;
  gap: 1.5rem;
}

.resource-card {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid var(--primary-color);
}

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

.site-footer {
  background: var(--dark-color);
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.footer-heading-blue {
  color: #5dade2;
}

.footer-heading-green {
  color: #52c41a;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.footer-img:hover {
  transform: scale(1.05);
}

.footer-img-invert {
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: #999;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.98);
  color: #fff;
  padding: 1.5rem 0;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.modal-content {
  border-radius: 20px;
  border: none;
}

#ageModal .modal-content {
  border: 3px solid var(--primary-color);
}

#ageModal .modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
  color: white;
  border-bottom: none;
  padding: 2rem 2rem 1rem;
  border-radius: 20px 20px 0 0;
}

#ageModal .modal-title {
  font-weight: bold;
  font-size: 1.5rem;
}

#ageModal .modal-body {
  padding: 3rem 2rem;
}

#ageModal .modal-body h4 {
  color: var(--dark-color);
  font-weight: bold;
  margin: 1rem 0;
}

#ageModal .modal-body p {
  color: #666;
  font-size: 1.1rem;
}

#ageModal .modal-footer {
  border-top: none;
  padding: 0 2rem 2rem;
  gap: 1rem;
}

#ageModal .btn-lg {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  border-radius: 50px;
  font-weight: bold;
}

.modal-backdrop.show {
  opacity: 0.8;
}

.modal-header {
  border-bottom: none;
  padding: 2rem 2rem 0;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: none;
  padding: 0 2rem 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background: #004080;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.form-control,
.form-select {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.input-group-text {
  background: var(--light-color);
  border: 2px solid #e0e0e0;
  border-right: none;
  border-radius: 10px 0 0 10px;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0;
    min-height: auto;
  }

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

  .display-3 {
    font-size: 2.5rem;
  }

  .auth-card {
    padding: 2rem;
  }

  .legal-content {
    padding: 2rem;
  }

  .footer-img {
    max-width: 120px;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
}
