/* ============================================================
   PrizeCheck Nepal - Liquid Glass + Prize Winner Design System
   ============================================================ */

/* ---------- Theme tokens ---------- */
:root {
  --emerald: #059669;
  --emerald-deep: #047857;
  --emerald-dark: #065f46;
  --blue: #2563eb;
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-deep: #d97706;
  --bg: #f8fafc;
  --dark: #0f172a;
  --ink: #1e293b;
  --muted: #64748b;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --ring: rgba(5, 150, 105, 0.25);
  --shadow-soft: 0 10px 40px -12px rgba(2, 44, 34, 0.18);
  --shadow-glow: 0 0 30px -6px rgba(245, 158, 11, 0.45);
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --font-sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 45%, #047857 100%);
  --grad-gold: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  --grad-night: linear-gradient(140deg, #0f172a 0%, #134e4a 55%, #052e16 100%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: inline-block; vertical-align: middle; }
a { color: var(--emerald-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--emerald); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ---------- Utility helpers ---------- */
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.container-wide { max-width: 86rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.flex-col { flex-direction: column; }

.w-full { width: 100%; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.375rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-muted { color: var(--muted); }
.text-emerald { color: var(--emerald-deep); }
.text-gold { color: var(--gold-deep); }
.text-white { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary { background: var(--grad-emerald); color: #fff; box-shadow: 0 8px 24px -8px rgba(5,150,105,.6); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(5,150,105,.7); }

.btn-gold { background: var(--grad-gold); color: #3f2c00; box-shadow: 0 8px 24px -8px rgba(245,158,11,.6); }
.btn-gold:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(245,158,11,.75); }

.btn-outline { background: rgba(255,255,255,.7); border: 1.5px solid rgba(5,150,105,.35); color: var(--emerald-deep); }
.btn-outline:hover:not(:disabled) { border-color: var(--emerald); background: rgba(255,255,255,.95); }

.btn-ghost { background: rgba(255,255,255,.6); color: var(--ink); border: 1px solid rgba(15,23,42,.1); }
.btn-ghost:hover:not(:disabled) { background: #fff; }

.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- Glass cards ---------- */
.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.glass-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.glass-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft), 0 0 0 1px rgba(5,150,105,.12); border-color: rgba(5,150,105,.25); }

.glass-gold {
  background: linear-gradient(160deg, rgba(255,251,235,.85), rgba(254,243,199,.75));
  border-color: rgba(245,158,11,.4);
  box-shadow: var(--shadow-glow);
}
.glass-gold.glass-hover:hover { box-shadow: var(--shadow-glow), 0 12px 34px -10px rgba(245,158,11,.5); }

.gradient-border { position: relative; border: 1px solid transparent; background-clip: padding-box; }
.gradient-border::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(16,185,129,.5), rgba(245,158,11,.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card { padding: 1.5rem; }
.card-lg { padding: 2rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .8rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  line-height: 1.3;
}
.badge-emerald { background: rgba(5,150,105,.12); color: var(--emerald-deep); border: 1px solid rgba(5,150,105,.3); }
.badge-gold { background: rgba(245,158,11,.14); color: var(--gold-deep); border: 1px solid rgba(245,158,11,.35); }
.badge-blue { background: rgba(37,99,235,.12); color: var(--blue); border: 1px solid rgba(37,99,235,.3); }
.badge-red { background: rgba(220,38,38,.1); color: #b91c1c; border: 1px solid rgba(220,38,38,.3); }
.badge-slate { background: rgba(100,116,139,.12); color: var(--muted); border: 1px solid rgba(100,116,139,.3); }
.badge-dark { background: var(--dark); color: #fff; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.input, .select, .textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: .9rem;
  border: 1.5px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.85);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px var(--ring);
}
.input-error { border-color: #dc2626 !important; }
.error-text { color: #b91c1c; font-size: .8rem; font-weight: 500; }
.hint { font-size: .8rem; color: var(--muted); }

/* ---------- Liquid glass ---------- */
.liquid-glass {
  position: relative;
  background:
    radial-gradient(120% 110% at 18% -5%, rgba(255,255,255,.9), rgba(255,255,255,.35) 55%, rgba(255,255,255,.55)),
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.28));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 55px -22px rgba(2,44,34,.28), inset 0 1px 0 rgba(255,255,255,.85);
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(240px 130px at 14% 6%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(200px 150px at 92% 96%, rgba(245,158,11,.2), transparent 65%),
    radial-gradient(180px 130px at 88% 8%, rgba(16,185,129,.18), transparent 62%),
    radial-gradient(150px 120px at 8% 95%, rgba(37,99,235,.14), transparent 62%);
  animation: liquid-drift 9s ease-in-out infinite alternate;
}
@keyframes liquid-drift {
  0% { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  100% { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}
.liquid-ring::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(120deg, rgba(16,185,129,.55), rgba(37,99,235,.4), rgba(245,158,11,.6), rgba(16,185,129,.55));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-flow 6s linear infinite;
  pointer-events: none;
}
@keyframes border-flow { to { background-position: -300% 0; } }

/* ---------- Quick check ---------- */
.quick-head { text-align: center; }
.quick-form { margin-top: 1.5rem; }
.quick-head, .quick-form { position: relative; z-index: 1; }
.check-shell { display: flex; gap: .6rem; align-items: center; }
.check-input-wrap { position: relative; flex: 1; min-width: 0; }
.check-icon {
  position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%);
  font-size: 1.05rem; pointer-events: none; opacity: .75;
}
.check-input {
  width: 100%; height: 3.4rem;
  border-radius: 999px;
  padding-left: 3.1rem; padding-right: 1.4rem;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .18em;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.check-input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px var(--ring), 0 8px 24px -10px rgba(5,150,105,.4);
  transform: translateY(-1px);
}
.check-submit { white-space: nowrap; }

.check-progress {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  margin-top: .9rem;
}
.check-progress .track {
  width: 11rem; height: 6px; border-radius: 999px;
  background: rgba(15,23,42,.1); overflow: hidden; flex-shrink: 0;
}
.check-progress .bar {
  display: block; height: 100%; width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width .25s ease;
}
.check-progress .bar.done { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.quick-chips {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem;
  margin-top: 1rem;
}
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .95rem; border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(15,23,42,.12);
  color: var(--ink); font-weight: 600; font-size: .82rem; font-family: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(245,158,11,.5);
  background: linear-gradient(135deg, rgba(255,251,235,.92), rgba(254,243,199,.85));
  box-shadow: var(--shadow-glow);
  color: var(--gold-deep);
}
.chip:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.chip:active { transform: translateY(0) scale(.97); }
.quick-note { margin-top: 1.1rem; display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; }

@media (max-width: 600px) {
  .check-shell { flex-direction: column; align-items: stretch; }
  .check-submit { width: 100%; }
  .check-input { padding-left: 3.1rem; }
  .check-progress .track { width: 8rem; }
}

/* ---------- Alerts ---------- */
.alert {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .9rem 1.1rem;
  border-radius: .9rem;
  font-size: .925rem;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(5,150,105,.1); color: var(--emerald-dark); border: 1px solid rgba(5,150,105,.3); }
.alert-error { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.3); }
.alert-info { background: rgba(37,99,235,.08); color: var(--blue); border: 1px solid rgba(37,99,235,.3); }
.alert-warning { background: rgba(245,158,11,.1); color: var(--gold-deep); border: 1px solid rgba(245,158,11,.35); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: rgba(255,255,255,.7); border: 1px solid var(--glass-border); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 42rem; }
.table th {
  text-align: left; padding: .8rem 1rem; background: rgba(15,23,42,.04);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.table td { padding: .8rem 1rem; border-bottom: 1px solid rgba(15,23,42,.06); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(5,150,105,.04); }

/* ---------- Collapsible admin rows ---------- */
.flex-1 { flex: 1 1 0%; }
.seo-item { border-bottom: 1px solid rgba(15,23,42,.07); }
.seo-item:last-child { border-bottom: none; }
.seo-summary {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .925rem;
}
.seo-summary::-webkit-details-marker { display: none; }
.seo-summary:hover { background: rgba(5,150,105,.04); }
.seo-item[open] .seo-summary { border-bottom: 1px solid rgba(15,23,42,.07); }
.seo-body { padding: 1.25rem; background: rgba(255,255,255,.55); }

.message-item { border-bottom: 1px solid rgba(15,23,42,.07); }
.message-item:last-child { border-bottom: none; }
.message-summary {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-size: .925rem;
}
.message-summary::-webkit-details-marker { display: none; }
.message-summary:hover { background: rgba(5,150,105,.04); }
.message-unread .message-summary { background: rgba(245,158,11,.08); }
.message-item[open] .message-summary { border-bottom: 1px solid rgba(15,23,42,.07); }
.message-body { padding: 1.25rem; background: rgba(255,255,255,.55); }

.code-block {
  display: block; overflow-x: auto; padding: .9rem 1rem;
  background: var(--dark); color: #cbd5e1; border-radius: .75rem;
  font-size: .78rem; line-height: 1.6;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--dark); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-night);
  display: grid; place-items: center;
  color: var(--gold-bright);
  font-size: 1.1rem;
  box-shadow: 0 6px 18px -6px rgba(15,23,42,.5);
}
.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; }
.nav-links a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .925rem;
}
.nav-links a:hover { color: var(--emerald-deep); background: rgba(5,150,105,.08); }
.nav-links .active { color: var(--emerald-deep); background: rgba(5,150,105,.1); }
.nav-cta { margin-left: .6rem; }
.nav-toggle {
  display: none; position: relative;
  width: 44px; height: 44px;
  background: none; border: none; border-radius: .6rem;
  cursor: pointer;
}
.nav-toggle-bar {
  position: absolute; left: 11px; right: 11px; height: 2.5px;
  background: var(--emerald-deep); border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
  transition: transform .3s ease, top .3s ease, opacity .2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 13px; }
.nav-toggle-bar:nth-child(2) { top: 20px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 20px; transform: rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--ring); }

body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15,23,42,.08);
    padding: .75rem 1rem 1.1rem;
    box-shadow: 0 18px 30px -18px rgba(15,23,42,.25);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav-links.open {
    visibility: visible; opacity: 1; transform: translateY(0);
    pointer-events: auto;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links a { padding: .7rem 1rem; }
  .nav-cta { margin: .5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 3.5rem 0 4.5rem; overflow: hidden; }
.hero-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(16,185,129,.16), transparent 60%),
    radial-gradient(800px 420px at 95% -5%, rgba(37,99,235,.14), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(245,158,11,.14), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
}
.hero-eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-deep); }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.15; font-weight: 800; color: var(--dark); margin: .6rem 0 1rem; }
.hero p.lead { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Coupon visual */
.coupon {
  position: relative; padding: 1.6rem; border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(15,23,42,.94), rgba(19,78,74,.92));
  color: #fff;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.55);
  overflow: hidden;
}
.coupon::after {
  content: '';
  position: absolute; top: -60%; left: -30%; width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  transform: rotate(20deg);
  animation: shimmer 6s ease-in-out infinite;
}
.coupon-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.coupon-badge { background: var(--grad-gold); color: #3f2c00; font-weight: 800; font-size: .72rem; padding: .3rem .8rem; border-radius: 999px; letter-spacing: .04em; }
.coupon-code {
  font-family: 'Courier New', monospace;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-weight: 700; letter-spacing: .22em;
  background: rgba(255,255,255,.1);
  border: 1px dashed rgba(255,255,255,.35);
  padding: .9rem 1rem; border-radius: .9rem;
  text-align: center; margin-bottom: 1.4rem;
}
.coupon-prize { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.coupon-prize .amount { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; color: var(--gold-bright); }

/* Floating prize cards */
.float-card {
  position: absolute;
  border-radius: 1rem;
  padding: .6rem .9rem;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  box-shadow: var(--shadow-soft);
  animation: float 7s ease-in-out infinite;
  white-space: nowrap;
}
.float-gold { background: var(--grad-gold); color: #3f2c00; top: -1.2rem; right: -1rem; }
.float-emerald { background: var(--grad-emerald); color: #fff; bottom: -1rem; left: -1rem; animation-delay: 1.4s; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--dark); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: .6rem; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card-lg { padding: 1.25rem; }
  .section { padding: 2.25rem 0; }
}

/* How it works */
.step-num {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--grad-emerald); color: #fff; font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; margin-bottom: .9rem;
  box-shadow: 0 10px 22px -8px rgba(5,150,105,.6);
}

/* ---------- Result cards ---------- */
.result-card { padding: 1.5rem; margin-bottom: 1rem; }
.result-win {
  background: linear-gradient(150deg, rgba(255,251,235,.9), rgba(254,243,199,.82));
  border: 1px solid rgba(245,158,11,.45);
  box-shadow: var(--shadow-glow);
  position: relative; overflow: hidden;
}
.result-win::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 50% -20%, rgba(245,158,11,.22), transparent 70%);
  pointer-events: none;
}
.result-code {
  font-family: 'Courier New', monospace; font-size: 1.25rem; font-weight: 700;
  letter-spacing: .18em; color: var(--dark);
}
.result-win .result-code { color: var(--gold-deep); }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.5rem; margin: 1rem 0; }
.result-grid .item .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.result-grid .item .v { font-weight: 700; color: var(--ink); margin-top: .1rem; }

/* Winner pulse */
.pulse-glow { animation: pulse-glow 2.4s ease-in-out infinite; }
.winner-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; color: var(--gold-deep);
}

/* Confetti (JS-driven spans) */
.confetti-piece {
  position: fixed; top: -10px; z-index: 90; pointer-events: none;
  border-radius: 2px; opacity: .9;
  animation: confetti-fall linear forwards;
}

/* ---------- Animated numbers ---------- */
.count-num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ripple ---------- */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.55);
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
}
.btn-gold .ripple { background: rgba(63,44,0,.25); }

/* ---------- Animations ---------- */
@keyframes shimmer { 0%, 100% { left: -60%; } 45%, 55% { left: 120%; } }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.45); }
  50% { box-shadow: 0 0 34px 6px rgba(245,158,11,.4); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scale-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes confetti-fall {
  0% { transform: translate3d(0, -10px, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--drift), 105vh, 0) rotate(var(--spin)); opacity: .4; }
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.12); }
}

.anim-fade-in { animation: fade-in .6s ease both; }
.anim-slide-up { animation: slide-up .55s cubic-bezier(.22,.8,.36,1) both; }
.anim-scale-in { animation: scale-in .45s cubic-bezier(.22,.8,.36,1) both; }
.anim-gradient { background-size: 200% 200%; animation: gradient-flow 8s ease infinite; }

/* Reveal on scroll (activated by JS IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Background blobs ---------- */
.blob {
  position: fixed; border-radius: 50%; filter: blur(70px); z-index: -1; pointer-events: none;
  opacity: .5;
  animation: blob-drift 16s ease-in-out infinite;
}
.blob-1 { width: 340px; height: 340px; background: rgba(16,185,129,.28); top: -80px; left: -60px; }
.blob-2 { width: 300px; height: 300px; background: rgba(37,99,235,.22); top: 20%; right: -90px; animation-delay: -4s; }
.blob-3 { width: 320px; height: 320px; background: rgba(245,158,11,.24); bottom: -100px; left: 30%; animation-delay: -8s; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; background: var(--grad-night); color: rgba(255,255,255,.85); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; font-weight: 700; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .45rem; }
.footer a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer a:hover { color: var(--gold-bright); }
.footer-note { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 1rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.25rem 0; font-size: .85rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Spinner ---------- */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.spinner-dark { border-color: rgba(15,23,42,.2); border-top-color: var(--emerald); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Skeleton ---------- */
.skeleton {
  border-radius: .75rem;
  background: linear-gradient(90deg, rgba(15,23,42,.06) 25%, rgba(15,23,42,.12) 50%, rgba(15,23,42,.06) 75%);
  background-size: 200% 100%;
  animation: shimmer-bg 1.4s ease-in-out infinite;
}
@keyframes shimmer-bg { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Stats cards ---------- */
.stat-card { padding: 1.25rem 1.5rem; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--dark); line-height: 1.2; }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: .2rem; }

/* ---------- Summary strip (single-row stats) ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem;
  margin-top: 1.25rem;
}
#bulk-live-stats { grid-template-columns: repeat(5, 1fr); }
.stat-tile {
  position: relative; overflow: hidden;
  border-radius: 1rem; padding: 1rem 1.1rem .95rem;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow-soft);
  transition: transform .22s cubic-bezier(.22,.8,.36,1), box-shadow .22s ease, border-color .22s ease;
}
.stat-tile::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--tile-accent, var(--emerald));
  border-radius: 0 0 1rem 0;
}
.stat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft), 0 12px 28px -12px rgba(5,150,105,.35); border-color: rgba(5,150,105,.25); }
.stat-tile .tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: .7rem; font-size: 1.05rem;
  background: rgba(5,150,105,.12); margin-bottom: .55rem;
}
.stat-tile .tile-value {
  font-size: 1.55rem; font-weight: 800; line-height: 1.1;
  color: var(--dark); font-variant-numeric: tabular-nums;
}
.stat-tile .tile-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-top: .2rem;
}
.stat-tile.tile-emerald { --tile-accent: var(--emerald); }
.stat-tile.tile-emerald .tile-icon { background: rgba(5,150,105,.14); color: var(--emerald-deep); }
.stat-tile.tile-emerald .tile-value { color: var(--emerald-deep); }
.stat-tile.tile-gold { --tile-accent: var(--gold); }
.stat-tile.tile-gold .tile-icon { background: rgba(245,158,11,.16); color: var(--gold-deep); }
.stat-tile.tile-gold .tile-value { color: var(--gold-deep); }
.stat-tile.tile-red { --tile-accent: #dc2626; }
.stat-tile.tile-red .tile-icon { background: rgba(220,38,38,.12); color: #b91c1c; }
.stat-tile.tile-red .tile-value { color: #b91c1c; }
.stat-tile.tile-sky { --tile-accent: #0284c7; }
.stat-tile.tile-sky .tile-icon { background: rgba(2,132,199,.12); color: #0369a1; }
.stat-tile.tile-sky .tile-value { color: #0369a1; }
.stat-tile.tile-slate { --tile-accent: var(--muted); }
.stat-tile.tile-slate .tile-icon { background: rgba(100,116,139,.12); color: var(--muted); }
.stat-tile.tile-slate .tile-value { color: var(--ink); }
@media (max-width: 860px) { .stats-strip { gap: .55rem; } .stat-tile { padding: .75rem .7rem .7rem; border-radius: .85rem; } .stat-tile .tile-icon { width: 1.8rem; height: 1.8rem; font-size: .85rem; margin-bottom: .4rem; } .stat-tile .tile-value { font-size: 1.15rem; } .stat-tile .tile-label { font-size: .64rem; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
  min-width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: .6rem; background: rgba(255,255,255,.8); border: 1px solid rgba(15,23,42,.1);
  color: var(--ink); font-weight: 600; font-size: .9rem;
}
.pagination a:hover { border-color: var(--emerald); color: var(--emerald-deep); }
.pagination .current { background: var(--grad-emerald); color: #fff; border-color: transparent; }

/* ---------- Misc ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--emerald-deep); }
.divider { border: none; border-top: 1px solid rgba(15,23,42,.08); margin: 1.5rem 0; }

.icon-circle {
  width: 3.2rem; height: 3.2rem; border-radius: 1rem;
  display: grid; place-items: center; font-size: 1.5rem;
}
.icon-emerald { background: rgba(5,150,105,.12); }
.icon-gold { background: rgba(245,158,11,.14); }

.advice-box {
  background: rgba(5,150,105,.07);
  border-left: 4px solid var(--emerald);
  padding: .9rem 1.1rem; border-radius: 0 .8rem .8rem 0;
  font-size: .88rem; color: var(--emerald-dark);
}

/* Rich text content (SEO landing pages etc.) */
.prose { color: var(--text-main, #334155); line-height: 1.7; font-size: 1rem; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 1.4rem 0 .5rem; color: var(--dark, #0f172a); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: .6rem 0; color: var(--text-muted, #475569); }
.prose ul, .prose ol { margin: .6rem 0 .6rem 1.25rem; color: var(--text-muted, #475569); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .3rem 0; }
.prose a { color: var(--emerald, #059669); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 60;
}
@media (max-width: 640px) { .sticky-cta.show { display: block; } }

/* ---------- Grand Celebration (winner) ---------- */

/* Whole-page celebration glow */
body.celebrating { position: relative; }
body.celebrating::before {
  content: '';
  position: fixed; inset: 0; z-index: 88; pointer-events: none;
  background:
    radial-gradient(58% 34% at 50% -6%, rgba(245,158,11,.2), transparent 70%),
    radial-gradient(36% 26% at 14% 12%, rgba(96,165,250,.14), transparent 72%),
    radial-gradient(36% 26% at 86% 12%, rgba(244,114,182,.14), transparent 72%),
    radial-gradient(50% 30% at 50% 108%, rgba(245,158,11,.16), transparent 72%);
  animation: celebration-glow 4.2s ease-in-out infinite;
}
@keyframes celebration-glow {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

/* Fairy lights - full-page top string (JS-built) */
.celebrate-lights {
  position: fixed; top: 0; left: 0; right: 0; height: 42px; z-index: 97;
  pointer-events: none; overflow: hidden;
}
.celebrate-lights::before {
  content: '';
  position: absolute; top: 5px; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25) 8%, rgba(255,255,255,.25) 92%, transparent);
}
.light {
  position: absolute; top: 3px; width: 8px; height: 8px; border-radius: 50%;
  transform: translateX(-50%);
  background: currentColor;
  box-shadow: 0 0 10px 2px currentColor, 0 0 22px 6px rgba(255,255,255,.18);
  animation: light-twinkle 1.7s ease-in-out infinite;
}
.light::after {
  content: '';
  position: absolute; left: 50%; top: -3px; width: 2px; height: 4px;
  background: currentColor; opacity: .35;
}
@keyframes light-twinkle {
  0%, 100% { opacity: .45; transform: translateX(-50%) scale(.9); filter: brightness(.8); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); filter: brightness(1.35); }
}

/* Fireworks - pyrotechnic bursts across the page (JS-built) */
.celebrate-fireworks {
  position: fixed; inset: 0; z-index: 96; pointer-events: none; overflow: hidden;
}
.firework { position: absolute; width: 0; height: 0; }
.firework .fw-flash {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 70%);
  animation: fw-flash .9s ease-out forwards;
}
@keyframes fw-flash {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
}
.firework .fw-particle {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  animation: fw-particle 1.25s ease-out forwards;
}
@keyframes fw-particle {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.1); opacity: 0; }
}

/* Winner card celebration state */
.celebrating-card {
  border: 1px solid rgba(245,158,11,.5);
  box-shadow: var(--shadow-glow), 0 0 44px -6px rgba(245,158,11,.42);
}
.celebrating-card::after {
  content: '';
  position: absolute; inset: -2px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--angle, 0deg),
    transparent 0deg, rgba(245,158,11,.85) 60deg,
    rgba(255,255,255,.7) 110deg, rgba(16,185,129,.6) 170deg,
    transparent 230deg, rgba(245,158,11,.85) 300deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: card-ring 4s linear infinite;
}
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes card-ring { to { --angle: 360deg; } }

/* Fairy lights inside the winner card */
.card-lights {
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(.5rem, 2vw, 1.1rem);
  height: 26px; margin-bottom: .4rem; position: relative;
}
.card-lights::before {
  content: '';
  position: absolute; top: 4px; left: 2%; width: 96%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(15,23,42,.16) 8%, rgba(15,23,42,.16) 92%, transparent);
}
.card-lights .clight {
  width: 9px; height: 9px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px 2px currentColor, 0 0 20px 5px rgba(255,255,255,.25);
  animation: clight-twinkle 1.5s ease-in-out infinite;
}
@keyframes clight-twinkle {
  0%, 100% { opacity: .5; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Winner icon */
.winner-icon {
  font-size: 3rem; line-height: 1; text-align: center;
  filter: drop-shadow(0 6px 16px rgba(245,158,11,.45));
  animation: winner-bounce 1.6s ease-in-out infinite;
}
@keyframes winner-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.06); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .sticky-cta, .no-print, .blob,
  .celebrate-lights, .celebrate-fireworks, .firework, .light { display: none !important; }
  body { background: #fff; }
  body.celebrating::before { display: none !important; }
  .glass, .glass-strong { backdrop-filter: none; border: 1px solid #ddd; box-shadow: none; }
  .celebrating-card::after { display: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
