/* ============================================================================
   Center Court 26 — design system v3
   Modern, squared (radius 0), premium: hairline borders, soft layered shadows,
   big Space Grotesk display type, one lime accent. Photos are square tiles.
   --cc-primary / --cc-accent are injected per-request from admin settings.
   ========================================================================== */
:root {
  /* Brand: sampled from the Center Court badge — purple #5B1D95, green #015F38, white. */
  --cc-primary: #5b1d95;
  --cc-accent: #015f38;
  --cc-primary-dark: #481577;
  --cc-primary-darker: #341059;
  --cc-green: #015f38;
  --cc-green-bright: #0c9152;
  --cc-ink: #170f26;
  --cc-body: #473f57;
  --cc-muted: #79708a;
  --cc-line: #e9e5f1;
  --cc-line-2: #d9d2e6;
  --cc-bg: #f8f6fc;
  --cc-card: #ffffff;
  --cc-danger: #b3271b;
  --cc-radius: 0px;
  --cc-shadow-sm: 0 1px 2px rgba(23,15,38,.07), 0 1px 1px rgba(23,15,38,.05);
  --cc-shadow: 0 2px 6px rgba(23,15,38,.06), 0 14px 30px rgba(23,15,38,.10);
  --cc-shadow-lg: 0 24px 60px rgba(23,15,38,.18);
  --cc-maxw: 1200px;
  --cc-gut: 24px;
  --ff-head: 'Space Grotesk', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--cc-body);
  background: var(--cc-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text {
  font-family: var(--ff-head);
  color: var(--cc-ink);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  font-weight: 700;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }

a { color: var(--cc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--cc-maxw); margin: 0 auto; padding: 0 var(--cc-gut); }
.narrow { max-width: 760px; }
.section { padding: 84px 0; }
.center { text-align: center; }
.muted { color: var(--cc-muted); }
.lead { font-size: 1.2rem; color: var(--cc-body); }
.big-emoji { font-size: 3.4rem; margin-bottom: 0.4rem; line-height: 1; }
.error-stack { text-align: left; background: var(--cc-ink); color: #d8f5e1; padding: 16px; overflow: auto; font-size: 0.8rem; margin-top: 24px; }
.kicker { display: inline-block; font-family: var(--ff-head); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cc-primary); }

/* ── Buttons (square, clean) ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.005em;
  padding: 14px 28px; border-radius: 0; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--cc-shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--cc-primary); color: #fff; }
.btn-primary:hover { background: var(--cc-primary-dark); color: #fff; }
.btn-accent { background: var(--cc-green); color: #fff; }
.btn-accent:hover { color: #fff; background: var(--cc-green-bright); }
.btn-outline { background: transparent; color: var(--cc-ink); border-color: var(--cc-line-2); }
.btn-outline:hover { background: var(--cc-ink); color: #fff; border-color: var(--cc-ink); }
.btn-ghost { background: #fff; color: var(--cc-ink); border-color: var(--cc-line-2); }
.btn-ghost:hover { border-color: var(--cc-ink); }
.btn-danger { background: var(--cc-danger); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Header / nav ─────────────────────────────────────────────────────────── */
.site-header { background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--cc-line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-ball { font-size: 1.45rem; }
.brand-logo { width: 44px; height: 44px; display: block; }
.brand-text { font-size: 1.18rem; color: var(--cc-ink); letter-spacing: -0.03em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--cc-ink); font-weight: 500; font-size: 0.96rem; position: relative; }
.site-nav a:hover { color: var(--cc-primary); text-decoration: none; }
.site-nav a.active { color: var(--cc-primary); }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--cc-primary); }
.nav-account { color: var(--cc-muted) !important; font-size: 0.9rem !important; }
.nav-cta { color: #fff !important; }
.nav-toggle, .nav-burger { display: none; }
.nav-burger { flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--cc-ink); }

/* ── Flash ────────────────────────────────────────────────────────────────── */
.flash-wrap { margin-top: 18px; display: grid; gap: 10px; }
.flash { padding: 14px 18px; font-weight: 500; border: 1px solid; border-left-width: 4px; }
.flash-success { background: #ebf7ef; color: #0f5c2c; border-color: #1f8a4c; }
.flash-error { background: #fdecea; color: #8e2018; border-color: #c0392b; }

.site-main { min-height: 60vh; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--cc-primary) 0%, var(--cc-primary-dark) 55%, var(--cc-primary-darker) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(1100px 480px at 88% -8%, rgba(12,145,82,0.32), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image: linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 76px 100%;
}
.hero-inner { padding: 88px var(--cc-gut) 96px; position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,0.9); font-size: 1.3rem; max-width: 28ch; }
.hero-eyebrow { display: inline-block; max-width: 100%; font-family: var(--ff-head); background: var(--cc-green); color: #fff; padding: 8px 15px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .hero-cta .btn-outline:hover { background: #fff; color: var(--cc-ink); border-color: #fff; }
.hero-meta { margin-top: 40px; display: flex; gap: 0; flex-wrap: wrap; }
.hero-meta > div { padding-right: 32px; margin-right: 32px; border-right: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.82); font-size: 0.88rem; }
.hero-meta > div:last-child { border-right: none; margin-right: 0; }
.hero-meta strong { display: block; color: #fff; font-family: var(--ff-head); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 2px; }

.hero-media { position: relative; }
.hero-photo-tile { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 6px solid #fff; box-shadow: var(--cc-shadow-lg); }

/* ── Progress strip (under hero) ──────────────────────────────────────────── */
.progress-strip { background: #fff; border-bottom: 1px solid var(--cc-line); }
.progress-strip .container { padding-top: 32px; padding-bottom: 32px; }
.progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.progress-num { font-family: var(--ff-head); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.1rem); color: var(--cc-ink); letter-spacing: -0.035em; line-height: 1; }
.progress-meta { font-family: var(--ff-head); font-weight: 600; color: var(--cc-primary); }

/* ── Thermometer (square) ─────────────────────────────────────────────────── */
.thermo-figures { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.thermo-raised { font-family: var(--ff-head); font-weight: 700; font-size: 2.4rem; color: var(--cc-ink); letter-spacing: -0.035em; }
.thermo-goal { color: var(--cc-muted); font-size: 0.95rem; }
.thermo-bar { height: 14px; background: #e9ede9; overflow: hidden; }
.thermo-fill { height: 100%; background: linear-gradient(90deg, var(--cc-primary), var(--cc-green-bright)); width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.thermo-pct { margin-top: 8px; font-size: 0.85rem; color: var(--cc-muted); font-weight: 600; font-family: var(--ff-head); }

/* ── Stats ────────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--cc-card); border: 1px solid var(--cc-line); padding: 28px; text-align: center; box-shadow: var(--cc-shadow-sm); }
.stat-num { font-family: var(--ff-head); font-weight: 700; font-size: 2.2rem; color: var(--cc-ink); letter-spacing: -0.03em; }
.stat-label { color: var(--cc-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--ff-head); font-weight: 600; }

/* ── Section headers ──────────────────────────────────────────────────────── */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 38px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; }
.section-alt { background: #fff; border-top: 1px solid var(--cc-line); border-bottom: 1px solid var(--cc-line); }

/* ── Captain grid + cards (square) ────────────────────────────────────────── */
.captain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.captain-card { display: flex; flex-direction: column; background: var(--cc-card); border: 1px solid var(--cc-line); overflow: hidden; color: var(--cc-body); box-shadow: var(--cc-shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.captain-card:hover { transform: translateY(-5px); box-shadow: var(--cc-shadow); border-color: var(--cc-line-2); text-decoration: none; }
.captain-photo { aspect-ratio: 1 / 1; background: linear-gradient(150deg, var(--cc-green), #013d24); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.captain-photo img { width: 100%; height: 100%; object-fit: cover; }
.captain-initials { font-family: var(--ff-head); font-weight: 700; font-size: 2.6rem; color: rgba(255,255,255,0.96); }
.captain-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.captain-name { margin: 0; font-size: 1.14rem; }
.captain-team { color: var(--cc-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; font-family: var(--ff-head); font-weight: 600; }
.captain-raised { font-size: 1.05rem; margin-top: 4px; }
.captain-raised strong { color: var(--cc-ink); font-family: var(--ff-head); font-weight: 700; }
.mini-bar { height: 7px; background: #e9ede9; overflow: hidden; }
.mini-fill { height: 100%; background: linear-gradient(90deg, var(--cc-primary), var(--cc-green-bright)); }
.captain-meta { font-size: 0.84rem; }
.captain-cta { margin-top: 12px; align-self: flex-start; }

/* ── Leaderboard ──────────────────────────────────────────────────────────── */
.leaderboard { background: #fff; border: 1px solid var(--cc-line); box-shadow: var(--cc-shadow-sm); }
.lb-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--cc-line); }
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--cc-bg); text-decoration: none; }
.lb-rank { font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; color: var(--cc-muted); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--cc-line-2); }
.lb-row:nth-child(1) .lb-rank { background: var(--cc-primary); color: #fff; border-color: var(--cc-primary); }
.lb-row:nth-child(2) .lb-rank { border-color: var(--cc-primary); color: var(--cc-primary); }
.lb-name { font-weight: 600; color: var(--cc-ink); font-family: var(--ff-head); }
.lb-name small { display: block; color: var(--cc-muted); font-weight: 400; font-family: var(--ff-body); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.76rem; margin-top: 2px; }
.lb-amt { font-family: var(--ff-head); font-weight: 700; font-size: 1.15rem; color: var(--cc-primary); }

/* ── Sponsor wall ─────────────────────────────────────────────────────────── */
.sponsor-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.sponsor-chip { background: #fff; border: 1px solid var(--cc-line); padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 116px; box-shadow: var(--cc-shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.sponsor-chip:hover { box-shadow: var(--cc-shadow); transform: translateY(-3px); text-decoration: none; }
.sponsor-chip img { max-height: 62px; width: auto; object-fit: contain; }
.sponsor-chip .sponsor-name { font-family: var(--ff-head); font-weight: 700; color: var(--cc-ink); text-align: center; }

/* ── Cards / panels ───────────────────────────────────────────────────────── */
.card { background: var(--cc-card); border: 1px solid var(--cc-line); padding: 30px; box-shadow: var(--cc-shadow-sm); }
.card + .card { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tiles > .card { position: relative; }
.tiles > .card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--cc-accent); }

/* ── Media: video + photo (square) ───────────────────────────────────────── */
.media-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.video-embed { position: relative; padding-top: 56.25%; height: 0; overflow: hidden; background: #000; border: 1px solid var(--cc-line); box-shadow: var(--cc-shadow-sm); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-photo { overflow: hidden; min-height: 240px; background: var(--cc-green); border: 1px solid var(--cc-line); box-shadow: var(--cc-shadow-sm); }
.media-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-family: var(--ff-head); font-weight: 600; color: var(--cc-ink); margin-bottom: 8px; font-size: 0.9rem; }
.form-row .hint { color: var(--cc-muted); font-size: 0.85rem; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--cc-line-2); border-radius: 0;
  font: inherit; color: var(--cc-ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #aab4ad; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cc-primary); box-shadow: 0 0 0 3px rgba(21,128,61,0.13); }
textarea { min-height: 122px; resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { width: auto; margin-top: 4px; accent-color: var(--cc-primary); }
.field-error { color: var(--cc-danger); font-size: 0.85rem; margin-top: 6px; font-weight: 500; }
.input-error { border-color: var(--cc-danger) !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Amount chooser (square) */
.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 10px; margin-bottom: 12px; }
.amount-opt { position: relative; }
.amount-opt input { position: absolute; opacity: 0; }
.amount-opt label { display: block; text-align: center; padding: 15px 8px; border: 1px solid var(--cc-line-2); cursor: pointer; font-weight: 700; font-family: var(--ff-head); margin: 0; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.amount-opt input:checked + label { border-color: var(--cc-primary); background: var(--cc-primary); color: #fff; }
.amount-opt input:focus-visible + label { box-shadow: 0 0 0 3px rgba(21,128,61,0.18); }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--cc-line); background: #fff; box-shadow: var(--cc-shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--cc-line); white-space: nowrap; }
table.data th { background: var(--cc-bg); color: var(--cc-muted); font-family: var(--ff-head); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; border-bottom: 1px solid var(--cc-line-2); }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--cc-bg); }
table.data td.wrap { white-space: normal; }

/* ── Badges (square) ──────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; font-size: 0.72rem; font-weight: 600; font-family: var(--ff-head); text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid; }
.badge-green { background: #e9f6ef; color: #0f5c2c; border-color: #b4e1c4; }
.badge-amber { background: #fff5da; color: #875400; border-color: #f0d99a; }
.badge-red { background: #fdecea; color: #8e2018; border-color: #f3c4be; }
.badge-gray { background: #eef1ee; color: #4f5d55; border-color: #d7ddd8; }

/* ── Dashboard / admin layout ─────────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; }
/* Let columns shrink so wide tables scroll INSIDE .table-wrap instead of
   blowing out the page width (critical on mobile). */
.dash > * { min-width: 0; }
.dash-nav { background: #fff; border: 1px solid var(--cc-line); padding: 8px; position: sticky; top: 96px; box-shadow: var(--cc-shadow-sm); }
.dash-nav a { display: block; padding: 12px 16px; color: var(--cc-body); font-weight: 500; font-family: var(--ff-head); font-size: 0.94rem; }
.dash-nav a:hover { background: var(--cc-bg); text-decoration: none; }
.dash-nav a.active { background: var(--cc-primary); color: #fff; }
.page-head { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--cc-line); }
.page-head h1 { margin-bottom: 6px; }

/* ── Auth pages ───────────────────────────────────────────────────────────── */
.auth-wrap { max-width: 460px; margin: 70px auto; }
.auth-card { background: #fff; border: 1px solid var(--cc-line); padding: 40px; box-shadow: var(--cc-shadow); }
.auth-card h1 { font-size: 1.8rem; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--cc-muted); }

/* ── Captain profile page ─────────────────────────────────────────────────── */
.profile-head { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.profile-photo { aspect-ratio: 1; overflow: hidden; background: linear-gradient(150deg, var(--cc-green), #013d24); display: flex; align-items: center; justify-content: center; border: 6px solid #fff; box-shadow: var(--cc-shadow); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .captain-initials { font-size: 3.8rem; }
.donor-list { list-style: none; padding: 0; margin: 0; }
.donor-list li { padding: 14px 0; border-bottom: 1px solid var(--cc-line); display: flex; justify-content: space-between; gap: 14px; }
.donor-list li:last-child { border-bottom: none; }
.donor-msg { color: var(--cc-body); font-size: 0.92rem; }
.donor-amt { font-family: var(--ff-head); font-weight: 700; color: var(--cc-primary); white-space: nowrap; }

/* ── Tier cards (square) ──────────────────────────────────────────────────── */
.tier-card { background: #fff; border: 1px solid var(--cc-line); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--cc-shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow); border-color: var(--cc-primary); }
.tier-card.selected { border-color: var(--cc-primary); box-shadow: 0 0 0 2px var(--cc-primary), var(--cc-shadow); }
.tier-price { font-family: var(--ff-head); font-weight: 700; font-size: 2.1rem; color: var(--cc-ink); letter-spacing: -0.03em; }
.tier-perks { color: var(--cc-body); font-size: 0.92rem; flex: 1; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--cc-ink); color: #cabfdd; }
.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding: 64px var(--cc-gut) 44px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo { width: 48px; height: 48px; }
.footer-brand { font-family: var(--ff-head); font-weight: 700; font-size: 1.35rem; color: #fff; letter-spacing: -0.03em; margin: 0; }
.footer-blurb { color: #a79bbd; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--ff-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col a { display: block; color: #cabfdd; padding: 5px 0; }
.footer-col a:hover { color: #4fd190; text-decoration: none; }
.footer-meta { color: #a79bbd; margin: 0 0 6px; }
.footer-meta a { color: #4fd190; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; font-size: 0.85rem; color: #8a7fa0; }
.footer-bottom a { color: #4fd190; }

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.adm-avatar { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(150deg, var(--cc-green), #013d24); color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: 1rem; }
.adm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.divider { height: 1px; background: var(--cc-line); margin: 24px 0; }
.pill-row { display: flex; gap: 12px; flex-wrap: wrap; }
.note { background: #fff8e6; border: 1px solid #f0d99a; border-left: 4px solid #d8a200; color: #6e4f00; padding: 14px 16px; font-size: 0.92rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .spacer { flex: 1; }
details.card > summary { cursor: pointer; font-weight: 600; font-family: var(--ff-head); color: var(--cc-ink); }
code { background: #eef1ee; padding: 1px 6px; font-size: 0.88em; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .hero-inner, .grid-2, .dash, .profile-head, .media-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-photo-tile { width: 100%; max-width: none; aspect-ratio: auto; height: 220px; border-width: 4px; }
  .hero-inner { padding: 40px var(--cc-gut) 52px; gap: 28px; }
  .hero .lead { max-width: none; }
  .hero-meta { margin-top: 28px; }
  .hero-meta > div { padding-right: 18px; margin-right: 18px; }
  .hero-meta strong { font-size: 1.4rem; }
  .dash-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .dash-nav a { border: 1px solid var(--cc-line); padding: 8px 13px; font-size: 0.88rem; }
  .dash-nav a.active { border-color: var(--cc-primary); }
  table.data th, table.data td { padding: 11px 12px; }
  .nav-burger { display: flex; }
  .site-nav {
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--cc-line); box-shadow: var(--cc-shadow); display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--cc-line); }
  .site-nav a.active::after { display: none; }
  .nav-cta { margin-top: 12px; }
}
@media (max-width: 620px) {
  :root { --cc-gut: 18px; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  h1 { font-size: clamp(1.7rem, 7.4vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 5.6vw, 1.9rem); }
  .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.08em; }
  .lead { font-size: 1.08rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .btn-lg { padding: 14px 22px; font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .progress-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
/* Belt-and-suspenders: never allow a stray element to cause sideways scroll. */
html, body { overflow-x: hidden; }

/* ── 360 Spin ─────────────────────────────────────────────────────────────── */
.spin-hero { background: linear-gradient(160deg, var(--cc-primary), var(--cc-primary-darker)); color: #fff; padding: 56px 0 44px; }
.spin-hero h1 { color: #fff; }
.spin-badge { display: inline-block; background: var(--cc-green); color: #fff; font-family: var(--ff-head); font-weight: 600; letter-spacing: 0.14em; font-size: 0.74rem; padding: 7px 15px; margin-bottom: 16px; }
.spin-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 0 8px; }
.spin-glow { position: absolute; left: 50%; top: 46%; width: 460px; height: 460px; max-width: 110vw; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(closest-side, rgba(12,145,82,0.42), rgba(91,29,149,0.18) 45%, transparent 72%); }
.spin-stage.spinning .spin-glow { opacity: 1; animation: spin-glow-pulse 1s ease-in-out infinite; }
.spin-stage.landed .spin-glow { opacity: 1; animation: spin-glow-pulse 1.6s ease-in-out infinite; }
@keyframes spin-glow-pulse { 0%,100%{ transform: translate(-50%,-50%) scale(1); opacity:.7 } 50%{ transform: translate(-50%,-50%) scale(1.14); opacity:1 } }

.spin-ball { position: relative; z-index: 1; font-size: 4.4rem; line-height: 1; transition: transform .3s ease; }
.spin-stage.spinning .spin-ball { animation: spin-rotate .38s linear infinite; filter: drop-shadow(0 0 14px rgba(12,145,82,.65)); }
.spin-ball.landed { animation: spin-bounce .9s cubic-bezier(.2,.8,.25,1.3); }
@keyframes spin-rotate { to { transform: rotate(360deg); } }
@keyframes spin-bounce { 0%{transform:translateY(0) scale(1) rotate(0)} 22%{transform:translateY(-34px) scale(1.2) rotate(18deg)} 46%{transform:translateY(0) scale(.94)} 66%{transform:translateY(-13px) scale(1.06)} 100%{transform:translateY(0) scale(1)} }

/* Slot-machine number reel */
.spin-reel-window { position: relative; z-index: 1; height: 134px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent); }
.spin-reel { will-change: transform, filter; }
.spin-cell { height: 134px; display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-weight: 700; font-size: clamp(3.6rem, 17vw, 6rem); line-height: 1; color: var(--cc-ink); letter-spacing: -0.04em; }
.spin-stage.spinning .spin-cell { color: var(--cc-primary); }
.spin-stage.landed .spin-cell { color: var(--cc-primary); text-shadow: 0 0 28px rgba(91,29,149,.5); }
.spin-stage.landed .spin-reel { animation: spin-pop .55s cubic-bezier(.2,.8,.3,1.6); }
@keyframes spin-pop { 0%{transform: var(--reel-y) scale(.72)} 55%{transform: var(--reel-y) scale(1.2)} 100%{transform: var(--reel-y) scale(1)} }

.spin-caption { position: relative; z-index: 1; font-family: var(--ff-head); font-weight: 600; color: var(--cc-muted); min-height: 1.4em; letter-spacing: 0.02em; }
.spin-stage.landed .spin-caption { color: var(--cc-primary); font-size: 1.25rem; letter-spacing: 0.08em; animation: spin-pop2 .5s cubic-bezier(.2,.8,.3,1.5); }
@keyframes spin-pop2 { 0%{transform:scale(.5);opacity:0} 100%{transform:scale(1);opacity:1} }

#spin-btn { position: relative; z-index: 1; min-width: 210px; margin-top: 12px; }
.spin-result { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.spin-result-line { font-size: 1.25rem; margin: 0; }

/* Confetti explosion (radial; --tx/--ty/--r set per-piece in JS) */
.spin-confetti { position: absolute; left: 50%; top: 42%; z-index: 5; pointer-events: none; animation: spin-confetti 1.5s cubic-bezier(.15,.6,.4,1) forwards; }
@keyframes spin-confetti { 0%{ transform: translate(-50%,-50%) rotate(0) scale(.3); opacity:1 } 12%{opacity:1} 100%{ transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r)) scale(1); opacity:0 } }

/* Screen flash on landing */
.spin-flash { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; animation: spin-flash .55s ease-out forwards;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.85), rgba(12,145,82,.28) 38%, transparent 66%); }
@keyframes spin-flash { 0%{opacity:0} 18%{opacity:1} 100%{opacity:0} }

@media (max-width: 620px) { .spin-reel-window { height: 106px; } .spin-cell { height: 106px; } .spin-glow { width: 360px; height: 360px; } }

/* Ticket card */
.ticket-card { background: linear-gradient(150deg, var(--cc-primary), var(--cc-primary-darker)); color: #fff; border: 1.5px solid var(--cc-ink); padding: 30px; position: relative; box-shadow: var(--cc-shadow-lg); }
.ticket-card::before, .ticket-card::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; background: var(--cc-bg); border-radius: 50%; transform: translateY(-50%); }
.ticket-card::before { left: -14px; } .ticket-card::after { right: -14px; }
.ticket-label { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; color: var(--cc-accent); }
.ticket-number { font-family: var(--ff-head); font-weight: 700; font-size: clamp(3.4rem, 16vw, 5.4rem); line-height: 1; letter-spacing: -0.04em; }
.ticket-amount { font-family: var(--ff-head); font-weight: 600; font-size: 1.3rem; color: #fff; }
.ticket-name { color: rgba(255,255,255,0.8) !important; margin-top: 4px; }

/* Home promo */
.spin-promo { background: var(--cc-ink); color: #fff; }
.spin-promo .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px var(--cc-gut); flex-wrap: wrap; }
.spin-promo h2 { color: #fff; margin: 0 0 4px; }
.spin-promo p { color: #c9bfe0; margin: 0; }
.spin-promo .spin-promo-emoji { font-size: 2.6rem; }
@media (max-width: 620px) { .spin-promo .container { flex-direction: column; text-align: center; } }
