/* =========================================================
   Base reset + element defaults
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a3a3a;
  background: #f2fafa;
  -webkit-font-smoothing: antialiased;
}

/* subtle grain texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  line-height: 1.15;
  font-weight: 700;
  color: #103a3a;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}
h1 { font-size: 46px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 16px; }
a { color: #2fb8b8; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 16px; padding-left: 20px; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select {
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cfe6e6;
  border-radius: 999px;
  background: #fff;
}
textarea { border-radius: 16px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #2fb8b8; outline-offset: 1px; }
summary { cursor: pointer; }

/* =========================================================
   Variables — lotto247 palette
   ========================================================= */
:root {
  --teal:       #2fb8b8;
  --teal-dark:  #1e9494;
  --teal-soft:  #cfeeee;
  --teal-bg:    #e6f7f7;
  --mint-bg:    #f2fafa;
  --green:      #27ae60;
  --green-dark: #219150;
  --black:      #0d0d0d;
  --navy:       #103a3a;
  --text:       #1a3a3a;
  --muted:      #5c7878;
  --white:      #ffffff;
  --border:     #d6ecec;
  --container: 1200px;
  --shadow-sm: 0 2px 6px rgba(16, 58, 58, 0.06);
  --shadow-md: 0 8px 20px rgba(16, 58, 58, 0.10);
  --shadow-lg: 0 18px 40px rgba(16, 58, 58, 0.14);
}

/* =========================================================
   CSS-only animations
   ========================================================= */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}
@keyframes underline-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes scale-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.animate-fade-in-up { animation: fade-in-up 0.7s ease-out both; }
.animate-fade-in    { animation: fade-in 0.8s ease-out both; }

/* =========================================================
   Layout primitives
   ========================================================= */
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-soft { background: var(--teal-bg); }
.section-light { background: linear-gradient(180deg, #f8fbfd 0%, #eef6f9 100%); }
.section-hero {
  background: var(--teal-bg);
  color: var(--navy);
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.section-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  filter: blur(40px);
  pointer-events: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
.col-3, .col-4, .col-5, .col-6, .col-7, .col-12 { padding: 0 12px; width: 100%; }
.col-12 { flex: 0 0 100%; }
.col-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  background: var(--white);
  border: 1px solid var(--teal-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
  animation: fade-in-up 0.5s ease-out both;
}
.section-title { margin-bottom: 14px; color: var(--navy); }
.section-subtitle { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 44px; }

/* =========================================================
   Buttons — all rounded pill
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateX(100%); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-cta { background: var(--green); color: #fff; animation: pulse-soft 2.2s infinite; }
.btn-cta:hover { background: var(--green-dark); animation: none; }
.btn-outline { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.section-navy .btn-outline,
.ready-section .btn-outline { color: #fff; border-color: #fff; }
.section-navy .btn-outline:hover,
.ready-section .btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--teal); color: #fff; }
.btn-dark:hover { background: var(--teal-dark); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  text-decoration: none;
  font-family: Georgia, serif;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand span { color: var(--teal); }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 72px;
  width: auto;
  max-width: 260px;
  display: block;
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.site-nav a:hover { color: var(--teal); text-decoration: none; }
.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 50px; margin-bottom: 20px; color: var(--navy); }
.hero p.lead { font-size: 18px; margin-bottom: 32px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  animation: fade-in-up 0.9s ease-out 0.2s both;
}
.hero-visual img {
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.hero-visual::before {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 2px dashed var(--teal);
  z-index: -1;
  opacity: 0.5;
  animation: spin-slow 60s linear infinite;
}

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-bar .row { align-items: center; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}
.trust-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}
.trust-item:hover .icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--teal);
  color: #fff;
}

/* =========================================================
   Feature cards / Steps
   ========================================================= */
.feature-card, .step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover, .step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card .icon-circle, .step-card .step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 22px;
  font-weight: 800;
  transition: transform 0.25s;
}
.feature-card .icon-circle { background: var(--teal-soft); color: var(--teal-dark); }
.feature-card:hover .icon-circle { transform: scale(1.1) rotate(8deg); }
.step-card .step-num { background: var(--green); color: #fff; }
.step-card:hover .step-num { animation: wiggle 0.4s ease; }
.feature-card h3, .step-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--navy); }
.feature-card p, .step-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* =========================================================
   Jackpots section with background image
   ========================================================= */
.jackpots-section {
  position: relative;
  padding: 90px 0;
  color: #fff;
  background-color: #103a3a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.jackpots-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,58,58,0.80), rgba(16,58,58,0.92));
}
.jackpots-section > .container { position: relative; z-index: 1; }
.jackpots-section .section-title,
.jackpots-section h2 { color: #fff; }
.jackpots-section .section-subtitle { color: rgba(255,255,255,0.85); }

/* =========================================================
   Lottery card
   ========================================================= */
.lottery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
  animation: fade-in-up 0.7s ease-out both;
}
.lottery-card:nth-child(1) { animation-delay: 0.1s; }
.lottery-card:nth-child(2) { animation-delay: 0.25s; }
.lottery-card:nth-child(3) { animation-delay: 0.4s; }
.lottery-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.lottery-card-header {
  padding: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--teal);
  position: relative;
  overflow: hidden;
}
.lottery-card-header::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.lottery-badge {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.lottery-card:hover .lottery-badge { transform: rotate(10deg) scale(1.05); }
.lottery-card-header h3 { color: #fff; margin: 0; font-size: 18px; }
.lottery-card-header .region { font-size: 12px; opacity: 0.9; }
.lottery-card-body {
  padding: 26px 22px;
  text-align: center;
  flex-grow: 1;
  background: #fff;
}
.jackpot-label {
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.jackpot {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal-dark) 50%, var(--navy) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
.draw-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.official-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--teal-dark);
  font-weight: 600;
  margin-top: 14px;
  padding: 5px 12px;
  background: var(--teal-soft);
  border-radius: 999px;
}
.lottery-card-footer { padding: 18px 22px 24px; background: #fff; }

/* Card themes */
.theme-red    { background: #e74c3c; }
.theme-blue   { background: #2fb8b8; }
.theme-green  { background: #16a085; }
.theme-purple { background: #7d3c98; }
.theme-orange { background: var(--green); }
.theme-navy   { background: var(--navy); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.faq details:hover { box-shadow: var(--shadow-md); }
.faq summary {
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-family: Georgia, serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--green);
  margin-left: 12px;
  transition: transform 0.3s;
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-body {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 15px;
  animation: fade-in 0.3s ease;
}
.faq .faq-body p:last-child { margin-bottom: 0; }

/* =========================================================
   Ready-to-play (full-width, light background, images left & right, center empty)
   ========================================================= */
.ready-section {
  position: relative;
  padding: 110px 0;
  margin: 0;
  color: var(--navy);
  background: var(--white);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.ready-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207,238,238,0.5) 0%, transparent 70%);
  pointer-events: none;
}
.ready-section > .container { position: relative; z-index: 1; }
.ready-section h2 { color: var(--navy); font-size: 42px; margin-bottom: 14px; }
.ready-section p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.ready-section .btn-outline { color: var(--teal-dark); border-color: var(--teal); }
.ready-section .btn-outline:hover { background: var(--teal); color: #fff; }

.ready-img {
  position: absolute;
  bottom: 0;
  width: 360px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.ready-img-left { left: 0; animation: float-delayed 6s ease-in-out infinite; }
.ready-img-right { right: 0; animation: float 5.5s ease-in-out infinite 1s; }

.ready-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

/* =========================================================
   Contact / auth forms
   ========================================================= */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form {
  max-width: 680px;
  margin: 0;
}
.form-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.form-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.form-card-header h2 {
  font-size: 24px;
  margin: 0 0 4px;
  color: var(--navy);
}
.form-card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 7px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
input, textarea, select {
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { border-radius: 16px; resize: vertical; min-height: 130px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23103a3a' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 184, 184, 0.12);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #9ab4b4; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }

.contact-info-card { margin-bottom: 28px; }
.contact-info-card h2 { margin-bottom: 18px; }

.responsible-card {
  background: linear-gradient(180deg, #f8fbfd 0%, #eef6f9 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  animation: fade-in-up 0.7s ease-out both;
}
.responsible-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.responsible-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.responsible-header h3 {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--navy);
}
.responsible-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.responsible-lead {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
}
.responsible-list {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
}
.responsible-list li { margin-bottom: 8px; }
.responsible-list li strong { color: var(--navy); }
.responsible-help {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.responsible-help:last-child { margin-bottom: 0; }
.responsible-help a { color: var(--teal-dark); text-decoration: underline; }
.responsible-help a:hover { color: var(--navy); }

/* =========================================================
   Buy-now page
   ========================================================= */
.buy-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.number-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.number-cell {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  background: var(--teal-bg);
  transition: transform 0.15s, background 0.15s;
}
.number-cell:hover { transform: scale(1.15); background: var(--teal-soft); }

/* =========================================================
   Footer — no top margin so it sits flush against ready section
   ========================================================= */
.site-footer {
  background: var(--black);
  color: #cfd8d8;
  padding: 60px 0 24px;
  margin-top: 0;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--teal));
  background-size: 200% auto;
  animation: shimmer 5s linear infinite;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; font-family: system-ui, sans-serif; }
.site-footer a { color: #cfd8d8; font-size: 14px; position: relative; }
.site-footer a:hover { color: var(--teal); text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 44px;
  padding-top: 24px;
  font-size: 13px;
  color: #96a5a5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.responsible-note {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   Utility
   ========================================================= */
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 24px; }
.mt-3 { margin-top: 24px; }
.muted { color: var(--muted); }
.page-header {
  background: var(--teal-bg);
  color: var(--navy);
  padding: 64px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
}
.page-header h1 { color: var(--navy); margin-bottom: 8px; }
.page-header p { color: var(--muted); margin: 0; }

/* =========================================================
   Decorative accents
   ========================================================= */
.accent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin: 0 8px;
  vertical-align: middle;
}
.handwritten {
  font-family: "Brush Script MT", cursive;
  font-weight: 400;
  color: var(--teal-dark);
}

/* Tablet & below */
@media (max-width: 1024px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 40px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
}

@media (max-width: 900px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero h1 { font-size: 34px; }
  .hero-grid { grid-template-columns: 1fr; }
  .col-3, .col-4, .col-5, .col-6, .col-7 { flex: 0 0 100%; max-width: 100%; margin-bottom: 20px; }
  .section, .jackpots-section { padding: 52px 0; }
  .section-hero { padding: 60px 0; }
  .ready-section { padding: 72px 0; }
  .ready-section h2 { font-size: 30px; }
  .ready-img { width: 200px; opacity: 0.5; }
  .jackpot { font-size: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }

  /* Mobile navigation */
  .nav-toggle { display: inline-flex; }
  .brand-logo { height: 56px; }
  .site-header .container { flex-wrap: wrap; gap: 12px; }
  .nav-panel {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 4px 8px;
    order: 3;
  }
  .nav-panel.is-open { display: flex; }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .site-nav a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .site-nav a::after { display: none; }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .header-actions .btn { width: 100%; }
}

/* Phones */
@media (max-width: 600px) {
  html { font-size: 15px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .container { padding: 0 14px; }
  .section, .jackpots-section { padding: 40px 0; }
  .section-hero { padding: 44px 0; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 16px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
  .brand-logo { height: 48px; max-width: 200px; }
  .jackpots-section { background-attachment: scroll; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .number-grid-lg { grid-template-columns: repeat(6, 1fr) !important; }
  table { display: block; overflow-x: auto; }
}

/* Small phones */
@media (max-width: 380px) {
  .btn { padding: 10px 16px; font-size: 13px; }
  .brand-logo { height: 42px; max-width: 170px; }
  .container { padding: 0 12px; }
}

/* =========================================================
   Buy Tickets Page (single-page cart + checkout)
   ========================================================= */
.buy-page { background: var(--teal-bg); }
.buy-header { text-align: center; margin-bottom: 40px; }
.buy-header h1 { margin-bottom: 8px; }
.buy-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.product-thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}
.product-jackpot {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
}
.product-name { font-family: Georgia, serif; font-size: 20px; margin: 0; color: var(--navy); }
.product-price { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--teal-bg);
  border-radius: 999px;
  padding: 4px;
}
.qty-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--green-dark); }
.qty-val { font-weight: 700; font-size: 16px; color: var(--navy); }

/* Cart */
.buy-cart { position: sticky; top: 20px; }
.cart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.cart-card h3 { font-family: Georgia, serif; margin: 0 0 16px; color: var(--navy); }
.cart-empty { text-align: center; padding: 24px 0; margin: 0; }
.cart-list { list-style: none; padding: 0; margin: 0 0 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 32px 1fr auto 24px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cart-swatch { width: 32px; height: 32px; border-radius: 8px; }
.cart-name { font-weight: 600; color: var(--navy); font-size: 14px; }
.cart-meta { font-size: 12px; color: var(--muted); }
.cart-line { font-weight: 700; color: var(--navy); font-size: 14px; }
.cart-remove {
  background: none; border: none; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.cart-remove:hover { color: #e74c3c; }
.cart-totals { padding: 12px 0; }
.cart-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: 14px; }
.cart-total { font-size: 18px; font-weight: 700; color: var(--navy); border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.cart-card .btn { margin-top: 12px; }
.cart-card .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* =========================================================
   Auth pages
   ========================================================= */
.auth-section { background: var(--teal-bg); min-height: 70vh; display: flex; align-items: center; }
.form-card {
  background: #fff;
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.form-card h2 { font-family: Georgia, serif; color: var(--navy); margin: 0 0 8px; }
.text-center { text-align: center; }
.link-btn {
  background: none; border: none; color: var(--green);
  cursor: pointer; padding: 0; font: inherit; text-decoration: underline;
}
.link-btn:hover { color: var(--green-dark); }

@media (max-width: 900px) {
  .buy-layout { grid-template-columns: 1fr; }
  .buy-cart { position: static; }
}

/* =========================================================
   Tickets page (espacejeeux-style)
   ========================================================= */
.tickets-page { background: #f6f8fb; }
.tickets-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 6px;
}
.tickets-topbar h1 { font-family: Georgia, serif; margin: 0 0 6px; color: var(--navy); }
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cart-pill-icon { font-size: 18px; }
.cart-badge {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
}
.tickets-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.step-heading {
  font-family: system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
}
.step-heading-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.step-heading-row .step-heading { margin: 0; }
.muted-inline { color: var(--muted); font-weight: 400; }
.pick-actions { display: flex; gap: 8px; }
.ghost-btn {
  background: #fff; border: 1px solid var(--border); color: var(--navy);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.ghost-btn:hover { background: #f0f4f8; }
.ghost-btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.ghost-btn-primary:hover { background: #0d1a2b; color: #fff; }

/* Draw tiles */
.draw-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
.draw-tile {
  position: relative;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.draw-tile:hover { border-color: var(--navy); }
.draw-tile.is-active { border-color: var(--navy); box-shadow: 0 6px 20px rgba(15,32,58,0.12); }
.draw-featured {
  position: absolute; top: -10px; left: 12px;
  background: var(--navy); color: #fff;
  font-size: 10px; letter-spacing: 1px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.draw-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: #eef2f6; color: var(--navy);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.draw-name { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.draw-jackpot-line { color: var(--green); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.draw-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Progress */
.pick-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.progress-dots { display: flex; gap: 6px; flex: 1; }
.progress-dot { flex: 1; height: 4px; border-radius: 4px; background: #e2e8ee; transition: background 0.2s; }
.progress-dot.is-filled { background: var(--green); }
.progress-count { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* Number grid */
.number-panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.number-grid-lg {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
.num-btn {
  aspect-ratio: 1;
  border: none;
  background: #eef2f6;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.num-btn:hover:not(:disabled) { background: #d9e1ea; }
.num-btn.is-picked { background: var(--navy); color: #fff; transform: scale(1.03); }
.num-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Sidebar */
.tickets-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: #fff; border: 2px solid var(--border);
  border-radius: 14px; padding: 22px;
  transition: border-color 0.2s;
}
.side-card.is-ready { border-color: var(--navy); box-shadow: 0 6px 20px rgba(15,32,58,0.1); }
.side-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.side-price { font-size: 13px; color: var(--muted); font-weight: 600; }
.side-name { font-family: Georgia, serif; font-size: 22px; color: var(--navy); margin: 4px 0; }
.side-jackpot { font-family: Georgia, serif; font-size: 26px; color: var(--green); font-weight: 700; margin-bottom: 14px; }
.side-meta { font-size: 13px; color: var(--muted); margin: 4px 0; }
.side-picks { margin: 18px 0 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.side-picks-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.side-picks-empty { font-size: 13px; color: var(--muted); }
.side-picks-row { display: flex; flex-wrap: wrap; gap: 6px; }
.picked-ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 13px;
}
.add-btn:disabled { background: #b8d8c8 !important; cursor: not-allowed; }

/* Cart items with numbers */
.cart-item-numbers { grid-template-columns: 1fr auto 24px; }
.cart-numbers { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.mini-ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #eef2f6; color: var(--navy); font-weight: 700; font-size: 11px;
}

@media (max-width: 900px) {
  .tickets-layout { grid-template-columns: 1fr; }
  .tickets-side { position: static; }
  .draw-row { grid-template-columns: 1fr; }
  .number-grid-lg { grid-template-columns: repeat(7, 1fr); }
}

/* =========================================================
   Legal pages
   ========================================================= */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 32px; font-size: 24px; }
.legal-content ul { padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }

/* Ghost / outline button variants for consent */
.btn-ghost { background: transparent; color: #103a3a; padding: 10px 18px; border-radius: 999px; }
.btn-ghost:hover { background: #eaf6f6; }
.btn-outline { background: #fff; color: #103a3a; border: 1px solid #cfe6e6; padding: 10px 18px; border-radius: 999px; }
.btn-outline:hover { background: #fff; border-color: #2fb8b8; color: #2fb8b8; }

/* =========================================================
   Cookie consent banner
   ========================================================= */
.consent-wrap {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.consent-card {
  pointer-events: auto;
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border: 1px solid #d9ecec;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(16, 58, 58, 0.18);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.consent-title { margin: 0 0 6px; font-family: system-ui, sans-serif; font-size: 18px; }
.consent-text { margin: 0; font-size: 14.5px; color: #33595a; }
.consent-text a { color: #2fb8b8; text-decoration: underline; }
.consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.consent-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid #eaf3f3;
}
.consent-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eaf3f3;
}

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0;
  background: #cfe6e6; border-radius: 999px;
  transition: background .2s ease;
}
.switch span::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + span { background: #2fb8b8; }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:disabled + span { opacity: .7; }

@media (max-width: 720px) {
  .consent-card { padding: 18px; }
  .consent-actions { justify-content: stretch; }
  .consent-actions .btn { flex: 1; }
}
