/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-teal);
  border-radius: 50%;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .nav-menu li a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.main-navigation .nav-menu li a:hover {
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  left: 0;
}

.menu-icon::before { top: -7px; }
.menu-icon::after { bottom: -7px; }

/* Hero Section */
.hero-section {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  gap: 24px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.hero-badge svg {
  stroke: var(--text-secondary);
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jackpot-card {
  padding: 24px;
  text-align: left;
}

.jackpot-label {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.jackpot-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.jackpot-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Draw Section */
.draw-card-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.draw-card {
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-light) 100%);
}

.draw-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.draw-name {
  display: flex;
  flex-direction: column;
}

.draw-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.draw-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.draw-jackpot {
  text-align: center;
  color: var(--accent-teal);
  margin-bottom: 16px;
}

.draw-jackpot .currency {
  font-size: 14px;
  vertical-align: super;
}

.draw-jackpot .amount {
  font-size: 4rem;
  font-weight: 700;
}

.draw-jackpot .unit {
  font-size: 1.5rem;
  font-weight: 500;
  margin-left: 8px;
}

.draw-bonus {
  text-align: center;
  margin-bottom: 24px;
}

.draw-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.draw-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.draw-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.draw-info-item svg {
  stroke: var(--text-secondary);
}

.draw-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* Winners Section */
.winners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.winner-card {
  padding: 24px;
}

.winner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

.winner-date-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.winner-date {
  font-size: 14px;
  color: var(--text-secondary);
}

.winner-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.winner-bonus {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.winner-bonus .plus {
  color: var(--text-secondary);
}

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

.winner-prize {
  font-size: 1.25rem;
  font-weight: 700;
}

.winner-count {
  font-size: 14px;
  color: var(--text-secondary);
}

/* How It Works Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  padding: 32px;
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent-teal);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-card-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 24px;
}

.step-icon svg {
  stroke: var(--text-primary);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
  border-radius: var(--radius-xl);
  padding: 48px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.cta-description {
  color: var(--text-secondary);
  margin: 0;
}

/* Responsible Notice */
.responsible-notice {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
}

.notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.notice-content svg {
  stroke: var(--text-secondary);
  flex-shrink: 0;
}

.notice-text {
  text-align: center;
}

.notice-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notice-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Enjoy Section */
.enjoy-section {
  background: linear-gradient(135deg, #c6873a 0%, #d69e4e 50%, #c6873a 100%);
  padding: 64px 0;
  text-align: center;
}

.enjoy-title {
  font-size: 2rem;
  color: white;
  margin-bottom: 16px;
}

.enjoy-description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
}

.footer-main {
  padding: 48px 0;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-help {
  font-weight: 500;
  color: var(--text-primary);
}

.footer-license,
.footer-managed {
  color: var(--text-secondary);
}

.footer-warning {
  font-weight: 700;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 32px !important;
}

.footer-links {
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-nav .separator {
  color: var(--text-secondary);
}

.footer-badges {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
}

.badges-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badge-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.footer-badge-btn:hover {
  background: var(--bg-card-light);
  color: var(--text-primary);
}

.footer-badge-teal {
  background: var(--accent-teal);
  color: var(--bg-dark);
  font-weight: 700;
  border-color: var(--accent-teal);
}

.footer-badge-teal:hover {
  background: var(--accent-teal-dark);
  color: var(--bg-dark);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border-color);
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.modal-close svg {
  stroke: var(--text-secondary);
  transition: stroke 0.2s ease;
}

.modal-close:hover svg {
  stroke: var(--text-primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 209, 197, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-icon svg {
  stroke: var(--accent-teal);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
  background: var(--bg-card-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder {
  color: var(--text-secondary);
}

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

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.modal-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Content Modal (larger) */
.modal-content-lg {
  max-width: 640px;
}

.content-modal .modal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.content-modal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}

.content-modal .modal-body::-webkit-scrollbar {
  width: 6px;
}

.content-modal .modal-body::-webkit-scrollbar-track {
  background: var(--bg-card-light);
  border-radius: 3px;
}

.content-modal .modal-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.content-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.content-modal .modal-body h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.content-modal .modal-body h3:first-child {
  margin-top: 0;
}

.content-modal .modal-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-modal .modal-body ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.content-modal .modal-body ul li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.content-modal .modal-body ul li strong {
  color: var(--text-primary);
}

.modal-updated {
  margin-top: 24px !important;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  opacity: 0.7;
}

.modal-icon-warning {
  background: rgba(239, 68, 68, 0.2) !important;
}

.modal-icon-warning svg {
  stroke: #ef4444 !important;
}

.responsible-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.responsible-banner p {
  color: #fca5a5 !important;
  font-weight: 500;
  margin: 0 !important;
  text-align: center;
}

.help-resources {
  background: var(--bg-card-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
}

.help-resource {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.help-resource:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.help-resource strong {
  color: var(--text-secondary);
  font-size: 14px;
  min-width: 120px;
}

.help-resource span,
.help-resource a {
  font-size: 14px;
}

.help-resource a {
  color: var(--accent-teal);
}

.help-resource a:hover {
  text-decoration: underline;
}

.age-restriction {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.age-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-teal);
  color: var(--bg-dark);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-restriction p {
  margin: 0 !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .winners-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .main-navigation.active .nav-menu {
    display: flex;
  }

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

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

  .hero-badges {
    flex-direction: column;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .draw-info {
    flex-direction: column;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }

  .footer-nav .separator {
    display: none;
  }

  .badges-row {
    flex-direction: column;
    align-items: center;
  }
}
