/* Modern Design System for Quebec-Lotto.com */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #f59e0b;
  --accent: #10b981;
  --danger: #ef4444;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --section-padding: 100px 20px;
  --container-max: 1280px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.section-quebec {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.section-trust {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.section-trust::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-label.light {
  background-color: rgba(255, 255, 255, 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

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

.text-white {
  color: var(--white);
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-outline-dark {
  background-color: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-outline-dark:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  padding: 48px;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.modal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.modal-desc {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--gray-700);
}

.modal-desc-sm {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.modal-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.modal-register {
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}

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

.modal-header-register i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.modal-header-register h2 {
  margin-bottom: 8px;
}

.modal-header-register p {
  color: var(--gray-600);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--gray-100);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
  font-size: 1.25rem;
}

.modal-close:hover {
  background-color: var(--gray-200);
  color: var(--gray-900);
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.checkbox-group a {
  color: var(--primary);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

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

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
}

.logo-tagline {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding: 8px 4px;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 650px;
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 20px;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Draw Cards */
.draws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.draw-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid var(--gray-100);
  display: flex;
  flex-direction: column;
}

.draw-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.draw-card.featured {
  border-color: var(--primary);
  position: relative;
}

.badge-featured {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--secondary) 0%, #f59e0b 100%);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.draw-header {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 32px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}

.draw-logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.draw-logo img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.draw-body {
  padding: 32px;
  flex-grow: 1;
}

.draw-body h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.draw-description {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
  min-height: 50px;
}

.draw-jackpot {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  text-align: center;
}

.draw-jackpot.highlight {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.jackpot-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.jackpot-amount {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.maxmillions-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.info-item i {
  color: var(--primary);
  width: 20px;
}

.draw-footer {
  padding: 0 32px 32px;
}

/* Quebec Cards */
.quebec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.quebec-card {
  background-color: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid var(--gray-100);
}

.quebec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.quebec-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
}

.quebec-card h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.quebec-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Steps */
.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step-card {
  background-color: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  position: relative;
  border: 2px solid var(--gray-100);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary) 0%, #f59e0b 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-md);
}

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

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.step-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--gray-300);
  flex-shrink: 0;
}

/* Trust Section */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}

.trust-card {
  text-align: center;
  padding: 40px 24px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.trust-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.trust-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
}

.trust-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.trust-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Results */
.results-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.result-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-100);
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
}

.result-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.result-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-info h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.result-date {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.result-numbers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.ball.bonus {
  background: linear-gradient(135deg, var(--secondary) 0%, #f59e0b 100%);
}

.result-jackpot {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-700);
}

.result-jackpot strong {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Disclaimer */
.disclaimer {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 32px 0;
  border-top: 4px solid var(--secondary);
}

.disclaimer-content {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding: 0 20px; /* Added for responsiveness with the existing container pattern */
  max-width: var(--container-max);
  margin: 0 auto;
}

.disclaimer-content i {
  font-size: 2rem;
  color: #f59e0b;
  flex-shrink: 0;
}

.disclaimer-text {
  color: #92400e;
  line-height: 1.7;
  max-width: 900px;
}

.disclaimer-text strong {
  font-weight: 700;
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-500);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gray-800);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.125rem;
}

.social-links a:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-col ul.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul.contact-list i {
  color: var(--primary);
  font-size: 0.875rem;
}

.footer-divider {
  height: 1px;
  background-color: var(--gray-800);
  margin: 40px 0;
}

.lottery-logos {
  margin-bottom: 40px;
}

.lottery-logos h4 {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.lottery-logo-footer {
  background-color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 2px solid var(--gray-800);
}

.lottery-logo-footer:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.lottery-logo-footer img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

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

.footer-operators h5 {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.operators-grid a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.operators-grid a:hover {
  color: var(--white);
  border-color: var(--primary);
  background-color: rgba(37, 99, 235, 0.1);
}

.footer-bottom {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

.footer-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.age-badge,
.responsible-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
}

.age-badge {
  background-color: var(--danger);
  color: var(--white);
}

.responsible-badge {
  background-color: var(--accent);
  color: var(--white);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 100px 20px 80px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Lottery Detail Pages */
.lottery-detail {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-100);
  transition: var(--transition);
}

.lottery-detail:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.lottery-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 3px solid var(--primary);
}

.lottery-logo-large {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.lottery-header-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.lottery-tagline {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 600;
}

.lottery-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 32px;
  margin-bottom: 16px;
}

.lottery-content p {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
}

.steps-list,
.features-list {
  padding-left: 24px;
  margin: 20px 0;
}

.steps-list li,
.features-list li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--gray-700);
}

.prize-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prize-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.prize-table th {
  padding: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prize-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.prize-table tbody tr:hover {
  background-color: var(--gray-50);
}

.prize-table tbody tr:last-child {
  border-bottom: none;
}

.prize-table td {
  padding: 16px;
  color: var(--gray-700);
}

.lottery-info-box {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.register-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* Results Page */
.results-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-select {
  padding: 12px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  background-color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  min-width: 200px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.results-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.results-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.results-table th {
  padding: 20px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.results-table tbody tr:hover {
  background-color: var(--gray-50);
}

.results-table tbody tr:last-child {
  border-bottom: none;
}

.results-table td {
  padding: 20px 16px;
  color: var(--gray-700);
}

.results-table .number-balls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.results-table .ball {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
}

.ball.grand {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.note-box {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.note-box p {
  color: #1e40af;
  margin: 0;
}

/* Content Pages */
.content-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-100);
}

.content-card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.content-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.content-card p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--gray-700);
}

.content-card ul,
.content-card ol {
  margin: 20px 0;
  padding-left: 32px;
}

.content-card li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--gray-700);
}

.content-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.content-card a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 88px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 88px);
    background-color: var(--white);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 20px 0;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .nav-list li {
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-link {
    display: block;
    padding: 16px 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .step-card {
    max-width: 100%;
  }

  .lottery-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 60px 20px;
  }

  .hero {
    min-height: 500px;
    padding: 60px 20px;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  .draws-grid,
  .quebec-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 32px 24px;
  }

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

  .modal-buttons .btn {
    width: 100%;
  }

  .result-numbers,
  .results-table .number-balls {
    gap: 6px;
  }

  .ball,
  .results-table .ball {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .operators-grid {
    flex-direction: column;
  }

  .operators-grid a {
    width: 100%;
    text-align: center;
  }

  .lottery-detail {
    padding: 32px 24px;
  }

  .lottery-logo-large {
    width: 80px;
    height: 80px;
  }

  .lottery-header-text h2 {
    font-size: 1.75rem;
  }

  .content-card {
    padding: 32px 24px;
  }

  .results-table th,
  .results-table td {
    padding: 12px 8px;
    font-size: 0.875rem;
  }

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