:root {
  --primary-red: #d32f2f;
  --dark-red: #b71c1c;
  --light-red: #e57373;
  --white: #ffffff;
  --off-white: #fafafa;
  --dark-text: #212121;
  --gray-text: #757575;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background: var(--off-white);
}

.top-bar {
  background: var(--dark-text);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.navbar {
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-text) !important;
}

.brand-name {
  color: var(--dark-text);
}

.nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 2px;
}

.btn-danger {
  background: var(--primary-red);
  border: none;
  padding: 0.7rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-outline-danger {
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  padding: 0.65rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 2px solid var(--dark-text);
  color: var(--dark-text);
  padding: 0.65rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-dark:hover {
  background: var(--dark-text);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-section {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--dark-text);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gray-text);
  margin-bottom: 3rem;
}

.main-jackpot-card {
  background: var(--white);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--primary-red);
  overflow: hidden;
  height: 100%;
}

.jackpot-header {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--dark-red) 100%
  );
  color: var(--white);
  padding: 1.5rem 2rem;
}

.jackpot-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.live-badge {
  background: var(--white);
  color: var(--primary-red);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  animation: pulse 2s infinite;
}

.live-badge i {
  color: #ff0000;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.3;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.jackpot-body {
  padding: 2.5rem;
}

.jackpot-display-large {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.jackpot-display-large .currency {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-red);
  margin-right: 0.5rem;
  align-self: flex-start;
}

.jackpot-display-large .amount {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-red);
  line-height: 1;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 12px;
}

.timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-item .time {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-red);
  line-height: 1;
}

.timer-item .label {
  font-size: 0.85rem;
  color: var(--gray-text);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.3rem;
}

.pulse-button {
  animation: buttonPulse 2s infinite;
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.3);
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.3);
  }
  50% {
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.5);
  }
}

.quick-info-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-red);
}

.quick-info-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 0.5rem 0;
  color: var(--dark-text);
  font-weight: 500;
}

.info-list li i {
  margin-right: 0.5rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
}

.hero-features,
.hero-buttons {
  display: none;
}

.jackpot-widget,
.widget-header,
.widget-amount,
.widget-info,
.info-item {
  display: none;
}

.stats-section {
  background: var(--white);
  padding: 4rem 0;
}

.stat-box {
  padding: 2rem;
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--dark-red) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-red);
  margin: 1rem 0 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--gray-text);
  font-weight: 500;
}

.draws-section {
  padding: 5rem 0;
  background: var(--light-gray);
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--gray-text);
}

.draw-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.draw-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-red);
}

.draw-card.featured {
  border-color: var(--primary-red);
  background: linear-gradient(135deg, var(--white) 0%, #ffebee 100%);
}

.draw-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-red);
  color: var(--white);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.draw-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.draw-tagline {
  color: var(--gray-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.draw-jackpot {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.draw-jackpot .label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 0.5rem;
}

.draw-jackpot .amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-red);
}

.draw-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.draw-details li {
  padding: 0.7rem 0;
  color: var(--dark-text);
  border-bottom: 1px solid var(--border-color);
}

.draw-details li:last-child {
  border-bottom: none;
}

.how-to-play-section {
  padding: 5rem 0;
  background: var(--white);
}

.step-card {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  height: 100%;
}

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

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--primary-red);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.step-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin: 1rem 0 1.5rem;
}

.step-card h4 {
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--gray-text);
  margin: 0;
}

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

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

.why-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  height: 100%;
}

.why-box:hover {
  transform: translateY(-10px);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2);
}

.why-box i {
  font-size: 3rem;
}

.why-box h5 {
  font-weight: 700;
  color: var(--dark-text);
  margin: 1rem 0;
}

.why-box p {
  color: var(--gray-text);
  margin: 0;
}

.faq-section {
  padding: 5rem 0;
  background: var(--light-gray);
}

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

.accordion-button {
  background: var(--white);
  color: var(--dark-text);
  font-weight: 600;
  padding: 1.5rem;
  border: none;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-red);
  color: var(--white);
  box-shadow: none;
}

.accordion-button::after {
  filter: none;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

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

.accordion-body {
  padding: 1.5rem;
  background: var(--white);
  color: var(--gray-text);
}

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

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.cta-section .btn-light {
  color: var(--primary-red);
  font-weight: 700;
}

.cta-section .btn-light:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

.site-footer {
  background: var(--dark-text);
  color: #ccc;
  padding: 4rem 0 2rem;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-heading-blue {
  color: #64b5f6;
}

.footer-heading-green {
  color: #81c784;
}

.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(--primary-red);
  padding-left: 5px;
}

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

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

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

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(211, 47, 47, 0.98);
  color: var(--white);
  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;
}

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

.age-icon {
  background: rgba(211, 47, 47, 0.1);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

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

.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary-red);
}

.security-notice {
  background: rgba(211, 47, 47, 0.08);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-left: 4px solid var(--primary-red);
}

.legal-section {
  min-height: 60vh;
  padding: 4rem 0;
  background: var(--light-gray);
}

.legal-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary-red);
}

.legal-content h2 {
  color: var(--primary-red);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

.legal-content h3 {
  color: var(--dark-text);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.contact-info {
  background: rgba(211, 47, 47, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-red);
}

.form-control,
.form-select {
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15);
}

.input-group-text {
  background: var(--light-gray);
  border: 2px solid var(--border-color);
  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: 991px) {
  .navbar-actions {
    margin-top: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

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

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

  .stat-number {
    font-size: 2.5rem;
  }

  .auth-card {
    padding: 2rem;
  }

  .legal-content {
    padding: 2rem;
  }
}

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

.animate-in {
  animation: slideInUp 0.6s ease-out;
}
