/* ==========================================================================
   VOTEHUB — DESIGN SYSTEM v3
   "The Seal" — bold monochrome editorial competition platform

   Palette:
     dark    void #080808 · charcoal #0e0e0e · panel #141414 · white #ffffff
     accent  the seal is now cut from foil-white, not gold — flat,
             high-contrast, cinematic. Restraint is the accent.
   Type:
     display Bebas Neue          — huge, condensed, poster-like headlines
     cond    Barlow Condensed    — eyebrows, labels, nav, tab titles
     body    Barlow              — running text
     mono    JetBrains Mono      — scoreboard / data (votes, prices)
   Signature:
     The Seal — a faceted hexagon medallion used for numbers, ranks and
     category marks; a hairline+diamond rule ties every section together.
     A film-grain overlay + custom cursor carry the cinematic tone across
     every page.

   Sections:
   1. Fonts & Reset            11. CTA & Footer
   2. Theme Tokens             12. Contestants Grid
   3. Base & Utilities         13. Vote Modal
   4. Loading Screen           14. Profile Page
   5. Navbar                   15. Results Page
   6. Buttons                  16. Toasts
   7. Hero                     17. Misc widgets
   8. Stats / Scoreboard       18. Edit Profile / Forms
   9. Category Cards           19. Scroll Reveal
   10. Rules Section           20. Responsive
   21. Cinematic Flow (marquee / perspective / tabs / process / grain / cursor)
   ========================================================================== */

/* ---------- 1. Fonts & Reset ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;500;600;700;800&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body{
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--bg);
  color: var(--ink-1);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background .5s ease, color .5s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* fine grain texture, keeps flat panels from feeling plastic */
body::before{
  content:''; position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body::after{
  content:''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 120% 60% at 50% 0%, var(--vignette), transparent 55%);
}

img{ max-width: 100%; display: block; }
a{ text-decoration: none; color: inherit; }
ul{ list-style: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea{ font-family: inherit; }

/* ---------- 2. Theme Tokens ---------- */
:root{
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-full: 999px;
  --space-xs: .5rem; --space-sm: 1rem; --space-md: 2.4rem; --space-lg: 4.5rem; --space-xl: 7.5rem;
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: .2s var(--ease); --t-med: .4s var(--ease); --t-slow: .8s var(--ease);
  --navbar-h: 80px;

  --success: #2F8F55;
  --danger: #B23A3A;
}

/* DARK — default until the toggle or OS preference says otherwise */
html[data-theme="dark"]{
  color-scheme: dark;
  --obsidian: #080808;
  --espresso: #0e0e0e;
  --espresso-2: #141414;
  --espresso-3: #1c1c1c;
  --parchment: #FFFFFF;

  --bg: var(--obsidian);
  --panel: var(--espresso);
  --panel-raised: var(--espresso-2);
  --ink-1: var(--parchment);
  --ink-2: #aaaaaa;
  --ink-3: #555555;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.2);

  /* "gold" tokens now carry the monochrome foil-white accent —
     kept under the same names so every component that already
     reaches for --gold repaints automatically. */
  --gold: #FFFFFF;
  --gold-bright: #FFFFFF;
  --gold-deep: #8a8a8a;
  --gold-ink: #0a0a0a;

  --surface-tint: rgba(255,255,255,.04);
  --surface-tint-2: rgba(255,255,255,.015);
  --vignette: rgba(255,255,255,.05);
  --grain-opacity: .035;

  --shadow-soft: 0 2px 8px rgba(0,0,0,.35), 0 20px 50px rgba(0,0,0,.45);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.3), 0 26px 54px rgba(0,0,0,.5);
  --shadow-gold: 0 0 1px rgba(255,255,255,.4), 0 0 30px rgba(255,255,255,.14);
  --inset-hairline: inset 0 1px 0 rgba(255,255,255,.06);
}

/* LIGHT theme retained in code but never applied — BCL Production is
   deliberately a single fixed black/white theme (see base.html). */
html[data-theme="light"]{
  color-scheme: light;
  --ivory: #F7F2E7;
  --paper: #FFFFFF;
  --paper-2: #F0E9DA;
  --paper-3: #E7DCC4;
  --ink: #1C1710;

  --bg: var(--ivory);
  --panel: var(--paper);
  --panel-raised: var(--paper-2);
  --ink-1: var(--ink);
  --ink-2: rgba(28,23,16,.66);
  --ink-3: rgba(28,23,16,.42);
  --border: rgba(28,23,16,.12);
  --border-strong: rgba(28,23,16,.22);

  --gold: #A9782A;
  --gold-bright: #C89A3F;
  --gold-deep: #6E5218;
  --gold-ink: #FBF6EA;

  --surface-tint: rgba(28,23,16,.035);
  --surface-tint-2: rgba(28,23,16,.015);
  --vignette: rgba(150,130,90,.10);
  --grain-opacity: .025;

  --shadow-soft: 0 2px 10px rgba(30,24,14,.06), 0 20px 40px rgba(30,24,14,.09);
  --shadow-lift: 0 4px 14px rgba(30,24,14,.08), 0 30px 60px rgba(30,24,14,.12);
  --shadow-gold: 0 0 1px rgba(169,120,42,.5), 0 0 26px rgba(169,120,42,.18);
  --inset-hairline: inset 0 1px 0 rgba(255,255,255,.5);
}

html{ --gradient-gold: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep)); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm);
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 3. Base & Utilities ---------- */
.container{ max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section{ padding: 6.5rem 0; position: relative; }
.section > .container{ width: 100%; }
.section-head{ text-align: center; max-width: 720px; margin: 0 auto var(--space-lg); }

.eyebrow{
  font-family: var(--font-cond); font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  font-size: .82rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: .7rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before, .eyebrow::after{ content:''; width: 20px; height: 1px; background: var(--border-strong); }

.section-title{
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-bottom: 1rem; letter-spacing: .02em; line-height: .95;
}
.section-sub{ color: var(--ink-2); font-size: 1.2rem; line-height: 1.65; }

/* the seal — hairline + hexagon, used under every section head */
.section-head::after{
  content:''; display: block; width: 12px; height: 12px; margin: 1.5rem auto 0;
  background: var(--gradient-gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: var(--shadow-gold);
}

.text-gold{ color: var(--gold); }
.glass{
  background: linear-gradient(160deg, var(--surface-tint), var(--surface-tint-2)), var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--inset-hairline), var(--shadow-soft);
}
.foil-frame{ position: relative; isolation: isolate; transition: transform var(--t-med), box-shadow var(--t-med); }

::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: var(--panel); }
::-webkit-scrollbar-thumb{ background: var(--gradient-gold); border-radius: var(--r-full); }

.empty-state{ text-align: center; padding: var(--space-xl) var(--space-md); color: var(--ink-2); }
.empty-state .empty-icon{ font-size: 3.4rem; margin-bottom: 1rem; filter: drop-shadow(0 0 20px rgba(201,162,75,.3)); }
.empty-state h3{ font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink-1); margin-bottom: .5rem; }

.skeleton{
  background: linear-gradient(90deg, var(--surface-tint) 25%, var(--border-strong) 37%, var(--surface-tint) 63%);
  background-size: 400% 100%; animation: skeletonShine 1.4s ease infinite; border-radius: var(--r-md);
}
@keyframes skeletonShine{ 0%{ background-position: 100% 50%; } 100%{ background-position: 0 50%; } }

/* ---------- 4. Loading Screen ---------- */
#loading-screen{
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at 50% 40%, var(--panel-raised) 0%, var(--bg) 72%);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.5rem;
  transition: opacity .6s ease, visibility .6s ease;
}
#loading-screen.hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 6vw, 2.2rem); letter-spacing: .01em; color: var(--ink-1); text-align: center; padding: 0 1rem; }
.loader-mark span{ background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-bar{ width: 220px; height: 3px; background: var(--border); border-radius: var(--r-full); overflow: hidden; }
.loader-bar::after{ content:''; display:block; height:100%; width: 40%; background: var(--gradient-gold); animation: loaderMove 1.1s ease-in-out infinite; border-radius: var(--r-full); }
@keyframes loaderMove{ 0%{ transform: translateX(-100%); } 100%{ transform: translateX(350%); } }

/* ---------- 5. Navbar ---------- */
.navbar{ position: fixed; top:0; left:0; right:0; z-index: 1000; height: var(--navbar-h); display: flex; align-items: center; transition: background var(--t-med), box-shadow var(--t-med), height var(--t-med); }
.navbar.scrolled{ background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(14px); box-shadow: 0 4px 30px rgba(0,0,0,.25); height: 68px; }
.navbar::after{ content:''; position: absolute; left:0; right:0; bottom:0; height:1px; background: linear-gradient(90deg, transparent, var(--gold-deep) 45%, var(--gold-bright) 50%, var(--gold-deep) 55%, transparent); opacity: 0; transition: opacity var(--t-med); }
.navbar.scrolled::after{ opacity: .65; }

.nav-inner{ display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo{ font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -.01em; display: flex; align-items: center; gap: .5rem; color: var(--ink-1); }
.logo .logo-dot{ background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links{ display: flex; align-items: center; gap: 2.2rem; }
.nav-links a{ font-size: .92rem; font-weight: 700; color: var(--ink-2); position: relative; padding: .3rem 0; transition: color var(--t-fast); }
.nav-links a::after{ content:''; position: absolute; left:0; bottom:-4px; width:0; height:2px; background: var(--gradient-gold); transition: width var(--t-med); }
.nav-links a:hover, .nav-links a.active{ color: var(--ink-1); }
.nav-links a:hover::after, .nav-links a.active::after{ width: 100%; }

.nav-actions{ display: flex; align-items: center; gap: .8rem; }
.theme-toggle{
  width: 44px; height: 44px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface-tint); font-size: 1.05rem; color: var(--ink-1);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.theme-toggle:hover{ transform: rotate(20deg); border-color: var(--gold); }

.hamburger{ display: none; flex-direction: column; gap: 5px; width: 28px; z-index: 1100; }
.hamburger span{ height: 2px; width: 100%; background: var(--ink-1); border-radius: 2px; transition: all var(--t-fast); }
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  position: fixed; top:0; right:0; height: 100vh; width: min(80vw, 340px);
  background: linear-gradient(165deg, var(--panel-raised), var(--panel));
  z-index: 1050; padding: 6rem 2rem 2rem; transform: translateX(100%); transition: transform var(--t-med);
  display: flex; flex-direction: column; gap: 1.6rem; box-shadow: -20px 0 60px rgba(0,0,0,.4);
}
.mobile-menu.open{ transform: translateX(0); }
.mobile-menu a{ font-size: 1.1rem; font-weight: 700; color: var(--ink-1); }
.menu-overlay{ position: fixed; inset:0; background: rgba(0,0,0,.5); z-index: 1040; opacity:0; pointer-events:none; transition: opacity var(--t-med); }
.menu-overlay.open{ opacity: 1; pointer-events: auto; }

/* ---------- 6. Buttons ---------- */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 1.05rem 2.3rem; border-radius: var(--r-full); font-weight: 800; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); white-space: nowrap; position: relative; overflow: hidden; isolation: isolate; }
.btn::before{ content:''; position: absolute; inset:0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.3) 48%, transparent 66%); transform: translateX(-140%); transition: transform .7s var(--ease); z-index:1; }
.btn:hover::before{ transform: translateX(140%); }
.btn > *{ position: relative; z-index: 2; }
.btn:active{ transform: scale(.97) !important; }

.btn-gold{ background: var(--gradient-gold); color: var(--gold-ink); box-shadow: var(--shadow-gold); }
.btn-gold:hover{ transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.2), 0 12px 36px rgba(201,162,75,.4); }
.btn-outline{ border: 1.5px solid var(--border); color: var(--ink-1); background: var(--surface-tint); }
.btn-outline:hover{ border-color: var(--gold); color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn-sm{ padding: .6rem 1.2rem; font-size: .82rem; }
.btn-block{ width: 100%; }
.btn:disabled{ opacity: .5; cursor: not-allowed; transform: none !important; }
.btn:disabled::before{ display: none; }

/* ---------- 7. Hero ---------- */
.hero{ position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.hero-slides{ position: absolute; inset:0; z-index:0; }
.hero-slide{ position: absolute; inset:0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity:0; transition: opacity 1.6s ease; will-change: transform; animation: kenBurns 16s ease-in-out infinite alternate; filter: saturate(.85); }
.hero-slide.active{ opacity: 1; }
@keyframes kenBurns{ from{ transform: scale(1.06); background-position: 48% 45%; } to{ transform: scale(1.14); background-position: 52% 55%; } }
.hero-overlay{ position: absolute; inset:0; z-index:1; background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(201,162,75,.18), transparent 70%), linear-gradient(180deg, rgba(11,10,8,.55) 0%, rgba(11,10,8,.85) 55%, var(--bg) 100%); }
html[data-theme="light"] .hero-overlay{ background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(169,120,42,.14), transparent 70%), linear-gradient(180deg, rgba(20,16,10,.4) 0%, rgba(20,16,10,.72) 55%, var(--bg) 100%); }
.hero-overlay::after{ content:''; position: absolute; inset:0; box-shadow: inset 0 0 18vw rgba(0,0,0,.5); }

.spotlights{ position: absolute; inset:0; z-index:2; pointer-events:none; mix-blend-mode: screen; }
.beam{ position: absolute; top:-10%; width: 26vw; height: 140%; background: linear-gradient(180deg, rgba(240,205,110,.18), transparent 75%); transform-origin: top center; filter: blur(6px); animation: beamSway 7s ease-in-out infinite; }
.beam.b1{ left:8%; transform: rotate(-14deg); }
.beam.b2{ left:38%; transform: rotate(-4deg); animation-delay: 1.4s; }
.beam.b3{ left:60%; transform: rotate(6deg); animation-delay: .7s; }
.beam.b4{ left:82%; transform: rotate(15deg); animation-delay: 2.1s; }
@keyframes beamSway{ 0%,100%{ opacity:.5; } 50%{ opacity:.85; } }

.hero-content{ position: relative; z-index:3; max-width: 800px; padding: 0 1.5rem; color: #F5EFE1; }
.hero-eyebrow{ font-family: var(--font-cond); font-weight: 600; letter-spacing:.32em; text-transform: uppercase; color: rgba(255,255,255,.6); font-size:.78rem; margin-bottom: 1.4rem; display: inline-block; animation: fadeUp 1s ease .1s both; }
.hero-title{ font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 8.2vw, 6.4rem); line-height: .96; letter-spacing: .01em; margin-bottom: 1.3rem; animation: fadeUp 1s ease .25s both; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero-title .accent{ background: linear-gradient(120deg, var(--gold-bright), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub{ font-size: 1.15rem; color: rgba(245,239,225,.78); max-width: 560px; margin: 0 auto 2.4rem; animation: fadeUp 1s ease .4s both; }
.hero-actions{ display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 1s ease .55s both; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(24px); } to{ opacity:1; transform: translateY(0); } }

.hero-scroll-cue{ position: absolute; bottom: 6rem; left:50%; transform: translateX(-50%); z-index:3; color: rgba(245,239,225,.55); font-size:.78rem; letter-spacing:.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap:.5rem; animation: fadeUp 1s ease .8s both; }
.hero-scroll-cue .dot-track{ width:1px; height:34px; background: rgba(245,239,225,.4); position: relative; overflow: hidden; }
.hero-scroll-cue .dot-track::after{ content:''; position: absolute; left:0; top:-100%; width:100%; height:50%; background: var(--gold-bright); animation: dotFall 1.8s ease-in-out infinite; }
@keyframes dotFall{ 0%{ top:-50%; } 100%{ top:100%; } }

/* ---------- 8. Stats / Scoreboard ---------- */
.stats-strip{
  display: grid; grid-template-columns: repeat(3,1fr);
  max-width: 920px; margin: -2.75rem auto 0; position: relative; z-index: 4;
  background: linear-gradient(160deg, var(--surface-tint), var(--surface-tint-2)), var(--panel);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--inset-hairline), var(--shadow-soft);
  overflow: hidden;
}
.stats-strip .stat-card{ border-radius: 0; box-shadow: none; border: none; background: none; }
.stats-strip .stat-card:not(:last-child){ border-right: 1px solid var(--border); }
.stat-card{ padding: 1.6rem 1.2rem; border-radius: var(--r-lg); text-align: center; position: relative; overflow: hidden; }
.stat-card::before{ content:''; position: absolute; top:0; left:50%; transform: translateX(-50%); width:40%; height:2px; background: var(--gradient-gold); border-radius: var(--r-full); }
.stats-strip .stat-card::before{ display: none; }
.stat-number{ font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 4.4vw, 3.4rem); color: var(--gold); letter-spacing:.02em; }
.stat-label{ color: var(--ink-2); font-size:.88rem; margin-top:.4rem; letter-spacing:.04em; text-transform: uppercase; }

.scoreboard{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; }
.scoreboard.flicker{ animation: flickerIn .5s steps(6) both; }
@keyframes flickerIn{ 0%{ opacity:.2; } 30%{ opacity:1; } 45%{ opacity:.4; } 60%{ opacity:1; } 100%{ opacity:1; } }

/* ---------- 9. Category Cards ---------- */
.category-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.6rem; }
.category-card{ border-radius: var(--r-lg); padding: 2.2rem 1.6rem; position: relative; overflow: hidden; transition: transform var(--t-med), box-shadow var(--t-med); cursor: pointer; }
.category-card::before{ content:''; position: absolute; top:0; left:0; right:0; height:3px; background: var(--gradient-gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med); }
.category-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.category-card:hover::before{ transform: scaleX(1); }
.category-icon{
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin-bottom: 1.2rem; background: var(--gradient-gold); color: var(--gold-ink);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform var(--t-med);
}
.category-card:hover .category-icon{ transform: scale(1.08) rotate(6deg); }
.category-card h3{ font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom:.4rem; }
.category-card p{ color: var(--ink-2); font-size:.86rem; }
.category-card .cat-count{ margin-top: 1rem; font-family: var(--font-mono); font-size:.8rem; color: var(--gold); padding-top:.9rem; border-top: 1px dashed var(--border); }

/* ---------- 10. Rules Section ---------- */
.rules-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.rule-card{ text-align: center; padding: 1.6rem 1rem; border-radius: var(--r-md); transition: transform var(--t-fast); }
.rule-card:hover{ transform: translateY(-4px); }
.rule-votes{ font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--ink-1); }
.rule-price{ font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--gold); margin-top:.3rem; }
.rule-note{ text-align: center; max-width: 620px; margin: 0 auto; font-style: italic; color: var(--ink-2); font-size:.95rem; border-top: 1px solid var(--border); padding-top: 1.4rem; }
.rule-basic{ display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; font-family: var(--font-mono); font-size:.88rem; color: var(--ink-2); }
.rule-basic span{ color: var(--gold); font-weight: 600; }

/* ---------- 11. CTA & Footer ---------- */
.cta-section{ border-radius: var(--r-lg); padding: var(--space-lg) var(--space-md); text-align: center; background: linear-gradient(135deg, var(--panel-raised), var(--panel)); position: relative; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lift); }
.cta-section::before{ content:''; position: absolute; inset:0; background: radial-gradient(circle at 30% 20%, rgba(201,162,75,.14), transparent 60%), radial-gradient(circle at 80% 90%, rgba(201,162,75,.1), transparent 55%); }
.cta-section > *{ position: relative; z-index:1; }
.cta-section h2{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.cta-section p{ color: var(--ink-2); margin-bottom: 2rem; }

footer{ background: var(--panel); padding: var(--space-lg) 0 var(--space-sm); border-top: 1px solid var(--border); }
.footer-grid{ display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand p{ color: var(--ink-2); font-size:.9rem; margin-top: 1rem; max-width: 280px; }
.footer-col h4{ font-family: var(--font-display); font-size:.95rem; text-transform: uppercase; letter-spacing:.1em; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col a{ display: block; color: var(--ink-2); font-size:.9rem; margin-bottom:.8rem; transition: color var(--t-fast); }
.footer-col a:hover{ color: var(--gold); }
.social-icons{ display: flex; gap:.8rem; margin-top: 1.4rem; }
.social-icons a{ width: 38px; height: 38px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); transition: all var(--t-fast); }
.social-icons a:hover{ border-color: var(--gold); color: var(--gold); transform: translateY(-3px) rotate(-6deg); }
.footer-bottom{ border-top: 1px solid var(--border); padding-top: 1.6rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1.2rem; font-size:.82rem; color: var(--ink-3); }
.footer-legal-links a{ color: var(--ink-3); text-decoration: none; }
.footer-legal-links a:hover{ color: var(--gold); }
@media (max-width: 560px){ .footer-bottom{ justify-content: center; text-align: center; } }

/* ---------- 12. Contestants Grid ---------- */
.page-header{
  padding: calc(var(--navbar-h) + 4.5rem) 0 4.5rem; text-align: center;
  background: linear-gradient(180deg, var(--panel-raised) 0%, var(--bg) 100%); position: relative;
}
.page-header > .container{ width: 100%; }
.toolbar{ display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.4rem; border-radius: var(--r-lg); margin-top: -2.4rem; position: relative; z-index: 3; }
.search-box{ flex: 1 1 260px; display: flex; align-items: center; gap:.6rem; background: var(--surface-tint); border: 1px solid var(--border); border-radius: var(--r-full); padding:.7rem 1.2rem; }
.search-box input{ background: none; border: none; outline: none; color: var(--ink-1); width: 100%; font-size:.92rem; }
.search-box input::placeholder{ color: var(--ink-3); }
.filter-group{ display: flex; gap:.8rem; flex-wrap: wrap; }
.select-wrap{ position: relative; }
.select-wrap select{ background: var(--surface-tint); border: 1px solid var(--border); color: var(--ink-1); padding:.7rem 2.2rem .7rem 1.2rem; border-radius: var(--r-full); font-size:.88rem; font-weight: 600; outline: none; appearance: none; cursor: pointer; }
.select-wrap select option, .field select option{ background: var(--panel); color: var(--ink-1); }
.select-wrap::after{ content:'▾'; position: absolute; right: 14px; top:50%; transform: translateY(-50%); color: var(--gold); font-size:.7rem; pointer-events: none; }

.results-meta{ color: var(--ink-3); font-size:.86rem; margin: 1.6rem 0 1rem; }

.contestants-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.6rem; }
.contestant-card{ border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t-med), box-shadow var(--t-med); display: flex; flex-direction: column; }
.contestant-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.card-media{ position: relative; height: 250px; overflow: hidden; }
.card-media img{ width:100%; height:100%; object-fit: cover; transition: transform .7s var(--ease), filter .7s var(--ease); object-position: center 8%; }
.contestant-card:hover .card-media img{ transform: scale(1.09); }
.card-media::after{ content:''; position: absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(11,10,8,.88)); }

/* the seal — engraved number plate on each card */
.card-number{
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-weight: 700; font-size:.76rem;
  background: rgba(11,10,8,.55); backdrop-filter: blur(8px); color: var(--gold-bright);
  padding: .35rem .7rem; border: 1px solid rgba(240,205,110,.4); border-radius: var(--r-sm);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.card-fav{ position: absolute; top: 10px; right: 10px; z-index:2; width: 36px; height: 36px; border-radius: var(--r-full); background: rgba(11,10,8,.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform var(--t-fast); }
.card-fav:hover{ transform: scale(1.15); }
.card-fav.active{ color: #ff5d7a; background: rgba(255,93,122,.15); }
.card-cat-tag{ position: absolute; bottom: 10px; left: 12px; z-index:2; font-size:.72rem; letter-spacing:.06em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; }
.card-body{ padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap:.7rem; flex: 1; background: var(--panel); }
.card-body h3{ font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.card-votes-row{ display: flex; align-items: baseline; justify-content: space-between; }
.card-votes-row .num{ font-size: 1.2rem; }
.card-votes-row .lbl{ font-size:.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing:.06em; }
.card-actions{ display: flex; gap:.6rem; margin-top:.4rem; }
.card-actions .btn{ flex: 1; padding:.65rem .8rem; font-size:.82rem; }

.pagination{ display: flex; justify-content: center; gap:.6rem; margin-top: 3rem; flex-wrap: wrap; }
.page-btn{ width: 42px; height: 42px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface-tint); font-size:.88rem; font-family: var(--font-mono); transition: all var(--t-fast); color: var(--ink-1); }
.page-btn:hover, .page-btn.active{ background: var(--gradient-gold); color: var(--gold-ink); border-color: transparent; }
.page-btn:disabled{ opacity:.35; cursor: not-allowed; }

/* ---------- 13. Vote Modal (single, canonical) ---------- */
.modal-overlay{ position: fixed; inset:0; background: rgba(8,6,3,.72); backdrop-filter: blur(8px); z-index: 100000; display: none; align-items: center; justify-content: center; opacity:0; transition: opacity .5s var(--ease); padding: 20px; }
.modal-overlay.open{ display: flex; opacity: 1; }
.modal-container{
  background: linear-gradient(165deg, var(--panel-raised), var(--panel));
  border-radius: 28px; max-width: 500px; width: 100%; max-height: 92vh; overflow-y: auto; padding: 0;
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--border);
  animation: modalSlideUp .6s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
.modal-container::before{ content:''; position: absolute; top:0; left:0; right:0; height: 3px; background: var(--gradient-gold); border-radius: 28px 28px 0 0; }
@keyframes modalSlideUp{ from{ transform: translateY(50px) scale(.95); opacity:0; } to{ transform: translateY(0) scale(1); opacity: 1; } }

.modal-header{ padding: 22px 26px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top:0; background: color-mix(in srgb, var(--panel-raised) 92%, transparent); backdrop-filter: blur(12px); z-index: 10; border-radius: 28px 28px 0 0; }
.modal-contestant{ display: flex; align-items: center; gap: 14px; }
.modal-contestant img{ width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 2px solid var(--gold); }
.modal-contestant h3{ font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-1); }
.modal-contestant .modal-votes{ font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.modal-close{ background: var(--surface-tint); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 50%; font-size: 17px; color: var(--ink-2); transition: all .3s var(--ease); display: flex; align-items: center; justify-content: center; }
.modal-close:hover{ background: var(--border-strong); color: var(--ink-1); transform: rotate(90deg); }

.modal-body-content{ padding: 22px 26px 26px; }
.form-group{ margin-bottom: 18px; }
.form-group label{ display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--ink-1); }
.vote-input, .phone-input{ width:100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 12px; font-size: 16px; transition: all .3s var(--ease); background: var(--surface-tint); color: var(--ink-1); box-sizing: border-box; }
.vote-input::placeholder, .phone-input::placeholder{ color: var(--ink-3); }
.vote-input:focus, .phone-input:focus{ border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px rgba(201,162,75,.12); }
.vote-input.error, .phone-input.error{ border-color: var(--danger); box-shadow: 0 0 0 4px rgba(178,58,58,.1); }
.field-error, .phone-error{ color: var(--danger); font-size: 13px; margin-top: 6px; display: block; font-weight: 600; min-height: 1.1em; }
.hint{ display: block; margin-top: 6px; color: var(--ink-3); font-size: 12px; }

.stepper-wrapper{ display: flex; align-items: center; gap: 12px; }
.stepper-btn{ width: 44px; height: 44px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface-tint); font-size: 20px; font-weight: 700; color: var(--ink-1); display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease); user-select: none; }
.stepper-btn:hover{ background: var(--gradient-gold); border-color: var(--gold); color: var(--gold-ink); transform: scale(1.05); }
.vote-input{ flex: 1; text-align: center; font-size: 18px; font-weight: 700; padding: 10px; font-family: var(--font-mono); }

.quick-amounts{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.quick-amounts button{ flex: 1; min-width: 52px; padding: 8px 12px; background: var(--surface-tint); border: 2px solid var(--border); border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .3s var(--ease); }
.quick-amounts button:hover{ border-color: var(--border-strong); color: var(--ink-1); transform: translateY(-2px); }
.quick-amounts button.active{ background: var(--gradient-gold); border-color: var(--gold); color: var(--gold-ink); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.calc-total{ background: linear-gradient(135deg, rgba(201,162,75,.1), rgba(201,162,75,.02)); padding: 16px 20px; border-radius: 14px; border: 2px solid rgba(201,162,75,.18); display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.calc-total .label{ font-weight: 700; color: var(--ink-2); font-size: 15px; }
.calc-total .price{ font-family: var(--font-mono); font-size: 30px; font-weight: 800; color: var(--gold); }

.payment-info{ display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface-tint); border-radius: 12px; border: 1px solid var(--border); margin-bottom: 24px; }
.payment-method{ display: flex; align-items: center; gap: 10px; }
.payment-method .mpesa-icon{ font-size: 22px; }
.payment-method span{ font-weight: 700; color: var(--ink-1); font-size: 14px; }
.secure-badge{ display: flex; align-items: center; gap: 6px; color: var(--success); font-size: 13px; font-weight: 600; }

.btn-proceed{ width: 100%; padding: 16px; background: var(--gradient-gold); border: none; border-radius: 14px; font-size: 17px; font-weight: 800; color: var(--gold-ink); transition: all .3s var(--ease); position: relative; overflow: hidden; }
.btn-proceed:hover:not(:disabled){ transform: translateY(-2px); box-shadow: 0 8px 40px rgba(201,162,75,.35); }
.btn-proceed:active:not(:disabled){ transform: scale(.97); }
.btn-proceed:disabled{ opacity:.6; cursor: not-allowed; transform: none; }
.btn-spinner{ display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(0,0,0,.15); border-radius: 50%; border-top-color: var(--gold-ink); animation: spin .8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.modal-status-view{ padding: 44px 26px 34px; animation: fadeIn .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes fadeIn{ from{ opacity:0; transform: translateY(30px) scale(.95); } to{ opacity:1; transform: translateY(0) scale(1); } }
.status-content{ text-align: center; }
.status-icon-wrapper{ width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; position: relative; }
.status-spinner{ width: 68px; height: 68px; border: 4px solid rgba(201,162,75,.15); border-radius: 50%; border-top: 4px solid var(--gold); animation: spin .8s linear infinite; }
.status-icon{ width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; animation: scaleIn .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes scaleIn{ from{ transform: scale(0) rotate(-45deg); opacity:0; } to{ transform: scale(1) rotate(0deg); opacity:1; } }
.status-icon.success{ background: linear-gradient(135deg, var(--success), #237a45); color: #fff; box-shadow: 0 8px 40px rgba(47,143,85,.35); }
.status-icon.error{ background: linear-gradient(135deg, var(--danger), #8f2c2c); color: #fff; box-shadow: 0 8px 40px rgba(178,58,58,.35); }
.modal-status-view h4{ margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink-1); }
.modal-status-view p{ margin: 0 0 24px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.status-details{ background: var(--surface-tint); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; text-align: left; border: 1px solid var(--border); }
.detail-row{ display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child{ border-bottom: none; }
.detail-label{ color: var(--ink-3); font-size: 13px; }
.detail-value{ color: var(--ink-1); font-size: 13px; font-weight: 600; }
.status-actions{ display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-retry, .btn-close-modal{ padding: 12px 32px; border: none; border-radius: 12px; font-weight: 700; font-size: 15px; transition: all .3s var(--ease); }
.btn-retry{ background: var(--gradient-gold); color: var(--gold-ink); }
.btn-retry:hover{ transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,162,75,.3); }
.btn-close-modal{ background: var(--surface-tint); color: var(--ink-2); border: 1px solid var(--border); }
.btn-close-modal:hover{ background: var(--border-strong); color: var(--ink-1); }

.modal-container::-webkit-scrollbar{ width: 4px; }
.modal-container::-webkit-scrollbar-thumb{ background: var(--gold); border-radius: 10px; }

/* ---------- 14. Profile Page ---------- */
.profile-cover{ height: 340px; position: relative; background-size: cover; background-position: center; margin-top: var(--navbar-h); }
.profile-cover::after{ content:''; position: absolute; inset:0; background: linear-gradient(180deg, rgba(11,10,8,.15), var(--bg) 95%); }
.profile-header{ display: flex; align-items: flex-end; gap: 1.6rem; margin-top: -80px; position: relative; z-index:3; padding-bottom: 2rem; flex-wrap: wrap; }
.profile-avatar{ width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); box-shadow: 0 0 0 6px var(--surface-tint), var(--shadow-gold), 0 10px 30px rgba(0,0,0,.3); flex-shrink: 0; background: var(--panel); }
.profile-id{ flex: 1; min-width: 240px; }
.profile-id h1{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem,3vw,2.3rem); }
.profile-meta{ display: flex; gap: 1rem; flex-wrap: wrap; margin-top:.6rem; color: var(--ink-2); font-size:.88rem; }
.profile-meta span{ display: flex; align-items: center; gap:.4rem; }
.profile-actions{ display: flex; gap:.8rem; }
.icon-btn{ width: 46px; height: 46px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface-tint); font-size: 1.15rem; transition: all var(--t-fast); }
.icon-btn:hover{ border-color: var(--gold); transform: translateY(-3px); }
.icon-btn.active{ color: #ff5d7a; }

.profile-grid{ display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-top: 1rem; }
.profile-card{ border-radius: var(--r-lg); padding: 1.8rem; margin-bottom: 1.6rem; }
.profile-card h3{ font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; }
.bio-text{ color: var(--ink-2); font-size:.95rem; }

.progress-wrap{ margin-top: 1.2rem; }
.progress-top{ display: flex; justify-content: space-between; margin-bottom:.5rem; font-size:.85rem; color: var(--ink-2); }
.progress-track{ height: 10px; border-radius: var(--r-full); background: var(--border); overflow: hidden; }
.progress-fill{ height: 100%; border-radius: var(--r-full); background: var(--gradient-gold); width: 0%; transition: width 1.4s var(--ease); }

.gallery-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap:.8rem; }
.gallery-grid img{ border-radius: var(--r-md); aspect-ratio: 1; object-fit: cover; cursor: pointer; transition: transform var(--t-fast); }
.gallery-grid img:hover{ transform: scale(1.04); }

.achv-list{ display: flex; flex-direction: column; gap: 1rem; }
.achv-item{ display: flex; gap:.9rem; align-items: flex-start; }
.achv-icon{ font-size: 1.3rem; }
.achv-item h4{ font-size:.95rem; font-family: var(--font-display); }
.achv-item p{ font-size:.8rem; color: var(--ink-3); }

.stat-mini-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.stat-mini{ text-align: center; padding: 1.2rem .6rem; border-radius: var(--r-md); background: var(--surface-tint); }
.stat-mini .num{ font-size: 1.4rem; }
.stat-mini .lbl{ font-size:.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing:.05em; margin-top:.3rem; }

.donut{ --p: 62; width: 130px; height: 130px; border-radius: 50%; margin: 0 auto; background: conic-gradient(var(--gold) calc(var(--p)*1%), var(--border) 0); display: flex; align-items: center; justify-content: center; position: relative; }
.donut::before{ content:''; position: absolute; inset: 10px; border-radius: 50%; background: var(--panel); }
.donut span{ position: relative; font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--ink-1); }

.supporters-list{ display: flex; flex-direction: column; gap: 1rem; }
.supporter-row{ display: flex; align-items: center; gap:.8rem; }
.supporter-row img{ width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.supporter-row .name{ font-size:.88rem; }
.supporter-row .votes{ margin-left: auto; font-size:.82rem; }

/* ---------- 15. Results Page ---------- */
.chart-section{ border-radius: var(--r-lg); padding: 1.8rem 1.6rem 1.4rem; margin-top: 2.2rem; position: relative; overflow: hidden; }
.chart-section-head{ display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1.4rem; }
.chart-section-head h2{ font-size: 1.3rem; margin: 0; }
.chart-section-sub{ font-size: .82rem; color: var(--ink-3); }
.chart-wrap{ position: relative; width: 100%; height: clamp(280px, 40vw, 360px); }
@media (max-width: 480px){
  .chart-section{ padding: 1.4rem 1rem 1.1rem; }
  .chart-wrap{ height: 320px; }
}

.confetti-piece{ position: absolute; top:-10%; width: 8px; height: 14px; opacity:.9; animation: confettiFall linear infinite; }
@keyframes confettiFall{ to{ transform: translateY(120vh) rotate(540deg); opacity:0; } }

.leaderboard-toolbar{ display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 3rem 0 1.6rem; }
.results-live-indicator{ font-size: .78rem; color: var(--ink-3); font-style: italic; }
.leaderboard-table{ width: 100%; border-collapse: collapse; }
.leaderboard-table thead th{ text-align: left; font-size:.74rem; text-transform: uppercase; letter-spacing:.08em; color: var(--ink-3); padding:.8rem 1rem; border-bottom: 1px solid var(--border); }
.leaderboard-table tbody tr{ transition: background var(--t-fast); border-left: 2px solid transparent; }
.leaderboard-table tbody tr:hover{ background: var(--surface-tint); }
.leaderboard-table tbody tr:has(.badge){ border-left-color: var(--gold); background: linear-gradient(90deg, var(--surface-tint), transparent 40%); }
.leaderboard-table td{ padding:.9rem 1rem; border-bottom: 1px solid var(--border); font-size:.9rem; vertical-align: middle; color: var(--ink-1); }
.rank-cell{ font-family: var(--font-mono); font-weight: 800; color: var(--gold); width: 40px; }
.lb-photo{ width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.lb-name-cell{ min-width: 180px; }
.lb-name-inner{ display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.lb-progress{ width: 120px; height: 6px; border-radius: var(--r-full); background: var(--border); overflow: hidden; margin-top:.3rem; }
.lb-progress-fill{ height: 100%; background: var(--gradient-gold); width: 0%; transition: width 1.2s var(--ease); }
.trend{ font-family: var(--font-mono); font-size:.82rem; display: inline-flex; align-items: center; gap:.3rem; }

/* Leaderboard — table on desktop, card list on phones/tablets */
.leaderboard-wrap{ overflow-x: auto; }
.leaderboard-cards{ display: none; flex-direction: column; gap: .8rem; }
.lb-card{ display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-lg); text-decoration: none; color: inherit; }
.lb-card-rank{ font-family: var(--font-mono); font-weight: 800; color: var(--gold); font-size: 1rem; width: 30px; flex-shrink: 0; text-align: center; }
.lb-card-photo{ width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lb-card-body{ flex: 1; min-width: 0; }
.lb-card-name{ font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lb-card-cat{ font-size: .76rem; color: var(--ink-3); margin-top: .1rem; }
.lb-card-meta{ display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; font-size: .82rem; }
@media (max-width: 768px){
  .leaderboard-wrap{ display: none; }
  .leaderboard-cards{ display: flex; }
}
.trend.up{ color: var(--success); }
.trend.down{ color: var(--danger); }
.badge{ font-size:.68rem; padding:.25rem .6rem; border-radius: var(--r-full); font-weight: 700; background: var(--gradient-gold); color: var(--gold-ink); }

.results-stats{ display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin: 3rem 0; }

/* ---------- 16. Toasts ---------- */
.toast-stack{ position: fixed; bottom: 24px; right: 24px; z-index: 200000; display: flex; flex-direction: column; gap: 10px; max-width: 380px; width: 100%; }
.toast{ padding: 14px 18px; border-radius: 12px; background: linear-gradient(160deg, var(--panel-raised), var(--panel)); border: 1px solid var(--border); box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 12px; animation: toastIn .4s cubic-bezier(.34,1.56,.64,1); }
.toast.leaving{ animation: toastOut .3s ease forwards; }
@keyframes toastIn{ from{ opacity:0; transform: translateX(60px); } to{ opacity:1; transform: translateX(0); } }
@keyframes toastOut{ to{ opacity:0; transform: translateX(60px); } }
.toast-icon{ font-size: 20px; flex-shrink: 0; }
.toast-msg{ font-size: 14px; color: var(--ink-1); font-weight: 600; }
.toast.success{ border-left: 3px solid var(--success); }
.toast.success .toast-icon{ color: var(--success); }
.toast.error{ border-left: 3px solid var(--danger); }
.toast.error .toast-icon{ color: var(--danger); }
.toast.info{ border-left: 3px solid var(--gold); }
.toast.info .toast-icon{ color: var(--gold); }

/* ---------- 17. Misc widgets ---------- */
.back-to-top{ position: fixed; bottom: 1.6rem; left: 1.6rem; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--shadow-gold); opacity:0; pointer-events: none; transform: translateY(10px); transition: all var(--t-med); }
.back-to-top.show{ opacity: 1; pointer-events: auto; transform: translateY(0); }

.countdown-strip{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.countdown-unit{ text-align: center; padding: 1rem 1.3rem; border-radius: var(--r-md); min-width: 84px; }
.countdown-unit .num{ font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; color: var(--gold); }
.countdown-unit .lbl{ font-size:.68rem; text-transform: uppercase; letter-spacing:.08em; color: var(--ink-3); margin-top:.3rem; }

.trending-scroll{ display: flex; gap: 1.2rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.trend-card{ scroll-snap-align: start; flex: 0 0 220px; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.trend-card img{ height: 260px; width: 100%; object-fit: cover; }
.trend-rank-badge{ position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-weight: 800; background: var(--gradient-gold); color: var(--gold-ink); padding:.2rem .6rem; border-radius: var(--r-full); font-size:.75rem; }
.trend-info{ position: absolute; bottom:0; left:0; right:0; padding: 1rem; background: linear-gradient(180deg, transparent, rgba(11,10,8,.92)); }
.trend-info h4{ font-size:.95rem; color: #F5EFE1; font-family: var(--font-display); }
.trend-info .num{ font-size:.82rem; color: var(--gold-bright); }

.floating-shapes{ position: fixed; inset:0; z-index: -1; pointer-events: none; overflow: hidden; }
.f-shape{ position: absolute; border-radius: 50%; filter: blur(60px); opacity:.12; animation: floatShape 18s ease-in-out infinite; }
.f-shape.s1{ width: 320px; height: 320px; background: var(--gold-deep); top:8%; left:-6%; }
.f-shape.s2{ width: 240px; height: 240px; background: var(--gold); bottom:14%; right:-4%; animation-delay: 3s; animation-duration: 22s; }
.f-shape.s3{ width: 190px; height: 190px; background: var(--gold-bright); top:55%; left:45%; animation-delay: 6s; animation-duration: 16s; }
@keyframes floatShape{ 0%,100%{ transform: translate(0,0) scale(1); } 33%{ transform: translate(30px,-40px) scale(1.08); } 66%{ transform: translate(-20px,25px) scale(.96); } }

/* ---------- 18. Edit Profile / Forms ---------- */
.form-page{ max-width: 760px; margin: 0 auto; }
.form-card{ border-radius: var(--r-lg); padding: 2.2rem; }
.form-card + .form-card{ margin-top: 1.6rem; }
.form-section-title{ font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: .3rem; display: flex; align-items: center; gap: .6rem; }
.form-section-title .seal-dot{ width: 8px; height: 8px; background: var(--gradient-gold); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); flex-shrink: 0; }
.form-section-sub{ color: var(--ink-3); font-size: .85rem; margin-bottom: 1.6rem; }

.field{ margin-bottom: 1.3rem; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label{ display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: .5rem; letter-spacing: .01em; }
.field .field-hint{ font-size: .78rem; color: var(--ink-3); margin-top: .4rem; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="url"], .field input[type="password"], .field input[type="number"],
.field input[type="datetime-local"], .field input[type="date"], .field input[type="time"],
.field input[type="search"], .field textarea, .field select,
.field .form-control{
  width: 100%; padding: .85rem 1.05rem; border-radius: var(--r-sm);
  background: var(--surface-tint); border: 1.5px solid var(--border); color: var(--ink-1);
  font-family: var(--font-body); font-size: .95rem; transition: all var(--t-fast);
}
.field input[type="datetime-local"], .field input[type="date"], .field input[type="time"]{
  color-scheme: dark;
}
.field textarea{ min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none; border-color: var(--gold); background: rgba(201,162,75,.06); box-shadow: 0 0 0 4px rgba(201,162,75,.1);
}
.field input::placeholder, .field textarea::placeholder{ color: var(--ink-3); }

.avatar-upload{ display: flex; align-items: center; gap: 1.4rem; }
.avatar-upload .avatar-preview{
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold);
  background: var(--panel-raised); flex-shrink: 0; box-shadow: var(--shadow-gold);
}
.avatar-upload-controls{ flex: 1; }
.file-drop{
  position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md);
  padding: .9rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface-tint); transition: border-color var(--t-fast), background var(--t-fast);
}
.file-drop:hover{ border-color: var(--gold); background: rgba(201,162,75,.05); }
.file-drop input[type="file"]{ position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .file-drop-label{ font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.file-drop .file-drop-btn{ font-size: .78rem; padding: .4rem 1rem; border-radius: var(--r-full); background: var(--gradient-gold); color: var(--gold-ink); font-weight: 700; }

.form-actions{ display: flex; gap: 1rem; margin-top: .6rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.form-messages{ margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.form-message{ padding: .9rem 1.2rem; border-radius: var(--r-md); background: var(--surface-tint); border: 1px solid var(--border); font-size: .88rem; color: var(--ink-1); border-left: 3px solid var(--gold); }

/* ---------- 19. Scroll Reveal ---------- */
.reveal{ opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ---------- 20. Responsive ---------- */

/* Tablet / small laptop */
@media (max-width: 1080px){
  .container{ padding: 0 1.25rem; }
  .nav-links{ display: none; }
  .hamburger{ display: flex; }
}

@media (max-width: 980px){
  .stats-strip{ margin-top: -2rem; }
  .stat-card{ padding: 1.2rem .6rem; }
  .profile-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .results-stats{ grid-template-columns: 1fr; }
  .field-row{ grid-template-columns: 1fr; }
  .category-grid{ grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); }
  .contestants-grid{ grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
}

/* Large phones / small tablets */
@media (max-width: 768px){
  :root{ --navbar-h: 68px; }
  .navbar.scrolled{ height: 60px; }
  .section{ padding: 3rem 0; }
  .section-title{ font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero{ min-height: 92vh; }
  .hero-title{ font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-sub{ font-size: 1rem; }
  .hero-scroll-cue{ display: none; }
  .stats-strip{ margin-top: -1.5rem; }
  .toolbar{ flex-direction: column; align-items: stretch; margin-top: -1.6rem; }
  .search-box{ flex: 1 1 auto; width: 100%; }
  .filter-group{ width: 100%; }
  .select-wrap{ flex: 1 1 auto; }
  .select-wrap select{ width: 100%; }
  .leaderboard-toolbar{ flex-direction: column; align-items: stretch; }
  .leaderboard-toolbar .search-box{ max-width: 100% !important; }
  .card-media{ height: 210px; }
  .profile-cover{ height: 220px; }
  .profile-avatar{ width: 120px; height: 120px; }
  .rules-grid{ grid-template-columns: repeat(2, 1fr); }
  .trend-card{ flex-basis: 180px; }
  .trend-card img{ height: 220px; }
}

@media (max-width: 640px){
  .footer-grid{ grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p{ max-width: 100%; }
  .podium{ gap:.5rem; }
  .podium-place.first .podium-photo{ width: 90px; height: 90px; }
  .leaderboard-table{ font-size:.8rem; }
  .lb-progress{ width: 70px; }
  .profile-header{ flex-direction: column; align-items: center; text-align: center; }
  .profile-actions{ justify-content: center; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .section{ padding: var(--space-lg) 0; }
  .modal-overlay{ align-items: flex-end; padding: 10px; }
  .modal-container{ border-radius: 22px 22px 0 0; max-height: 95vh; }
  .modal-container::before{ border-radius: 22px 22px 0 0; }
  .status-actions{ flex-direction: column; }
  .btn-retry, .btn-close-modal{ width: 100%; }
  .avatar-upload{ flex-direction: column; align-items: flex-start; }
  .cta-section{ padding: 2.4rem 1.4rem; }
}

/* Phones */
@media (max-width: 540px){
  .container{ padding: 0 1rem; }
  .nav-inner{ gap: .5rem; }
  .logo{ font-size: 1.25rem; }
  .nav-actions{ gap: .5rem; }
  .theme-toggle{ width: 38px; height: 38px; font-size: .95rem; }
  .nav-actions .btn-sm{ padding: .5rem .85rem; font-size: .76rem; }
  .hamburger{ width: 24px; }

  .hero-content{ padding: 0 1rem; }
  .hero-eyebrow{ font-size: .68rem; letter-spacing: .2em; }
  .hero-actions .btn{ width: 100%; }
  .hero-actions{ flex-direction: column; }

  .stats-strip{ grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat-number{ font-size: 1.5rem; }
  .stat-label{ font-size: .74rem; }

  .section-head{ margin-bottom: 2.2rem; }
  .eyebrow{ font-size: .64rem; }

  .category-grid{ grid-template-columns: 1fr 1fr; gap: .9rem; }
  .category-card{ padding: 1.4rem 1rem; }
  .category-icon{ width: 44px; height: 44px; font-size: 1.3rem; margin-bottom: .8rem; }
  .category-card h3{ font-size: 1rem; }
  .category-card p{ font-size: .8rem; }

  .contestants-grid{ grid-template-columns: 1fr 1fr; gap: .8rem; }
  .card-media{ height: 160px; }
  .card-number{ font-size: .66rem; padding: .28rem .55rem; }
  .card-fav{ width: 30px; height: 30px; font-size: .95rem; }
  .card-body{ padding: .85rem .9rem 1rem; gap: .5rem; }
  .card-body h3{ font-size: .95rem; }
  .card-actions{ flex-direction: column; gap: .4rem; }
  .card-actions .btn{ width: 100%; }

  .rules-grid{ grid-template-columns: 1fr 1fr; gap: .8rem; }
  .rule-price{ font-size: 1.2rem; }

  .podium{ flex-wrap: wrap; gap: .8rem 1.2rem; }
  .podium-place{ flex: 1 1 45%; max-width: none; }
  .podium-place.first{ order: -1; flex-basis: 100%; }

  .profile-avatar{ width: 100px; height: 100px; }
  .profile-id h1{ font-size: 1.4rem; }
  .stat-mini-grid{ grid-template-columns: 1fr 1fr; gap: .7rem; }

  .modal-header{ padding: 16px 18px 12px; }
  .modal-body-content{ padding: 16px 18px 20px; }
  .quick-amounts button{ min-width: 44px; font-size: 12px; padding: 7px 6px; }
  .calc-total .price{ font-size: 22px; }

  .form-card{ padding: 1.4rem 1.2rem; }

  /* declutter the leaderboard table on narrow phones — keep only the essentials */
  .leaderboard-table thead th:nth-child(4),
  .leaderboard-table tbody td:nth-child(4),
  .leaderboard-table thead th:nth-child(6),
  .leaderboard-table tbody td:nth-child(6){ display: none; }
  .lb-progress{ width: 50px; }

  .toast-stack{ left: 12px; right: 12px; bottom: 12px; max-width: 100%; }
  .back-to-top{ width: 42px; height: 42px; bottom: 1rem; left: 1rem; }
}

/* Small phones */
@media (max-width: 380px){
  .hero-title{ font-size: 1.9rem; }
  .stats-strip{ grid-template-columns: 1fr; }
  .category-grid, .contestants-grid, .rules-grid{ grid-template-columns: 1fr; }
  .podium-place{ flex-basis: 100%; }
  .nav-actions .btn-sm{ display: none; }
}
/* ---------- Campaigns ---------- */
.campaigns-grid{ display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.campaigns-grid > *{ flex: 0 1 calc(25% - 1.2rem); min-width: 260px; max-width: 360px; }
.campaign-card{ border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t-med), box-shadow var(--t-med); }
.campaign-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lift); }

/* Campaigns index — responsive card grid. Height is intentionally NOT
   fixed here (that was clipping the prize/countdown/entry-badge on
   anything but the shortest campaign names) — the card grows to fit
   whatever it needs to show. */
.campaigns-list{ display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.campaign-row{
  display: flex; flex-direction: column; border-radius: var(--r-lg);
  text-decoration: none; color: inherit;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.campaign-row:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.campaign-row-media{
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--panel-raised); border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.campaign-row-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.campaign-row-media .campaign-status{ position: absolute; top: .7rem; left: .7rem; }
.campaign-row-body{
  flex: 1; min-width: 0; padding: 1.1rem 1.3rem 1.3rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.campaign-row-body h3{
  font-size: 1.08rem; margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.campaign-row-meta{ display: flex; gap: .5rem 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); align-items: center; }
.campaign-row-prize{ font-family: var(--font-mono); font-weight: 700; color: var(--gold); font-size: .95rem; }
.campaign-row-cd{ display: flex; gap: .6rem; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-2); flex-wrap: wrap; justify-content: flex-start; }
.campaign-row-cd span span{ color: var(--ink-1); font-weight: 600; }
.campaign-row-footer{ margin-top: auto; padding-top: .3rem; display: flex; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 480px){
  .campaigns-list{ grid-template-columns: 1fr; gap: 1.2rem; }
  .campaign-row-body{ padding: 1rem 1.1rem 1.2rem; }
  .campaign-row-body h3{ font-size: 1rem; }
}

/* Live campaigns as a carousel on phones — grid stays a grid everywhere else */
.campaigns-carousel-wrap{ display: flex; align-items: center; gap: .8rem; }
.mobile-carousel-arrow{ display: none; }
@media (max-width: 768px){
  .campaigns-carousel-wrap .campaigns-grid{
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
    justify-content: flex-start; padding: .3rem .2rem 1rem; scrollbar-width: none;
  }
  .campaigns-carousel-wrap .campaigns-grid::-webkit-scrollbar{ display: none; }
  .campaigns-carousel-wrap .campaigns-grid > *{ flex: 0 0 84%; scroll-snap-align: center; max-width: 340px; }
  .mobile-carousel-arrow{ display: flex; }
}
@media (max-width: 420px){
  .campaigns-carousel-wrap .campaigns-grid > *{ flex-basis: 92%; }
}
.campaign-media{ position: relative; height: 170px; overflow: hidden; }
.campaign-media img{ width:100%; height:100%; object-fit: cover; }
.campaign-media::after{ content:''; position: absolute; inset:0; background: linear-gradient(180deg, transparent 45%, rgba(11,10,8,.88)); }
.campaign-status{ position: absolute; top: .8rem; left: .8rem; z-index: 2; }
.campaign-body{ padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.campaign-body h3{ margin: 0; }
.campaign-prize{ display:flex; align-items:baseline; gap:.4rem; }
.campaign-prize .amount{ font-family: var(--font-mono); font-weight: 800; font-size: 1.4rem; color: var(--gold); }
.campaign-prize .lbl{ font-size:.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing:.06em; }
.campaign-meta-row{ display:flex; justify-content: space-between; font-size:.8rem; color: var(--ink-3); }

.countdown-compact{ display:flex; gap:.5rem; justify-content: flex-start; flex-wrap: nowrap; }
.countdown-compact .countdown-unit{ padding: .5rem .6rem; min-width: 52px; border-radius: var(--r-sm); }
.countdown-compact .countdown-unit .num{ font-size: 1rem; }
.countdown-compact .countdown-unit .lbl{ font-size:.58rem; margin-top:.15rem; }

.badge-status{ font-size:.68rem; padding:.28rem .7rem; border-radius: var(--r-full); font-weight: 700; text-transform: uppercase; letter-spacing:.04em; }
.badge-status.status-live{ background: var(--gradient-gold); color: var(--gold-ink); }
.badge-status.status-upcoming{ background: var(--surface-tint); color: var(--ink-2); border: 1px solid var(--border); }
.badge-status.status-closed{ background: rgba(178,58,58,.16); color: var(--danger); border: 1px solid rgba(178,58,58,.3); }
.badge-status.status-draft{ background: var(--surface-tint); color: var(--ink-3); border: 1px solid var(--border); }

.badge-entry{ font-size:.68rem; padding:.28rem .7rem; border-radius: var(--r-full); font-weight: 700; text-transform: uppercase; letter-spacing:.04em; }
.badge-entry.entry-pending{ background: rgba(201,162,75,.16); color: var(--gold); border: 1px solid rgba(201,162,75,.3); }
.badge-entry.entry-approved{ background: rgba(47,143,85,.16); color: var(--success); border: 1px solid rgba(47,143,85,.3); }
.badge-entry.entry-rejected{ background: rgba(178,58,58,.16); color: var(--danger); border: 1px solid rgba(178,58,58,.3); }

@media (max-width: 380px){
  .campaigns-grid > *, .about-pillars > *, .events-grid > *{ flex-basis: 100%; min-width: 0; }
  .countdown-compact .countdown-unit{ min-width: 44px; padding:.4rem .4rem; }
}

/* ---------- Media Upload Dropzone (campaign entry form, etc.) ---------- */
.upload-dropzone{
  position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md);
  background: var(--surface-tint); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  cursor: pointer; overflow: hidden; min-height: 140px; display: flex; align-items: center; justify-content: center;
}
.upload-dropzone:hover{ border-color: var(--gold); background: rgba(201,162,75,.05); }
.upload-dropzone.is-dragover{
  border-color: var(--gold); background: rgba(201,162,75,.1); transform: scale(1.01);
  box-shadow: 0 0 0 4px rgba(201,162,75,.12);
}
.upload-dropzone.has-error{ border-color: var(--danger); }
/* The native file input is never shown — the whole zone is clickable via JS
   (initUploadDropzones), so there's no browser-default "Choose File" button. */
.upload-dropzone input[type="file"]{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.dropzone-empty{ padding: 2rem 1.2rem; text-align: center; width: 100%; }
.dropzone-icon{ font-size: 2rem; margin-bottom: .6rem; opacity: .8; }
.dropzone-text{ font-size: .9rem; color: var(--ink-2); margin: 0 0 .25rem; }
.dropzone-text strong{ color: var(--gold); }
.dropzone-hint{ font-size: .76rem; color: var(--ink-3); margin: 0; }

.dropzone-preview{ display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; position: relative; z-index: 3; width: 100%; }
.dropzone-preview img{
  width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0;
  border: 1.5px solid var(--border); background: var(--panel-raised);
}
.dropzone-file-icon{
  width: 64px; height: 64px; border-radius: var(--r-sm); flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; background: var(--panel-raised); border: 1.5px solid var(--border);
}
.dropzone-file-info{ flex: 1; min-width: 0; }
.dropzone-file-name{ display: block; font-size: .85rem; font-weight: 700; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropzone-file-meta{ display: block; font-size: .75rem; color: var(--ink-3); margin-top: .15rem; }
.dropzone-remove{
  pointer-events: all; position: relative; z-index: 4; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-tint); border: 1.5px solid var(--border); color: var(--ink-2); font-size: .85rem;
  cursor: pointer; transition: all var(--t-fast); display:flex; align-items:center; justify-content:center;
}
.dropzone-remove:hover{ background: rgba(178,58,58,.14); border-color: var(--danger); color: var(--danger); }

.req-mark{ color: var(--gold); }

/* Cleaner entry-application card layout */
.entry-card .field{ margin-bottom: 1.2rem; }
.entry-card .field:last-of-type{ margin-bottom: 1.6rem; }
.entry-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.entry-card-head h3{ margin: 0 0 .3rem; }
.entry-card-head p{ margin: 0; color: var(--ink-3); font-size: .88rem; max-width: 46ch; }

@media (max-width: 380px){
  .dropzone-preview{ flex-direction: column; align-items: flex-start; }
  .dropzone-remove{ align-self: flex-end; margin-top: -2.4rem; }
}

/* ---------- Paid Campaign Entry — payment progress ---------- */
.payment-spinner{
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--gold);
  animation: payment-spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes payment-spin{ to{ transform: rotate(360deg); } }
[data-payment-message].is-success{ color: var(--success); }
[data-payment-message].is-error{ color: var(--danger); }

/* ---------- Header Dropdowns (Campaigns / Services) ---------- */
.nav-item.has-dropdown{ position: relative; }
.nav-drop-toggle{
  font-family: inherit; font-size: .92rem; font-weight: 700; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem 0; position: relative;
  transition: color var(--t-fast);
}
.nav-drop-toggle::after{ content:''; position: absolute; left:0; bottom:-4px; width:0; height:2px; background: var(--gradient-gold); transition: width var(--t-med); }
.nav-drop-toggle:hover, .nav-drop-toggle.active, .nav-item.has-dropdown.is-open .nav-drop-toggle{ color: var(--ink-1); }
.nav-drop-toggle:hover::after, .nav-drop-toggle.active::after, .nav-item.has-dropdown.is-open .nav-drop-toggle::after{ width: 100%; }
.drop-caret{ font-size: .7rem; transition: transform var(--t-fast); display: inline-block; }
.nav-item.has-dropdown.is-open .drop-caret{ transform: rotate(180deg); }

.dropdown-menu{
  position: absolute; top: calc(100% + 1rem); left: 50%; transform: translateX(-50%) translateY(-8px);
  min-width: 220px; background: var(--panel-raised); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift); padding: .6rem; display: flex; flex-direction: column; gap: .1rem;
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast);
  z-index: 1010;
}
.nav-item.has-dropdown.is-open .dropdown-menu,
.nav-item.has-dropdown:hover .dropdown-menu{ opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown-menu a{
  font-size: .88rem; font-weight: 600; color: var(--ink-2); padding: .65rem .9rem; border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.dropdown-menu a:hover{ background: var(--surface-tint); color: var(--gold); }

/* Mobile accordion (Campaigns / Services groups inside the slide-out menu) */
.mobile-accordion{ display: flex; flex-direction: column; }
.mobile-accordion-toggle{
  font-family: inherit; font-size: 1.1rem; font-weight: 700; color: var(--ink-1);
  display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left;
}
.mobile-accordion.is-open .drop-caret{ transform: rotate(180deg); }
.mobile-accordion-panel{
  max-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 1rem;
  transition: max-height var(--t-med), margin-top var(--t-med); margin-top: 0;
}
.mobile-accordion.is-open .mobile-accordion-panel{ max-height: 420px; margin-top: 1rem; }
.mobile-accordion-panel a{ font-size: .95rem; font-weight: 600; color: var(--ink-2); padding-left: .8rem; }

/* ---------- About Page ---------- */
.about-split{ display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-md); align-items: center; }
.about-split-text p{ color: var(--ink-2); margin-bottom: 1.2rem; line-height: 1.75; font-size: 1.1rem; }
.about-split-media{ border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4/3; }
.about-split-media img{ width: 100%; height: 100%; object-fit: cover; }

.about-pillars{ display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.about-pillars > *{ flex: 0 1 calc(25% - 1.2rem); min-width: 240px; max-width: 340px; }
.pillar-card{ border-radius: var(--r-lg); padding: 2rem 1.8rem; transition: transform var(--t-med), box-shadow var(--t-med); }
.pillar-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.pillar-icon{ font-size: 2.2rem; margin-bottom: 1rem; }
.pillar-card h3{ margin-bottom: .6rem; }
.pillar-card p{ color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; }

@media (max-width: 860px){
  .about-split{ grid-template-columns: 1fr; }
  .about-split-media{ order: -1; aspect-ratio: 16/9; }
}

/* ---------- Services Page ---------- */
.service-block{
  scroll-margin-top: var(--navbar-h); padding: 5.5rem 0;
}
.service-block > .container{ width: 100%; }
.service-block.alt{ background: var(--panel); }
.service-row{ display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-md); align-items: center; }
.service-row.reverse{ grid-template-columns: 1.2fr 1fr; }
.service-row.reverse .service-icon-lg{ order: 2; }
.service-icon-lg{
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-lift); border: 1px solid var(--border);
}
.service-icon-lg img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.service-icon-badge{
  position: absolute; bottom: 1rem; left: 1rem; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-gold); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--shadow-gold);
}
.service-copy p{ color: var(--ink-2); line-height: 1.8; margin-bottom: 1.3rem; font-size: 1.1rem; }
.service-features{ margin-bottom: 1.6rem; }
.service-features li{ position: relative; padding-left: 1.6rem; color: var(--ink-2); font-size: 1.05rem; margin-bottom: .6rem; }
.service-features li::before{ content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

@media (max-width: 768px){
  .service-row, .service-row.reverse{ grid-template-columns: 1fr; text-align: center; }
  .service-row.reverse .service-icon-lg{ order: 0; }
  .service-copy .eyebrow, .service-copy .section-title{ justify-content: center; text-align: center; }
  .service-features{ display: inline-block; text-align: left; }
}

/* ---------- Auth Pages (Login / Register) ---------- */
.auth-page{
  padding: calc(var(--navbar-h) + 3rem) 0 4rem;
}
.auth-page > .container{ width: 100%; }
.auth-split{
  display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--r-lg); overflow: hidden;
  max-width: 980px; margin: 0 auto; min-height: 560px;
}
.auth-visual{
  position: relative; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 2.4rem;
}
.auth-visual-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.92) 100%);
}
.auth-visual-copy{ position: relative; z-index: 1; }
.auth-visual-copy .logo{ font-size: 1.3rem; margin-bottom: 2.4rem; display: inline-flex; }
.auth-visual-copy h2{ font-family: var(--font-display); font-size: 1.8rem; margin-bottom: .6rem; color: #fff; }
.auth-visual-copy p{ color: rgba(255,255,255,.78); font-size: .95rem; max-width: 34ch; }

.auth-form-panel{ padding: 3rem 2.6rem; display: flex; flex-direction: column; justify-content: center; }
.auth-title{ font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; margin-bottom: .4rem; }
.auth-subtitle{ color: var(--ink-3); font-size: .92rem; margin-bottom: 1.8rem; }
.auth-submit{ width: 100%; margin-top: .4rem; }
.auth-switch{ text-align: center; margin-top: 1.6rem; font-size: .88rem; color: var(--ink-3); }
.auth-switch a{ color: var(--gold); font-weight: 700; }

.password-field{ position: relative; }
.password-field input{ padding-right: 3rem !important; }
.password-toggle-btn{
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  font-size: 1rem; opacity: .7; transition: opacity var(--t-fast);
}
.password-toggle-btn:hover{ opacity: 1; }

.checkbox-field{
  display: flex; align-items: flex-start; gap: .7rem; font-size: .85rem; color: var(--ink-2);
  margin-bottom: 1.6rem; cursor: pointer; line-height: 1.5;
}
.checkbox-field input{ margin-top: .2rem; accent-color: var(--gold); flex-shrink: 0; }

@media (max-width: 860px){
  .auth-split{ grid-template-columns: 1fr; max-width: 480px; min-height: auto; }
  .auth-visual{ min-height: 200px; padding: 1.6rem; }
  .auth-visual-copy h2{ font-size: 1.4rem; }
  .auth-form-panel{ padding: 2.2rem 1.6rem; }
}

/* ---------- Services Teaser (Homepage) ---------- */
.services-carousel{ position: relative; display: flex; align-items: center; gap: .8rem; }
.services-teaser-grid{
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1rem; flex: 1; scrollbar-width: none;
}
.services-teaser-grid::-webkit-scrollbar{ display: none; }
.service-teaser-card{
  flex: 0 0 200px; scroll-snap-align: start;
}
.service-teaser-card{
  border-radius: var(--r-lg); padding: 2rem 1rem; text-align: center;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.service-teaser-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-teaser-icon{ font-size: 2.3rem; margin-bottom: .8rem; }
.service-teaser-card h3{ font-size: 1.05rem; margin: 0; }

.carousel-edge-arrow{
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  color: var(--ink-2); font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast); background: var(--panel-raised);
}
.carousel-edge-arrow:hover{ border-color: var(--gold); color: var(--gold); }

@media (max-width: 640px){
  .carousel-edge-arrow{ display: none; }
  .service-teaser-card{ flex: 0 0 150px; }
}

/* ---------- Testimonial Carousel ---------- */
.testimonial-carousel{ max-width: 720px; margin: 0 auto; }
.testimonial-track{ display: flex; transition: transform var(--t-med) ease; }
.testimonial-slide{ flex: 0 0 100%; min-width: 0; padding: 0 .5rem; }
.testimonial-card{ border-radius: var(--r-lg); padding: 2.4rem 2rem; text-align: center; }
.testimonial-stars{ color: var(--gold); font-size: 1.1rem; letter-spacing: .15em; margin-bottom: 1rem; }
.testimonial-quote{ font-size: 1.25rem; color: var(--ink-1); line-height: 1.75; font-style: italic; margin-bottom: 1.8rem; }
.testimonial-author{ display: flex; align-items: center; justify-content: center; gap: .8rem; }
.testimonial-author img{ width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.testimonial-name{ font-weight: 700; font-size: .92rem; }
.testimonial-role{ font-size: .78rem; color: var(--ink-3); }
.testimonial-controls{ display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.6rem; }
.testimonial-arrow{
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--ink-2);
  font-size: 1.3rem; display: flex; align-items: center; justify-content: center; transition: all var(--t-fast);
}
.testimonial-arrow:hover{ border-color: var(--gold); color: var(--gold); }
.testimonial-dots{ display: flex; gap: .5rem; }
.testimonial-dots .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); cursor: pointer; transition: background var(--t-fast); }
.testimonial-dots .dot.active{ background: var(--gold); }

/* ---------- FAQ Accordion ---------- */
.faq-list{ max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.faq-item{ border-radius: var(--r-md); overflow: hidden; }
.faq-question{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; font-family: inherit; font-weight: 700; font-size: 1.1rem; color: var(--ink-1); text-align: left;
}
.faq-caret{ transition: transform var(--t-fast); color: var(--gold); flex-shrink: 0; }
.faq-item.is-open .faq-caret{ transform: rotate(180deg); }
.faq-answer{ max-height: 0; overflow: hidden; transition: max-height var(--t-med); }
.faq-answer p{ padding: 0 1.4rem 1.3rem; color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.faq-item.is-open .faq-answer{ max-height: 400px; }

/* ---------- FAQ aside variant (Contact page) ---------- */
.faq-list.faq-list-compact{ max-width: none; }
.faq-list.faq-list-compact .faq-question{ font-size: .88rem; padding: 1rem 1.1rem; }
.faq-list.faq-list-compact .faq-answer p{ padding: 0 1.1rem 1rem; font-size: .85rem; }

@media (max-width: 540px){
  .testimonial-card{ padding: 1.8rem 1.4rem; }
}

/* ---------- Contact Page: form + FAQ aside ---------- */
.contact-layout{
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; align-items: start; max-width: 1100px;
  padding: 3rem 1.5rem 5rem;
}
.contact-faq-col{ position: sticky; top: calc(var(--navbar-h) + 1.5rem); }
.contact-faq-col .faq-list{ max-height: 60vh; overflow-y: auto; padding-right: .3rem; }

@media (max-width: 900px){
  .contact-layout{ grid-template-columns: 1fr; max-width: 640px; }
  .contact-faq-col{ position: static; }
  .contact-faq-col .faq-list{ max-height: none; overflow-y: visible; }
}

/* ---------- Tour Packages ---------- */
.tours-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.6rem; }
.tour-card{ border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t-med), box-shadow var(--t-med); }
.tour-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.tour-media{ position: relative; height: 190px; overflow: hidden; background: var(--surface-tint); }
.tour-media img{ width: 100%; height: 100%; object-fit: cover; }
.tour-duration-badge{
  position: absolute; top: .8rem; right: .8rem; background: var(--gradient-gold); color: var(--gold-ink);
  font-size: .72rem; font-weight: 800; padding: .3rem .7rem; border-radius: var(--r-full);
}
.tour-body{ padding: 1.4rem; }
.tour-body h3{ margin: 0 0 .4rem; }
.tour-location{ font-size: .82rem; color: var(--ink-3); margin-bottom: .8rem; }
.tour-price{ display: flex; align-items: baseline; gap: .4rem; }
.tour-price .amount{ font-family: var(--font-mono); font-weight: 800; font-size: 1.15rem; color: var(--gold); }
.tour-price .lbl{ font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }

.tour-detail-hero{ display: grid; grid-template-columns: 1.4fr 1fr; border-radius: var(--r-lg); overflow: hidden; }
.tour-detail-media{ min-height: 320px; }
.tour-detail-media img{ width: 100%; height: 100%; object-fit: cover; }
.tour-detail-info{ padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; justify-content: center; }
.tour-detail-stat{ display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: .8rem; }
.tour-detail-stat .num{ font-family: var(--font-mono); font-weight: 800; color: var(--gold); }
.tour-detail-stat .lbl{ font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }

.itinerary-timeline{ position: relative; max-width: 780px; margin: 2rem auto 0; padding-left: 2.6rem; }
.itinerary-timeline::before{ content:''; position: absolute; left: 1.1rem; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.itinerary-item{ position: relative; margin-bottom: 1.6rem; }
.itinerary-day-marker{
  position: absolute; left: -2.6rem; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--gradient-gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; text-align: center; line-height: 1.1; z-index: 1;
}
.itinerary-content{ border-radius: var(--r-md); padding: 1.4rem 1.6rem; }
.itinerary-content h3{ margin: 0 0 .5rem; font-size: 1.05rem; }
.itinerary-content p{ color: var(--ink-2); font-size: .9rem; line-height: 1.65; margin: 0; }

@media (max-width: 760px){
  .tour-detail-hero{ grid-template-columns: 1fr; }
  .tour-detail-media{ min-height: 220px; }
}

/* ---------- Events / Ticketing ---------- */
.events-grid{ display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.events-grid > *{ flex: 0 1 calc(25% - 1.2rem); min-width: 260px; max-width: 360px; }
.event-card{ border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t-med), box-shadow var(--t-med); }
.event-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.event-media{ position: relative; height: 190px; overflow: hidden; background: var(--surface-tint); }
.event-media img{ width: 100%; height: 100%; object-fit: cover; }
.event-badge{
  position: absolute; top: .8rem; right: .8rem; background: var(--gradient-gold); color: var(--gold-ink);
  font-size: .72rem; font-weight: 800; padding: .3rem .7rem; border-radius: var(--r-full);
}
.event-badge.sold-out{ background: rgba(178,58,58,.85); color: #fff; }
.event-body{ padding: 1.4rem; }
.event-date{ font-size: .76rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.event-body h3{ margin: 0 0 .4rem; }
.event-venue{ font-size: .82rem; color: var(--ink-3); margin-bottom: .8rem; }
.event-price{ display: flex; align-items: baseline; gap: .4rem; }
.event-price .amount{ font-family: var(--font-mono); font-weight: 800; font-size: 1.15rem; color: var(--gold); }
.event-price .lbl{ font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }

.event-detail-hero{ display: grid; grid-template-columns: 1.4fr 1fr; border-radius: var(--r-lg); overflow: hidden; }
.event-detail-media{ min-height: 320px; }
.event-detail-media img{ width: 100%; height: 100%; object-fit: cover; }
.event-detail-info{ padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; justify-content: center; }
.event-detail-stat{ display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: .8rem; }
.event-detail-stat .num{ font-family: var(--font-mono); font-weight: 800; color: var(--gold); }
.event-detail-stat .lbl{ font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 760px){
  .event-detail-hero{ grid-template-columns: 1fr; }
  .event-detail-media{ min-height: 220px; }
}

/* ---------- Homepage About Teaser: square | text | portrait ---------- */
.about-teaser-layout{
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: var(--space-md); align-items: center;
}
.about-teaser-text{ text-align: center; }
.about-teaser-text .eyebrow{ justify-content: center; }
.about-teaser-text p{ color: var(--ink-2); margin: 1.2rem 0 1.6rem; line-height: 1.75; }
.about-teaser-media{ border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.about-teaser-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.about-teaser-square{ aspect-ratio: 1 / 1; }
.about-teaser-portrait{ aspect-ratio: 3 / 4; }

@media (max-width: 900px){
  .about-teaser-layout{ grid-template-columns: 1fr; }
  .about-teaser-portrait{ aspect-ratio: 16 / 10; }
  .about-teaser-square{ aspect-ratio: 16 / 10; max-width: 420px; margin: 0 auto; }
}

/* ---------- Prize Carousel (What You Could Win) ---------- */
.prize-carousel{
  display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1rem; flex: 1; scrollbar-width: none;
}
.prize-carousel::-webkit-scrollbar{ display: none; }
.prize-card{
  flex: 0 0 260px; scroll-snap-align: start; border-radius: var(--r-lg); padding: 2.2rem 1.8rem;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.prize-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.prize-icon{ font-size: 2.6rem; margin-bottom: 1rem; }
.prize-card h3{ font-size: 1.15rem; margin-bottom: .6rem; }
.prize-card p{ color: var(--ink-2); font-size: .96rem; line-height: 1.6; margin: 0; }

@media (max-width: 640px){
  .prize-card{ flex: 0 0 220px; padding: 1.8rem 1.4rem; }
}

/* ---------- List Your Event: image carousel beside form ---------- */
.event-form-layout{ display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-md); align-items: stretch; }
.event-form-visual{
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 560px;
  box-shadow: var(--shadow-lift); border: 1px solid var(--border);
}
.event-form-visual-track{ position: absolute; inset: 0; }
.event-form-visual-slide{
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.event-form-visual-slide.is-active{ opacity: 1; }
.event-form-visual-overlay{
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.2rem; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.88) 100%);
}
.event-form-visual-overlay h3{ color: #fff; font-size: 1.5rem; margin-bottom: .5rem; }
.event-form-visual-overlay p{ color: rgba(255,255,255,.8); font-size: .95rem; max-width: 32ch; margin: 0; }
.event-form-card{ display: flex; flex-direction: column; justify-content: center; }

.slide-dots{ position: absolute; bottom: 1.3rem; right: 1.3rem; z-index: 3; display: flex; gap: .5rem; }
.slide-dots .dot{ width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background var(--t-fast); }
.slide-dots .dot.active{ background: #fff; }

@media (max-width: 900px){
  .event-form-layout{ grid-template-columns: 1fr; }
  .event-form-visual{ min-height: 280px; order: -1; }
}

.logo-mark{ height: 30px; width: auto; display: block; object-fit: contain; }
.loader-logo{ max-width: 90px; max-height: 90px; width: auto; height: auto; object-fit: contain; margin: 0 auto 1.2rem; display: block; }

/* Phones/tablets: header shows only the logo + hamburger — login/register
   live inside the hamburger menu instead (see .mobile-menu below). */
@media (max-width: 1080px){
  .nav-actions > a.btn{ display: none; }
}

/* film grain — subtle, sitewide */
.grain-overlay{
  position: fixed; inset: 0; pointer-events: none; z-index: 9990; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* custom cursor — desktop / fine-pointer only */
.cursor-dot{ position: fixed; width: 8px; height: 8px; background: var(--ink-1); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .2s, height .2s; mix-blend-mode: difference; }
.cursor-ring{ position: fixed; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: all .12s ease-out; mix-blend-mode: difference; }
body.hovering .cursor-dot{ width: 16px; height: 16px; }
body.hovering .cursor-ring{ width: 50px; height: 50px; border-color: rgba(255,255,255,.9); }
@media (pointer: coarse){ .cursor-dot, .cursor-ring{ display: none; } }

/* stats marquee — scrolling ticker strip, used right under the hero */
.stats-marquee{ overflow: hidden; background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-marquee-track{ display: flex; width: max-content; animation: statsScroll 22s linear infinite; }
.stats-marquee:hover .stats-marquee-track{ animation-play-state: paused; }
.stats-marquee-item{ display: flex; align-items: center; gap: 28px; padding: 20px 56px; border-right: 1px solid var(--border); white-space: nowrap; }
.stats-marquee-num{ font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .02em; color: var(--ink-1); }
.stats-marquee-lbl{ font-family: var(--font-cond); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
@keyframes statsScroll{ to{ transform: translateX(-50%); } }

/* perspective statement — huge outline-type interlude */
.perspective-block{ padding: 8rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.5rem; position: relative; overflow: hidden; }
.perspective-block::before{ content:''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--surface-tint) 0%, transparent 70%); pointer-events: none; }
.perspective-big{ font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 9vw, 8rem); letter-spacing: .06em; line-height: .92; position: relative; z-index: 1; }
.perspective-big .outline-word{ -webkit-text-stroke: 1px rgba(255,255,255,.28); color: transparent; display: block; letter-spacing: clamp(4px, 1.6vw, 14px); }
.perspective-sub{ font-size: clamp(.85rem, 1.6vw, 1.05rem); color: var(--ink-2); letter-spacing: .04em; font-weight: 300; max-width: 520px; position: relative; z-index: 1; }

/* "what we do" — accordion tabs + image panel */
.what-interactive{ display: grid; grid-template-columns: 400px 1fr; min-height: 560px; border: 1px solid var(--border); background: var(--panel); }
.what-tabs{ border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.what-tab{ padding: 30px 34px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; transition: background .3s; overflow: hidden; }
.what-tab:last-child{ border-bottom: none; }
.what-tab::before{ content:''; position: absolute; left:0; top:0; width:3px; height:100%; background: var(--ink-1); transform: scaleY(0); transition: transform .4s var(--ease); transform-origin: top; }
.what-tab.active{ background: var(--panel-raised); }
.what-tab.active::before{ transform: scaleY(1); }
.what-tab-header{ display: flex; align-items: center; gap: 18px; }
.what-tab-num{ font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--border-strong); transition: color .3s; flex-shrink: 0; width: 42px; }
.what-tab.active .what-tab-num{ color: var(--ink-1); }
.what-tab-title{ font-family: var(--font-cond); font-size: 18px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: color .3s; }
.what-tab.active .what-tab-title{ color: var(--ink-1); }
.what-tab-arrow{ margin-left: auto; font-size: 18px; color: var(--border-strong); transition: all .4s; }
.what-tab.active .what-tab-arrow{ color: var(--ink-1); transform: rotate(90deg); }
.what-tab-body{ max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.what-tab.active .what-tab-body{ max-height: 200px; }
.what-tab-desc{ padding: 14px 0 4px 60px; font-size: .9rem; color: var(--ink-2); line-height: 1.8; font-weight: 300; }
.what-panel{ position: relative; overflow: hidden; background: var(--panel-raised); }
.what-panel-img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform .8s ease; transform: scale(1.04); }
.what-panel-img.active{ opacity: 1; transform: scale(1); }
.what-panel-overlay{ position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8,8,8,.65) 0%, transparent 60%); z-index: 2; pointer-events: none; }
.what-panel-tag{ position: absolute; top: 28px; right: 28px; z-index: 3; font-family: var(--font-cond); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.15); padding: 6px 16px; }
.what-panel-counter{ position: absolute; bottom: 28px; left: 28px; z-index: 3; display: flex; align-items: baseline; gap: 6px; }
.what-panel-cur{ font-family: var(--font-display); font-weight: 400; font-size: 4.2rem; line-height: 1; -webkit-text-stroke: 1px rgba(255,255,255,.35); color: transparent; }
.what-panel-total{ font-family: var(--font-cond); font-size: .8rem; letter-spacing: .1em; color: var(--ink-3); }
.what-progress{ position: absolute; bottom: 0; left: 0; height: 2px; background: var(--ink-1); width: 0%; z-index: 4; transition: width .5s ease; }
@media (max-width: 900px){
  .what-interactive{ grid-template-columns: 1fr; min-height: auto; }
  .what-tabs{ border-right: none; border-bottom: 1px solid var(--border); }
  .what-panel{ height: 340px; }
  .what-panel-cur{ font-size: 3rem; }
}

/* process — the four-step "how it works" strip */
.process-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.process-card{ background: var(--bg); padding: 44px 28px 34px; display: flex; flex-direction: column; gap: 16px; transition: background .4s; }
.process-card:hover{ background: var(--panel-raised); }
.process-step{ width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--ink-1); background: var(--bg); transition: border-color .3s, background .3s, color .3s; flex-shrink: 0; }
.process-card:hover .process-step{ border-color: var(--ink-1); background: var(--ink-1); color: var(--gold-ink); }
.process-card-title{ font-family: var(--font-cond); font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.process-card-desc{ font-size: .84rem; color: var(--ink-2); line-height: 1.75; font-weight: 300; }
@media (max-width: 560px){ .process-grid{ grid-template-columns: 1fr; } }

/* community — social proof band with counter */
.community-band{ padding: 7rem 1.5rem; text-align: center; background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.community-count{ font-family: var(--font-display); font-weight: 400; font-size: clamp(3.4rem, 11vw, 8rem); line-height: .9; letter-spacing: .06em; background: linear-gradient(135deg, #fff 0%, #666 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.community-sub{ font-family: var(--font-cond); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-top: .5rem; }
.social-pills{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }
.social-pill{ padding: 9px 26px; border: 1px solid var(--border); background: none; font-family: var(--font-cond); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); transition: all .3s; }
.social-pill:hover{ border-color: var(--ink-1); color: var(--ink-1); }

/* about-grid-v2 — reference-style three-column about layout:
   square photo | copy + stats | tall portrait photo, each with a
   clip-path reveal on scroll. Shared by the homepage teaser and the
   About page so both look identical. */
.about-grid-v2{ display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 2.2rem; align-items: start; }
.about-media-wrap{ position: relative; }
.about-media-block{ width: 100%; aspect-ratio: 1/1; overflow: hidden; background: var(--panel); }
.about-media-wrap.tall .about-media-block{ aspect-ratio: 3/4; }
.about-media-block img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.about-media-counter{ position: absolute; bottom: -18px; right: -18px; width: 76px; height: 76px; background: var(--ink-1); color: var(--gold-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transform: scale(.5) rotate(-15deg); transition: all .5s .35s var(--ease); z-index: 2; }
.about-media-wrap.in-view .about-media-counter{ opacity: 1; transform: scale(1) rotate(0deg); }
.about-media-counter .num{ font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.about-media-counter .lbl{ font-family: var(--font-cond); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); opacity: .75; }
.about-mid-col{ display: flex; flex-direction: column; gap: 1.3rem; padding: .3rem 1rem 0; }
.about-mid-col .section-title{ text-align: left; }
.about-mid-col p{ color: var(--ink-2); font-size: .96rem; line-height: 1.85; font-weight: 300; }
.about-divider-line{ width: 40px; height: 1px; background: var(--border-strong); }
.about-stats-row-v2{ display: flex; gap: 2rem; flex-wrap: wrap; }
.about-stat-v2 .num{ font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.about-stat-v2 .lbl{ font-family: var(--font-cond); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: .2rem; }
.about-mid-col .hero-actions{ justify-content: flex-start; margin-top: .4rem; }

@media (max-width: 900px){
  .about-grid-v2{ grid-template-columns: 1fr 1fr; }
  .about-grid-v2 .about-media-wrap.tall{ display: none; }
  .about-grid-v2 .about-media-wrap:not(.tall){ grid-column: 1 / -1; max-width: 420px; margin: 0 auto; }
  .about-mid-col{ grid-column: 1 / -1; order: -1; padding: 0 0 .5rem; }
}
@media (max-width: 600px){
  .about-grid-v2{ grid-template-columns: 1fr; }
  .about-mid-col .hero-actions{ justify-content: center; }
  .about-mid-col{ text-align: center; }
  .about-mid-col .section-title, .about-mid-col .eyebrow{ text-align: center; justify-content: center; }
  .about-stats-row-v2{ justify-content: center; }
}

/* Pillars / team carousel (About page) */
.pillars-carousel{ display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .2rem 1rem; scrollbar-width: none; }
.pillars-carousel::-webkit-scrollbar{ display: none; }
.pillars-carousel .pillar-card{ flex: 0 0 280px; scroll-snap-align: start; }
@media (max-width: 640px){ .pillars-carousel .pillar-card{ flex: 0 0 240px; } }

/* ==========================================================================
   BLOG
   ========================================================================== */

.blog-meta{ display:flex; align-items:center; gap:.5rem; font-size:.85rem; color:var(--ink-3); margin-bottom:.5rem; }
.blog-meta-lg{ font-size: .95rem; color: var(--ink-2); margin-top: 1rem; }

/* Featured post */
.blog-feature{ display:grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--r-lg); overflow:hidden; margin-bottom: 2.4rem; text-decoration:none; color:inherit; transition: transform var(--t-med), box-shadow var(--t-med); }
.blog-feature:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.blog-feature-media{ position:relative; min-height: 260px; overflow:hidden; background: var(--surface-tint); }
.blog-feature-media img{ width:100%; height:100%; object-fit:cover; }
.blog-feature-body{ padding: 2rem; display:flex; flex-direction:column; justify-content:center; }
.blog-feature-body h2{ margin:.5rem 0 .8rem; font-size: 1.8rem; line-height:1.25; }
.blog-feature-body p{ color: var(--ink-2); line-height:1.6; margin:0 0 .8rem; }
@media (max-width: 780px){ .blog-feature{ grid-template-columns: 1fr; } .blog-feature-media{ min-height: 200px; } }

/* Post grid */
.blog-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.6rem; margin: 1.6rem 0 2.4rem; }
.blog-card{ border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration:none; color:inherit; transition: transform var(--t-med), box-shadow var(--t-med); }
.blog-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.blog-card-media{ position: relative; height: 190px; overflow: hidden; background: var(--surface-tint); }
.blog-card-media img{ width: 100%; height: 100%; object-fit: cover; }
.blog-card-badge{ position:absolute; top:.8rem; left:.8rem; background: rgba(0,0,0,.55); color:#fff; font-size:.72rem; padding:.3rem .7rem; border-radius: 999px; letter-spacing:.02em; }
.blog-card-body{ padding: 1.4rem; }
.blog-card-body h3{ margin: 0 0 .5rem; font-size: 1.15rem; line-height:1.35; }
.blog-card-body p{ color: var(--ink-2); font-size: .92rem; line-height:1.55; margin:0; }

/* Post detail */
.blog-post-header{ text-align:left; }
.blog-post-cover{ border-radius: var(--r-lg); overflow:hidden; margin-bottom: 2rem; }
.blog-post-cover img{ width:100%; max-height: 460px; object-fit:cover; display:block; }
.blog-post-content{ font-size: 1.08rem; line-height:1.8; color: var(--ink-1); }
.blog-post-content h2{ font-size:1.5rem; margin: 2rem 0 1rem; }
.blog-post-content h3{ font-size:1.25rem; margin: 1.6rem 0 .8rem; }
.blog-post-content p{ margin: 0 0 1.3rem; }
.blog-post-content img{ max-width:100%; height:auto; border-radius: var(--r-md); margin: 1rem 0; }
.blog-post-content a{ color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.blog-post-content blockquote{ border-left: 3px solid var(--gold); margin: 1.6rem 0; padding: .4rem 0 .4rem 1.4rem; color: var(--ink-2); font-style: italic; }
.blog-post-content ul, .blog-post-content ol{ margin: 0 0 1.3rem 1.4rem; padding:0; }
.blog-post-content li{ margin-bottom:.5rem; }
.blog-post-content figure{ margin: 1.6rem 0; }
.blog-post-content figcaption{ font-size:.85rem; color: var(--ink-3); text-align:center; margin-top:.5rem; }
.blog-tags{ display:flex; flex-wrap:wrap; gap:.6rem; margin: 2rem 0; }
.blog-post-footer{ margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }

/* Two-column layout: article + sidebar. Sidebar naturally drops below the
   article in the single-column mobile layout since it's just the next
   grid item -- no reordering needed. */
.blog-post-layout{ display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 2.6rem; align-items: start; }
.blog-post{ min-width: 0; }
.blog-sidebar{ display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 100px; }

.sidebar-widget{ padding: 1.4rem; border-radius: var(--r-lg); }
.sidebar-widget-title{ font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 1.1rem; }

.sidebar-post-list{ display: flex; flex-direction: column; gap: 1rem; }
.sidebar-post{ display: flex; gap: .8rem; text-decoration: none; color: inherit; align-items: flex-start; }
.sidebar-post-media{ flex: 0 0 64px; width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-tint); }
.sidebar-post-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-post-body h5{ margin: 0 0 .3rem; font-size: .92rem; line-height: 1.35; font-weight: 600; transition: color var(--t-fast); }
.sidebar-post:hover .sidebar-post-body h5{ color: var(--gold); }
.sidebar-post-body span{ font-size: .76rem; color: var(--ink-3); }

.sidebar-post-list-compact{ gap: .85rem; }
.sidebar-post-compact{ align-items: center; }
.sidebar-post-dot{ flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-gold); margin-top: .3rem; align-self: flex-start; }
.sidebar-post-compact .sidebar-post-body h5{ font-size: .88rem; }

.sidebar-tag-cloud{ display: flex; flex-wrap: wrap; gap: .6rem; }
.sidebar-cat-badge{ text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.sidebar-cat-badge span{ background: rgba(0,0,0,.18); border-radius: var(--r-full); padding: 0 .4rem; font-size: .68rem; }

.blog-author-card{ display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--r-lg); margin: 2.2rem 0; }
.blog-author-avatar{ flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.blog-author-name{ font-weight: 700; }
.blog-author-role{ font-size: .82rem; color: var(--ink-3); }

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