/* =========================================================
   WOW - Weekend Offroad Warriors
   Shared stylesheet
   Brand palette + type system per WOW Visual Identity
   ========================================================= */

/* ---------- Calendar grid (calendar.html + home-page preview) ---------- */
.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cal-nav-btn:hover { border-color: var(--wow-amber); color: var(--wow-amber); }
.cal-nav-btn svg { width: 18px; height: 18px; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.cal-weekdays span {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 6px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-day {
  position: relative;
  min-height: 96px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: all 0.15s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-day.other-month {
  opacity: 0.28;
  background: transparent;
}
.cal-day.today {
  border-color: var(--wow-amber);
  box-shadow: 0 0 0 1px rgba(247,146,16,0.35) inset;
}
.cal-day.has-event {
  cursor: pointer;
  background: linear-gradient(160deg, rgba(247,146,16,0.10), rgba(229,36,35,0.04));
  border-color: rgba(247,146,16,0.35);
}
.cal-day.has-event:hover {
  transform: translateY(-1px);
  border-color: var(--wow-amber);
}
.cal-day.selected {
  border-color: var(--wow-red);
  box-shadow: 0 0 0 2px rgba(229,36,35,0.35) inset;
}
.cal-day .day-num {
  font-family: 'Alfa Slab One', serif;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.4px;
}
.cal-day.other-month .day-num { color: var(--muted); }
.cal-day .event-pill {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(247,146,16,0.18);
  color: var(--wow-amber);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
  max-width: 100%;
  /* Long drive titles wrap instead of clipping with an ellipsis. */
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
@media (max-width: 720px) {
  .cal-day { min-height: 60px; padding: 6px; }
  .cal-day .day-num { font-size: 14px; }
  .cal-day .event-pill { padding: 3px 6px; font-size: 9.5px; gap: 3px; }
  .cal-weekdays span { font-size: 10px; padding: 4px 0; }
}

/* Home-page calendar-preview wrapper */
.home-cal-card {
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 22px;
}
.home-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.home-cal-title {
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 0;
  letter-spacing: 0.4px;
}
.home-cal-nav {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* ---------- Scroll-linked animations ---------- */
/* Thin sunset bar at the top of the viewport showing scroll progress. */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.04);
  z-index: 1000;
  pointer-events: none;
}
.scroll-progress > .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F79210, #F47215, #F0401E, #E52423);
  transition: width 80ms linear;
}

/* Reveal on viewport entry - elements with .reveal fade and lift in.
   The initial hidden state is ONLY applied once JS confirms it's running
   (via `html.js`) so no-JS browsers and reveal glitches never leave the
   content invisible. Add .delay-1 ... .delay-6 to stagger siblings. */
.reveal {
  transition: opacity 0.75s cubic-bezier(0.2, 0.65, 0.2, 1),
              transform 0.75s cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: opacity, transform;
}
html.js .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }
.reveal.delay-6 { transition-delay: 0.48s; }

/* Parallax hero background - JS sets translateY via inline style. */
.photo-hero .bg { will-change: transform; transition: transform 0.05s linear; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress > .fill { transition: none; }
  .photo-hero .bg { transform: none !important; }
}


:root {
  /* Ground / Field */
  --wow-black:        #1E1E1E;
  --wow-black-pure:   #000000;
  --wow-white:        #FFFFFF;
  --wow-sand:         #F4EFE6;

  /* Sunset stripes (top -> bottom) */
  --wow-amber:        #F79210;
  --wow-orange:       #F47215;
  --wow-red-orange:   #F0401E;
  --wow-red:          #E52423;
  --wow-gold:         #FAB238;

  /* UI */
  --bg:               var(--wow-black);
  --ink:              var(--wow-white);
  --muted:            #B8B5AE;
  --line:             rgba(255,255,255,0.12);

  --radius:           14px;
  --max:              1180px;

  --f-display: "Alfa Slab One", "Times New Roman", serif;
  --f-script:  "Caveat", "Bradley Hand", cursive;
  --f-body:    "Montserrat", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* ---------- Icon badge (reusable) ---------- */
.icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(247, 146, 16, 0.15);
  border: 1px solid rgba(247, 146, 16, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-badge svg {
  width: 17px;
  height: 17px;
  stroke: var(--wow-gold);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge.red {
  background: rgba(229, 36, 35, 0.15);
  border-color: rgba(229, 36, 35, 0.5);
}
.icon-badge.red svg { stroke: var(--wow-orange); }
.icon-badge.sm { width: 28px; height: 28px; }
.icon-badge.sm svg { width: 14px; height: 14px; }
.icon-badge.lg { width: 44px; height: 44px; }
.icon-badge.lg svg { width: 22px; height: 22px; }

.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

a {
  color: var(--wow-gold);
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}
a:hover { color: var(--wow-amber); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Sunset stripe ---------- */
.stripe {
  display: flex;
  width: 100%;
  height: 6px;
}
.stripe > span { flex: 1; }
.stripe .s1 { background: var(--wow-amber); }
.stripe .s2 { background: var(--wow-orange); }
.stripe .s3 { background: var(--wow-red-orange); }
.stripe .s4 { background: var(--wow-red); }

/* ---------- Top nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30,30,30,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.brand .brand-text { display: none; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.06);
  color: var(--wow-gold);
}

.nav-cta {
  background: var(--wow-red) !important;
  color: var(--wow-white) !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.nav-links li:has(.nav-cta) { flex-shrink: 0; }
.nav-links a.nav-cta.active {
  background: var(--wow-red) !important;
  color: var(--wow-white) !important;
}
.nav-cta:hover { background: var(--wow-red-orange) !important; color: var(--wow-white) !important; }

/* Secondary CTA next to Join (sign in for existing members) */
.nav-cta.secondary {
  background: transparent !important;
  color: var(--wow-gold) !important;
  border: 1px solid rgba(247,146,16,0.5);
  padding: 7px 14px !important;
}
.nav-cta.secondary:hover {
  background: rgba(247,146,16,0.12) !important;
  color: var(--wow-gold) !important;
  border-color: var(--wow-amber);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--wow-black);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(247,146,16,0.18), transparent 60%),
    radial-gradient(900px 400px at 90% 100%, rgba(229,36,35,0.18), transparent 65%),
    linear-gradient(180deg, #141414 0%, #1E1E1E 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-banner { max-width: 720px; width: 90%; margin-bottom: 8px; }
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero h1 .accent { color: var(--wow-amber); }
.hero .hook {
  font-family: var(--f-script);
  font-weight: 700;
  color: var(--wow-gold);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  margin: 4px 0 12px;
}
.hero p.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--wow-red); color: var(--wow-white); }
.btn-primary:hover { background: var(--wow-red-orange); color: var(--wow-white); }
.btn-ghost {
  background: transparent;
  color: var(--wow-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--wow-amber); color: var(--wow-amber); }
.btn-whatsapp { background: #25D366; color: #0a1f15; }
.btn-whatsapp:hover { background: #1ebe5d; color: #0a1f15; }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-eyebrow {
  font-family: var(--f-script);
  color: var(--wow-amber);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 4px;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 3.2vw, 32px);
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: 0.4px;
  font-weight: 400;
  line-height: 1.15;
}
.section-lead {
  color: var(--muted);
  max-width: 660px;
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.65;
}
.section-alt { background: #161616; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Feature grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature:hover { border-color: rgba(247,146,16,0.6); transform: translateY(-2px); }
.feature .icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(247,146,16,0.15);
  border: 1px solid rgba(247,146,16,0.4);
  margin-bottom: 14px;
}
.feature .icon svg {
  width: 22px; height: 22px;
  stroke: var(--wow-gold);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: 0.4px;
  font-weight: 400;
}
.feature p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.stat {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px 18px 22px;
  text-align: center;
}
.stat .icon-badge { margin: 0 auto 12px; display: flex; }
.stat .num {
  font-family: var(--f-display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--wow-amber);
}
.stat .label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Drive cards ---------- */
.drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.drive-card {
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.drive-card:hover { transform: translateY(-3px); border-color: var(--wow-amber); }
.drive-card .photo {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.drive-card .photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.65) 100%);
}
.drive-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.drive-card h3 {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.4px;
}
.drive-card .hook {
  font-family: var(--f-script);
  font-weight: 700;
  color: var(--wow-gold);
  font-size: 22px;
  line-height: 1;
  margin: -4px 0 0;
}
.drive-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.tag.date {
  background: var(--wow-white);
  color: var(--wow-black);
  border-color: var(--wow-white);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: none;
}
.tag.drive-day      { color: var(--wow-gold); border-color: rgba(250,178,56,0.45); background: rgba(250,178,56,0.08); }
/* Meals: the one filled chip in the row - it answers "do I pack food?"
   at a glance, so it gets the sunset fill instead of an outline. */
.tag.meals {
  background: linear-gradient(135deg, var(--wow-amber), var(--wow-orange));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.tag.meals svg { stroke: #fff; }
.tag.meals-none { color: var(--muted); border-style: dashed; }
.tag.drive-overnight{ color: #FF8C8C; border-color: rgba(229,36,35,0.5); background: rgba(229,36,35,0.08); }
.tag.diff-easy   { color: #87f5a8; border-color: rgba(135,245,168,0.4); }
.tag.diff-mid    { color: var(--wow-amber); border-color: rgba(247,146,16,0.5); }
.tag.diff-hard   { color: var(--wow-red); border-color: rgba(229,36,35,0.6); }
.drive-card .desc { color: var(--muted); margin: 0; font-size: 14px; }
.drive-card .cta-row {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}
.drive-card .cta-row .btn {
  min-width: 200px;
  justify-content: center;
}

/* Things-to-bring pill list on each event card */
.event-bring {
  margin: 12px 0 4px;
}
.event-bring .es-label {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
/* WhatsApp "Chat with lead" button - WA-brand green */
.btn.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #0d0d0d;
  border: 1px solid #25D366;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn.btn-wa:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #0d0d0d;
}
.btn.btn-wa svg { flex-shrink: 0; }

/* Mini secondary actions under each drive card - Share + Calendar */
.cta-row.cta-secondary {
  margin-top: 8px;
  gap: 8px;
  flex-wrap: wrap;
}
.btn.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: transparent;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn.btn-mini:hover {
  color: var(--wow-amber);
  border-color: rgba(247,146,16,0.55);
  background: rgba(247,146,16,0.08);
}
.btn.btn-mini svg { flex-shrink: 0; }

/* Waitlist swap - card is at capacity, RSVP button becomes an
   amber/gold "Join waiting list" so it reads distinctly from the
   red "Reserve my spot" (no confirmed slot on offer). */
.btn.btn-waitlist,
.btn-primary.btn-waitlist {
  background: linear-gradient(90deg, var(--wow-amber), var(--wow-gold));
  color: #1E1E1E;
  border-color: transparent;
}
.btn.btn-waitlist:hover,
.btn-primary.btn-waitlist:hover {
  filter: brightness(1.05);
}
.drive-card.at-capacity .capacity .fill {
  filter: saturate(0.8) brightness(0.9);
}

/* Drive-tier locked state - member's driveEligibility is below this
   card's difficulty. Button flat-greyed, cursor changes, hover cue. */
.btn.btn-locked {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  border: 1px dashed rgba(255,255,255,0.25);
  cursor: not-allowed;
  font-size: 12.5px;
  padding: 12px 18px;
  letter-spacing: 0.3px;
}
.btn.btn-locked:hover { background: rgba(255,255,255,0.06); transform: none; }
.tier-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  vertical-align: middle;
}
.tier-badge.auto {
  background: rgba(135,245,168,0.14);
  color: #87f5a8;
  border: 1px solid rgba(135,245,168,0.35);
}
.tier-badge.override {
  background: rgba(250,178,56,0.14);
  color: var(--wow-gold);
  border: 1px solid rgba(250,178,56,0.4);
}
.tier-select {
  background: #0f0f0f;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

/* Paired hour + minute dropdowns for departure / return times.
   Kept side-by-side with a big colon in the middle - reads like
   a wheel picker on mobile and like matched steppers on desktop. */
.time-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}
.time-pair select {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  background: #141414;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.time-pair select:focus {
  outline: none;
  border-color: var(--wow-amber);
}
.time-pair .time-sep {
  color: var(--wow-amber);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

/* Album hero cover on gallery.html */
.album-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  margin: 12px 0 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  filter: contrast(1.10) saturate(1.15) brightness(0.94) sepia(0.06);
}
.album-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.album-cover:hover { filter: none; }

/* Gallery-admin table: cover thumbnail cell + hidden row */
.album-cover-thumb {
  width: 60px; height: 42px; object-fit: cover; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}
.album-cover-empty {
  display: inline-block; width: 60px; height: 42px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.15);
  color: var(--muted); font-size: 10px; line-height: 42px; text-align: center;
}
.dash-table tr.row-hidden { opacity: 0.55; }

/* Album detail modal - thumbnail grid + per-image actions */
.album-detail-modal { max-width: 940px; }
.member-modal { max-width: 720px; }
.event-modal  { max-width: 720px; }
.album-detail-modal .upload-row { display: flex; align-items: center; margin-bottom: 14px; }
.album-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-height: 460px;
  overflow-y: auto;
  padding: 2px;
}
.album-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
}
.album-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.2s ease;
}
.album-thumb:hover img { transform: scale(1.04); }
.album-thumb.is-hidden img { opacity: 0.35; filter: grayscale(0.8); }
.album-thumb.is-cover { border-color: var(--wow-amber); box-shadow: 0 0 0 2px rgba(247,146,16,0.35); }
.album-thumb .cover-badge, .album-thumb .hidden-badge {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.album-thumb .cover-badge  { background: var(--wow-amber); color: #1E1E1E; }
.album-thumb .hidden-badge { background: rgba(0,0,0,0.65); color: #fff; top: 6px; right: 6px; left: auto; }
.album-thumb .thumb-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 4px;
  padding: 6px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  opacity: 0; transition: opacity 0.15s ease;
}
.album-thumb:hover .thumb-actions { opacity: 1; }
.album-thumb .thumb-actions button {
  flex: 1;
  padding: 4px 6px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.album-thumb .thumb-actions button.danger { background: rgba(229,36,35,0.8); border-color: rgba(229,36,35,0.9); }
.album-thumb .thumb-actions button:hover { filter: brightness(1.15); }

.drive-card.tier-locked .photo::after {
  content: 'Locked - complete lower-tier drives to unlock';
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  color: rgba(255,255,255,0.85);
  font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase;
  pointer-events: none;
}

/* ---------- Crew cards ---------- */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.crew-card {
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.crew-card:hover { transform: translateY(-3px); border-color: var(--wow-red); }
.crew-card .avatar {
  aspect-ratio: 1/1;
  background:
    radial-gradient(circle at 30% 30%, rgba(247,146,16,0.35), transparent 55%),
    linear-gradient(180deg, #2a2a2a 0%, #161616 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 64px;
  color: var(--wow-amber);
  letter-spacing: 1px;
  overflow: hidden;
}
.crew-card .avatar.has-photo {
  background: #0f0f0f;
  color: transparent;
}
.crew-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.crew-card .avatar .crew-edit-photo {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,15,15,0.85);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(6px);
}
.crew-card:hover .avatar .crew-edit-photo,
.crew-card .avatar .crew-edit-photo:focus-within {
  opacity: 1;
}
.crew-card .avatar .crew-edit-photo:hover {
  color: var(--wow-amber);
  border-color: rgba(247,146,16,0.6);
  transform: translateY(-1px);
}
.crew-card .avatar .crew-edit-photo svg { flex-shrink: 0; }
.crew-card .body { padding: 18px 16px 22px; }
.crew-card h3 {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 20px;
  margin: 0 0 4px;
  letter-spacing: 0.4px;
}
.crew-card .role {
  font-family: var(--f-script);
  font-weight: 700;
  color: var(--wow-gold);
  font-size: 22px;
  line-height: 1;
  margin: 0 0 10px;
}
.crew-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label {
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--wow-amber);
  background: #131313;
}
.field textarea { min-height: 110px; resize: vertical; }

/* Brief highlight when a drive card is targeted from a home-page teaser */
@keyframes cardFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247,146,16,0); }
  30%      { box-shadow: 0 0 0 3px rgba(247,146,16,0.8); }
}
.drive-card.card-flash { animation: cardFlash 1.2s ease-in-out 2; border-color: var(--wow-amber); }
@media (prefers-reduced-motion: reduce) {
  .drive-card.card-flash { animation: none; border-color: var(--wow-amber); }
}

/* Show/hide password toggle (wired site-wide by auth.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color .15s ease;
}
.pw-toggle:hover { color: var(--wow-amber); }
.pw-toggle:focus-visible { outline: 2px solid var(--wow-amber); outline-offset: 2px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; }
.checkbox-row input { transform: translateY(3px); }

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok    { background: rgba(135,245,168,0.12); color: #87f5a8; border: 1px solid rgba(135,245,168,0.3); }
.form-status.err   { background: rgba(229,36,35,0.12);  color: #ff8b8a; border: 1px solid rgba(229,36,35,0.4); }
.form-status.busy  { background: rgba(250,178,56,0.12); color: var(--wow-gold); border: 1px solid rgba(250,178,56,0.3); }

/* ---------- Members area ---------- */
.locked {
  text-align: center;
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 28px;
  max-width: 540px;
  margin: 0 auto;
}
.locked .lock-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wow-amber), var(--wow-red));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 18px;
}

/* ---------- Sponsor strip ---------- */
.sponsor-strip {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.sponsor-strip .row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sponsor-strip .label { color: var(--wow-gold); font-family: var(--f-script); font-size: 22px; text-transform: none; letter-spacing: 0; }
.sponsor-strip .row { gap: 22px 38px; }
.sponsor-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  transition: transform .25s ease;
}
.sponsor-logo:hover { transform: translateY(-1px); }
.sponsor-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 190px;
  /* Grayscale at rest, TRUE full colour on hover (Swithun's call, 12 Jul
     2026). mix-blend-mode: screen sinks any residual dark box left in the
     logo files into the dark strip, so only the mark itself shows. */
  filter: grayscale(1);
  opacity: 0.8;
  mix-blend-mode: screen;
  transition: filter .25s ease, opacity .25s ease;
}
.sponsor-logo:hover img {
  filter: none;
  opacity: 1;
}
/* Portrait logos (mark stacked over wordmark, e.g. Global Oryx Tyres)
   need more height or they shrink to a smudge at strip height. */
.sponsor-logo.tall { height: 76px; }
@media (max-width: 720px) {
  .sponsor-logo { height: 36px; }
  .sponsor-logo.tall { height: 60px; }
  .sponsor-logo img { max-width: 150px; }
}

/* Touch targets: footer links were 18px tall on phones - pad them to a
   tappable height without changing the visual rhythm on desktop. */
.site-footer .foot-grid ul li a {
  display: inline-block;
  padding: 2px 0;
}
@media (max-width: 720px) {
  .site-footer .foot-grid ul li a { padding: 8px 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0d0d0d;
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .foot-grid > div { display: flex; flex-direction: column; align-items: center; }
  .foot-grid img { margin: 0 auto; }
  .foot-grid p { max-width: 100% !important; }
  .foot-grid h4 { margin-top: 4px; }
  .foot-grid ul { display: inline-block; text-align: center; }
  .foot-bottom {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
}
.foot-grid h4 {
  color: var(--ink);
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 16px;
  margin: 0 0 10px;
  letter-spacing: 0.4px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li { margin-bottom: 0; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--wow-amber); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

/* ---------- Page banner (non-home) ---------- */
.page-banner {
  padding: 44px 0 32px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(247,146,16,0.14), transparent 60%),
    var(--wow-black);
  border-bottom: 1px solid var(--line);
}
.page-banner h1 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.8vw, 38px);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.5px;
  font-weight: 400;
  line-height: 1.1;
}
.page-banner .hook {
  font-family: var(--f-script);
  font-weight: 500;
  color: var(--wow-gold);
  font-size: clamp(18px, 2.4vw, 24px);
  margin: 0 0 6px;
  line-height: 1.1;
}

/* ---------- CTA panel ---------- */
.cta-panel {
  background:
    linear-gradient(135deg, rgba(229,36,35,0.92), rgba(244,114,21,0.92)),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2), transparent 60%);
  color: var(--wow-white);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}
.cta-panel h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.cta-panel .hook {
  font-family: var(--f-script);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 18px;
}
.cta-panel .btn-primary { background: var(--wow-black); color: var(--wow-white); }
.cta-panel .btn-primary:hover { background: #000; }

/* ---------- Event card additions ---------- */
.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin: 0;
}
.event-meta-row b { color: var(--ink); font-weight: 700; }

/* ---------- Event priority grid (Lead / Location / Type / Cost) ---------- */
.event-priority {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 10px;
}
.event-priority .prio {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(247,146,16,0.10), rgba(247,146,16,0.04));
  border: 1px solid rgba(247,146,16,0.35);
  border-radius: 10px;
  padding: 9px 11px;
  min-width: 0;
}
.event-priority .prio .icon-badge.sm {
  width: 30px; height: 30px;
  background: rgba(247,146,16,0.22);
  border-color: rgba(247,146,16,0.55);
  margin: 0;
}
.event-priority .prio .prio-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.event-priority .prio .prio-label {
  font-size: 9.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--wow-gold);
  font-weight: 600;
}
.event-priority .prio .prio-value {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--ink);
  line-height: 1.15;
}
.event-priority .prio .prio-note {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}
.event-priority .prio .prio-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 8px;
  background: rgba(37,211,102,0.10);
  border: 1px solid rgba(37,211,102,0.45);
  border-radius: 99px;
  color: #25D366;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  transition: background .15s ease;
}
.event-priority .prio .prio-wa:hover { background: rgba(37,211,102,0.2); color: #25D366; }
.event-priority .prio .prio-wa svg {
  width: 11px; height: 11px;
  fill: #25D366;
}
/* Drive-type variant: red gradient for overnight */
.event-priority .prio.type-overnight {
  background: linear-gradient(90deg, rgba(229,36,35,0.15), rgba(229,36,35,0.06));
  border-color: rgba(229,36,35,0.5);
}
.event-priority .prio.type-overnight .icon-badge.sm {
  background: rgba(229,36,35,0.22);
  border-color: rgba(229,36,35,0.55);
}
.event-priority .prio.type-overnight .icon-badge.sm svg { stroke: #FF8C8C; }
.event-priority .prio.type-overnight .prio-label { color: #FF8C8C; }
/* Cost variant: filled amber */
.event-priority .prio.cost {
  background: linear-gradient(90deg, var(--wow-amber), var(--wow-orange));
  border-color: var(--wow-amber);
}
.event-priority .prio.cost .icon-badge.sm {
  background: rgba(30,30,30,0.18);
  border-color: rgba(30,30,30,0.35);
}
.event-priority .prio.cost .icon-badge.sm svg { stroke: var(--wow-black); }
.event-priority .prio.cost .prio-label { color: rgba(30,30,30,0.7); }
.event-priority .prio.cost .prio-value { color: var(--wow-black); }
.event-priority .prio.cost .prio-note { color: rgba(30,30,30,0.65); font-weight: 600; }
@media (max-width: 520px) {
  .event-priority { grid-template-columns: 1fr; }
}

/* ---------- Cost pill variants (per-vehicle / per-person + food) ---------- */
.cost-pill {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 7px 12px;
  line-height: 1.1;
}
.cost-pill .cost-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.cost-pill .cost-note {
  font-size: 9.5px;
  letter-spacing: 0.4px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(30,30,30,0.7);
  margin-top: 1px;
}
.cost-pill.per-person { background: var(--wow-amber); }
.cost-pill.per-person .cost-note { color: rgba(30,30,30,0.75); }

/* ---------- Event stats strip (Distance / Weather / Terrain) ---------- */
.event-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.event-stats .es {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.event-stats .es:last-child { border-bottom: none; }
.event-stats .es .icon-badge.sm {
  width: 28px; height: 28px;
  margin: 0;
}
.event-stats .es .es-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.event-stats .es .es-label {
  font-size: 10.5px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  font-weight: 500;
}
.event-stats .es .es-value {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}
.event-stats .es.tbd .es-value {
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}
.event-meta-row .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.event-meta-row .meta-item svg {
  width: 13px; height: 13px;
  stroke: var(--wow-gold);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.tag svg, .cost-pill svg {
  width: 12px; height: 12px;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tag svg { stroke: currentColor; }
.cost-pill svg { stroke: var(--wow-black); }

.capacity {
  width: 100%;
  margin-top: 6px;
}
.capacity .bar {
  height: 8px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.capacity .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wow-amber), var(--wow-red));
  border-radius: 999px;
  transition: width .25s ease;
}
.capacity .label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.cost-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wow-gold);
  color: var(--wow-black);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.modal h2 {
  font-family: var(--f-display);
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 28px;
  letter-spacing: 0.4px;
}
.modal .hook {
  font-family: var(--f-script);
  color: var(--wow-gold);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 16px;
  line-height: 1;
}
.modal .close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.modal .close:hover { background: var(--wow-red); border-color: var(--wow-red); }

/* ---------- RSVP wizard (drives.html: Details -> Payment -> Done) ---------- */
.rsvp-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.rsvp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.rsvp-step .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  font-size: 11px;
  flex-shrink: 0;
}
.rsvp-step.is-active { color: var(--ink); }
.rsvp-step.is-active .dot {
  background: linear-gradient(135deg, var(--wow-amber), var(--wow-orange));
  border-color: transparent;
  color: #fff;
}
.rsvp-step.is-done .dot {
  background: rgba(135,245,168,0.12);
  border-color: rgba(135,245,168,0.5);
  color: #87f5a8;
}
/* ---------- Drive filters: multi-select dropdowns (drives.html) ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-dd { position: relative; }
.filter-dd-btn { display: inline-flex; align-items: center; gap: 10px; }
.filter-dd-btn .arrow { font-size: 10px; transition: transform .15s ease; }
.filter-dd.open .filter-dd-btn .arrow { transform: rotate(180deg); }
.filter-dd.has-active .filter-dd-btn { border-color: var(--wow-amber); color: var(--wow-amber); }
.filter-dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 200px;
  padding: 8px;
  border-radius: 12px;
  background: #262626;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  display: none;
}
.filter-dd.open .filter-dd-panel { display: block; }
.filter-dd-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.filter-dd-panel label:hover { background: rgba(247,146,16,0.10); }
.filter-dd-panel input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--wow-amber);
}

/* Two-step layout (Details skipped): Payment leads, so no connector before it */
.rsvp-steps.two-step .rsvp-step[data-step="2"]::before { display: none; }
/* Connector line between steps */
.rsvp-step + .rsvp-step::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: var(--line);
  margin-right: 6px;
}
/* Simple and neat: quiet neutral card, clean solid dividers, roomy rows.
   The amount is the only emphasised value. */
.rsvp-bank-card {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 6px 18px;
}
.bank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
}
.bank-row + .bank-row { border-top: 1px solid rgba(255,255,255,0.07); }
.bank-row.is-amount .bank-value { color: var(--wow-gold); font-size: 15px; }
.bank-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.bank-label {
  width: 110px;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.bank-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}
.bank-copy {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.bank-copy:hover { border-color: var(--wow-amber); color: var(--wow-amber); }
.rsvp-proof-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
@media (max-width: 480px) {
  /* Keep the wizard on one line on phones - only the active step shows its label */
  .rsvp-step:not(.is-active) .lbl { display: none; }
  .rsvp-step + .rsvp-step::before { width: 14px; }
  .bank-label { width: 92px; }
}

/* ---------- Gallery (masonry, no crop) ---------- */
/* CSS columns preserve each image's native aspect ratio - no crop. */
.gallery-grid {
  columns: 3;
  column-gap: 12px;
}
@media (max-width: 1000px) { .gallery-grid { columns: 2; } }
@media (max-width: 600px)  { .gallery-grid { columns: 1; } }
.gallery-item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0d0d0d;
  transition: transform .3s ease, box-shadow .3s ease;
  isolation: isolate; /* so the vignette overlay doesn't leak */
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  /* Cinematic grade: bump contrast + saturation, drop a hair of brightness,
     tiny warm undertone (sepia 0.06) for the "teal-and-orange" feel. */
  filter: contrast(1.10) saturate(1.15) brightness(0.94) sepia(0.06);
  transition: filter .35s ease, transform .5s ease;
}
.gallery-item:hover img {
  /* On hover the true photo comes through - a little more life, less grade. */
  filter: contrast(1.04) saturate(1.08) brightness(1.0) sepia(0.02);
  transform: scale(1.02);
}
/* Vignette + subtle teal-lift on shadows (cinematic look) */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(20,40,60,0.10), rgba(60,20,10,0.08));
  mix-blend-mode: multiply;
  opacity: 0.9;
  transition: opacity .35s ease;
}
.gallery-item:hover::after { opacity: 0.4; }
.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-item:hover .cap { opacity: 1; }
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 220;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 8px;
  filter: none; /* zoomed-in view shows the true, ungraded photo */
}
.lightbox img#lightbox-img { max-height: 78vh; } /* leave room for the thumb rail */
.lightbox .cap {
  position: fixed;
  bottom: 104px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--f-script);
  color: var(--wow-gold);
  font-size: 22px;
}
/* Close button, top-right */
.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(30,30,30,0.65);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all .15s ease;
}
.lb-close:hover { border-color: var(--wow-amber); color: var(--wow-amber); }
/* Thumbnail rail along the bottom - click a thumb to jump to it */
.lb-thumbs {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  max-width: 92vw;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs img {
  height: 56px;
  width: 76px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .15s ease, border-color .15s ease;
}
.lb-thumbs img:hover { opacity: 0.85; }
.lb-thumbs img.active { opacity: 1; border-color: var(--wow-amber); }
@media (max-width: 720px) {
  .lb-thumbs img { height: 44px; width: 60px; }
  .lightbox .cap { bottom: 84px; font-size: 18px; }
}
/* Prev/next arrows inside the lightbox (click, ← → keys, or scroll) */
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(30,30,30,0.65);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.lb-arrow:hover { border-color: var(--wow-amber); color: var(--wow-amber); background: rgba(30,30,30,0.9); }
.lb-arrow svg { width: 22px; height: 22px; }
.lb-arrow.prev { left: 18px; }
.lb-arrow.next { right: 18px; }
@media (max-width: 720px) {
  .lb-arrow { width: 38px; height: 38px; }
  .lb-arrow.prev { left: 8px; }
  .lb-arrow.next { right: 8px; }
}

/* ---------- Socials band ---------- */
.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 14px;
  background: transparent;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.social-btn:hover { border-color: var(--wow-amber); color: var(--wow-amber); }
.social-btn .icon {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Portal ---------- */
.portal-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 720px) { .portal-wrap { grid-template-columns: 1fr; } }
.portal-card {
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.portal-card .role-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--wow-amber), var(--wow-red));
  margin-bottom: 14px;
  font-size: 32px;
}
.portal-card.admin .role-icon { background: linear-gradient(135deg, var(--wow-red), #1E1E1E); border: 1px solid var(--wow-red); }
.portal-card h3 {
  font-family: var(--f-display);
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: 0.4px;
}
.portal-card .hook {
  font-family: var(--f-script);
  color: var(--wow-gold);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1;
}
.portal-card ul {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.portal-card ul li { padding: 4px 0; padding-left: 22px; position: relative; }
.portal-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--wow-amber);
  font-weight: 700;
}

/* ---------- Dashboard ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card {
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.dash-card h3 {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.4px;
  margin: 0 0 4px;
}
.dash-card .hook {
  font-family: var(--f-script);
  color: var(--wow-gold);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 14px;
  line-height: 1;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dash-table th, .dash-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.dash-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.role-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.role-badge.member { background: rgba(135,245,168,0.16); color: #87f5a8; border: 1px solid rgba(135,245,168,0.4); }
.role-badge.colead { background: rgba(247,146,16,0.18); color: var(--wow-amber); border: 1px solid rgba(247,146,16,0.4); }
.role-badge.admin  { background: rgba(229,36,35,0.18);  color: #ff8b8a;          border: 1px solid rgba(229,36,35,0.5); }

/* ---------- Greeting hero + action chips (dashboards) ---------- */
.greeting-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(247,146,16,0.12), rgba(229,36,35,0.06));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 24px;
}
@media (max-width: 720px) {
  .greeting-hero { grid-template-columns: 1fr; }
}
.greeting-hero .hook {
  font-family: var(--f-script);
  color: var(--wow-gold);
  font-size: 22px;
  margin: 0 0 6px;
  line-height: 1;
}
.greeting-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: 0.4px;
  margin: 0 0 6px;
  line-height: 1.1;
}
.greeting-hero .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.greeting-hero .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-self: end;
}
@media (max-width: 720px) {
  .greeting-hero .actions { justify-self: start; }
}

.action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.action-chip:hover {
  border-color: var(--wow-amber);
  background: rgba(247,146,16,0.08);
  color: var(--wow-amber);
  transform: translateY(-1px);
}
.action-chip svg { width: 16px; height: 16px; }

/* ---------- Dashboard grid variants ---------- */
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.dash-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
@media (max-width: 900px) {
  .dash-grid-2 { grid-template-columns: 1fr; }
  .dash-grid-3 { grid-template-columns: 1fr; }
}

/* Inline row-action buttons on dashboard tables */
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.row-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.row-btn:hover { border-color: var(--wow-amber); color: var(--wow-amber); }
.row-btn.danger:hover { border-color: var(--wow-red); color: #ff8b8a; }

/* Tabs (Upcoming / Past / Canceled) */
.tab-strip {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 14px;
}
.tab-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--wow-amber);
  color: #1E1E1E;
}

/* Member directory search box */
.directory-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.directory-search input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0f0f0f;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 14px;
}
.directory-search input:focus { outline: none; border-color: var(--wow-amber); }

/* Status pills inside tables */
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
}
.status-pill.confirmed { background: rgba(135,245,168,0.16); color: #87f5a8; }
.status-pill.waitlist  { background: rgba(250,178,56,0.16); color: var(--wow-gold); }
.status-pill.canceled  { background: rgba(229,36,35,0.16); color: #ff8b8a; }
.status-pill.pending   { background: rgba(255,255,255,0.06); color: var(--muted); }

/* Simple modal overlay for cancel/edit dialogs */
.dash-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto; /* Scroll the whole backdrop on tiny viewports as a last resort */
}
.dash-modal-backdrop.show { display: flex; }
.dash-modal {
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: auto; /* centers vertically when content is shorter than viewport */
}
.dash-modal h3 {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.4px;
  margin: 0 0 6px;
}
.dash-modal .hook {
  font-family: var(--f-script);
  color: var(--wow-gold);
  font-size: 20px;
  margin: 0 0 14px;
  line-height: 1;
}
.dash-modal .close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.dash-modal .close:hover { color: #fff; }

/* ---------- Driving level card ---------- */
.level-card {
  background: var(--wow-black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
@media (max-width: 720px) {
  .level-card { grid-template-columns: 1fr; text-align:left; gap:12px; }
}
.level-badge {
  width: 86px; height: 86px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  color: var(--wow-black);
  font-size: 36px;
  letter-spacing: 0.4px;
  background: var(--wow-amber);
  border: 4px solid rgba(255,255,255,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  flex-shrink: 0;
}
.level-badge img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Read-only info list with per-field inline edit on members.html */
.info-list { display: flex; flex-direction: column; }
.info-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row .info-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.info-row .info-value {
  color: var(--wow-white);
  font-size: 15px;
  min-width: 0;
  word-break: break-word;
}
.info-row .info-value .empty {
  color: rgba(255,255,255,0.35);
  font-style: italic;
  font-size: 14px;
}
.info-row .info-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.info-row.editing .info-value input,
.info-row.editing .info-value select,
.info-row.editing .info-value textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0f0f0f;
  color: var(--wow-white);
  border: 1px solid var(--wow-amber);
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 14px;
}
.info-row .info-locked {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px dashed rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .info-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .info-row .info-actions { justify-content: flex-start; margin-top: 4px; }
}
.level-card .lvl-name {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.4px;
}
.level-card .lvl-hook {
  font-family: var(--f-script);
  color: var(--wow-gold);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  margin: 0 0 4px;
}
.level-card .lvl-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 8px;
}
.level-progress { margin-top: 4px; max-width: 360px; }
.level-progress .bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.level-progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wow-amber), var(--wow-red));
  border-radius: 999px;
  transition: width .4s ease;
}
.level-progress .gap {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 6px;
}
.level-card .lvl-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: center;
}
.level-card .lvl-stats .s {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 90px;
}
.level-card .lvl-stats .s b {
  display: block;
  font-family: var(--f-display);
  color: var(--wow-amber);
  font-size: 22px;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.level-card .lvl-stats .s span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Levels reference table (used on a help section / dashboard) */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.level-tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}
.level-tile .pip {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--wow-black);
  margin-bottom: 10px;
}
.level-tile h4 {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 16px;
  margin: 0 0 4px;
}
.level-tile p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Profile uploads ---------- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.upload-tile {
  background: #0f0f0f;
  border: 1.5px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease;
}
.upload-tile:hover { border-color: var(--wow-amber); }
.upload-tile input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.upload-tile .placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 10px;
}
.upload-tile .placeholder .ico {
  display: block;
  font-size: 30px;
  margin-bottom: 6px;
  color: var(--wow-amber);
}
.upload-tile img {
  width: 100%; height: 100%; object-fit: cover;
}
.upload-tile .label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
/* Upload tile for ID card uses a 4:3 aspect ratio */
.upload-tile.idcard { aspect-ratio: 4/3; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }
.mb-0  { margin-bottom: 0; }

/* =========================================================
   RESPONSIVE LAYER - mobile-first overrides
   Order: largest breakpoint to smallest so cascade is correct.
   Covers: nav, hero, priority grid, stats, forms, cards,
           dashboard tables, footer, touch targets, landscape.
   ========================================================= */

/* ----- Universal: prevent horizontal scroll & smooth scale ----- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}
.container { width: 100%; }

/* ----- Hamburger nav must activate earlier (nav has 8 long items) ----- */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-block !important; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column !important;
    background: var(--wow-black);
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
    gap: 4px;
    z-index: 60;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    width: 100%;
    padding: 12px 14px !important;
    font-size: 14px;
    display: block;
    box-sizing: border-box;
  }
  .nav-links a.nav-cta { text-align: center; }
}

/* ----- Tablet landscape and below ----- */
@media (max-width: 1024px) {
  :root { --max: 100%; }
  .container { padding: 0 22px; }
  .section-title { font-size: clamp(20px, 3vw, 28px); }
  .photo-hero { min-height: 60vh; }
}

/* ----- Tablet portrait / large phone ----- */
@media (max-width: 820px) {
  .container { padding: 0 18px; }

  /* Hero */
  .photo-hero { min-height: 55vh; }
  .photo-hero .container { padding: 56px 18px; }
  .photo-hero .hero-badge { width: 104px; height: 104px; }

  /* Section padding */
  section { padding: 36px 0 !important; }
  .page-banner { padding: 32px 0 24px; }
  .page-banner h1 { font-size: clamp(22px, 4vw, 30px); }

  /* Grids that need stacking */
  .form-row { grid-template-columns: 1fr !important; gap: 0; }
  .form-row .field { margin-bottom: 12px; }

  /* Drive grid */
  .drive-grid { grid-template-columns: 1fr 1fr; gap: 18px; }

  /* Stats */
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px 14px; }
  .stat .num { font-size: 32px; }

  /* Features */
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Modal */
  .modal { padding: 22px 20px !important; max-height: 90vh; overflow-y: auto; }
}

/* ----- Phone ----- */
@media (max-width: 600px) {
  .container { padding: 0 14px; }

  /* Hero - keep the round badge & big tagline readable */
  .photo-hero { min-height: 48vh; }
  .photo-hero .container { padding: 40px 14px; }
  .photo-hero .hero-badge { width: 92px; height: 92px; margin-bottom: 10px; }
  .photo-hero h1 { font-size: clamp(22px, 6vw, 30px); line-height: 1.1; }
  .photo-hero .hook { font-size: 18px; }
  .photo-hero .lead { font-size: 14px; }

  /* All multi-column grids collapse */
  .drive-grid,
  .grid-3,
  .crew-grid,
  .gallery-grid,
  .store-grid,
  .pillar-grid,
  .contact-grid,
  .stats,
  .foot-grid,
  .dash-grid,
  .dash-grid-2,
  .dash-grid-3,
  .portal-wrap { grid-template-columns: 1fr !important; gap: 14px; }

  /* Event priority grid - single column on phones */
  .event-priority { grid-template-columns: 1fr !important; }
  .event-priority .prio { padding: 8px 10px; }

  /* Event stats list - keep tidy */
  .event-stats .es { padding: 8px 10px; }
  .event-stats .es .es-value { font-size: 12px; }

  /* Drive card body */
  .drive-card .body { padding: 16px; gap: 8px; }
  .drive-card h3 { font-size: 20px; }
  .drive-card .photo { aspect-ratio: 16/9; }
  .drive-card .hook { font-size: 16px; }

  /* Tighter buttons but still touch-friendly */
  .btn { padding: 11px 16px; font-size: 12px; min-height: 44px; box-sizing: border-box; }
  .btn-row { gap: 8px; }
  .btn-row .btn { flex: 1 1 auto; }

  /* CTA row inside drive card centers */
  .drive-card .cta-row .btn { min-width: 0; width: 100%; }

  /* Filter chip row - allow wrapping cleanly */
  .filter-btn { font-size: 11px; padding: 8px 12px; }

  /* Page banner */
  .page-banner h1 { font-size: clamp(20px, 5.5vw, 26px); }
  .page-banner .hook { font-size: 16px; }
  .page-banner .section-lead { font-size: 14px; }

  /* Section title */
  .section-title { font-size: clamp(18px, 5vw, 24px); margin-bottom: 12px; }
  .section-lead { font-size: 14px; line-height: 1.6; }
  .section-eyebrow { font-size: 16px; }

  /* Feature tiles */
  .feature { padding: 18px 16px; }
  .feature h3 { font-size: 15px; }
  .feature p { font-size: 13px; }

  /* Forms */
  .form-card { padding: 22px 18px; }
  .field input, .field select, .field textarea {
    font-size: 16px !important; /* prevents iOS Safari zoom-on-focus */
  }

  /* Modal */
  .modal-backdrop { padding: 12px; }
  .modal { padding: 18px 16px !important; }

  /* Tables on dashboard pages - allow horizontal scroll */
  .dash-table-wrap, .dash-card { overflow-x: auto; }
  .dash-table { min-width: 540px; font-size: 12px; }

  /* Stats card */
  .stat .num { font-size: 28px; }
  .stat .label { font-size: 10px; }

  /* Sponsor strip - wrap rather than crush */
  .sponsor-strip .row { flex-wrap: wrap; justify-content: center; gap: 14px 22px; }

  /* Footer */
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ----- Small phone ----- */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .photo-hero .hero-badge { width: 80px; height: 80px; }
  .photo-hero h1 { font-size: 22px; }
  .drive-card h3 { font-size: 18px; }
  .btn { padding: 10px 14px; font-size: 11px; }
}

/* ----- Touch device baseline (any pointer that's coarse) ----- */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .filter-btn { min-height: 40px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  /* Disable hover lifts that look glitchy on tap */
  .drive-card:hover,
  .feature:hover,
  .store-card:hover,
  .contact-card:hover { transform: none; }
}

/* ----- Landscape phone - shrink vertical hero so CTAs are visible ----- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .photo-hero { min-height: 90vh; }
  .photo-hero .container { padding: 24px 18px; }
  .photo-hero .hero-badge { width: 64px; height: 64px; margin-bottom: 6px; }
  .photo-hero h1 { font-size: 22px; }
  .photo-hero .hook { font-size: 14px; }
  .photo-hero .lead { font-size: 13px; margin: 8px auto 12px; }
  section { padding: 24px 0 !important; }
}

/* ----- Reduce motion still respects users with that preference ----- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
