/* ════════════════════════════════════════════════════════════════════
   EIFCAF × BAZE TICKETING — Public Stylesheet
   Carries the design DNA of the proposal site into the ticketing app.

   Conventions
     · All colors, radii, shadows, easing → CSS variables
     · Components: btn, card, input, badge, alert, table, modal
     · Tailwind CDN is loaded alongside this file for utility classes;
       these styles handle the components Tailwind doesn't give us for free
     · Sponsor accent is injected at runtime by overriding --accent

   Loaded on:  every public-facing page (index, checkout, dashboard, login)
   NOT loaded on:  /admin/* and /staff/* (those have their own files)
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand palette (carries proposal site DNA) ──────────────── */
  --accent:        #23AFF5;
  --accent-dark:   #0d8fd4;
  --accent-deep:   #0369a1;
  --accent-soft:   #e8f6fe;
  --accent-mid:    #bae6fd;

  /* ── Ink (neutral foreground) ───────────────────────────────── */
  --ink:           #0f1923;
  --ink-90:        rgba(15,25,35,0.92);
  --ink-70:        rgba(15,25,35,0.72);
  --ink-50:        rgba(15,25,35,0.52);
  --ink-40:        rgba(15,25,35,0.40);
  --ink-30:        rgba(15,25,35,0.30);
  --ink-10:        rgba(15,25,35,0.06);

  /* ── Surfaces ───────────────────────────────────────────────── */
  --white:         #ffffff;
  --surface:       #f5f9fd;
  --surface-2:     #eef4fa;
  --border:        rgba(15,25,35,0.10);
  --border-strong: rgba(15,25,35,0.16);
  --border-accent: rgba(35,175,245,0.30);

  /* ── Semantic ───────────────────────────────────────────────── */
  --success:       #16a34a;
  --success-soft:  #dcfce7;
  --warning:       #d97706;
  --warning-soft:  #fef3c7;
  --danger:        #dc2626;
  --danger-soft:   #fee2e2;
  --info:          var(--accent);
  --info-soft:     var(--accent-soft);

  /* ── Shadows (proposal site language) ───────────────────────── */
  --shadow-sm:   0 1px 4px rgba(15,25,35,0.07), 0 4px 16px rgba(15,25,35,0.05);
  --shadow-md:   0 4px 16px rgba(15,25,35,0.09), 0 16px 40px rgba(15,25,35,0.06);
  --shadow-lg:   0 8px 32px rgba(15,25,35,0.10), 0 32px 72px rgba(15,25,35,0.08);
  --shadow-accent: 0 8px 24px rgba(35,175,245,0.30), 0 2px 8px rgba(35,175,245,0.20);

  /* ── Motion ─────────────────────────────────────────────────── */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);

  /* ── Type stacks ────────────────────────────────────────────── */
  --fh: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fb: 'Poppins',    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fm: ui-monospace, 'SF Mono', 'Menlo', 'Cascadia Code', 'Roboto Mono', monospace;

  /* ── Radii ──────────────────────────────────────────────────── */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;
}

/* ────────────────────────────────────────────────────────────────
   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(--fb);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg, video, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--accent); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--accent-dark); }
::selection { background: var(--accent); color: #fff; }

/* Hide scrollbars on iOS / mobile horizontal scroll containers */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ──────────────────────────────────────────────────────────────── */
.h-display {
  font-family: var(--fh);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
}
.h-display em { color: var(--accent); font-style: italic; }

h1, h2, h3, h4 { font-family: var(--fh); color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 900; }
.h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 800; }
.h4 { font-size: 1.05rem; font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--fh);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; display: inline-block;
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--accent);
}

.lead {
  font-size: 1.05rem; color: var(--ink-70);
  line-height: 1.75; font-weight: 300;
  max-width: 60ch;
}
.muted   { color: var(--ink-50); }
.mono    { font-family: var(--fm); }
.tnum    { font-variant-numeric: tabular-nums; }
.uppercase-tracked { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-size: 0.7rem; }

/* ────────────────────────────────────────────────────────────────
   LAYOUT
   ──────────────────────────────────────────────────────────────── */
.wrap         { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.wrap-narrow  { max-width: 720px;  margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.wrap-wide    { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.sec          { padding: 5rem 0; }
.sec-sm       { padding: 3rem 0; }
.sec-alt      { background: var(--surface); }
@media (max-width: 640px) {
  .sec    { padding: 3.5rem 0; }
  .sec-sm { padding: 2rem 0; }
  .wrap, .wrap-narrow, .wrap-wide { padding: 0 1.1rem; }
}

.row    { display: flex; gap: 1rem; }
.row-wrap { display: flex; gap: 1rem; flex-wrap: wrap; }
.col    { display: flex; flex-direction: column; gap: 1rem; }
.center { text-align: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────────
   NAVIGATION (public header)
   ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-brand { display: flex; align-items: center; gap: 0.9rem; }
.site-brand img { height: 28px; width: auto; object-fit: contain; }
.site-brand-sep { width: 1px; height: 22px; background: var(--border); }
.site-brand-x   { font: 700 11px/1 var(--fh); letter-spacing: 0.2em; color: var(--ink-30); text-transform: uppercase; }
.site-brand-sponsor { display: flex; align-items: center; gap: 0.6rem; }
.site-brand-sponsor img { height: 22px; width: auto; opacity: 0.95; }

.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  padding: 0.5rem 0.95rem;
  font-family: var(--fh); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-50); border-radius: var(--r-sm);
  transition: all 0.18s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 800px) {
  .site-nav-inner { height: 60px; padding: 0 1rem; }
  .nav-links { display: none; }
  .site-brand-x { display: none; }
}

/* ────────────────────────────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--fh); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  background: var(--ink-10); color: var(--ink);
  transition: all 0.2s var(--ease);
  user-select: none; white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-accent); transform: translateY(-1px); color: var(--white); }

.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #1a2632; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--ink-70); }
.btn-ghost:hover { background: var(--ink-10); color: var(--ink); }

.btn-link { background: transparent; padding: 0.4rem 0.6rem; color: var(--accent); text-transform: none; letter-spacing: 0; }
.btn-link:hover { color: var(--accent-dark); background: var(--accent-soft); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b91c1c; color: var(--white); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.72rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 0.88rem; }

/* Loading state: spinner replaces text */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  color: var(--white);
}
.btn-secondary.is-loading::after { color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ────────────────────────────────────────────────────────────────
   CARDS
   ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card-interactive { cursor: pointer; }
.card-interactive:hover { border-color: var(--border-accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-flat { box-shadow: none; }
.card-lg  { padding: 2.5rem; border-radius: 28px; }
.card-sm  { padding: 1.25rem; border-radius: var(--r-lg); }
.card-dark {
  background: linear-gradient(160deg, #0f1923 0%, #0a1320 100%);
  color: var(--white);
  border-color: var(--ink);
}
.card-dark a { color: var(--accent); }

/* ────────────────────────────────────────────────────────────────
   FORMS
   ──────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.label {
  font-family: var(--fh);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50);
}

.input, .select, .textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
  font-family: var(--fb);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-30); }
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(35,175,245,0.14);
}
.input[disabled] { background: var(--surface); color: var(--ink-50); }

.input-error { border-color: var(--danger) !important; }
.input-error:focus { box-shadow: 0 0 0 4px rgba(220,38,38,0.14); }
.error-text { font-size: 0.8rem; color: var(--danger); margin-top: 0.3rem; font-weight: 500; }
.help-text  { font-size: 0.78rem; color: var(--ink-50); margin-top: 0.3rem; }

.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f1923' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
}

/* Checkbox & radio (modern look) */
.check { display: inline-flex; align-items: center; gap: 0.65rem; cursor: pointer; font-size: 0.95rem; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 20px; height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s var(--ease);
  flex-shrink: 0;
}
.check input:checked + .check-box {
  background: var(--accent); border-color: var(--accent);
}
.check input:checked + .check-box::after {
  content: ''; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px rgba(35,175,245,0.18); }

/* Number stepper */
.stepper {
  display: inline-flex; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stepper button {
  width: 42px; height: 44px;
  font-size: 1.2rem; font-weight: 600; color: var(--ink-70);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}
.stepper button:hover:not([disabled]) { background: var(--accent-soft); color: var(--accent); }
.stepper button[disabled] { opacity: 0.4; cursor: not-allowed; }
.stepper input {
  width: 56px; height: 44px;
  border: 0; text-align: center;
  font: 700 1rem var(--fh);
  background: transparent;
}
.stepper input:focus { outline: 0; }

/* ────────────────────────────────────────────────────────────────
   BADGES & PILLS
   ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-family: var(--fh); font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--r-full);
  background: var(--ink-10); color: var(--ink);
}
.badge-accent  { background: var(--accent-soft);  color: var(--accent-deep); }
.badge-success { background: var(--success-soft); color: #166534; }
.badge-warning { background: var(--warning-soft); color: #92400e; }
.badge-danger  { background: var(--danger-soft);  color: #991b1b; }
.badge-dark    { background: var(--ink);          color: var(--accent); }
.badge-outline { background: transparent; border: 1.5px solid currentColor; }

/* Status dot prefix for table rows / inline status indicators */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-30);
  margin-right: 6px;
  vertical-align: 1px;
}
.dot-success { background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.dot-warning { background: var(--warning); box-shadow: 0 0 0 3px rgba(217,119,6,0.18); }
.dot-danger  { background: var(--danger);  box-shadow: 0 0 0 3px rgba(220,38,38,0.18); }
.dot-accent  { background: var(--accent);  box-shadow: 0 0 0 3px rgba(35,175,245,0.22); animation: pulse-dot 2s infinite ease-in-out; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(35,175,245,0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(35,175,245,0.04); }
}

/* ────────────────────────────────────────────────────────────────
   ALERTS / FLASH MESSAGES
   ──────────────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 0.92rem; line-height: 1.55; font-weight: 500;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-soft); color: #166534; border-color: rgba(22,163,74,0.18); }
.alert-warning { background: var(--warning-soft); color: #92400e; border-color: rgba(217,119,6,0.18); }
.alert-error   { background: var(--danger-soft);  color: #991b1b; border-color: rgba(220,38,38,0.18); }
.alert-info    { background: var(--info-soft);    color: var(--accent-deep); border-color: var(--border-accent); }
.alert-icon { flex-shrink: 0; font-size: 18px; line-height: 1.4; }

/* Flash messages (toasts that appear after a redirect) */
.flash-stack { position: fixed; top: 80px; right: 1rem; z-index: 80; display: flex; flex-direction: column; gap: 0.6rem; max-width: 380px; }
.flash {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow-md);
  font-size: 0.9rem; line-height: 1.45; color: var(--ink);
  display: flex; align-items: flex-start; gap: 0.6rem;
  animation: flash-in 0.35s var(--ease);
}
.flash.is-success { border-left-color: var(--success); }
.flash.is-warning { border-left-color: var(--warning); }
.flash.is-error   { border-left-color: var(--danger); }
@keyframes flash-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ────────────────────────────────────────────────────────────────
   TABLES (mostly used in dashboards, also occasionally public)
   ──────────────────────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}
.table th {
  font: 700 0.66rem var(--fh);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50);
  padding: 0.85rem 1rem;
  background: var(--surface);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th:first-child { border-top-left-radius: var(--r-md); }
.table th:last-child  { border-top-right-radius: var(--r-md); }
.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface); }

.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ────────────────────────────────────────────────────────────────
   STAT TILES — small KPI cards
   ──────────────────────────────────────────────────────────────── */
.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.stat-label { font: 700 0.65rem/1 var(--fh); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 0.5rem; }
.stat-value { font: 900 1.85rem/1 var(--fh); letter-spacing: -0.025em; color: var(--ink); }
.stat-meta  { font: 400 0.8rem/1.4 var(--fb); color: var(--ink-50); margin-top: 0.4rem; }
.stat-accent .stat-value { color: var(--accent); }

/* ────────────────────────────────────────────────────────────────
   MODAL / DIALOG
   ──────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15,25,35,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fade-in 0.2s var(--ease);
}
.modal {
  background: var(--white);
  border-radius: 22px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.35s var(--ease);
}
.modal-head { padding: 1.5rem 1.75rem 0.5rem; }
.modal-body { padding: 1rem 1.75rem 1.5rem; }
.modal-foot { padding: 1rem 1.75rem 1.5rem; display: flex; justify-content: flex-end; gap: 0.5rem; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ────────────────────────────────────────────────────────────────
   COUPON CELEBRATION (the BAZE1000 reveal moment)
   ──────────────────────────────────────────────────────────────── */
.coupon-celebrate {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
}
.coupon-celebrate.is-open { pointer-events: auto; }

.coupon-celebrate-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(35,175,245,0.20) 0%, rgba(15,25,35,0.55) 60%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.coupon-celebrate.is-open .coupon-celebrate-backdrop { opacity: 1; }

.coupon-celebrate-card {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -45%) scale(0.85);
  width: 92%; max-width: 460px;
  background: linear-gradient(160deg, #0f1923 0%, #0a1320 100%);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.45s var(--ease);
  overflow: hidden;
}
.coupon-celebrate.is-open .coupon-celebrate-card { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.coupon-celebrate-card::before {
  content: ''; position: absolute; inset: -50%;
  background: radial-gradient(circle at 50% 30%, rgba(35,175,245,0.25), transparent 55%);
  pointer-events: none;
}
.cc-eyebrow {
  position: relative; z-index: 2;
  font: 800 0.6rem/1 var(--fh); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.cc-headline {
  position: relative; z-index: 2;
  font: 900 clamp(1.6rem, 5vw, 2.1rem)/1.15 var(--fh);
  letter-spacing: -0.02em; color: var(--white);
  margin-bottom: 0.6rem;
}
.cc-headline em { color: var(--accent); font-style: italic; }
.cc-sub {
  position: relative; z-index: 2;
  font: 400 0.95rem/1.55 var(--fb); color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}
.cc-amount {
  position: relative; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(35,175,245,0.12);
  border: 1px solid rgba(35,175,245,0.35);
  border-radius: var(--r-full);
  font: 800 0.75rem/1 var(--fh); letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
}
.cc-amount strong { font-size: 0.85rem; letter-spacing: 0.08em; }
.cc-sponsor-row {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.85rem;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%; justify-content: center;
}
.cc-sponsor-row span { font: 700 0.6rem/1 var(--fh); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.cc-sponsor-row img  { height: 22px; width: auto; }

/* Confetti container (JS-driven) */
.cc-confetti {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.cc-piece {
  position: absolute; top: -10px;
  width: 8px; height: 14px;
  background: var(--accent);
  opacity: 0;
  animation: cc-fall 1.6s var(--ease) forwards;
}
@keyframes cc-fall {
  0%   { opacity: 0; transform: translateY(0) rotate(0); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(110vh) rotate(720deg); }
}

/* ────────────────────────────────────────────────────────────────
   FOOTER (public)
   ──────────────────────────────────────────────────────────────── */
.site-foot {
  background: var(--ink); color: rgba(255,255,255,0.55);
  padding: 4rem 0 2rem; margin-top: 5rem;
}
.site-foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem; max-width: 1160px; margin: 0 auto 3rem; padding: 0 1.5rem;
}
@media (max-width: 800px) { .site-foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-foot a { color: rgba(255,255,255,0.6); }
.site-foot a:hover { color: var(--accent); }
.site-foot h4 { font: 700 0.66rem/1 var(--fh); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.site-foot p { font-size: 0.88rem; line-height: 1.75; font-weight: 300; max-width: 300px; }
.site-foot-btm {
  max-width: 1160px; margin: 0 auto; padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255,255,255,0.3); font-weight: 300;
}
.site-foot-sponsor { display: flex; align-items: center; gap: 0.65rem; }
.site-foot-sponsor span { font: 700 0.62rem/1 var(--fh); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.site-foot-sponsor img { height: 20px; width: auto; opacity: 0.9; }

/* ────────────────────────────────────────────────────────────────
   REVEAL ON SCROLL (graceful, no JS dependency)
   Apply .rev to anything you want to fade-up. A tiny IO script
   adds .is-visible. Without JS, content still shows.
   ──────────────────────────────────────────────────────────────── */
.rev { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.rev.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .rev { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ────────────────────────────────────────────────────────────────
   UTILITIES (small kit; Tailwind handles most, these fill gaps)
   ──────────────────────────────────────────────────────────────── */
.hide          { display: none !important; }
.sr-only       { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider       { height: 1px; background: var(--border); margin: 1.5rem 0; }
.divider-soft  { height: 1px; background: var(--ink-10); margin: 1.5rem 0; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-muted   { color: var(--ink-50); }
.text-ink     { color: var(--ink); }

@media (max-width: 640px) {
  .hide-mobile  { display: none !important; }
}
@media (min-width: 641px) {
  .hide-desktop { display: none !important; }
}
