/* ═══════════════════════════════════════════════════════════════
   EVENTME — COMPLETE STYLESHEET
   Red Glass on Deep Black Design System
   ─────────────────────────────────────────────────────────────
   Primary    #C8102E  Crimson red
   Accent     #FF3A5C  Bright red
   Deep       #7A0A1A  Dark red
   Surface    #060506 → #130B0D  Near-black
   Glass      rgba(180,10,30,0.07–0.13) + blur(22px)
   Text       #F2EAEA  Warm white
   Muted      #8A6B6E  Rose-grey
   ═══════════════════════════════════════════════════════════════ */


/* ══ § 1  DESIGN TOKENS ══════════════════════════════════════ */
:root {
  /* Colour palette */
  --red:          #C8102E;
  --red-bright:   #FF3A5C;
  --red-deep:     #7A0A1A;
  --red-dim:      rgba(200,16,46,0.12);
  --red-border:   rgba(200,16,46,0.22);
  --red-border-s: rgba(255,58,92,0.45);
  /* Surfaces */
  --black:   #060506;
  --black-2: #0D080A;
  --black-3: #130B0D;
  --black-4: #1A0E10;
  /* Glass layers */
  --glass-bg:    rgba(180,10,30,0.07);
  --glass-bg2:   rgba(180,10,30,0.13);
  --glass-shine: rgba(255,255,255,0.055);
  /* Text */
  --text:   #F2EAEA;
  --text-2: #D4B8BA;
  --muted:  #8A6B6E;
  /* Borders */
  --border:     rgba(200,16,46,0.18);
  --border-sub: rgba(255,255,255,0.07);
  /* Shadows & glow */
  --shadow-red:  0 32px 80px rgba(200,16,46,0.18);
  --shadow-deep: 0 24px 60px rgba(0,0,0,0.55);
  --glow:        0 0 60px rgba(200,16,46,0.22);
  /* Blur levels */
  --blur-sm: blur(14px);
  --blur-md: blur(24px);
  --blur-lg: blur(40px);
  /* Radius scale */
  --r-xs:   3px;
  --r-sm:   7px;
  --r-md:  11px;
  --r-lg:  15px;
  --r-xl:  18px;
  --r-full:999px;
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;
  /* Layout */
  --w: min(1300px, calc(100% - 48px));
}


/* ══ § 2  RESET & BASE ═══════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid rgba(255,58,92,0.65); outline-offset: 3px; border-radius: var(--r-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* ══ § 3  AMBIENT BACKGROUND ════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15%  -5%, rgba(200,16,46,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85%   5%, rgba(120, 8,20,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(100, 5,15,0.12) 0%, transparent 55%);
}
body > * { position: relative; z-index: 1; }


/* ══ § 4  GLASS UTILITY ══════════════════════════════════════ */
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, var(--glass-bg) 100%);
  border: 1px solid var(--red-border);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.glass-deep {
  background: linear-gradient(145deg, var(--glass-bg2) 0%, rgba(10,4,6,0.85) 100%);
  border: 1px solid var(--red-border);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  box-shadow: var(--shadow-red), var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}


/* ══ § 5  TYPOGRAPHY UTILITIES ══════════════════════════════ */
.t-display { font-family: var(--font-display); font-weight: 600; line-height: 0.92; letter-spacing: -0.01em; }
.t-label     { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.t-label-red { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-bright); }


/* ══ § 6  EYEBROW ════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.38rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--red-border);
  background: rgba(200,16,46,0.08);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red-bright);
  flex-shrink: 0;
  animation: pls 2.5s ease infinite;
}
@keyframes pls { 0%,100%{opacity:1} 50%{opacity:0.35} }


/* ══ § 7  BUTTONS ════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 200ms cubic-bezier(.2,0,.2,1);
  white-space: nowrap;
}
.btn-primary {
  padding: 0.8rem 1.75rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(200,16,46,0.4);
  border: 1px solid rgba(255,58,92,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(200,16,46,0.55); background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-ghost { padding: 0.75rem 1.5rem; background: var(--glass-bg); border: 1px solid var(--red-border); color: var(--text-2); position: relative; overflow: hidden; }
.btn-ghost::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,58,92,0.12) 50%, transparent 70%); transform: translateX(-100%); transition: transform 0.45s ease; }
.btn-ghost:hover { background: var(--glass-bg2); border-color: var(--red-border-s); color: var(--text); transform: translateY(-2px); box-shadow: 0 0 18px rgba(200,16,46,0.25), 0 4px 16px rgba(0,0,0,0.3); }
.btn-ghost:hover::after { transform: translateX(100%); }
.btn-ghost:active { transform: translateY(0); box-shadow: 0 0 10px rgba(200,16,46,0.35); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: var(--r-sm); background: var(--glass-bg); border: 1px solid var(--border-sub); color: var(--muted); font-size: 1rem; }
.btn-icon:hover { background: var(--glass-bg2); border-color: var(--red-border); color: var(--red-bright); transform: scale(1.05); }


/* ══ § 8  PILLS & TAGS ═══════════════════════════════════════ */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 0.22rem 0.75rem; border-radius: var(--r-full); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--border-sub); background: rgba(255,255,255,0.04); color: var(--muted); }
.pill-red  { border-color: var(--red-border); background: rgba(200,16,46,0.1); color: var(--red-bright); }
.pill-live { border-color: rgba(255,58,92,0.5); background: rgba(255,58,92,0.1); color: var(--red-bright); animation: pulse-live 2.4s ease infinite; }
.pill-past { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.45); }
@keyframes pulse-live { 0%,100%{box-shadow:0 0 0 0 rgba(255,58,92,0.35)} 50%{box-shadow:0 0 0 7px rgba(255,58,92,0)} }
.pill-focus { animation: pill-focus-pulse 2.6s ease-out infinite; }
@keyframes pill-focus-pulse { 0%{box-shadow:0 0 0 0 rgba(255,58,92,0.35)} 70%{box-shadow:0 0 0 10px rgba(255,58,92,0)} 100%{box-shadow:0 0 0 0 rgba(255,58,92,0)} }


/* ══ § 9  HEADER ═════════════════════════════════════════════ */
.site-header { position: sticky; top: 0; z-index: 300; background: rgba(6,5,6,0.9); border-bottom: 1px solid var(--border); backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md); }
.header-wrap { width: var(--w); margin: 0 auto; display: flex; align-items: center; gap: 16px; height: 68px; min-width: 0; }
.header-nav  { flex: 1; min-width: 0; }
.brand       { flex-shrink: 0; min-width: 0; }
/* publish button: full label desktop, icon-only on mobile */
.pub-icon { display: none; }
.pub-label { display: inline; }
/* header/section action buttons — consistent ghost size */
.header-publish-btn,
.suggest-event-btn,
.nominate-talent-btn,
.explore-events-btn {
  flex-shrink: 0;
  flex-grow: 0;
  width: auto;
}

/* ── Enhanced CTA buttons: Explore / Publish / Nominate ── */
.explore-events-btn,
.header-publish-btn,
.nominate-talent-btn {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.18) 0%, rgba(139,0,26,0.14) 100%);
  border: 1.5px solid rgba(200,16,46,0.6);
  color: #fff;
  box-shadow: 0 0 16px rgba(200,16,46,0.35), 0 3px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: cta-pulse 2.6s ease-in-out infinite;
  transition: background 200ms, border-color 200ms, transform 180ms, box-shadow 200ms;
}

/* continuous subtle pulse */
@keyframes cta-pulse {
  0%,100% { box-shadow: 0 0 16px rgba(200,16,46,0.35), 0 3px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08); }
  50%      { box-shadow: 0 0 28px rgba(200,16,46,0.6),  0 4px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12); }
}

/* hover: brighter fill, stronger lift */
.explore-events-btn:hover,
.header-publish-btn:hover,
.nominate-talent-btn:hover {
  animation: none;
  background: linear-gradient(135deg, rgba(200,16,46,0.38) 0%, rgba(139,0,26,0.30) 100%);
  border-color: var(--red-bright);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 32px rgba(200,16,46,0.7), 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* press state */
.explore-events-btn:active,
.header-publish-btn:active,
.nominate-talent-btn:active {
  animation: none;
  transform: translateY(0) scale(0.97);
  box-shadow: 0 0 12px rgba(200,16,46,0.45), inset 0 2px 6px rgba(0,0,0,0.35);
  background: rgba(200,16,46,0.32);
}

/* icon motion: → slides, + rotates */
.explore-events-btn:hover .pub-icon { transform: translateX(6px); }
.header-publish-btn:hover  .pub-icon,
.nominate-talent-btn:hover .pub-icon { transform: rotate(90deg); }
.pub-icon {
  transition: transform 220ms cubic-bezier(.34,1.56,.64,1);
  display: inline-block;
}
.brand { display: flex; align-items: center; cursor: default; overflow: hidden; }
.brand-logo-stack { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* ── Brand wordmark: "Event Me" ── */
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand-w1 { color: #ffffff; }
.brand-w2 {
  background: linear-gradient(120deg, #FF3A5C 0%, #C8102E 45%, #FF3A5C 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 0 6px rgba(255,58,92,0.75))
    drop-shadow(0 0 18px rgba(200,16,46,0.45));
  animation: brand-me-shimmer 3.4s linear infinite, brand-me-pulse 2.8s ease-in-out infinite;
}
@keyframes brand-me-shimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 220% center; }
}
@keyframes brand-me-pulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255,58,92,0.7))  drop-shadow(0 0 16px rgba(200,16,46,0.4)); }
  50%       { filter: drop-shadow(0 0 10px rgba(255,58,92,0.95)) drop-shadow(0 0 28px rgba(200,16,46,0.65)); }
}
.brand-gem {
  min-width: 50px;
  height: auto;
  padding: 8px 12px 7px;
  border-radius: 12px;
  flex-shrink: 0;
  background: #8B0000;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 4px 20px rgba(139,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(0,0,0,0.25);
}
.brand-gem-em {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.brand-gem-sub {
  color: rgba(255,255,255,0.45);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.4rem;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(90deg, #ffffff 0%, #F8D0D8 50%, var(--red-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header-nav { display: flex; gap: 2px; justify-content: center; }
.header-nav a { padding: 0.45rem 0.85rem; border-radius: var(--r-full); font-size: 0.84rem; font-weight: 500; color: var(--muted); transition: all 180ms; white-space: nowrap; }
.header-nav a:hover  { color: var(--text); background: rgba(255,255,255,0.05); }
.header-nav a.active { color: var(--red-bright); background: rgba(200,16,46,0.08); }
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.admin-trigger { display: flex; align-items: center; gap: 8px; padding: 0.42rem 1rem; border-radius: var(--r-full); border: 1px solid var(--red-border); background: rgba(200,16,46,0.07); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-bright); cursor: pointer; transition: all 200ms; }
.admin-trigger:hover { background: rgba(200,16,46,0.14); border-color: var(--red-border-s); }
.admin-trigger .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 8px var(--red-bright); animation: pls 2.5s ease infinite; }


/* ══ § 10  HERO ══════════════════════════════════════════════ */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 60px 0; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-orb-1 { width: 900px; height: 900px; background: rgba(200,16,46,0.16); top: -200px; left: -200px; animation: orb1 20s ease-in-out infinite alternate; }
.hero-orb-2 { width: 700px; height: 700px; background: rgba(120,4,18,0.18); bottom: -150px; right: -100px; animation: orb2 25s ease-in-out infinite alternate; }
.hero-orb-3 { width: 500px; height: 500px; background: rgba(200,16,46,0.07); top: 30%; left: 55%; animation: orb3 18s ease-in-out infinite alternate; }
@keyframes orb1 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(60px,40px) scale(1.1)} }
@keyframes orb2 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-40px,-60px) scale(1.08)} }
@keyframes orb3 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-30px,30px) scale(0.92)} }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, transparent 0%, var(--red) 25%, var(--red-bright) 50%, var(--red) 75%, transparent 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; text-align: center; }
.hero-eyebrow { margin-bottom: 28px; display: flex; justify-content: center; }


/* ══ § 11  FULL-VIEWPORT HEARTBEAT TITLE ════════════════════
   • Words fill 100 vw edge-to-edge (JS-fitted font-size)
   • Cardiac LUB-DUB double-pump per word, staggered 100 ms
   • Systolic flash floods entire hero on every beat
   • AMPLIFIED = italic + gradient + loudest excursion
   • Live ECG waveform driven frame-by-frame by rAF in JS
══════════════════════════════════════════════════════════════ */

/* Wrapper breaks out of container to reach viewport edges */
.hero-title-wrap {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
  margin-bottom: 0;
  padding: 0;
  line-height: 1;
}

/* Primary systolic flash — LUB (fires first) */
.hero-title-wrap::before {
  content: '';
  position: absolute;
  inset: -200% -10%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 75% 65% at 50% 50%,
    rgba(200,16,46,0.26) 0%,
    rgba(200,16,46,0.09) 38%,
    transparent 72%
  );
  animation: sys-flash 1.3s cubic-bezier(0.22,0.61,0.36,1) infinite;
}

/* Echo flash — DUB (175 ms later, dimmer) */
.hero-title-wrap::after {
  content: '';
  position: absolute;
  inset: -160% -10%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 55% 50% at 50% 50%,
    rgba(255,58,92,0.18) 0%,
    transparent 62%
  );
  animation: sys-flash 1.3s cubic-bezier(0.22,0.61,0.36,1) infinite;
  animation-delay: 0.175s;
}

/* Cardiac pressure-spike: sharp attack → LUB decay → DUB echo → diastole */
@keyframes sys-flash {
  0%   { opacity: 0;    transform: scale(0.93); }
  5%   { opacity: 1;    transform: scale(1);    }
  14%  { opacity: 0;    transform: scale(1.05); }
  22%  { opacity: 0.72; transform: scale(1.02); }
  32%  { opacity: 0;    transform: scale(1.07); }
  100% { opacity: 0;    transform: scale(0.93); }
}

/* H1 — font-size overridden by fitTitle() JS to fill 100 vw */
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.052em;
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  font-size: clamp(3rem, 17vw, 22rem);
  padding: 0;
}

/* Word containers — each beats independently */
.hero-word {
  display: inline-block;
  transform-origin: center 58%;
  will-change: transform, filter, text-shadow;
  position: relative;
}

/* AFRICA'S — pure white, beats first */
.hw1 {
  color: #FFFFFF;
  animation:
    hb-pump  1.3s cubic-bezier(0.22,0.61,0.36,1) infinite,
    hw1-glow 1.3s cubic-bezier(0.22,0.61,0.36,1) infinite;
}

/* TALENT. — warm white, 110 ms stagger */
.hw2 {
  color: #F5E0E0;
  animation:
    hb-pump  1.3s cubic-bezier(0.22,0.61,0.36,1) infinite,
    hw2-glow 1.3s cubic-bezier(0.22,0.61,0.36,1) infinite;
  animation-delay: 0.11s, 0.11s;
}

/* AMPLIFIED. — italic crimson-to-white gradient, loudest beat */
.hw3 {
  font-style: italic;
  background: linear-gradient(
    108deg,
    #ffffff   0%,
    #FFB3C1  16%,
    #FF3A5C  32%,
    #C8102E  50%,
    #FF3A5C  68%,
    #FFB3C1  84%,
    #ffffff 100%
  );
  background-size: 320% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    hb-pump-big  1.3s cubic-bezier(0.22,0.61,0.36,1) infinite,
    hw3-shimmer  2.6s linear                          infinite,
    hw3-glow     1.3s cubic-bezier(0.22,0.61,0.36,1) infinite;
  animation-delay: 0.22s, 0s, 0.22s;
}

/* Cardiac LUB-DUB keyframes (physiologically accurate timing) */
@keyframes hb-pump {
  0%   { transform: scale(1);     }
  4%   { transform: scale(1.08);  }
  9%   { transform: scale(0.965); }
  17%  { transform: scale(1.06);  }
  27%  { transform: scale(1);     }
  100% { transform: scale(1);     }
}
@keyframes hb-pump-big {
  0%   { transform: scale(1);     }
  4%   { transform: scale(1.13);  }
  9%   { transform: scale(0.935); }
  17%  { transform: scale(1.09);  }
  27%  { transform: scale(1);     }
  100% { transform: scale(1);     }
}

/* Per-word glow animations */
@keyframes hw1-glow {
  0%,100% { text-shadow: 0 0 0 rgba(200,16,46,0), 0 8px 80px rgba(0,0,0,0.6); }
  5%      { text-shadow: 0 0 100px rgba(255,58,92,0.6), 0 8px 100px rgba(200,16,46,0.45); }
  20%     { text-shadow: 0 0 50px rgba(255,58,92,0.3),  0 8px 70px rgba(200,16,46,0.25); }
  30%     { text-shadow: 0 0 0 rgba(200,16,46,0), 0 8px 80px rgba(0,0,0,0.6); }
}
@keyframes hw2-glow {
  0%,100% { text-shadow: 0 0 0 rgba(200,16,46,0); }
  5%      { text-shadow: 0 0 80px rgba(255,58,92,0.5), 0 6px 90px rgba(200,16,46,0.38); }
  26%     { text-shadow: 0 0 0 rgba(200,16,46,0); }
}
@keyframes hw3-shimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 320% center; }
}
@keyframes hw3-glow {
  0%,100% { filter: drop-shadow(0 0  0px rgba(255,58,92,0)); }
  5%      { filter: drop-shadow(0 0 60px rgba(255,58,92,0.9)) drop-shadow(0 0 120px rgba(200,16,46,0.65)); }
  17%     { filter: drop-shadow(0 0 36px rgba(255,58,92,0.6)) drop-shadow(0 0  80px rgba(200,16,46,0.4)); }
  30%     { filter: drop-shadow(0 0  0px rgba(255,58,92,0)); }
}


/* ══ § 12  ECG / CARDIAC MONITOR LINE ═══════════════════════ */
.ecg-wrap { width: 100%; height: 52px; position: relative; overflow: hidden; margin: 6px 0 2px; }
.ecg-wrap svg { width: 100%; height: 100%; display: block; }

/* Main waveform — stroke-dasharray driven frame-by-frame by rAF */
.ecg-line { fill: none; stroke: var(--red-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; stroke-dasharray: 0 1400; stroke-dashoffset: 0; }

/* Blurred glow duplicate — opacity also driven by rAF */
.ecg-glow { fill: none; stroke: var(--red-bright); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; filter: blur(4px); stroke-dasharray: 0 1400; stroke-dashoffset: 0; }

/* Ambient sweep — CSS-only, no JS needed */
.ecg-scan { fill: none; stroke: rgba(255,58,92,0.15); stroke-width: 28; stroke-linecap: butt; animation: ecg-scan-move 2.6s linear infinite; }
@keyframes ecg-scan-move {
  from { stroke-dasharray: 50 1400; stroke-dashoffset:  1450; }
  to   { stroke-dasharray: 50 1400; stroke-dashoffset: -1450; }
}


/* ══ § 13  HERO SUBTITLE, ACTIONS & STATS ═══════════════════ */
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 560px; margin: 28px auto 44px; font-weight: 400; line-height: 1.7; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }
.hero-stats { display: inline-flex; gap: 0; border: 1px solid var(--red-border); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0,0,0,0.4) 100%); backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm); overflow: hidden; }
.stat-item { padding: 20px 36px; text-align: center; position: relative; }
.stat-item+.stat-item::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--red-border); }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1; color: var(--text); }
.stat-num span { color: var(--red-bright); }
.stat-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }


/* ══ § 14  DIVIDER ═══════════════════════════════════════════ */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--red-border) 30%, rgba(200,16,46,0.35) 50%, var(--red-border) 70%, transparent); margin: 0; }


/* ══ § 15  SECTIONS ══════════════════════════════════════════ */
.section      { padding: 88px 0; }
.section-wrap { width: var(--w); margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head-left .eyebrow { margin-bottom: 14px; }
.section-head-left h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem,3.5vw,3.2rem); line-height: 1.05; letter-spacing: -0.01em; }
.section-head-left p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; max-width: 520px; }


/* ══ § 16  CATEGORY STRIP ════════════════════════════════════ */
/* ── Mobile category dropdown ── */
.cat-dropdown-wrap { display: none; position: relative; margin-bottom: 18px; max-width: 320px; }
.cat-dropdown-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.52rem 1rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--r-full); color: var(--text); font-size: 0.84rem; font-weight: 500;
  cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  touch-action: manipulation; gap: 8px;
  transition: background 160ms, border-color 160ms;
}
.cat-dropdown-btn:hover  { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); }
.cat-dropdown-btn:active { background: rgba(255,255,255,0.14); }
.cat-dropdown-arrow { font-size: 0.75rem; color: var(--muted); transition: transform 0.25s; }
.cat-dropdown-btn[aria-expanded="true"] .cat-dropdown-arrow { transform: rotate(180deg); }
.cat-dropdown-panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: rgba(18,10,13,0.98); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); overflow: hidden; z-index: 200;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.65);
}
.cat-dropdown-panel.open { display: block; }
.cat-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.75rem 1.1rem; font-size: 0.87rem; color: var(--text-2);
  cursor: pointer; touch-action: manipulation;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative; overflow: hidden;
  transition: background 160ms, color 160ms, padding-left 160ms;
}
.cat-dropdown-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,58,92,0.55);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 180ms cubic-bezier(0.4,0,0.2,1);
  border-radius: 0 2px 2px 0;
}
.cat-dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding-left: 1.3rem;
}
.cat-dropdown-item:hover::before { transform: scaleY(1); }
.cat-dropdown-item:last-child { border-bottom: none; }
.cat-dropdown-item:active { background: rgba(255,255,255,0.08); }
.cat-dropdown-item.active {
  background: rgba(200,16,46,0.08);
  color: var(--text);
  font-weight: 600;
  padding-left: 1.3rem;
}
.cat-dropdown-item.active::before { transform: scaleY(1); }
@media (max-width: 860px) {
  .cat-dropdown-wrap { display: block; max-width: 100%; }
  .search-bar-wrap   { max-width: 100%; }
  .cat-strip, .talent-cat-strip { display: none !important; }
}

.cat-strip { display: flex; gap: 8px; margin-bottom: 40px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-btn { flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 0.55rem 1.1rem; border-radius: var(--r-full); border: 1px solid var(--border-sub); background: rgba(255,255,255,0.03); font-size: 0.82rem; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all 180ms; position: relative; overflow: hidden; }
.cat-btn:hover  { border-color: var(--red-border); background: var(--red-dim); color: var(--text-2); }
.cat-btn.active { border-color: var(--red-border-s); background: rgba(200,16,46,0.12); color: var(--red-bright); font-weight: 600; box-shadow: 0 0 24px rgba(200,16,46,0.2); }
.cat-btn::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--red-bright), transparent); transform: scaleX(0); transform-origin: center; transition: transform 180ms ease-out; }
.cat-btn.active::after { transform: scaleX(1); }


/* ══ § 17  EVENT CARDS GRID ══════════════════════════════════ */
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.events-grid .card-featured { grid-column: 1/-1; display: grid; grid-template-columns: 1.15fr 0.85fr; }
.ev-card { border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(155deg,rgba(30,14,16,0.9) 0%,rgba(13,8,10,0.95) 100%); border: 1px solid var(--border); display: flex; flex-direction: column; cursor: pointer; transition: transform 280ms cubic-bezier(.2,0,.2,1), box-shadow 280ms, border-color 280ms; touch-action: manipulation; }
@media (hover: hover) {
  .ev-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-red), var(--shadow-deep); border-color: var(--red-border-s); }
}
.ev-img { position: relative; overflow: hidden; background: var(--black-3); aspect-ratio: 16/9; flex-shrink: 0; }
.card-featured .ev-img { aspect-ratio: unset; min-height: 400px; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,0,.2,1); }
@media (hover: hover) { .ev-card:hover .ev-img img { transform: scale(1.08); } }
.ev-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,5,6,0.7) 0%, rgba(6,5,6,0.08) 40%, transparent 70%); pointer-events: none; }
.ev-img-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; }
.ev-img-date { position: absolute; bottom: 14px; right: 14px; background: rgba(6,5,6,0.78); backdrop-filter: var(--blur-sm); border: 1px solid var(--red-border); border-radius: var(--r-sm); padding: 8px 14px; text-align: center; min-width: 52px; }
.ev-date-day   { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; line-height: 1; color: var(--red-bright); }
.ev-date-month { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.16em; color: var(--muted); margin-top: 2px; text-transform: uppercase; }
.ev-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-featured .ev-body { padding: 32px 30px; }
.ev-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem,1.8vw,1.55rem); line-height: 1.15; letter-spacing: -0.01em; }
.ev-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-meta-item  { display: flex; align-items: flex-start; gap: 8px; }
.ev-meta-icon  { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; opacity: 0.75; }
.ev-meta-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 1px; }
.ev-meta-val   { font-size: 0.82rem; font-weight: 500; color: var(--text-2); }
.ev-desc       { font-size: 0.86rem; color: var(--muted); line-height: 1.65; flex: 1; }
.ev-advice { padding: 13px 15px; border-radius: var(--r-sm); background: rgba(200,16,46,0.06); border: 1px solid rgba(200,16,46,0.18); border-left: 3px solid var(--red); }
.ev-advice-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 5px; display: block; }
.ev-advice p { font-size: 0.81rem; color: var(--text-2); line-height: 1.55; }
.ev-artists { font-size: 0.82rem; color: var(--muted); }
.ev-artists strong { color: var(--text-2); font-weight: 500; }
.ev-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap; }
.ev-actions { display: flex; gap: 7px; }
.ev-action-btn { display: flex; align-items: center; gap: 5px; padding: 0.42rem 0.95rem; border-radius: var(--r-full); border: 1px solid var(--border-sub); background: rgba(255,255,255,0.04); font-size: 0.78rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all 180ms; }
.ev-action-btn:hover { border-color: var(--red-border); background: var(--red-dim); color: var(--red-bright); }
.ev-action-btn.liked { border-color: rgba(255,58,92,0.4); background: rgba(255,58,92,0.1); color: var(--red-bright); }

/* ── Unified card action row (events + talents) ── */
.card-actions {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 10px;
}
.card-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.card-action-btn:hover { background: rgba(255,255,255,0.09); color: var(--text-2); border-color: rgba(255,255,255,0.16); }
.card-action-btn.liked { background: rgba(200,16,46,0.12); color: #FF3A5C; border-color: rgba(200,16,46,0.3); }
.ev-ticket-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; padding: 5px 12px; border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  color: var(--muted); font-size: 0.76rem; text-decoration: none;
  transition: background 140ms, color 140ms;
}
.ev-ticket-link:hover { background: rgba(255,255,255,0.09); color: var(--text); }

/* ── Comment Modal ── */
.comment-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms;
  backdrop-filter: blur(4px);
}
.comment-overlay.open { opacity: 1; pointer-events: auto; }
.comment-modal {
  width: 100%; max-width: 480px; max-height: 85vh;
  background: rgba(16,8,12,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.65);
  transform: translateY(12px);
  transition: transform 220ms;
}
.comment-overlay.open .comment-modal { transform: translateY(0); }
.comment-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.comment-modal-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0; }
.comment-modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.07); color: var(--muted);
  cursor: pointer; font-size: 0.85rem; display: grid; place-items: center;
  transition: background 140ms, color 140ms;
}
.comment-modal-close:hover { background: rgba(255,255,255,0.14); color: var(--text); }
.comment-modal-list {
  flex: 1; overflow-y: auto; padding: 14px 20px;
  display: flex; flex-direction: column; gap: 14px; min-height: 100px;
}
.comment-modal-list::-webkit-scrollbar { width: 3px; }
.comment-modal-list::-webkit-scrollbar-thumb { background: rgba(200,16,46,0.3); border-radius: 2px; }
.cm-item { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.cm-reply { margin-left: 44px; padding-top: 6px; border-left: 2px solid var(--border-sub); padding-left: 10px; }
.cm-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, var(--red-bright), var(--red-deep));
  color: #fff; font-weight: 700; font-size: 0.8rem;
  display: grid; place-items: center; overflow: hidden;
}
.cm-reply .cm-avatar { width: 26px; height: 26px; font-size: 0.7rem; }
.cm-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cm-meta { display: flex; align-items: center; gap: 8px; }
.cm-author { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.cm-time { font-size: 0.7rem; color: var(--muted); }
.cm-text { font-size: 0.85rem; color: var(--text-2); line-height: 1.55; margin: 0; }
.cm-empty { font-size: 0.84rem; color: var(--muted); text-align: center; padding: 28px 0; }
.cm-actions { display: flex; gap: 10px; margin-top: 4px; }
.cm-replies { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.cm-act-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 0.72rem; color: var(--muted); padding: 2px 4px;
  border-radius: var(--r-sm); transition: color 160ms;
}
.cm-act-btn:hover { color: var(--text-2); }
.cm-act-btn.liked { color: var(--red-bright); }
/* reply input */
.cm-reply-input-wrap {
  display: flex; gap: 6px; margin: 6px 0 4px 44px;
  align-items: center;
}
.cm-reply-input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border-sub);
  border-radius: var(--r-full); padding: 6px 12px; font-size: 0.82rem;
  color: var(--text); outline: none;
}
.cm-reply-input:focus { border-color: var(--red-border-s); }
.cm-reply-post {
  width: 30px; height: 30px; border-radius: 50%; background: var(--red-bright);
  border: none; color: #fff; cursor: pointer; font-size: 1rem;
  display: grid; place-items: center; flex-shrink: 0;
}

/* profession badge in comment meta */
.cm-profession { font-size: 0.68rem; color: var(--red-bright); font-family: var(--font-mono); letter-spacing: 0.08em; margin: 0 4px; opacity: 0.85; }
.cm-author-click:hover, .cm-avatar-click:hover { text-decoration: underline; text-underline-offset: 2px; }

/* user profile card popup */
.upc-backdrop { position: fixed; inset: 0; z-index: 800; background: rgba(3,2,3,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.upc-card { position: relative; border-radius: var(--r-xl); padding: 36px 32px 32px; text-align: center; min-width: 240px; max-width: 320px; width: 100%; }
.upc-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; line-height: 1; padding: 4px 7px; border-radius: var(--r-sm); transition: color 160ms; }
.upc-close:hover { color: var(--text); }
.upc-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--red); border: 3px solid var(--red-border-s); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: #fff; margin: 0 auto 16px; }
.upc-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.upc-profession { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-bright); }

/* ── Profile edit overlay ── */
.profile-edit-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.profile-preview-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile-preview {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 700; color: #fff;
  background: var(--red-bright);
  border: 3px solid var(--red-border);
}
.profile-preview-hint { font-size: 0.72rem; color: var(--muted); }
.profile-edit-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-sub);
  border-radius: var(--r-lg);
  padding: 4px;
}
.profile-edit-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 180ms;
  overflow: hidden;
}
.profile-edit-tab svg { transition: color 180ms; flex-shrink: 0; }
.profile-edit-tab.active {
  background: rgba(200,16,46,0.14);
  color: var(--red-bright);
  box-shadow: 0 1px 6px rgba(200,16,46,0.18);
}
.profile-edit-tab:hover:not(.active) { background: rgba(255,255,255,0.06); color: var(--text); }
.profile-edit-panel { display: flex; flex-direction: column; gap: 8px; }
/* avatar color grid */
.avatar-color-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.avatar-color-swatch {
  aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: transform 150ms, border-color 150ms;
}
.avatar-color-swatch:hover   { transform: scale(1.12); }
.avatar-color-swatch.selected { border-color: #fff; transform: scale(1.15); }
/* status text */
.profile-save-status { font-size: 0.8rem; text-align: center; min-height: 1.2em; }
.profile-save-status.success { color: #4ade80; }
.profile-save-status.error   { color: #f97373; }

/* ── Email verify banner ── */
.auth-verify-msg         { padding: 10px 14px; border-radius: 8px; font-size: 0.83rem; margin-bottom: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-sub); color: var(--text-2); }
.auth-verify-msg.success { background: rgba(74,222,128,0.1); border-color: #4ade80; color: #4ade80; }
.auth-verify-msg.error   { background: rgba(249,115,115,0.1); border-color: #f97373; color: #f97373; }

/* ── User pill avatar image support ── */
.user-pill-avatar { overflow: hidden; }
.comment-modal-form {
  display: flex; gap: 8px; padding: 12px 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
}
#commentModalInput {
  flex: 1; padding: 9px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05);
  color: var(--text); font-size: 0.85rem; font-family: inherit; outline: none;
  transition: border-color 180ms, background 180ms;
}
#commentModalInput:focus { border-color: rgba(200,16,46,0.45); background: rgba(200,16,46,0.04); }
.comment-modal-post {
  padding: 9px 18px; border-radius: 20px; border: none;
  background: var(--red-bright); color: #fff;
  font-size: 0.82rem; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap; transition: background 160ms;
}
.comment-modal-post:hover { background: var(--red); }
.comment-modal-post:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 480px) {
  .comment-modal { max-height: 92vh; border-radius: 16px 16px 0 0; }
  .comment-overlay { align-items: flex-end; padding: 0; }
}
/* ── Media Lightbox ── */
.mlb-overlay {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(0,0,0,0.88);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 60px 16px 16px; gap: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms;
  backdrop-filter: blur(6px);
}
.mlb-overlay.open { opacity: 1; pointer-events: auto; }
.mlb-close {
  position: absolute; top: 18px; right: 22px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 1rem; line-height: 1;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 160ms;
}
.mlb-close:hover { background: rgba(200,16,46,0.35); }
.mlb-stage {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 50vh; max-height: 50vh;
  overflow: hidden;
}
.mlb-img, .mlb-video {
  max-width: 100%; max-height: 50vh;
  object-fit: contain; border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.mlb-footer {
  flex: 0 0 auto; width: 100%; max-width: 720px;
  padding: 14px 4px 4px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: calc(50vh - 86px); overflow-y: auto;
}
.mlb-footer::-webkit-scrollbar { width: 3px; }
.mlb-footer::-webkit-scrollbar-thumb { background: rgba(200,16,46,0.35); border-radius: 2px; }
/* structured content box */
.mlb-content-box {
  background: rgba(200,16,46,0.06);
  border: 1px solid rgba(200,16,46,0.22);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.mlb-content-header { display: flex; align-items: center; gap: 8px; }
.mlb-title { color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.3; margin: 0; }
.mlb-meta-grid { display: flex; flex-direction: column; gap: 4px; }
.mlb-meta-row {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 0.78rem; color: var(--text-2);
}
.mlb-meta-row strong { color: var(--muted); font-weight: 600; min-width: 72px; flex-shrink: 0; }
.mlb-desc  { color: var(--text-2); font-size: 0.82rem; line-height: 1.55; margin: 0; }
.mlb-extra { color: var(--text-2); font-size: 0.8rem; line-height: 1.45; }
.mlb-extra:empty { display: none; }
.mlb-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.mlb-contact-item { font-size: 0.78rem; color: var(--muted); }
.mlb-contact-link { color: var(--red-bright); text-decoration: none; font-size: 0.78rem; }
.mlb-contact-link:hover { text-decoration: underline; }
.mlb-actions {
  display: flex; gap: 8px;
}
.mlb-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75); font-size: 0.82rem; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.mlb-btn:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.22); }
.mlb-btn.liked  { background: rgba(200,16,46,0.18); color: #FF3A5C; border-color: rgba(200,16,46,0.4); }
.mlb-lc, .mlb-cc { opacity: 0.7; font-weight: 400; }
.mlb-placeholder {
  width: 160px; height: 160px; border-radius: 20px;
  background: rgba(255,255,255,0.05); font-size: 5rem;
  place-items: center;
}
/* inline comments inside lightbox */
.mlb-comments {
  display: none; flex-direction: column; gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px; margin-top: 4px;
}
.mlb-comments.open { display: flex; }
.mlb-comment-list {
  display: flex; flex-direction: column; gap: 6px;
}
.mlb-comment-list::-webkit-scrollbar { width: 3px; }
.mlb-comment-list::-webkit-scrollbar-thumb { background: rgba(200,16,46,0.4); border-radius: 2px; }
.mlb-comment-item {
  display: flex; gap: 8px; align-items: flex-start;
  background: rgba(255,255,255,0.04); border-radius: 10px; padding: 8px 10px;
}
.mlb-comment-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #C8102E, #8B001A);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: #fff; text-transform: uppercase;
}
.mlb-comment-body { flex: 1; min-width: 0; }
.mlb-comment-author { font-size: 0.72rem; font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.mlb-comment-text   { font-size: 0.8rem; color: var(--text-2); line-height: 1.4; word-break: break-word; }
.mlb-comment-empty  { color: var(--muted); font-size: 0.78rem; text-align: center; padding: 10px 0; }
.mlb-comment-form {
  display: flex; gap: 8px; align-items: center;
}
.mlb-comment-form input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 9px 13px; color: #fff; font-size: 0.82rem;
  font-family: inherit; outline: none; transition: border-color 160ms;
}
.mlb-comment-form input:focus { border-color: rgba(200,16,46,0.5); }
.mlb-comment-form input::placeholder { color: var(--muted); }
.mlb-comment-post {
  background: var(--red-bright); border: none; color: #fff;
  font-size: 0.78rem; font-weight: 700; font-family: inherit;
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
  white-space: nowrap; transition: opacity 160ms;
}
.mlb-comment-post:hover { opacity: 0.85; }
@media (max-width: 480px) {
  .mlb-btn { padding: 9px 12px; font-size: 0.76rem; }
  .mlb-title { font-size: 0.9rem; }
}

.ticket-badge { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--red-bright); }
.ev-comments { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 14px; margin-top: 4px; }
.ev-comment-list { display: grid; gap: 7px; margin-bottom: 10px; max-height: 130px; overflow-y: auto; }
.ev-comment-list::-webkit-scrollbar { width: 3px; }
.ev-comment-list::-webkit-scrollbar-thumb { background: var(--red-border); border-radius: 2px; }
.ev-comment { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.ev-comment .cu { font-weight: 600; color: var(--text-2); margin-right: 5px; }
.comment-empty { font-size: 0.78rem; color: var(--muted); font-style: italic; }
.ev-comment-form { display: flex; gap: 8px; }
.ev-comment-input { flex: 1; padding: 0.55rem 1rem; border-radius: var(--r-full); border: 1px solid var(--border-sub); background: rgba(255,255,255,0.03); color: var(--text); font-size: 0.82rem; outline: none; transition: border-color 200ms; }
.ev-comment-input:focus { border-color: var(--red-border); background: rgba(200,16,46,0.04); }
.ev-comment-submit { padding: 0.55rem 1rem; border-radius: var(--r-full); border: 1px solid var(--red-border); background: rgba(200,16,46,0.1); color: var(--red-bright); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 180ms; white-space: nowrap; }
.ev-comment-submit:hover { background: rgba(200,16,46,0.2); }



/* ══ § 17b  IMAGE-ONLY FULLSCREEN ═══════════════════════════ */
#imageOnlyOverlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(0,0,0,0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; padding: 56px 0 0;
}
.io-img {
  max-width: 100%; max-height: calc(100vh - 120px);
  object-fit: contain; display: block; flex-shrink: 1;
}
.io-close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 160ms;
}
.io-close:hover { background: rgba(200,16,46,0.5); }
.io-actions {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  padding: 16px 20px 20px; flex-shrink: 0;
}
.io-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 22px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8); font-size: 0.84rem; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background 160ms, color 160ms, border-color 160ms, box-shadow 160ms;
}
.io-btn:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.3); }
.io-btn.liked { background: rgba(200,16,46,0.18); color: #FF3A5C; border-color: rgba(200,16,46,0.5); box-shadow: 0 0 12px rgba(200,16,46,0.3); }

/* ══ § 18  MEDIA WALL ════════════════════════════════════════ */
.media-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* Media tiles — card style matching event cards */
.media-tile {
  border-radius: var(--r-lg);
  overflow: visible; /* allow body to expand beyond image; border-radius handled by children */
  background: linear-gradient(155deg, rgba(30,14,16,0.9) 0%, rgba(13,8,10,0.95) 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 280ms cubic-bezier(.2,0,.2,1), box-shadow 280ms, border-color 280ms;
}
/* clip image corners; body remains open */
.media-tile-img { border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (hover: hover) {
  .media-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-red), var(--shadow-deep); border-color: var(--red-border-s); }
}

/* image area */
.media-tile-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--black-3);
  flex-shrink: 0;
}
.media-tile-img img, .media-tile-img video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,0,.2,1);
}
@media (hover: hover) {
  .media-tile:hover .media-tile-img img,
  .media-tile:hover .media-tile-img video { transform: scale(1.08); }
}
.media-tile-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,5,6,0.55) 0%, transparent 50%);
  pointer-events: none;
}
.media-tile-type {
  position: absolute; top: 10px; left: 10px;
  background: rgba(6,5,6,0.72); backdrop-filter: blur(8px);
  padding: 3px 9px; border-radius: var(--r-xs);
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.1em; color: var(--muted);
}

/* card body */
.media-tile-body {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 7px;
  flex: 1;
}
.media-tile-header { display: flex; align-items: center; gap: 6px; }
.media-tile-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem); line-height: 1.2;
  color: var(--text);
}
.media-tile-meta {
  font-size: 0.78rem; color: var(--muted);
}
.media-tile-actions { margin-top: 8px; padding-top: 8px; opacity: 1; pointer-events: auto; }


/* ══ § 19  COUNTRIES ═════════════════════════════════════════ */
.countries-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.country-chip { display: flex; align-items: center; gap: 8px; padding: 0.5rem 1.1rem; border-radius: var(--r-full); border: 1px solid var(--border-sub); background: rgba(255,255,255,0.03); font-size: 0.82rem; color: var(--muted); transition: all 180ms; cursor: default; }
.country-chip:hover { border-color: var(--red-border); background: var(--red-dim); color: var(--text-2); }
.country-chip .flag { font-size: 1.1rem; }


/* ══ § 20  ABOUT ══════════════════════════════════════════════ */

/* Header */
.about-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.about-header .eyebrow { justify-content: center; margin-bottom: 20px; }
.about-header h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem,4vw,3.4rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.about-sub { color: var(--text-2); font-size: 1rem; line-height: 1.75; }

/* Pillar cards */
.about-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 20px; }
.about-pillar { border-radius: var(--r-lg); padding: 36px 28px; position: relative; overflow: hidden; transition: transform 250ms, box-shadow 250ms, border-color 250ms; }
.about-pillar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red), var(--red-bright), var(--red), transparent); opacity: 0; transition: opacity 250ms; }
.about-pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-red), var(--shadow-deep); border-color: var(--red-border-s); }
.about-pillar:hover::before { opacity: 1; }
.ap-icon-wrap { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--red-dim); border: 1px solid var(--red-border); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--red-bright); }
.ap-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.ap-desc { color: var(--text-2); font-size: 0.88rem; line-height: 1.72; margin: 0; }

/* Stats band */
.about-stats-band { display: flex; align-items: stretch; border-radius: var(--r-xl); overflow: hidden; margin-bottom: 20px; }
.asb-item { flex: 1; padding: 36px 20px; text-align: center; }
.asb-sep { width: 1px; background: var(--red-border); flex-shrink: 0; margin: 24px 0; }
.asb-num { font-family: var(--font-display); font-size: clamp(2rem,3vw,2.8rem); font-weight: 700; color: var(--red-bright); line-height: 1; margin-bottom: 10px; }
.asb-num sup { font-size: 1rem; vertical-align: super; }
.asb-lbl { font-family: var(--font-mono); font-size: 0.59rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Values */
.about-values { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 44px; }
.av-card { border-radius: var(--r-md); padding: 28px 20px; text-align: center; transition: transform 220ms, box-shadow 220ms, border-color 220ms; }
.av-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-red); border-color: var(--red-border-s); }
.av-icon { width: 44px; height: 44px; border-radius: var(--r-full); background: rgba(200,16,46,0.1); border: 1px solid var(--red-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--red-bright); }
.av-title { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.av-desc { font-size: 0.82rem; color: var(--text-2); line-height: 1.65; }

/* CTA row */
.about-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }


/* ══ § 21  ADMIN MODAL ═══════════════════════════════════════ */
.overlay { position: fixed; inset: 0; z-index: 500; background: rgba(3,2,3,0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; place-items: center; padding: 20px; }
.overlay.open { display: grid; }
.modal { position: relative; width: 100%; max-width: 720px; max-height: 96vh; overflow-y: auto; border-radius: var(--r-xl); background: linear-gradient(145deg,rgba(25,12,15,0.98) 0%,rgba(10,6,8,0.98) 100%); border: 1px solid var(--red-border); box-shadow: var(--shadow-red), 0 60px 120px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06); }
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--red-border); border-radius: 2px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(15,8,10,0.95); backdrop-filter: var(--blur-sm); z-index: 10; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.modal-header-text h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.modal-header-text p  { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.12em; margin-top: 3px; }
.modal-close { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--border-sub); background: rgba(255,255,255,0.04); display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; color: var(--muted); transition: all 180ms; }
.modal-close:hover { background: rgba(200,16,46,0.15); border-color: var(--red-border); color: var(--red-bright); }
.modal-header-actions { display: flex; align-items: center; gap: 8px; }
.admin-signout-btn { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--border-sub); background: rgba(255,255,255,0.04); display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: all 180ms; }
.admin-signout-btn:hover { background: rgba(200,16,46,0.15); border-color: var(--red-border); color: var(--red-bright); }
.modal-tabs { display: flex; flex-wrap: nowrap; gap: 4px; padding: 10px 16px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.modal-tab { padding: 0.34rem 0.75rem; border-radius: var(--r-full); border: 1px solid transparent; background: transparent; font-size: 0.74rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all 180ms; white-space: nowrap; flex-shrink: 0; }
.modal-tab.active { border-color: var(--red-border); background: rgba(200,16,46,0.1); color: var(--red-bright); }
/* ── compact admin login card ── */
.modal--compact { max-width: 380px !important; height: auto !important; max-height: 90vh !important; }
.modal--compact .modal-header { padding: 16px 22px 12px; }
.modal--compact .modal-header-text h3 { font-size: 1.1rem; }
.login-body { padding: 14px 24px 18px; display: flex; flex-direction: column; gap: 10px; }
.login-lock { font-size: 1.5rem; text-align: center; }
.login-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; text-align: center; margin: 0 0 2px; }
.login-hint  { text-align: center; font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.08em; }
#loginView .field input { padding: 0.5rem 0.85rem; font-size: 0.86rem; }
.form-body  { padding: 18px 24px; display: grid; gap: 12px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-bright); }
.field label .req { color: var(--red-bright); font-size: 0.7em; }
.field input,.field select,.field textarea { padding: 0.62rem 0.9rem; border-radius: var(--r-sm); border: 1px solid var(--border-sub); background: rgba(255,255,255,0.03); color: var(--text); outline: none; width: 100%; transition: border-color 200ms, background 200ms; font-size: 0.86rem; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: var(--red-border-s); background: rgba(200,16,46,0.04); }
.field select option { background: #1a0e10; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.drop-zone { border: 1.5px dashed rgba(200,16,46,0.3); border-radius: var(--r-md); padding: 28px 20px; text-align: center; background: rgba(200,16,46,0.04); cursor: pointer; transition: all 200ms; }
.drop-zone:hover,.drop-zone.hi { border-color: rgba(255,58,92,0.6); background: rgba(200,16,46,0.09); }
.drop-icon { font-size: 2.2rem; margin-bottom: 8px; }
.drop-zone h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.drop-zone p  { font-size: 0.78rem; color: var(--muted); }
input[type="file"] { display: none; }

/* ── Media preview carousel ── */
.media-preview { margin-top: 2px; }
.mp-stage {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mp-frame {
  flex: 1;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0a0507;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-sub);
}
.mp-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 180ms;
}
.mp-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.68);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--r-full);
  pointer-events: none;
}
.mp-nav {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-sub);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, transform 120ms;
}
.mp-nav:hover:not(:disabled) {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: #fff;
  transform: scale(1.08);
}
.mp-nav:disabled { opacity: 0.25; cursor: default; }
.mp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
}
.mp-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.mp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  padding: 0;
  transition: background 160ms, transform 160ms;
}
.mp-dot.active {
  background: var(--red-bright);
  transform: scale(1.3);
}
.mp-dot:hover:not(.active) { background: rgba(255,255,255,0.4); }
.mp-change {
  font-size: 0.72rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 140ms;
}
.mp-change:hover { color: var(--red-bright); }
.manage-item { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,255,255,0.03); border: 1px solid var(--border-sub); }
.manage-item > .btn-delete { align-self: center; }
.manage-item-title { font-size: 0.88rem; font-weight: 500; }
.manage-item-meta  { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.08em; margin-top: 3px; }
/* pending-event inner body: flex-column so actions always pin to the bottom */
.manage-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.manage-item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.btn-delete { padding: 0.38rem 0.85rem; border-radius: var(--r-full); border: 1px solid rgba(200,16,46,0.25); background: rgba(200,16,46,0.07); color: rgba(255,100,100,0.8); font-size: 0.72rem; font-weight: 600; cursor: pointer; transition: all 180ms; white-space: nowrap; }
.btn-delete:hover { background: rgba(200,16,46,0.18); border-color: rgba(255,58,92,0.4); color: var(--red-bright); }
.img-preview { display: none; margin-top: 10px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--red-border); }
.img-preview img { width: 100%; max-height: 180px; object-fit: cover; }
.publish-footer { padding: 0 26px 22px; display: flex; justify-content: flex-end; }

/* ── Admin panel: compact action buttons ── */
#adminOverlay .publish-footer .btn,
#adminOverlay #logoutBtn,
#adminOverlay #logoutBtn2 {
  padding: 0.52rem 1.4rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  height: auto !important;
  min-height: unset !important;
  width: auto !important;
  display: inline-flex !important;
  box-shadow: 0 3px 10px rgba(200,16,46,0.18) !important;
  border-radius: var(--r-full) !important;
}
#adminOverlay .publish-footer .btn:hover,
#adminOverlay #logoutBtn:hover,
#adminOverlay #logoutBtn2:hover {
  box-shadow: 0 5px 16px rgba(200,16,46,0.32) !important;
  transform: translateY(-1px);
}
.login-body { align-items: center; }

/* ── Admin Sign In + Contact Send Message — match auth-btn style ── */
.login-body .btn {
  width: 55% !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  background: linear-gradient(135deg, rgba(200,16,46,0.18) 0%, rgba(139,0,26,0.14) 100%) !important;
  color: #fff !important;
  border: 1.5px solid rgba(200,16,46,0.6) !important;
  border-radius: 10px !important;
  padding: 10px !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  box-shadow: 0 0 16px rgba(200,16,46,0.35), 0 3px 12px rgba(0,0,0,0.3) !important;
  animation: cta-pulse 2.6s ease-in-out infinite !important;
  height: auto !important; min-height: unset !important; justify-content: center !important;
}
.contact-footer .btn {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  background: linear-gradient(135deg, rgba(200,16,46,0.18) 0%, rgba(139,0,26,0.14) 100%) !important;
  color: #fff !important;
  border: 1.5px solid rgba(200,16,46,0.6) !important;
  border-radius: 10px !important;
  padding: 11px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  box-shadow: 0 0 16px rgba(200,16,46,0.35), 0 3px 12px rgba(0,0,0,0.3) !important;
  animation: cta-pulse 2.6s ease-in-out infinite !important;
  height: auto !important; min-height: unset !important; justify-content: center !important;
}
.login-body .btn:hover,
.contact-footer .btn:hover {
  animation: none !important;
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, rgba(200,16,46,0.38) 0%, rgba(139,0,26,0.30) 100%) !important;
  border-color: var(--red-bright) !important;
  box-shadow: 0 0 32px rgba(200,16,46,0.7), 0 8px 24px rgba(0,0,0,0.4) !important;
}


/* ══ § 22  EVENT DETAIL OVERLAY ══════════════════════════════ */
.event-detail-modal {
  width: min(1100px,100%);
  height: min(640px, 90vh);
  background: linear-gradient(135deg,#12070a,#19070b);
  border-radius: var(--r-xl);
  border: 1px solid var(--red-border);
  box-shadow: var(--shadow-red), 0 60px 120px rgba(0,0,0,0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.event-detail-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 0; min-height: 0; flex: 1; overflow: hidden; }
.event-detail-media { position: relative; background: var(--black-3); }
.event-detail-img-wrap { width: 100%; height: 100%; overflow: hidden; }
.event-detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Right column — flex column keeps action bar always visible */
.event-detail-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
/* top bar: category pill + close button */
.ed-topbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* scrollable area: title through content — grows to fill remaining space */
.event-detail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-detail-title { font-size: clamp(1.1rem,2vw,1.55rem); line-height: 1.2; }
.event-detail-meta { font-size: 0.84rem; color: var(--text-2); display: grid; gap: 3px; }
.event-detail-meta strong { color: var(--red-bright); }
.event-detail-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-detail-extra { font-size: 0.83rem; color: var(--text-2); line-height: 1.6; }
/* actions row */
.event-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.event-detail-actions .btn { min-height: 40px; font-size: 0.84rem; }
/* share popover */
.detail-share-panel { display: none; position: absolute; bottom: calc(100% + 8px); right: 0; background: #1e1014; border: 1px solid var(--red-border); border-radius: var(--r-md); padding: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.6); z-index: 20; white-space: nowrap; }
.detail-share-panel.open { display: flex; flex-direction: column; gap: 6px; }
.detail-share-panel a, .detail-share-panel button { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm); font-size: 0.84rem; font-weight: 500; text-decoration: none; color: var(--text); background: rgba(255,255,255,0.04); border: none; cursor: pointer; transition: background 160ms; width: 100%; }
.detail-share-panel a:hover, .detail-share-panel button:hover { background: rgba(200,16,46,0.18); }
.share-wrap { position: relative; }

/* when comments open, cap body height so panel gets room */
.event-detail-content.comments-open .event-detail-body {
  flex: 0 0 auto;
  max-height: 180px;
}
.event-detail-content.comments-open .ed-comments-panel {
  flex: 1;
  min-height: 0;
}

/* collapsible comment panel */
.ed-comments-panel {
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0;
  min-height: 0;
}
.ed-comments-panel.open { display: flex; }
.ed-comments-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px 6px; flex-shrink: 0;
}
.ed-comments-label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red-bright);
}
.ed-comments-panel .ev-comment-list {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 0 18px 6px;
}
.ed-comments-panel .ev-comment-form {
  flex-shrink: 0; padding: 8px 18px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
/* per-comment action row */
.ev-comment-actions {
  display: flex; gap: 10px; margin-top: 5px;
}
.ev-comment-act-btn {
  background: none; border: none; padding: 0;
  font-size: 0.72rem; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: color 140ms;
}
.ev-comment-act-btn:hover { color: var(--text-2); }
.ev-comment-act-btn.liked { color: #FF3A5C; }
@media (max-width: 680px) {
  .ed-comments-header { padding: 8px 14px 6px; }
  .ed-comments-panel .ev-comment-list { padding: 0 14px 6px; }
  .ed-comments-panel .ev-comment-form { padding: 8px 14px 10px; }
}

/* Comments: fixed box, list scrolls, form stays pinned */
.event-detail-comments {
  flex: 1 1 110px;
  min-height: 110px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 10px 20px 0;
  display: flex;
  flex-direction: column;
}
.event-detail-comments .t-label-red {
  flex-shrink: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.event-detail-comments .ev-comment-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 8px;
}
.event-detail-comments .ev-comment-form {
  flex-shrink: 0;
  padding-bottom: 12px;
}
.ev-comment-form { display: flex; gap: 8px; margin-top: 10px; }
.ev-comment-input { flex: 1; padding: 0.6rem 0.85rem; border-radius: var(--r-sm); border: 1px solid var(--border-sub); background: rgba(255,255,255,0.04); color: var(--text); font-size: 0.88rem; outline: none; min-width: 0; transition: border-color 0.15s; }
.ev-comment-input:focus { border-color: var(--red-border-s); }
.ev-comment-submit { padding: 0.6rem 1rem; border-radius: var(--r-sm); background: var(--red); color: #fff; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 160ms; border: none; }
.ev-comment-submit:hover { background: var(--red-bright); }


/* ══ § 22b  MODAL ACTION BAR (shared: event + talent detail) ═ */
.modal-action-bar {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  margin-top: 0;
  padding: 10px 18px;
  border-top: 1px solid var(--border-sub);
  border-bottom: 1px solid var(--border-sub);
  background: rgba(255,255,255,0.02);
}
/* liked state for card-action-btn used inside modal */
.modal-action-bar .card-action-btn.liked {
  background: rgba(200,16,46,0.18); color: #FF3A5C; border-color: rgba(200,16,46,0.4);
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.38rem 0.85rem;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms;
  border: 1px solid var(--border-sub);
  white-space: nowrap;
}
.action-btn-like {
  background: rgba(200,16,46,0.12);
  color: var(--red-bright);
  border-color: var(--red-border);
}
.action-btn-like:hover,
.action-btn-like.liked {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.action-btn-share {
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
}
.action-btn-share:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text);
  border-color: var(--border);
}

/* ══ § 23  FOOTER ════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: linear-gradient(to top,rgba(15,6,8,0.6),transparent); }
.footer-grid { width: var(--w); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; background: linear-gradient(90deg,#fff,#F2DEDE,var(--red-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0; }
.footer-brand p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.84rem; color: var(--muted); padding: 4px 0; transition: color 180ms; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { width: var(--w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.78rem; color: var(--muted); }
.footer-accent { height: 3px; margin-top: 24px; background: linear-gradient(90deg,var(--red-deep),var(--red),var(--red-bright),var(--red),var(--red-deep)); width: var(--w); margin-left: auto; margin-right: auto; border-radius: 2px; }


/* ══ § 24  TOAST ═════════════════════════════════════════════ */
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(10px); padding: 11px 22px; border-radius: var(--r-full); background: rgba(13,8,10,0.96); border: 1px solid var(--red-border); color: var(--text); font-size: 0.84rem; font-weight: 500; box-shadow: 0 8px 40px rgba(0,0,0,0.5), var(--glow); opacity: 0; pointer-events: none; z-index: 9999; transition: all 220ms cubic-bezier(.2,0,.2,1); white-space: nowrap; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ══ § 25  SCROLL REVEAL ══════════════════════════════════════ */
.reveal    { opacity: 0; transform: translateY(20px); transition: opacity 540ms ease, transform 540ms ease; }
.reveal.in { opacity: 1; transform: none; }


/* ══ § 26  MOBILE BOTTOM TAB BAR ════════════════════════════ */
.mobile-tab-bar { position: fixed; inset-inline: 0; bottom: 0; height: 58px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: linear-gradient(145deg,rgba(10,4,6,0.96),rgba(40,6,10,0.98)); border-top: 1px solid var(--red-border); box-shadow: 0 -18px 40px rgba(0,0,0,0.55); backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md); z-index: 999; }
.mobile-tab-link { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 40px; border-radius: 999px; background: transparent; color: var(--muted); font-size: 0.7rem; cursor: pointer; transition: background 0.18s ease-out, color 0.18s ease-out, transform 0.12s ease-out; }
.mobile-tab-icon { font-size: 1.1rem; line-height: 1; }
.mobile-tab-link.active { background: radial-gradient(circle at 50% 0%,rgba(255,58,92,0.18),rgba(10,4,6,0.9)); color: var(--red-bright); box-shadow: 0 0 22px rgba(200,16,46,0.55); transform: translateY(-1px); }
.mobile-tab-link:active { transform: translateY(0); }


/* ══ § 27  AUTH OVERLAY & MODAL ══════════════════════════════ */
.auth-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 9000; padding: 20px; animation: authFadeIn 0.35s ease; }
.auth-overlay.hidden { display: none; }
@keyframes authFadeIn { from{opacity:0} to{opacity:1} }
.auth-modal { background: linear-gradient(145deg,rgba(18,12,14,0.98) 0%,rgba(10,8,9,0.98) 100%); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 26px 28px 24px; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; animation: authSlideUp 0.38s cubic-bezier(0.22,1,0.36,1); position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06); }
@keyframes authSlideUp { from{opacity:0;transform:translateY(32px) scale(0.97)} to{opacity:1;transform:translateY(0) scale(1)} }
.auth-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.auth-gem {
  min-width: 44px; height: auto; padding: 7px 10px 6px;
  border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(145deg, #E8112A 0%, #C8102E 50%, #8B001A 100%);
  border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  box-shadow: 0 4px 14px rgba(200,16,46,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}
.auth-brand-name { font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.auth-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.auth-tab { flex: 1; background: transparent; border: none; color: rgba(255,255,255,0.5); font-size: 0.88rem; font-weight: 500; padding: 9px 0; border-radius: 7px; cursor: pointer; transition: all 0.22s ease; font-family: inherit; }
.auth-tab.active { background: linear-gradient(135deg, rgba(200,16,46,0.18) 0%, rgba(139,0,26,0.14) 100%); color: #fff; border: 1.5px solid rgba(200,16,46,0.6); box-shadow: 0 0 16px rgba(200,16,46,0.35), 0 3px 8px rgba(0,0,0,0.3); }
.auth-tab:hover:not(.active) { color: rgba(255,255,255,0.8); background: rgba(200,16,46,0.1); border-color: rgba(200,16,46,0.3); }
.auth-sub { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin: 0 0 12px; line-height: 1.5; }
.auth-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.auth-field label { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; text-transform: uppercase; }
.auth-req { color: var(--red-bright); }
.auth-field input, .auth-field select { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 9px 12px; color: #fff; font-size: 0.88rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; outline: none; width: 100%; box-sizing: border-box; appearance: none; -webkit-appearance: none; }
.auth-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.auth-field select option { background: #1a0a0e; color: #fff; }
.auth-field input:focus, .auth-field select:focus { border-color: rgba(255,58,92,0.6); background: rgba(200,16,46,0.07); box-shadow: 0 0 0 3px rgba(200,16,46,0.18); }
.auth-field input::placeholder { color: rgba(255,255,255,0.22); }
.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-pw-wrap { position: relative; }
.auth-pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.4; transition: opacity 0.2s; padding: 0; line-height: 1; }
.pw-toggle:hover { opacity: 0.9; }
.pw-strength { height: 3px; border-radius: 4px; margin-top: 6px; background: rgba(255,255,255,0.08); overflow: hidden; transition: all 0.3s; }
.pw-strength::after { content: ''; display: block; height: 100%; border-radius: 4px; transition: width 0.3s, background 0.3s; width: var(--strength,0%); background: var(--strength-color,transparent); }
.auth-error { font-size: 0.82rem; color: #ff6b6b; min-height: 18px; margin-bottom: 8px; line-height: 1.4; }
.auth-btn { width: 100%; display: block; text-align: center; background: linear-gradient(135deg, rgba(200,16,46,0.18) 0%, rgba(139,0,26,0.14) 100%); color: #fff; border: 1.5px solid rgba(200,16,46,0.6); border-radius: 10px; padding: 11px; font-size: 0.88rem; font-weight: 600; font-family: inherit; cursor: pointer; letter-spacing: 0.03em; transition: background 200ms, border-color 200ms, transform 180ms, box-shadow 200ms; margin-top: 4px; box-shadow: 0 0 16px rgba(200,16,46,0.35), 0 3px 12px rgba(0,0,0,0.3); animation: cta-pulse 2.6s ease-in-out infinite; }
.auth-btn:hover { animation: none; transform: translateY(-2px); background: linear-gradient(135deg, rgba(200,16,46,0.38) 0%, rgba(139,0,26,0.30) 100%); border-color: var(--red-bright); box-shadow: 0 0 32px rgba(200,16,46,0.7), 0 8px 24px rgba(0,0,0,0.4); }
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.auth-btn--half { width: 50%; display: block; margin-left: auto; margin-right: auto; }
.auth-switch { text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); margin: 10px 0 0; }
.auth-link { background: none; border: none; color: var(--red); cursor: pointer; font-size: inherit; font-family: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth-success-box  { text-align: center; padding: 10px 0 4px; }
.auth-success-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(45,198,83,0.12); border: 2px solid #2dc653; color: #2dc653; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.auth-success-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 10px; }
.auth-success-msg   { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin: 0 0 14px; }
.auth-success-msg strong { color: #fff; font-weight: 600; }
.auth-success-countdown { font-size: 0.78rem; color: rgba(255,255,255,0.3); letter-spacing: 0.03em; }
.auth-success-countdown span { color: var(--red); font-weight: 600; }

/* floating welcome panel fully retired — replaced by .user-pill */
.welcome-panel,
.welcome-panel.visible { display: none !important; }

/* ── User pill — inline in header, visible when logged in ── */
.user-pill {
  display: none; /* shown via JS */
  position: relative;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-full);
  border: 1px solid var(--red-border);
  background: rgba(200,16,46,0.08);
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: background 160ms, border-color 160ms;
}
.user-pill:hover { background: rgba(200,16,46,0.14); border-color: var(--red-border-s); }
.user-pill.open  { background: rgba(200,16,46,0.16); border-color: var(--red-border-s); }
.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-bright);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(200,16,46,0.35);
}
.user-pill-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}
.user-pill-caret {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 200ms;
}
.user-pill.open .user-pill-caret { transform: rotate(180deg); }

/* Dropdown menu */
.user-pill-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(14,8,11,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px;
  flex-direction: column;
  gap: 2px;
  z-index: 400;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}
.user-pill.open .user-pill-dropdown { display: flex; }
.user-pill-dd-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 140ms, color 140ms;
  width: 100%;
}
.user-pill-dd-item:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.user-pill-dd-signout { color: rgba(255,255,255,0.55); }
.user-pill-dd-signout:hover { background: rgba(200,16,46,0.12); color: var(--red-bright); }
.user-pill-dd-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 4px 0;
}

/* Mobile ≤600px */
@media (max-width: 600px) {
  .user-pill { padding: 4px 8px 4px 4px; gap: 5px; }
  .user-pill-avatar { width: 28px; height: 28px; font-size: 0.78rem; }
  .user-pill-name   { font-size: 0.75rem; }
  .user-pill-dropdown { right: 0; min-width: 160px; }
}

/* ── Search bar ── */
.search-bar-wrap { position: relative; margin-bottom: 16px; max-width: 520px; }
.search-bar {
  width: 100%; padding: 7px 14px 7px 34px; background: rgba(200,16,46,0.05);
  border: 1px solid var(--red-border); border-radius: var(--r-full); color: var(--text);
  font-size: 0.84rem; font-family: inherit; outline: none; box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(200,16,46,0.15); }
.search-bar::placeholder { color: var(--muted); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.95rem; pointer-events: none; }

/* ── Infinite scroll sentinel + loading dots ── */
.events-scroll-sentinel {
  width: 100%;
  min-height: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 8px;
}
.ev-loading-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.ev-loading-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  opacity: 0.5;
  animation: ev-dot-pulse 1.2s ease-in-out infinite;
}
.ev-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ev-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ev-dot-pulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.35; }
  40%            { transform: scale(1.15); opacity: 1; }
}

/* ── Share popup hover ── */
#sharePopup .share-opt:hover { background: rgba(255,255,255,0.07); }
/* ≤420px: tighten pill further */
@media (max-width: 420px) {
  .user-pill { padding: 3px 6px 3px 3px; gap: 4px; }
  .user-pill-avatar { width: 24px; height: 24px; font-size: 0.72rem; }
  .user-pill-name  { font-size: 0.7rem; }
}


/* ══ § 28  CONTACT SECTION ═══════════════════════════════════ */
.contact-section-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.03em; }
.contact-copy p  { color: var(--muted); line-height: 1.7; margin: 0 0 36px; font-size: 0.96rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; }
.contact-info-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin-bottom: 3px; }
.contact-info-val   { font-size: 0.9rem; color: #fff; font-weight: 500; }
.contact-form-wrap { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 20px; padding: 36px 32px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.contact-field label { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-req { color: var(--red-bright); }
.contact-field input,.contact-field select,.contact-field textarea { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 14px; color: #fff; font-size: 0.9rem; font-family: inherit; outline: none; transition: border-color 0.2s, background 0.2s; width: 100%; box-sizing: border-box; appearance: none; -webkit-appearance: none; }
.contact-field input:focus,.contact-field select:focus,.contact-field textarea:focus { border-color: var(--red-bright); background: rgba(255,255,255,0.07); }
.contact-field input::placeholder,.contact-field textarea::placeholder { color: rgba(255,255,255,0.22); }
.contact-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.contact-field select option { background: #111; color: #fff; }
.contact-field textarea { resize: vertical; min-height: 200px; line-height: 1.6; }
.contact-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-error { font-size: 0.82rem; color: #ff6b6b; min-height: 18px; margin-bottom: 10px; line-height: 1.4; }
.contact-success { display: flex; align-items: center; gap: 10px; background: rgba(45,198,83,0.08); border: 1px solid rgba(45,198,83,0.25); border-radius: 10px; padding: 12px 16px; font-size: 0.86rem; color: #2dc653; margin-bottom: 14px; line-height: 1.5; }
.contact-success span { font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.contact-submit { transition: opacity 0.2s, transform 0.15s !important; }
.contact-submit:hover    { opacity: 0.88; }
.contact-submit:active   { transform: scale(0.98); }
.contact-submit:disabled { opacity: 0.45; cursor: not-allowed; }
/* ── contact modal ── */
.contact-modal {
  max-width: 480px; width: 100%;
  background: linear-gradient(160deg, #221318 0%, #160d10 100%);
  border-radius: var(--r-xl);
  border: 1px solid rgba(200,16,46,0.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset,
              var(--shadow-red), 0 48px 96px rgba(0,0,0,0.75);
  overflow: hidden;
}
.contact-modal .modal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(200,16,46,0.18);
  background: linear-gradient(180deg, rgba(200,16,46,0.1) 0%, rgba(200,16,46,0.03) 100%);
}
.contact-modal .modal-header-text h3 { font-size: 1.25rem; color: #fff; }
.contact-modal .modal-header-text p  { color: rgba(255,220,222,0.55); }
.contact-form { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.contact-form .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.contact-form .contact-grid .field:nth-child(3),
.contact-form .contact-grid .field:nth-child(4) { grid-column: 1/-1; }
.contact-form .field label {
  display: block; font-size: 0.72rem; font-weight: 600;
  margin-bottom: 5px; color: rgba(255,210,215,0.8);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  width: 100%; padding: 0.68rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.055);
  color: #f5ecee; font-size: 0.9rem; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder { color: rgba(255,200,205,0.35); }
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus {
  border-color: rgba(255,58,92,0.6);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.18);
  background: rgba(200,16,46,0.07);
}
.contact-form .field select option { background: #1e1014; color: #f5ecee; }
.contact-form .field textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.contact-footer {
  margin-top: 6px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px; justify-content: space-between;
}
.contact-hint { font-size: 0.76rem; color: rgba(255,200,205,0.5); font-style: italic; }
.contact-status { font-size: 0.8rem; }
.contact-status.success { color: #4ade80; }
.contact-status.error   { color: #f97373; }


/* ══ § 29  RESPONSIVE BREAKPOINTS ══════════════════════════ */

/* ≤ 1100 px  tablet landscape */
@media (max-width: 1100px) {
  .events-grid { grid-template-columns: 1fr 1fr; }
  .events-grid .card-featured { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(3,1fr); }
  /* Nav: tighter link padding so 6 links still fit */
  .header-nav a { padding: 0.42rem 0.65rem; font-size: 0.8rem; }
  /* Shrink publish btn label slightly */
  .header-publish-btn { padding: 0.62rem 1rem !important; font-size: 0.78rem !important; }
}

/* ≤ 900 px */
@media (max-width: 900px) {
  .hero-title { letter-spacing: -0.035em; }
  .ecg-wrap   { height: 36px; }
}

/* ≤ 860 px  tablet portrait */
@media (max-width: 860px) {
  :root { --w: min(100%, calc(100% - 28px)); }
  .header-nav    { display: none; }
  .nav-hamburger { display: flex !important; } /* base style defined later in file — needs !important */
  .header-wrap   { gap: 12px; height: 60px; }
  .header-actions { margin-left: auto; }
  .hero-stats { display: none; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-values  { grid-template-columns: 1fr 1fr; }
  .about-stats-band { flex-wrap: wrap; }
  .asb-sep { display: none; }
  .asb-item { flex: 0 0 50%; padding: 24px 16px; }
  .ab-br { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Section action buttons: start shrinking at tablet */
  .section-head-actions .btn { font-size: 0.8rem !important; padding: 0.6rem 1.1rem !important; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .events-grid .card-featured { grid-column: 1/-1; grid-template-columns: 1fr; }
  /* tablets only (601–860px): 2-col grid with square image to save height */
  .media-grid { grid-template-columns: repeat(2,1fr); }
  .media-tile-img { aspect-ratio: 4 / 3; }
  .media-tile-body { padding: 10px 12px; gap: 5px; }
  .media-tile-actions { gap: 4px; }
  .media-tile-actions .card-action-btn { padding: 0.38rem 0.55rem; font-size: 0.72rem; gap: 3px; }
  .contact-section-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 64px 0; }
  .hero-sub { margin: 20px auto 32px; }
  /* event detail modal: bottom sheet */
  #eventDetailOverlay { align-items: flex-end; padding: 0; }
  .event-detail-modal {
    width: 100%; height: 92vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .event-detail-layout {
    display: flex; flex-direction: column;
    flex: 1; min-height: 0; overflow: hidden;
  }
  .event-detail-media { flex-shrink: 0; }
  .event-detail-img-wrap { height: 44vw; min-height: 160px; max-height: 220px; }
  .event-detail-content { flex: 1; min-height: 0; overflow: hidden; }
  .ed-topbar { padding: 10px 14px 8px; }
  .event-detail-body { padding: 10px 14px 0; }
  .event-detail-comments { padding: 8px 14px 0; }
  .event-detail-actions { gap: 8px; }
  .event-detail-actions .btn { flex: 1; justify-content: center; min-height: 46px; font-size: 0.85rem; }
  .ev-comment-input { font-size: 16px; }
  .ev-comment-form { padding-bottom: 4px; }
  /* talent detail modal: bottom sheet */
  #talentDetailOverlay { align-items: flex-end; padding: 0; }
  .talent-detail-modal {
    width: 100%; height: 92vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .talent-detail-layout { flex-direction: column; overflow-y: auto; }
  .talent-detail-media { width: 100%; height: 220px; flex-shrink: 0; }
  .talent-detail-photo-wrap { height: 220px; }
  .talent-detail-content { overflow: visible; flex: none; padding: 14px 18px 0; }
  .td-info-scroll { overflow: visible; min-height: auto; flex: none; }
  .td-comments-section { min-height: 0; flex: none; padding-bottom: 16px; }
  .mobile-tab-bar { display: flex; }
  body { padding-bottom: 70px; }
}

/* ≤ 768 px */
@media (max-width: 768px) {
  .mobile-tab-bar { display: flex; }
  /* admin & contact — centered card on phones */
  #adminOverlay,
  #contactOverlay { align-items: center; justify-content: center; padding: 16px; }
  #adminOverlay .modal { max-height: 88vh; overflow-y: auto; border-radius: var(--r-xl); width: 100%; }
  .contact-modal { border-radius: var(--r-xl); max-width: 100%; max-height: 88vh; overflow-y: auto; }
  .modal--compact { max-width: 100% !important; height: auto !important; }
  #adminOverlay .login-body .btn { width: 60% !important; }
  .form-row-3 { grid-template-columns: 1fr; }
  .contact-row-2 { grid-template-columns: 1fr; }
  .contact-form .contact-grid { grid-template-columns: 1fr; }
  .contact-section-grid { gap: 28px; }
  .card-featured .ev-img { min-height: 200px; }

  /* ── Auth modal: centered compact card (NOT bottom sheet) ── */
  #authOverlay {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  #authOverlay .auth-modal {
    width: calc(100% - 0px);
    max-width: 360px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 20px 18px 18px;
  }
  .auth-brand      { margin-bottom: 14px; }
  .auth-gem        { min-width: 36px; padding: 4px 7px 3px; border-radius: 8px; }
  .auth-brand-name { font-size: 0.92rem; }
  .auth-tabs       { margin-bottom: 12px; padding: 3px; }
  .auth-tab        { padding: 6px 0; font-size: 0.82rem; }
  .auth-sub        { font-size: 0.8rem; margin: 0 0 12px; line-height: 1.4; }
  .auth-field      { margin-bottom: 9px; gap: 4px; }
  .auth-field label{ font-size: 0.7rem; }
  .auth-field input{ padding: 8px 11px; font-size: 0.86rem; border-radius: 8px; }
  .auth-btn        { padding: 9px; font-size: 0.85rem; border-radius: 8px; margin-top: 2px; }
  .auth-switch     { margin: 9px 0 0; font-size: 0.76rem; }
  .auth-error      { font-size: 0.76rem; min-height: 14px; margin-bottom: 5px; }
  .auth-row-2      { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ≥ 769 px  hides mobile tab bar */
@media (min-width: 769px) {
  .mobile-tab-bar { display: none; }
}

/* Mobile avatar button — hidden on desktop, shown when logged in on mobile */
.mobile-avatar-btn { display: none; background: none; border: none; padding: 0; cursor: pointer; }

/* ≤ 860 px — hide all action buttons and user pill from header/sections */
@media (max-width: 860px) {
  /* Header: brand + theme toggle + hamburger only */
  #userPill                        { display: none !important; }
  .header-actions .header-publish-btn { display: none !important; }

  /* Show avatar button in header when logged in */
  .logged-in .mobile-avatar-btn   { display: flex; align-items: center; justify-content: center; }

  /* Section action buttons move into drawer */
  .suggest-event-btn,
  .nominate-talent-btn,
  .explore-events-btn              { display: none !important; }
}

/* ≤ 600 px  phones */
@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
  .events-grid .card-featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .about-pillars { gap: 14px; }
  .about-pillar { padding: 26px 20px; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .hero-actions .btn { justify-content: center; padding: 0.65rem 1.2rem; font-size: 0.88rem; }
  .hero-sub { font-size: 0.92rem; margin: 14px auto 24px; padding: 0 4px; }
  .header-actions .btn-ghost { display: none; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head-left h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .section-head-left p  { font-size: 0.85rem; }

  /* ── Mobile header: brand left, theme+hamburger right ── */
  .header-wrap    { gap: 8px; }
  .header-actions { flex-shrink: 0; gap: 8px; margin-left: auto; }
  #authOverlay .auth-modal { padding: 18px 14px 16px; max-width: 100%; }
  .auth-row-2  { grid-template-columns: 1fr 1fr; }
  .contact-form .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 22px 16px; }
  .contact-row-2 { grid-template-columns: 1fr; }
  .ecg-wrap   { height: 28px; margin: 4px 0; }
  .detail-share-panel { right: auto; left: 0; }
  .site-footer { padding: 44px 0 28px; }
  .footer-grid { gap: 28px; }
  .about-stat-card { padding: 18px 14px; }

  /* ── Section head: stack layout ── */
  .section-head { align-items: flex-start; gap: 12px; }
  .section-head-actions { width: 100% !important; margin-top: 4px; }

  /* ── Ensure all interactive elements meet touch target ── */
  .btn, button { min-height: 36px; }
  .action-btn  { min-height: 38px; padding: 0.45rem 1rem; }

  /* ── Modal action bar: stack on small screens ── */
  .modal-action-bar { flex-wrap: wrap; gap: 6px; }
  .modal-action-bar .action-btn { flex: 1; justify-content: center; }
}

/* ≤ 600 px — phones: 1-column, buttons always visible */
@media (max-width: 600px) {
  .media-grid { grid-template-columns: 1fr !important; }
  .media-tile-img { aspect-ratio: 16 / 9; }
  .media-tile-body { padding: 12px 14px; gap: 6px; }
  .media-tile-actions { opacity: 1; pointer-events: auto; transform: none; gap: 8px; }
  .media-tile-actions .card-action-btn { padding: 0.44rem 1rem; font-size: 0.82rem; gap: 5px; }

  /* ── Contact modal: centered card on phones ── */
  .contact-modal .modal-header { padding: 14px 16px 12px; }
  .contact-form         { padding: 14px 16px 18px; }
  .contact-footer       { flex-direction: column; align-items: stretch; gap: 8px; }
  .contact-hint         { text-align: center; }
  /* override the global width:auto rule so the button fills the row */
  .contact-footer .btn  { width: 100% !important; justify-content: center !important; }

  /* ── Admin modal: centered card on phones ── */
  #adminOverlay .modal-header  { padding: 14px 16px 12px; }
  #adminOverlay .form-body     { padding: 14px 16px; }
  #adminOverlay .login-body    { padding: 16px 16px 20px; align-items: stretch; }
  #adminOverlay .login-body .btn    { width: 100% !important; justify-content: center !important; }
  #adminOverlay .modal-tabs    { padding: 10px 14px; gap: 6px; }
  #adminOverlay .modal-tab     { padding: 0.36rem 0.65rem; font-size: 0.72rem; }
  #adminOverlay .publish-footer { padding: 0 16px 18px; flex-direction: column; align-items: stretch; }
  #adminOverlay .publish-footer .btn { width: 100% !important; justify-content: center !important; }
}

/* ≤ 420 px */
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .auth-row-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2rem,10vw,3.5rem); }
  .hero-sub   { font-size: 0.88rem; margin: 12px auto 20px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 0.6rem 1rem; font-size: 0.84rem; }

  /* Header: tighter gap + shrink controls */
  .header-wrap { gap: 6px; height: 56px; }
  .brand-gem   { min-width: 38px; padding: 5px 8px 4px; border-radius: 8px; }
  .brand-gem-em  { font-size: 0.88rem; }
  .brand-gem-sub { font-size: 0.36rem; }
  .nav-hamburger { width: 36px; height: 36px; }
  .header-notify-btn { width: 36px; height: 36px; }
  .theme-toggle { width: 30px !important; height: 30px !important; padding: 0 !important; border-radius: 50% !important; }
  .header-avatar-btn { width: 30px !important; height: 30px !important; font-size: 0.78rem !important; }
  /* Section action buttons: tightest at small phone — but preserve pill/circle overrides */
  .section-head-actions .btn { font-size: 0.74rem !important; padding: 0.5rem 0.7rem !important; }

  /* Section padding tighter */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head-left h2 { font-size: clamp(1.5rem, 8vw, 2rem); }

  /* Media grid: 1 column on small phones — buttons go back to full size */
  .media-grid { grid-template-columns: 1fr; }
  .media-tile-body { padding: 12px 14px; gap: 6px; }
  .media-tile-actions { gap: 6px; }
  .media-tile-actions .card-action-btn { padding: 0.42rem 0.85rem; font-size: 0.78rem; gap: 5px; }

  /* Talent grid: 1 column */
  .talents-grid { grid-template-columns: 1fr; }

  /* About cards tighter */
  .about-stat-card { padding: 16px 12px; }
  .about-stat-card .num { font-size: 1.8rem; }
  .site-footer { padding: 36px 0 24px; }

  /* Category strips: smaller pills */
  .cat-btn, .talent-cat-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }
}

/* ≤ 360 px  small phones (iPhone SE, budget Android) */
@media (max-width: 360px) {
  /* Header: absolute minimum */
  .header-wrap { gap: 4px; height: 52px; }
  .brand-gem   { min-width: 34px; padding: 4px 7px 3px; border-radius: 7px; }
  .brand-gem-em  { font-size: 0.8rem; }
  .brand-gem-sub { font-size: 0.32rem; }
  .nav-hamburger { width: 32px; height: 32px; gap: 4px; }
  .nav-hamburger span { width: 14px; }
  .header-notify-btn { width: 32px; height: 32px; }
  /* header-publish-btn is hidden in header on mobile — no resize needed */
  .theme-toggle { width: 28px !important; height: 28px !important; }
  .header-avatar-btn { width: 28px !important; height: 28px !important; font-size: 0.72rem !important; }

  /* Section buttons: smallest readable — preserve pill/circle overrides */
  .section-head-actions .btn { font-size: 0.7rem !important; padding: 0.45rem 0.55rem !important; }

  /* Section/hero spacing */
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 20px; gap: 8px; }
  .hero-title { font-size: clamp(1.7rem, 9vw, 2.4rem); }
  .hero-sub { font-size: 0.84rem; margin: 10px auto 18px; }
  .hero-actions .btn { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
  :root { --w: min(100%, calc(100% - 20px)); }

  /* Category strips */
  .cat-btn, .talent-cat-btn { padding: 0.38rem 0.65rem; font-size: 0.72rem; }

  /* About: single column on tiny screens */
  .about-cards { grid-template-columns: 1fr; }
  .footer-grid { gap: 16px; }
  .site-footer { padding: 28px 0 20px; }

  /* Event meta: stack on tiny screens */
  .ev-meta { grid-template-columns: 1fr; gap: 6px; }
  .ev-body { padding: 16px; }

  /* Cards */
  .card-body { padding: 14px; }
  .talent-card { padding: 0; }
  .talent-card-body { padding: 12px 14px 14px; }

  /* Modals: tighter outer padding for non-overlay modals */
  .modal { padding: 16px 14px; }
  #adminOverlay .modal,
  #contactOverlay .contact-modal { padding: 0; }
  #authOverlay .auth-modal { padding: 16px 12px 14px; }
  .auth-row-2  { grid-template-columns: 1fr; }
  .auth-brand  { margin-bottom: 10px; }
  .auth-tabs   { margin-bottom: 10px; }
  .auth-field  { margin-bottom: 7px; }
  .auth-sub    { margin: 0 0 8px; font-size: 0.76rem; }
  .contact-form-wrap { padding: 18px 14px; }
  .ev-body { padding: 14px; }
}

/* ≤ 860 px — hide all action buttons and user pill from header/sections (duplicate guard) */
@media (max-width: 860px) {
  /* Ensure hero title wrap doesn't create horizontal overflow */
  .hero-title-wrap { overflow: hidden; }
  /* Toast: keep inside viewport on mobile */
  #toast { max-width: calc(100vw - 32px); white-space: normal; text-align: center; bottom: 80px; }
}

/* ≥ 769 px — admin modal: fixed height so tab switching never resizes the panel */
@media (min-width: 769px) {
  #adminOverlay .modal {
    height: 86vh;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  /* login view — compact card, no fixed height */
  #adminOverlay .modal.modal--compact {
    height: auto !important;
    max-height: 90vh !important;
    overflow: visible !important;
  }
  /* header and tab bar stay locked at the top */
  #adminOverlay .modal-header { flex-shrink: 0; }
  #adminOverlay .modal-tabs   { flex-shrink: 0; }

  /* login view and publish view fill the remaining height */
  #adminOverlay #loginView,
  #adminOverlay #publishView {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* each tab content panel scrolls independently (NOT the tab bar itself) */
  #adminOverlay #publishView > div:not(.modal-tabs) {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  /* tab bar stays its natural height */
  #adminOverlay .modal-tabs { flex-shrink: 0; flex-grow: 0; flex-basis: auto; }
}

/* ≥ 1440 px  wide / large desktop */
@media (min-width: 1440px) {
  .events-grid { grid-template-columns: repeat(3, 1fr); }
  .talents-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ══ § 30  THEME TOGGLE BUTTON ══════════════════════════════ */
/* ── Language dropdown ── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 140ms, color 140ms, border-color 140ms;
  line-height: 1;
  white-space: nowrap;
}
.lang-current:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.lang-chevron {
  transition: transform 200ms;
  opacity: 0.45;
  flex-shrink: 0;
}
.lang-switcher.open .lang-current {
  color: var(--text);
  background: rgba(200,16,46,0.15);
  border-color: rgba(200,16,46,0.4);
}
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 5px;
  list-style: none;
  margin: 0;
  min-width: 130px;
  z-index: 9999;
  box-shadow: 0 10px 32px rgba(0,0,0,0.45);
}
.lang-switcher.open .lang-menu { display: block; }
.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 120ms, color 120ms;
  list-style: none;
  user-select: none;
}
.lang-opt:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-opt.active { color: #fff; background: rgba(200,16,46,0.2); }
.lang-full {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0;
  opacity: 0.55;
}
/* smaller screens: shrink the pill, keep it visible */
@media (max-width: 860px) {
  .lang-current { padding: 4px 8px; font-size: 0.68rem; gap: 3px; }
}
@media (max-width: 480px) {
  .lang-current { padding: 3px 7px; font-size: 0.65rem; }
  .lang-full { display: none; }
}

/* ── Mobile language row (inside mobile drawer) — suppressed; lang visible in header ── */
.mobile-lang-row {
  display: none;
}

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--red-border);
  background: rgba(200,16,46,0.07);
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(200,16,46,0.16); border-color: var(--red-border-s); color: var(--red-bright); transform: scale(1.07); }
/* dark mode: show moon, hide sun */
.theme-icon--sun  { display: none; }
.theme-icon--moon { display: block; }
/* light mode: show sun, hide moon */
[data-theme="light"] .theme-icon--sun  { display: block; }
[data-theme="light"] .theme-icon--moon { display: none; }


/* ══ § 31  LIGHT MODE ═══════════════════════════════════════ */
[data-theme="light"] {
  --black:        #FAF5F2;
  --black-2:      #F5EDE8;
  --black-3:      #EDE0DA;
  --black-4:      #E2D1CA;
  --text:         #18090C;
  --text-2:       #4A1B24;
  --muted:        #8A5560;
  --border:       rgba(200,16,46,0.16);
  --border-sub:   rgba(0,0,0,0.1);
  --glass-bg:     rgba(200,16,46,0.06);
  --glass-bg2:    rgba(200,16,46,0.11);
  --glass-shine:  rgba(255,255,255,0.7);
  --shadow-red:   0 8px 32px rgba(200,16,46,0.14);
  --shadow-deep:  0 4px 24px rgba(0,0,0,0.1);
  --glow:         0 0 40px rgba(200,16,46,0.12);
  --red-border:   rgba(200,16,46,0.22);
  --red-border-s: rgba(200,16,46,0.5);
  --red-dim:      rgba(200,16,46,0.07);
}

/* ── body & background ── */
[data-theme="light"] body { background: #FAF5F2; color: #18090C; }
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 70% 55% at 15%  -5%, rgba(200,16,46,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85%   5%, rgba(120, 8,20,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(100, 5,15,0.05) 0%, transparent 55%);
}

/* ── header ── */
[data-theme="light"] .site-header {
  background: rgba(250,245,242,0.94);
  border-bottom-color: rgba(200,16,46,0.14);
}
[data-theme="light"] .brand-w1 { color: #1a0a0e; }
[data-theme="light"] .brand-w2 {
  background: linear-gradient(120deg, #C8102E 0%, #7A0A1A 50%, #C8102E 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 4px rgba(200,16,46,0.25));
  animation: brand-me-shimmer 3.4s linear infinite;
}
[data-theme="light"] .header-nav a { color: #6B3840; }
[data-theme="light"] .header-nav a:hover { color: #18090C; background: rgba(0,0,0,0.05); }
[data-theme="light"] .header-nav a.active { color: var(--red); background: rgba(200,16,46,0.07); }
[data-theme="light"] .theme-toggle { border-color: rgba(0,0,0,0.14); background: rgba(0,0,0,0.04); color: #6B3840; }
[data-theme="light"] .theme-toggle:hover { background: rgba(200,16,46,0.1); border-color: var(--red-border); color: var(--red); }

/* ── hero ── */
[data-theme="light"] .hero-orb-1 { background: rgba(200,16,46,0.09); }
[data-theme="light"] .hero-orb-2 { background: rgba(120,4,18,0.08);  }
[data-theme="light"] .hero-orb-3 { background: rgba(200,16,46,0.04); }
[data-theme="light"] .hw1 { color: #18090C; }
[data-theme="light"] .hw2 { color: #2D1015; }
[data-theme="light"] .hero-title-wrap::before {
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(200,16,46,0.1) 0%, transparent 72%);
}
[data-theme="light"] .hero-title-wrap::after  {
  background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(200,16,46,0.07) 0%, transparent 62%);
}
[data-theme="light"] .hero-sub { color: #5A2830; }

/* ── sections background ── */
[data-theme="light"] .events-section,
[data-theme="light"] .about-section,
[data-theme="light"] .countries-section { background: transparent; }

/* ── event cards ── */
[data-theme="light"] .ev-card {
  background: #FFFFFF;
  border-color: rgba(200,16,46,0.13);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
[data-theme="light"] .ev-card:hover {
  border-color: rgba(200,16,46,0.35);
  box-shadow: 0 8px 32px rgba(200,16,46,0.14), 0 4px 16px rgba(0,0,0,0.1);
}
[data-theme="light"] .ev-title { color: #18090C; }
[data-theme="light"] .ev-meta-item { color: #6B3840; }
[data-theme="light"] .ev-body { background: #FFFFFF; }
[data-theme="light"] .ev-date-day   { color: #C8102E; }
[data-theme="light"] .ev-date-month { color: #8A5560; }
[data-theme="light"] .card-featured .ev-body { background: #FFF8F6; }

/* ── section headings ── */
[data-theme="light"] .section-label { color: var(--red); }
[data-theme="light"] .section-title { color: #18090C; }
[data-theme="light"] .section-sub   { color: #6B3840; }

/* ── filter pills ── */
[data-theme="light"] .cat-pill {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.12);
  color: #6B3840;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
[data-theme="light"] .cat-pill:hover,
[data-theme="light"] .cat-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── event detail modal ── */
[data-theme="light"] .event-detail-modal {
  background: #FFFFFF;
  border-color: rgba(200,16,46,0.2);
}
[data-theme="light"] .event-detail-content { background: #FFFFFF; }
[data-theme="light"] .event-detail-title   { color: #18090C; }
[data-theme="light"] .event-detail-meta    { color: #4A1B24; }
[data-theme="light"] .event-detail-desc    { color: #6B3840; }
[data-theme="light"] .event-detail-extra   { color: #4A1B24; }
[data-theme="light"] .event-detail-comments { border-top-color: rgba(0,0,0,0.1); }
[data-theme="light"] .ev-comment-item { background: #FAF5F2; border-radius: var(--r-sm); padding: 8px 10px; }
[data-theme="light"] .ev-comment-author { color: #18090C; }
[data-theme="light"] .ev-comment-text   { color: #4A1B24; }
[data-theme="light"] .ev-comment-time   { color: #8A5560; }
[data-theme="light"] .ev-comment-input {
  background: #F5EDE8; border-color: rgba(0,0,0,0.14); color: #18090C;
}
[data-theme="light"] .ev-comment-input::placeholder { color: #8A5560; }
[data-theme="light"] .ev-comment-input:focus { border-color: var(--red); background: #FFF; }

/* ── share panel ── */
[data-theme="light"] .detail-share-panel {
  background: #FFFFFF;
  border-color: rgba(200,16,46,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}
[data-theme="light"] .detail-share-panel a,
[data-theme="light"] .detail-share-panel button {
  color: #18090C;
  background: rgba(0,0,0,0.03);
}
[data-theme="light"] .detail-share-panel a:hover,
[data-theme="light"] .detail-share-panel button:hover { background: rgba(200,16,46,0.08); }

/* ── admin + auth modals ── */
[data-theme="light"] .modal {
  background: #FFFFFF;
  border-color: rgba(200,16,46,0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
[data-theme="light"] .modal-header {
  background: #FAF5F2;
  border-bottom-color: rgba(200,16,46,0.14);
}
[data-theme="light"] .modal-header-text h3 { color: #18090C; }
[data-theme="light"] .modal-header-text p  { color: #8A5560; }
[data-theme="light"] .modal-close { border-color: rgba(0,0,0,0.12); color: #6B3840; background: rgba(0,0,0,0.04); }
[data-theme="light"] .modal-close:hover { background: rgba(200,16,46,0.1); color: var(--red); }
[data-theme="light"] .modal-tabs { border-bottom-color: rgba(0,0,0,0.1); }
[data-theme="light"] .modal-tab { color: #6B3840; }
[data-theme="light"] .modal-tab.active { background: rgba(200,16,46,0.08); color: var(--red); }

/* ── auth modal ── */
[data-theme="light"] .auth-overlay { background: rgba(250,240,238,0.88); }
[data-theme="light"] .auth-modal {
  background: #FFFFFF;
  border-color: rgba(200,16,46,0.22);
  box-shadow: 0 0 0 1px rgba(200,16,46,0.12), 0 0 40px rgba(200,16,46,0.1), 0 20px 60px rgba(0,0,0,0.1);
}
[data-theme="light"] .auth-title,
[data-theme="light"] .auth-sub { color: #18090C; }
[data-theme="light"] .auth-field input { background: #FDF5F5; border-color: rgba(200,16,46,0.18); color: #18090C; }
[data-theme="light"] .auth-field input:focus { border-color: var(--red-bright); background: #fff; }
[data-theme="light"] .auth-field label { color: var(--red); }
[data-theme="light"] .auth-tabs { background: rgba(200,16,46,0.06); }
[data-theme="light"] .auth-switch { color: rgba(74,27,36,0.5); }

/* ── contact modal ── */
[data-theme="light"] .contact-modal {
  background: #FFFFFF;
  border-color: rgba(200,16,46,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
[data-theme="light"] .contact-modal .modal-header {
  background: linear-gradient(180deg, rgba(200,16,46,0.06) 0%, rgba(200,16,46,0.01) 100%);
  border-bottom-color: rgba(200,16,46,0.14);
}
[data-theme="light"] .contact-form .field label    { color: rgba(74,27,36,0.85); }
[data-theme="light"] .contact-form .field input,
[data-theme="light"] .contact-form .field select,
[data-theme="light"] .contact-form .field textarea {
  background: #F5EDE8; border-color: rgba(0,0,0,0.13); color: #18090C;
}
[data-theme="light"] .contact-form .field input::placeholder,
[data-theme="light"] .contact-form .field textarea::placeholder { color: rgba(74,27,36,0.45); }
[data-theme="light"] .contact-form .field input:focus,
[data-theme="light"] .contact-form .field select:focus,
[data-theme="light"] .contact-form .field textarea:focus {
  border-color: var(--red); background: #FFF; box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}
[data-theme="light"] .contact-form .field select option { background: #FFF; color: #18090C; }
[data-theme="light"] .contact-hint { color: rgba(74,27,36,0.55); }

/* ── form fields in admin ── */
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  background: #F5EDE8; border-color: rgba(0,0,0,0.13); color: #18090C;
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .field textarea:focus {
  background: #FFF; border-color: rgba(200,16,46,0.45);
}
[data-theme="light"] .field select option { background: #FFF; color: #18090C; }
[data-theme="light"] .field label { color: var(--red); }
[data-theme="light"] .login-body  { background: #FFFFFF; }
[data-theme="light"] .login-title { color: #18090C; }
[data-theme="light"] .login-hint  { color: #8A5560; }
[data-theme="light"] .form-body   { background: #FFFFFF; }
[data-theme="light"] .t-label-red { color: var(--red); }

/* ── drop zone ── */
[data-theme="light"] .drop-zone {
  border-color: rgba(200,16,46,0.25);
  background: rgba(200,16,46,0.03);
  color: #6B3840;
}
[data-theme="light"] .drop-zone:hover { background: rgba(200,16,46,0.07); }

/* ── media section ── */
[data-theme="light"] .media-tile { background: #FFFFFF; }

/* ── about section ── */
[data-theme="light"] .about-card {
  background: #FFFFFF;
  border-color: rgba(200,16,46,0.13);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── countries section ── */
[data-theme="light"] .country-card {
  background: #FFFFFF;
  border-color: rgba(200,16,46,0.13);
  color: #18090C;
}
[data-theme="light"] .country-card:hover { border-color: var(--red-border-s); }

/* ── mobile tab bar ── */
[data-theme="light"] .mobile-tab-bar {
  background: rgba(250,245,242,0.97);
  border-top-color: rgba(200,16,46,0.14);
}
[data-theme="light"] .mobile-tab-link { color: #8A5560; }
[data-theme="light"] .mobile-tab-link.active { color: var(--red); }

/* ── footer ── */
[data-theme="light"] .site-footer {
  background: #F0E6E1;
  border-top-color: rgba(200,16,46,0.16);
}
[data-theme="light"] .footer-brand p  { color: #6B3840; }
[data-theme="light"] .footer-col a    { color: #8A5560; }
[data-theme="light"] .footer-col a:hover { color: #18090C; }
[data-theme="light"] .footer-bottom   { color: #8A5560; border-top-color: rgba(0,0,0,0.08); }
[data-theme="light"] .footer-brand-name {
  background: linear-gradient(90deg, #18090C, #4A1B24, var(--red));
  -webkit-background-clip: text; background-clip: text;
}

/* ── overlay backdrop ── */
[data-theme="light"] .overlay { background: rgba(100,40,50,0.55); }

/* ── pills ── */
[data-theme="light"] .pill { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: #6B3840; }
[data-theme="light"] .pill-red { background: rgba(200,16,46,0.09); color: var(--red); }

/* ── toast ── */
[data-theme="light"] #toast {
  background: #18090C;
  color: #FFF;
}

/* ── manage items ── */
[data-theme="light"] .manage-item {
  background: #F5EDE8;
  border-color: rgba(200,16,46,0.12);
}
[data-theme="light"] .manage-item-title { color: #18090C; }
[data-theme="light"] .manage-item-meta  { color: #6B3840; }

/* ── section separator lines ── */
[data-theme="light"] .section-divider { border-color: rgba(200,16,46,0.1); }


/* ════════════════════════════════════════════════════════════
   TALENT & EXCELLENCE STYLES
   ════════════════════════════════════════════════════════════ */

/* ── Category filter strip ── */
.talent-cat-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.talent-cat-strip::-webkit-scrollbar { display: none; }
.talent-cat-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border-sub);
  background: rgba(255,255,255,0.03);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 180ms;
  position: relative;
  overflow: hidden;
}
.talent-cat-btn:hover  { border-color: var(--red-border); background: var(--red-dim); color: var(--text-2); }
.talent-cat-btn.active { border-color: var(--red-border-s); background: rgba(200,16,46,0.12); color: var(--red-bright); font-weight: 600; box-shadow: 0 0 24px rgba(200,16,46,0.2); }
.talent-cat-btn::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--red-bright), transparent); transform: scaleX(0); transform-origin: center; transition: transform 180ms ease-out; }
.talent-cat-btn.active::after { transform: scaleX(1); }

/* ── Talent grid ── */
.talents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Talent card ── */
.talent-card {
  background: var(--glass-bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  display: flex;
  flex-direction: column;
}
@media (hover: hover) {
  .talent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-red);
    border-color: var(--red-border-s);
  }
}
.talent-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--black-3);
  overflow: hidden;
}
.talent-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
@media (hover: hover) { .talent-card:hover .talent-card-photo img { transform: scale(1.04); } }
.talent-card-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--black-3), var(--black-4));
  color: var(--muted);
}
.talent-cat-badge {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
}
/* badge floats over photo on talent cards */
.talent-card-photo .talent-cat-badge {
  position: absolute;
  top: 10px; left: 10px;
}
.cat-student      { background: #1565C0; }
.cat-university   { background: #6A1B9A; }
.cat-startup      { background: #00695C; }
.cat-entrepreneur { background: #E65100; }
.cat-fashion      { background: #AD1457; }
.cat-food         { background: #558B2F; }
.cat-sports       { background: #0277BD; }
.cat-arts         { background: #4E342E; }

.talent-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.talent-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
}
.talent-card-location  { font-size: 0.78rem; color: var(--muted); }
.talent-card-achievement {
  font-size: 0.81rem;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.4;
  flex: 1;
}
.talent-card-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border-sub);
  font-size: 0.8rem;
  color: var(--muted);
}
.talent-card-footer button {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 2px 0;
}
.talent-card-footer button:hover { color: var(--red-bright); }
.talent-card-footer .tlc-liked   { color: var(--red-bright); }

/* ── Empty / loading states ── */
.talent-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Talent detail modal ── */
.talent-detail-modal {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: min(880px, calc(100vw - 40px));
  height: min(600px, 88vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top bar: category pill + name + close button */
.td-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-sub);
  flex-shrink: 0;
  min-width: 0;
}
.td-topbar-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  color: var(--text);
}
.td-close-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-sub);
  background: rgba(0,0,0,0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-2);
  transition: all 160ms;
}
.td-close-btn:hover { background: rgba(200,16,46,0.35); border-color: var(--red-border); color: #fff; }

/* Two-column body */
.talent-detail-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Left: photo fills full column height */
.talent-detail-media { flex-shrink: 0; width: 260px; }
.talent-detail-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--black-3);
  overflow: hidden;
}
.talent-detail-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Scrollable info wrapper inside talent detail — shrinks so action bar stays visible */
.td-info-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 4px;
}

/* Right: flex column — info at top, comments scroll at bottom */
.talent-detail-content {
  flex: 1;
  padding: 16px 22px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* Comments section: fixed height box — never grows */
.td-comments-section {
  flex: 1 1 110px;
  min-height: 110px;
  overflow: hidden;           /* section box never changes size */
  border-top: 1px solid var(--border-sub);
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.td-comments-label {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 8px;
}
/* Only the list scrolls — form stays pinned at the bottom */
.td-comments-section .ev-comment-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 8px;
}
.td-comments-section .ev-comment-form {
  flex-shrink: 0;
  padding-bottom: 12px;
}
.talent-detail-location   { color: var(--muted); font-size: 0.83rem; margin-top: 3px; }
.talent-detail-institution { color: var(--text-2); font-size: 0.85rem; margin-top: 2px; }
.talent-achievement-box {
  margin: 10px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--red);
  background: var(--glass-bg);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#tdAchievement {
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.achievement-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.talent-detail-bio {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.talent-website-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.83rem;
  color: var(--red-bright);
  border-bottom: 1px solid rgba(255,58,92,0.35);
  transition: border-color 0.2s;
}
.talent-website-link:hover { border-color: var(--red-bright); }

/* ── Contact row (events + talents detail modals) ── */
.detail-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--glass-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border-sub);
}
.detail-contact-item {
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.detail-contact-item:empty { display: none; }
.detail-contact-link {
  color: var(--red-bright);
  border-bottom: 1px solid rgba(255,58,92,0.3);
  transition: border-color 0.2s;
}
.detail-contact-link:hover { border-color: var(--red-bright); }
[data-theme="light"] .detail-contact-row { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .detail-contact-item { color: #4A2B30; }

/* ── Admin talent list ── */
.admin-talent-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.admin-talent-photo {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--black-3);
}
.admin-talent-info  { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-talent-name  { font-weight: 600; font-size: 0.93rem; }
.admin-talent-meta  { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.admin-talent-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.btn-approve {
  background: rgba(0,120,60,0.25); color: #4CAF50;
  border: 1px solid rgba(0,200,80,0.25);
  border-radius: var(--r-sm); padding: 5px 14px; font-size: 0.8rem; cursor: pointer; transition: background 0.2s;
}
.btn-approve:hover { background: rgba(0,120,60,0.45); }
.btn-reject {
  background: rgba(180,10,30,0.2); color: var(--red-bright);
  border: 1px solid var(--red-border);
  border-radius: var(--r-sm); padding: 5px 14px; font-size: 0.8rem; cursor: pointer; transition: background 0.2s;
}
.btn-reject:hover { background: rgba(180,10,30,0.4); }
.btn-edit {
  background: rgba(100,100,200,0.15); color: #a5b4fc;
  border: 1px solid rgba(100,100,200,0.3);
  border-radius: var(--r-sm); padding: 5px 14px; font-size: 0.8rem; cursor: pointer; transition: background 0.2s;
}
.btn-edit:hover { background: rgba(100,100,200,0.3); }

/* ── Pending badge on tab button ── */
.pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--red-bright);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(200,16,46,0.3);
  animation: pls 2.5s ease infinite;
}

/* AI moderation badges in admin pending tab */
.ai-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 700; font-family: var(--font-mono);
  padding: 2px 8px; border-radius: var(--r-full);
  white-space: nowrap; flex-shrink: 0;
}
.ai-badge--clean {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.ai-badge--flagged {
  background: rgba(200,16,46,0.15);
  color: #FF3A5C;
  border: 1px solid rgba(200,16,46,0.45);
  animation: pls 2.5s ease infinite;
}

/* ── Admin member rows (Members tab) ── */
.admin-member-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border-sub); }
.admin-member-row:last-child { border-bottom:none; }
.admin-member-avatar { width:34px; height:34px; border-radius:50%; background:rgba(200,16,46,0.18); color:var(--red-bright); display:flex; align-items:center; justify-content:center; font-size:0.9rem; font-weight:700; flex-shrink:0; }
.admin-member-info { flex:1; min-width:0; }
.admin-member-name  { font-size:0.85rem; font-weight:600; }
.admin-member-email { font-size:0.73rem; color:var(--muted); font-family:var(--font-mono); }
.admin-member-addr  { font-size:0.72rem; color:var(--muted); margin-top:1px; }
.admin-member-badge { font-size:0.68rem; font-family:var(--font-mono); color:var(--muted); flex-shrink:0; }

/* ── Admin broadcast / Notify tab ── */
.bc-audience { display:flex; gap:6px; margin-bottom:4px; }
.bc-aud-btn {
  padding:0.38rem 1.1rem; border-radius:var(--r-full); font-size:0.78rem; font-weight:600;
  border:1px solid var(--border-sub); background:transparent; color:var(--muted); cursor:pointer; transition:all 160ms;
}
.bc-aud-btn.active { background:rgba(200,16,46,0.12); border-color:var(--red-border); color:var(--red-bright); }
.bc-aud-btn:hover:not(.active) { border-color:rgba(255,255,255,0.2); color:var(--text-2); }
.bc-search { width:100%; padding:8px 12px; border-radius:var(--r-sm); border:1px solid var(--border-sub); background:rgba(255,255,255,0.04); color:var(--text); font-size:0.82rem; margin-bottom:8px; }
.bc-search:focus { outline:none; border-color:var(--red-border); }
.bc-select-bar { display:flex; align-items:center; justify-content:space-between; padding:4px 0 8px; }
.bc-chk-label { display:flex; align-items:center; gap:6px; font-size:0.78rem; color:var(--text-2); cursor:pointer; }
.bc-member-list { max-height:200px; overflow-y:auto; border:1px solid var(--border-sub); border-radius:var(--r-sm); padding:4px 0; background:rgba(0,0,0,0.15); }
.bc-member-row {
  display:flex; align-items:center; gap:10px;
  padding:8px 12px; cursor:pointer; transition:background 120ms;
}
.bc-member-row:hover { background:rgba(255,255,255,0.04); }
.bc-member-row input[type="checkbox"] { accent-color:var(--red-bright); flex-shrink:0; width:15px; height:15px; cursor:pointer; }
.bc-avatar { width:28px; height:28px; border-radius:50%; background:rgba(200,16,46,0.15); color:var(--red-bright); display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; flex-shrink:0; }
.bc-info { flex:1; min-width:0; }
.bc-name  { font-size:0.8rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bc-email { font-size:0.7rem; color:var(--muted); font-family:var(--font-mono); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ── Admin confirm dialog ── */
.admin-confirm {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: inherit;
}
.admin-confirm-card {
  background: #141014;
  border: 1px solid var(--red-border);
  border-radius: var(--r-lg);
  padding: 24px 26px 20px;
  width: min(340px, 88%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: authSlideUp 0.22s cubic-bezier(0.22,1,0.36,1);
}
.admin-confirm-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-align: center;
}
.admin-confirm-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -6px 0 0;
  text-align: center;
}
.admin-confirm-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  display: block;
  margin-bottom: 6px;
}
.admin-confirm-reason {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-sub);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.8rem;
  padding: 8px 12px;
  resize: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 150ms;
}
.admin-confirm-reason:focus { border-color: var(--red-border-s); outline: none; }
.admin-confirm-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.btn-conf-cancel {
  padding: 0.42rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border-sub);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
}
.btn-conf-cancel:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-conf-ok {
  padding: 0.42rem 1.2rem;
  border-radius: var(--r-full);
  border: none;
  background: #22a85a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
}
.btn-conf-ok:hover { background: #1d9450; }
.btn-conf-ok.is-reject { background: transparent; color: var(--red-bright); border: 1px solid var(--red-border); }
.btn-conf-ok.is-reject:hover { background: var(--red-bright); color: #fff; border-color: var(--red-bright); }

/* ── Mobile ── */
@media (max-width: 860px) {
  #talentDetailOverlay   { align-items: flex-end; padding: 0; }
  .talent-detail-modal   { width: 100%; height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .talent-detail-layout  { flex-direction: column; overflow-y: auto; }
  .talent-detail-media   { width: 100%; flex-shrink: 0; }
  .talent-detail-photo-wrap { height: 52vw; min-height: 180px; max-height: 240px; }
  .talent-detail-content { overflow: visible; padding: 16px 16px 0; }
  .td-info-scroll        { overflow: visible; min-height: auto; flex: none; }
  .td-comments-section   { overflow-y: visible; flex: none; border-top: 1px solid var(--border-sub); }
  .talents-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

/* ── Light mode ── */
[data-theme="light"] .talent-cat-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); color: #6B3840; }
[data-theme="light"] .talent-cat-btn:hover  { border-color: var(--red-border-s); background: rgba(200,16,46,0.06); color: var(--red); }
[data-theme="light"] .talent-cat-btn.active { background: rgba(200,16,46,0.1); color: var(--red); border-color: var(--red-border-s); box-shadow: 0 0 20px rgba(200,16,46,0.15); }
[data-theme="light"] .talent-card { background: #F5EDE8; border-color: rgba(200,16,46,0.12); }
[data-theme="light"] .talent-card-name        { color: #18090C; }
[data-theme="light"] .talent-card-achievement { color: #4A2B30; }
[data-theme="light"] .talent-card-footer      { border-top-color: rgba(200,16,46,0.1); color: #8A5560; }
[data-theme="light"] .talent-detail-modal     { background: #FDF5F2; border-color: rgba(200,16,46,0.12); }
[data-theme="light"] .td-topbar              { border-bottom-color: rgba(200,16,46,0.1); }
[data-theme="light"] .td-topbar-name         { color: #18090C; }
[data-theme="light"] .td-close-btn           { background: rgba(0,0,0,0.06); color: #4A2B30; border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .td-comments-section    { border-top-color: rgba(200,16,46,0.1); }
[data-theme="light"] .talent-achievement-box  { background: rgba(200,16,46,0.04); }
[data-theme="light"] .talent-detail-bio       { color: #4A2B30; }
[data-theme="light"] .admin-talent-item       { background: #F5EDE8; border-color: rgba(200,16,46,0.12); }

/* ── Verified badge ── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FFD700;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--r-full);
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: middle;
}
.verified-badge svg { flex-shrink: 0; }
[data-theme="light"] .verified-badge { color: #B8860B; background: rgba(184,134,11,0.1); border-color: rgba(184,134,11,0.3); }


/* ════════════════════════════════════════════════════════════
   SKELETON LOADING
   ════════════════════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--r-sm);
}
.skeleton-card {
  background: var(--glass-bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.skeleton-img  { width: 100%; aspect-ratio: 16/9; }
.skeleton-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 12px; border-radius: var(--r-full); }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
/* talent skeleton uses square aspect */
.skeleton-card.talent .skeleton-img { aspect-ratio: 1/1; }

[data-theme="light"] .skeleton {
  background: linear-gradient(90deg,
    rgba(0,0,0,0.05) 25%,
    rgba(0,0,0,0.10) 50%,
    rgba(0,0,0,0.05) 75%);
  background-size: 600px 100%;
}
[data-theme="light"] .skeleton-card { background: #F5EDE8; border-color: rgba(200,16,46,0.1); }


/* ════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════ */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  text-align: center;
  gap: 12px;
}
.empty-state-icon {
  font-size: 3rem;
  opacity: 0.7;
  line-height: 1;
}
.es-beat {
  display: inline-block;
  animation: es-beat 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes es-beat {
  0%   { transform: scale(1);    }
  15%  { transform: scale(1.38); }
  30%  { transform: scale(0.94); }
  45%  { transform: scale(1.22); }
  60%  { transform: scale(0.98); }
  75%  { transform: scale(1.06); }
  100% { transform: scale(1);    }
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0.7;
}
.empty-state-sub {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.6;
}


/* ════════════════════════════════════════════════════════════
   FORM VALIDATION
   ════════════════════════════════════════════════════════════ */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red-bright) !important;
  box-shadow: 0 0 0 3px rgba(255,58,92,0.15);
}
.field.has-error label { color: var(--red-bright); }
.field-error-msg {
  font-size: 0.75rem;
  color: var(--red-bright);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.field.has-success input,
.field.has-success select,
.field.has-success textarea {
  border-color: rgba(76,175,80,0.6) !important;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.field.shake { animation: shake 0.35s ease; }


/* ════════════════════════════════════════════════════════════
   MOBILE NAV HAMBURGER + DRAWER
   ════════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: var(--r-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  flex-shrink: 0;
  touch-action: manipulation;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--red-bright);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* My Submissions — envelope icon button with notification badge */
.header-subs-btn {
  display: none; /* shown when body.logged-in */
  position: relative;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background 160ms, border-color 160ms, color 160ms;
}
.header-subs-btn:hover  {
  background: rgba(255,255,255,0.11);
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}
.header-subs-btn:active { background: rgba(200,16,46,0.15); border-color: rgba(200,16,46,0.3); }
/* ring pulse when badge is active */
.header-subs-btn.has-notif {
  border-color: rgba(200,16,46,0.45);
  background: rgba(200,16,46,0.08);
  animation: subs-ring 2.6s ease-in-out infinite;
}
@keyframes subs-ring {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
  50%      { box-shadow: 0 0 0 4px rgba(200,16,46,0.22); }
}
body.logged-in .header-subs-btn { display: flex; }
/* badge */
.subs-notif-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 17px; height: 17px;
  background: var(--red-bright);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 2px solid var(--black);
  pointer-events: none;
  animation: badge-pop 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes badge-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Glass envelope notification button — mobile header centre */
.header-notify-btn {
  display: none; /* shown via JS on mobile */
  position: relative;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: var(--r-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background 160ms, border-color 160ms;
}
.header-notify-btn:active { background: rgba(200,16,46,0.22); }
.notify-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 16px; height: 16px;
  background: var(--red-bright);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 1.5px solid var(--black);
}
@media (max-width: 860px) {
  .header-notify-btn { display: flex; }
}

/* Mobile nav user profile */
.mobile-nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-sub);
  background: rgba(200,16,46,0.06);
}
.mobile-nav-user-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red-bright);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(200,16,46,0.35);
}
.mobile-nav-user-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.mobile-nav-user-sub  { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* Sign-out button — right side of user row */
.mobile-nav-signout {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.mobile-nav-signout:hover,
.mobile-nav-signout:active { background: rgba(200,16,46,0.15); border-color: rgba(200,16,46,0.35); color: var(--red-bright); }

/* Profile action buttons row in mobile drawer */
.mobile-nav-profile-actions {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-sub);
}
.mobile-nav-profile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: none;
  border: none;
  border-top: 1px solid var(--border-sub);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  transition: background 150ms;
}
.mobile-nav-profile-btn svg { color: var(--red-bright); flex-shrink: 0; }
.mobile-nav-profile-btn:hover,
.mobile-nav-profile-btn:active { background: rgba(200,16,46,0.08); }

/* My Submissions — centre row between links and actions */
.mobile-nav-subs-row {
  padding: 10px 22px;
  border-top: 1px solid var(--border-sub);
  border-bottom: 1px solid var(--border-sub);
}
.mobile-nav-subs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.mobile-nav-subs-btn:hover,
.mobile-nav-subs-btn:active { background: rgba(255,255,255,0.09); color: var(--text); border-color: rgba(255,255,255,0.2); }

/* backdrop */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-backdrop.open { display: block; opacity: 1; }

/* drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--black-2);
  border-left: 1px solid var(--border);
  z-index: 400;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-sub);
}
.mobile-nav-close {
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--text); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex: 1;
}
.mobile-nav-links a {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-sub);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-links a:hover {
  color: var(--text);
  background: var(--glass-bg);
}

.mobile-nav-actions {
  padding: 20px 22px 32px;
  border-top: 1px solid var(--border-sub);
}

/* backdrop visibility is handled by JS (.open class) — no static override needed */

/* light mode nav drawer */
[data-theme="light"] .mobile-nav-drawer  { background: #FDF5F2; border-left-color: rgba(200,16,46,0.12); }
[data-theme="light"] .mobile-nav-links a { color: #4A2B30; border-bottom-color: rgba(200,16,46,0.08); }
[data-theme="light"] .mobile-nav-links a:hover { background: rgba(200,16,46,0.04); color: #18090C; }
[data-theme="light"] .mobile-nav-head   { border-bottom-color: rgba(200,16,46,0.08); }
[data-theme="light"] .mobile-nav-actions { border-top-color: rgba(200,16,46,0.08); }
[data-theme="light"] .mobile-nav-signout { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.04); color: #6B3840; }
[data-theme="light"] .mobile-nav-subs-row { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .mobile-nav-subs-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #4A2B30; }