/* ==========================================================================
   UB3 — Unbound DAO 3
   Design tokens: deep blue / black / silver / white, glassmorphism.
   Display: Space Grotesk · Body: Inter · Data/labels: JetBrains Mono
   ========================================================================== */

:root {
  /* --- Color tokens --- */
  --black: #05070c;
  --bg: #05070c;
  --bg-alt: #0a0f1c;
  --bg-elevated: #0d1424;
  --blue-deep: #0b3d91;
  --blue-electric: #2f6fed;
  --cyan-glow: #38bdf8;
  --silver: #c7cdd6;
  --silver-dim: #8993a4;
  --white: #f5f7fa;

  --surface: rgba(245, 247, 250, 0.045);
  --surface-strong: rgba(245, 247, 250, 0.08);
  --surface-border: rgba(199, 205, 214, 0.14);
  --surface-border-strong: rgba(199, 205, 214, 0.28);

  --grad-primary: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-electric) 55%, var(--cyan-glow) 100%);
  --grad-text: linear-gradient(90deg, #ffffff 0%, #c7d6f5 45%, #38bdf8 100%);
  --grad-glass: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.01));

  /* --- Type tokens --- */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

  /* --- Layout tokens --- */
  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

[data-theme="light"] {
  --black: #f5f7fa;
  --bg: #f5f7fa;
  --bg-alt: #eaeef4;
  --bg-elevated: #ffffff;
  --white: #0a0f1c;
  --silver: #33394a;
  --silver-dim: #5b6478;
  --surface: rgba(10, 15, 28, 0.04);
  --surface-strong: rgba(10, 15, 28, 0.07);
  --surface-border: rgba(10, 15, 28, 0.1);
  --surface-border-strong: rgba(10, 15, 28, 0.2);
  --grad-text: linear-gradient(90deg, #0a0f1c 0%, #12306b 45%, #2f6fed 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 15% 0%, rgba(47,111,237,0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(56,189,248,0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; padding: 120px 0; }
.section-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Eyebrow / labels --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-glow);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan-glow);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--silver); font-size: 17px; max-width: 560px; }

/* --- Glass surface --- */
.glass {
  background: var(--grad-glass), var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(47,111,237,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(56,189,248,0.6); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--surface-border);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--surface-border-strong); background: var(--surface-strong); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan-glow);
  outline-offset: 3px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--surface-border);
}
[data-theme="light"] .navbar.scrolled { background: rgba(245,247,250,0.78); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; overflow: visible; flex-shrink: 0; }
.brand-mark {
  height: 32px; width: auto; max-width: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: visible;
}
.brand-mark img { height: 100%; width: auto; max-width: none; object-fit: contain; display: block; }
.brand-mark .logo-light { display: none; }
[data-theme="light"] .brand-mark .logo-dark { display: none; }
[data-theme="light"] .brand-mark .logo-light { display: block; }
.brand-name { color: var(--white); white-space: nowrap; flex-shrink: 0; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; color: var(--silver); transition: color 0.25s var(--ease); position: relative; }
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--cyan-glow); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center; color: var(--silver);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--cyan-glow); }
.theme-toggle svg { width: 17px; height: 17px; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-toggle { display: none; width: 38px; height: 38px; border-radius: 8px; background: var(--surface); border: 1px solid var(--surface-border); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 16px; height: 1.5px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ==========================================================================
   HERO — signature: live node-network canvas
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
#hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  margin-bottom: 28px; color: var(--silver);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-glow); box-shadow: 0 0 10px var(--cyan-glow); animation: pulse-dot 2.2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.05;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}
.hero p.lead { font-size: 18px; color: var(--silver); max-width: 560px; margin: 0 auto 38px; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--surface-border);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat { background: var(--bg); padding: 22px 12px; text-align: center; }
[data-theme="light"] .stat { background: var(--bg-elevated); }
.stat .num { font-family: var(--font-mono); font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--white); }
.stat .label { font-size: 12.5px; color: var(--silver-dim); margin-top: 4px; }

/* ==========================================================================
   ABOUT / MISSION / VISION / VALUES
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.about-copy p { color: var(--silver); font-size: 16.5px; margin-bottom: 18px; max-width: 560px; }
.mv-cards { display: grid; gap: 18px; }
.mv-card { padding: 26px 28px; }
.mv-card .mv-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.mv-card h3 { font-size: 18px; margin-bottom: 8px; }
.mv-card p { color: var(--silver); font-size: 14.5px; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.value-card { padding: 26px 22px; text-align: left; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.value-card:hover { transform: translateY(-6px); border-color: var(--surface-border-strong); }
.value-card .v-index { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-glow); margin-bottom: 14px; }
.value-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.value-card p { color: var(--silver-dim); font-size: 13.5px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; transition: transform 0.4s var(--ease), background 0.4s var(--ease); }
.service-card:hover { transform: translateY(-6px); background: var(--surface-strong); }
.service-card .s-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--surface-strong); border: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: center; color: var(--cyan-glow); }
.service-card h3 { font-size: 17px; }
.service-card ul { display: flex; flex-direction: column; gap: 8px; }
.service-card li { font-size: 13.5px; color: var(--silver-dim); padding-left: 14px; position: relative; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-electric); }

/* ==========================================================================
   WHY UB3
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { padding: 30px 26px; }
.why-card .w-num { font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--surface-border-strong); margin-bottom: 14px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--silver-dim); }

/* ==========================================================================
   ROADMAP
   ========================================================================== */
.roadmap { position: relative; }
.roadmap-progress { max-width: 620px; margin: 0 0 40px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--surface-border-strong); border-radius: var(--radius-md); }
.roadmap-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.roadmap-progress-label { font-size: 14px; font-weight: 700; color: var(--white); }
.roadmap-progress-pct { font-size: 14px; font-weight: 700; color: var(--cyan-glow); font-family: var(--font-mono); }
.roadmap-progress-track { height: 8px; border-radius: 999px; background: var(--surface-strong); overflow: hidden; }
.roadmap-progress-fill { height: 100%; border-radius: 999px; background: var(--grad-primary); transition: width 0.6s var(--ease); }
.roadmap-history { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.roadmap-history:not(:empty) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--surface-border); }
.roadmap-history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; color: var(--silver-dim); }
.roadmap-history-pct { font-family: var(--font-mono); font-weight: 600; flex-shrink: 0; }
.roadmap-track { position: relative; padding-left: 34px; }
.roadmap-track::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--blue-electric), transparent); }
.roadmap-item { position: relative; padding-bottom: 42px; }
.roadmap-item:last-child { padding-bottom: 0; }
.roadmap-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan-glow); box-shadow: 0 0 0 4px rgba(56,189,248,0.12); }
.roadmap-item .r-phase { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-glow); letter-spacing: 0.08em; margin-bottom: 6px; }
.roadmap-item h3 { font-size: 18px; margin-bottom: 8px; }
.roadmap-track-loading { color: var(--silver-dim); font-size: 14px; padding: 10px 0; }
.roadmap-item p { color: var(--silver); font-size: 14.5px; max-width: 620px; }
.roadmap-item-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; max-width: 620px; }
.roadmap-item-progress-track { flex: 1; height: 5px; border-radius: 999px; background: var(--surface-strong); overflow: hidden; }
.roadmap-item-progress-fill { height: 100%; border-radius: 999px; background: var(--grad-primary); transition: width 0.6s var(--ease); }
.roadmap-item-progress-pct { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--cyan-glow); flex-shrink: 0; }

/* ==========================================================================
   LEADERSHIP
   ========================================================================== */
.leaders-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.leader-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.leader-card:hover { transform: translateY(-6px); border-color: var(--surface-border-strong); }
.leader-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, rgba(47,111,237,0.28), rgba(56,189,248,0.08));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--white);
  position: relative;
  overflow: hidden;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.leader-body h3 { font-size: 16.5px; }
.verified-badge { width: 1.8em; height: 1.8em; flex-shrink: 0; display: block; }
.badge-btn { background: none; border: none; padding: 0; margin: 0; cursor: pointer; display: inline-flex; align-items: center; vertical-align: -0.32em; margin-left: 8px; }
.affiliate-badge { width: 1.8em; height: 1.8em; border-radius: 6px; background: #000; border: 1px solid rgba(255,255,255,0.25); overflow: hidden; margin-left: 6px; }
.affiliate-badge img { width: 100%; height: 100%; object-fit: contain; padding: 1.5px; }

/* Badge info popover (tap a verified/affiliate badge) */
.badge-info-overlay {
  position: fixed; inset: 0; background: rgba(2,4,8,0.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 400; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.badge-info-overlay.open { opacity: 1; pointer-events: auto; }
.badge-info-card {
  position: relative; width: 100%; max-width: 360px; padding: 26px 24px 22px;
  border-radius: 18px; background: var(--grad-glass), var(--bg-elevated);
  border: 1px solid var(--surface-border);
}
.badge-info-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--surface-border); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.badge-info-close svg { width: 15px; height: 15px; }
.badge-info-row { display: flex; align-items: flex-start; gap: 14px; }
.badge-info-row[hidden] { display: none; }
.badge-info-row + .badge-info-row { margin-top: 16px; }
.badge-info-icon { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.badge-info-text { color: var(--silver); font-size: 14.5px; line-height: 1.5; margin: 0; padding-top: 3px; }
.leader-body .l-role { font-size: 13px; color: var(--cyan-glow); font-family: var(--font-mono); }
.leader-body .l-dept { font-size: 12.5px; color: var(--silver-dim); margin-bottom: 10px; }
.leader-body .l-bio { font-size: 13px; color: var(--silver); margin-bottom: 16px; flex: 1; }
.leader-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.l-socials { display: flex; gap: 8px; }
.l-socials a { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: center; color: var(--silver); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.l-socials a:hover { color: var(--cyan-glow); border-color: var(--cyan-glow); }
.l-socials svg { width: 14px; height: 14px; }

/* ==========================================================================
   ADMIN PORTAL — Admin Card section (public site). Completely additive:
   reuses the existing .leader-card/.leader-photo/.l-role/.l-bio building
   blocks so it matches the Leadership section's design language, plus its
   own small ADMIN badge. Nothing here overrides the leader rules above.
   ========================================================================== */
.admins-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.admin-badge-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  color: #0a0f1e; background: var(--grad-primary, #38bdf8); padding: 2px 8px;
  border-radius: 999px; font-family: var(--font-mono); vertical-align: middle; margin-left: 8px;
}
.whitepaper-download-link { display: inline-flex; align-items: center; gap: 8px; }

/* Leader profile modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(2,4,8,0.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 300; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 0; transform: translateY(16px) scale(0.98); transition: transform 0.4s var(--ease); background: var(--bg-elevated); }
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--surface-border); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-head { padding: 34px 30px 20px; display: flex; gap: 18px; align-items: center; position: relative; }
.modal-head .leader-photo { width: 84px; height: 84px; border-radius: 18px; aspect-ratio: unset; font-size: 24px; flex-shrink: 0; }
.modal-body { padding: 0 30px 30px; }
.modal-body .l-bio { color: var(--silver); font-size: 14.5px; margin-bottom: 22px; }
.modal-body form { display: grid; gap: 12px; }

/* ==========================================================================
   ANNOUNCEMENTS
   ========================================================================== */
.announcement-toolbar { max-width: 800px; margin: 0 auto 22px; display: flex; flex-direction: column; gap: 14px; }
.announcement-search { position: relative; max-width: 420px; }
.announcement-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--silver-dim); pointer-events: none; }
.announcement-search-icon svg { width: 100%; height: 100%; }
.announcement-search input {
  width: 100%; background: var(--surface); border: 1px solid var(--surface-border-strong); border-radius: 999px;
  padding: 10px 16px 10px 38px; font-size: 13.5px; color: var(--white); font-family: var(--font-body);
}
.announcement-search input:focus { outline: none; border-color: var(--cyan-glow); background: var(--surface-strong); }
.announcement-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  background: var(--surface); border: 1px solid var(--surface-border-strong); color: var(--silver);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter-pill:hover { color: var(--white); border-color: var(--surface-border-strong); }
.filter-pill.active { background: var(--grad-primary); border-color: transparent; color: #fff; }
.filter-pill-saved { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.filter-pill-saved svg { width: 13px; height: 13px; }
.announcements-list { display: flex; flex-direction: column; gap: 24px; max-width: 760px; margin: 0 auto; }
.announcement-card { padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.3s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.announcement-card:hover { transform: translateY(-2px); border-color: var(--surface-border-strong); }
.announcement-card.pinned { border-color: rgba(56, 189, 248, 0.35); }
.announcement-card.highlight-flash { border-color: var(--cyan-glow); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25); }

/* -- header row: avatar (fixed) + a stacked name/role/meta/status column -
   Row 1: avatar | username + verified badge + UB3 badge
   Row 2: role badge
   Row 3: "Posted in Announcements • time" (time never wraps)
   Row 4: status badges (Pinned / category), own row, wraps under on mobile
   ------------------------------------------------------------------------ */
.announcement-top { display: flex; align-items: flex-start; gap: 14px; }
.announcement-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--grad-primary); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff;
}
.announcement-avatar img { width: 100%; height: 100%; object-fit: cover; }

.announcement-who {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}

/* Row 1 — username has layout priority; badges never shrink or push it out */
.announcement-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 17.5px; line-height: 1.3; min-width: 0; }
.announcement-name { flex: 0 1 auto; min-width: 0; font-weight: 800; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement-name-row .badge-btn { margin-left: 0; flex-shrink: 0; }
.announcement-name-row .verified-badge,
.announcement-name-row .affiliate-badge { width: 1.4em; height: 1.4em; flex-shrink: 0; }

/* Row 2 — role badge, own row directly under the username */
.announcement-role-row { display: flex; }
.announcement-role-badge {
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: var(--cyan-glow);
  background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 11px; border-radius: 999px; white-space: nowrap;
}

/* Row 3 — "Posted in Announcements • time", always a single line; the
   "posted in" label may ellipsis on very narrow screens but the time
   itself never shrinks and never wraps. */
.announcement-submeta { display: flex; align-items: center; min-width: 0; gap: 6px; }
.announcement-meta-posted { font-size: 13.5px; color: var(--silver-dim); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex-shrink: 1; }
.announcement-meta-dot { font-size: 13.5px; color: var(--silver-dim); opacity: 0.7; flex-shrink: 0; }
.announcement-meta-time { font-size: 13.5px; color: var(--silver-dim); font-weight: 400; white-space: nowrap; flex-shrink: 0; }
/* legacy alias kept in case any other view still renders the old single-span meta */
.announcement-meta { font-size: 13.5px; color: var(--silver-dim); font-weight: 400; white-space: nowrap; }
.announcement-meta .dot { margin: 0 6px; opacity: 0.7; }

/* Row 4 — status badges (Pinned / category); always their own row, never
   sharing a row with the username, free to wrap on narrow screens. */
.announcement-top-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.announcement-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--silver);
  background: var(--surface-strong); border: 1px solid var(--surface-border-strong);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.announcement-pin-badge {
  display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--cyan-glow); background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); flex-shrink: 0; white-space: nowrap;
}
.announcement-pin-badge svg { width: 11px; height: 11px; }

.announcement-title { font-size: 20px; font-family: var(--font-display); font-weight: 700; color: var(--white); line-height: 1.4; }

/* -- photo gallery: 1 / 2 / 3 / 4+ responsive layouts -------------------- */
.announcement-gallery { display: grid; gap: 4px; border-radius: 18px; overflow: hidden; border: 1px solid var(--surface-border); }
.gallery-tile { position: relative; overflow: hidden; background: var(--surface-strong); cursor: zoom-in; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.2s var(--ease); }
.gallery-tile:hover .gallery-img { filter: brightness(0.94); }
.gallery-1 { grid-template-columns: 1fr; }
.gallery-1 .gallery-tile { max-height: 560px; }
.gallery-1 .gallery-img { max-height: 560px; }
.gallery-2 { grid-template-columns: 1fr 1fr; }
.gallery-2 .gallery-tile { aspect-ratio: 1 / 1; }
.gallery-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-3 .gallery-tile:nth-child(1) { grid-row: 1 / 3; }
.gallery-3 .gallery-tile { aspect-ratio: 1 / 1; }
.gallery-4plus { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-4plus .gallery-tile { aspect-ratio: 1 / 1; }
.gallery-more-overlay {
  position: absolute; inset: 0; background: rgba(3, 7, 18, 0.55); color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
}

/* -- tap-to-expand gallery viewer, X-style ------------------------------- */
.img-lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 40px 20px; cursor: zoom-out;
}
.img-lightbox.open { display: flex; }
.img-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; object-fit: contain; cursor: default; transition: transform 0.25s var(--ease); touch-action: pan-y; }
.img-lightbox img.zoomed { cursor: move; }
.img-lightbox-close {
  position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: none; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s var(--ease);
  z-index: 2;
}
.img-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.img-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  align-items: center; justify-content: center; transition: background 0.15s var(--ease); z-index: 2;
}
.img-lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.img-lightbox-prev { left: 16px; }
.img-lightbox-next { right: 16px; }
.img-lightbox-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px;
  font-family: var(--font-mono); background: rgba(255, 255, 255, 0.12); padding: 4px 12px; border-radius: 999px;
}

/* -- custom video player -------------------------------------------------- */
.ub3-video-player { position: relative; width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--surface-border); background: #000; }
.ub3-video-el { width: 100%; max-height: 560px; display: block; background: #000; cursor: pointer; }
.ub3-video-bigplay {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(3,7,18,0.55);
  border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ub3-video-bigplay svg { width: 26px; height: 26px; margin-left: 3px; }
.ub3-video-controls {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0)); opacity: 0; transition: opacity 0.2s var(--ease);
}
.ub3-video-player:hover .ub3-video-controls, .ub3-video-player:focus-within .ub3-video-controls { opacity: 1; }
.ub3-video-btn { background: none; border: none; color: #fff; cursor: pointer; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.ub3-video-btn svg { width: 18px; height: 18px; }
.ub3-video-time, .ub3-video-duration { color: #fff; font-size: 11px; font-family: var(--font-mono); flex-shrink: 0; }
.ub3-video-seek { flex: 1; accent-color: var(--cyan-glow); cursor: pointer; }
.ub3-video-volume { width: 60px; accent-color: var(--cyan-glow); cursor: pointer; }
.ub3-video-speed-wrap { position: relative; }
.ub3-video-speed { font-size: 11px; font-family: var(--font-mono); width: auto; padding: 0 4px; }
.ub3-video-speed-menu {
  display: none; position: absolute; bottom: 30px; right: 0; background: rgba(10,14,26,0.95); border: 1px solid var(--surface-border-strong);
  border-radius: 8px; padding: 4px; flex-direction: column; min-width: 52px;
}
.ub3-video-speed-menu.open { display: flex; }
.ub3-video-speed-opt { background: none; border: none; color: #fff; font-size: 12px; padding: 6px 8px; text-align: left; cursor: pointer; border-radius: 5px; }
.ub3-video-speed-opt:hover { background: rgba(255,255,255,0.1); }
.ub3-video-pip { font-size: 10px; font-family: var(--font-mono); width: auto; padding: 0 4px; }

/* -- click-to-expand video button (always visible, top-right of player) - */
.ub3-video-expand {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(3, 7, 18, 0.55); border: none; color: #fff; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.ub3-video-expand:hover { background: rgba(3, 7, 18, 0.8); transform: scale(1.06); }
.ub3-video-expand svg { width: 17px; height: 17px; }

/* -- click-to-expand video viewer — large custom overlay, matching the --- */
/*    existing image lightbox's design language, with fade + zoom in/out - */
.video-lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 40px 20px; cursor: zoom-out;
  opacity: 0; transition: opacity 0.22s var(--ease);
}
.video-lightbox.open { display: flex; }
.video-lightbox.open.visible { opacity: 1; }
.video-lightbox-stage {
  width: 100%; max-width: 1100px; cursor: default; transform: scale(0.92); opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.video-lightbox.open.visible .video-lightbox-stage { transform: scale(1); opacity: 1; }
.video-lightbox-stage .ub3-video-player { border-radius: 14px; }
.video-lightbox-stage .ub3-video-el { width: 100%; max-height: 84vh; }
.video-lightbox-close {
  position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: none; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s var(--ease);
  z-index: 2;
}
.video-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.announcement-body { color: var(--silver); font-size: 15.5px; line-height: 1.65; white-space: pre-line; }
.announcement-body.clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.announcement-see-more { align-self: flex-start; background: none; border: none; color: var(--cyan-glow); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; }
.announcement-see-more:hover { text-decoration: underline; }

/* -- polls ---------------------------------------------------------------- */
.announcement-poll { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.poll-question { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: var(--white); }
.poll-question svg { width: 16px; height: 16px; color: var(--cyan-glow); flex-shrink: 0; }
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-option-btn {
  text-align: left; background: var(--surface-strong); border: 1px solid var(--surface-border-strong); color: var(--white);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.poll-option-btn:hover { border-color: var(--cyan-glow); background: rgba(56, 189, 248, 0.08); }
.poll-option-result { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-strong); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.poll-option-bar { position: absolute; inset: 0; background: rgba(56, 189, 248, 0.18); z-index: 0; transition: width 0.5s var(--ease); }
.poll-option-result.chosen .poll-option-bar { background: rgba(56, 189, 248, 0.32); }
.poll-option-label { position: relative; z-index: 1; font-size: 13.5px; font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 6px; }
.poll-option-label svg { width: 14px; height: 14px; color: var(--cyan-glow); flex-shrink: 0; }
.poll-option-pct { position: relative; z-index: 1; font-size: 13px; font-weight: 700; color: var(--silver-dim); font-family: var(--font-mono); flex-shrink: 0; }
.poll-meta { font-size: 12px; color: var(--silver-dim); }

/* -- like / comment / share / bookmark action bar, X-style --------------- */
.announcement-actions { display: flex; align-items: center; justify-content: space-between; max-width: 460px; margin-top: 4px; }
.announcement-action-btn {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer;
  color: var(--silver-dim); font-size: 14px; font-weight: 500; padding: 0; font-family: var(--font-mono);
  transition: color 0.15s var(--ease);
}
.announcement-action-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; transition: background 0.15s var(--ease), color 0.15s var(--ease); margin-left: -9px;
}
.announcement-action-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.announcement-action-btn.js-comment-toggle:hover { color: #1d9bf0; }
.announcement-action-btn.js-comment-toggle:hover .announcement-action-icon { background: rgba(29, 155, 240, 0.1); }
.announcement-action-btn.js-share-btn:hover { color: #00ba7c; }
.announcement-action-btn.js-share-btn:hover .announcement-action-icon { background: rgba(0, 186, 124, 0.1); }
.announcement-action-btn.js-reaction-main:hover { color: #f91880; }
.announcement-action-btn.js-reaction-main:hover .announcement-action-icon { background: rgba(249, 24, 128, 0.1); }
.announcement-action-btn.liked { color: #f91880; }
.announcement-action-btn.comments-open { color: #1d9bf0; }
.announcement-bookmark-btn:hover { color: #1d9bf0; }
.announcement-bookmark-btn:hover .announcement-action-icon { background: rgba(29, 155, 240, 0.1); }
.announcement-bookmark-btn.active { color: #1d9bf0; }
.js-reaction-main { position: relative; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.reaction-emoji { font-size: 17px; line-height: 1; flex-shrink: 0; }

/* -- stacked breakdown of every distinct reaction type on a post, most-  */
/*    used first — Facebook-style, so a fire + a heart both show up ------ */
.reaction-stack { display: inline-flex; align-items: center; flex-shrink: 0; }
.reaction-stack-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 50%; font-size: 12px; line-height: 1;
  background: var(--surface-strong); border: 1.5px solid var(--bg, #0b0f14);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.reaction-stack-icon:not(:first-child) { margin-left: -9px; }

/* -- long-press emoji reaction picker ------------------------------------ */
.reaction-picker {
  position: absolute; bottom: calc(100% + 10px); left: 0; display: flex; gap: 4px; flex-wrap: wrap;
  max-width: min(320px, calc(100vw - 40px));
  background: var(--surface-strong); border: 1px solid var(--surface-border-strong); border-radius: 20px;
  padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); opacity: 0; transform: translateY(6px) scale(0.9);
  transform-origin: bottom left; transition: opacity 0.15s var(--ease), transform 0.15s var(--ease); z-index: 20;
}
.reaction-picker.open { opacity: 1; transform: translateY(0) scale(1); }
.reaction-picker-btn {
  background: none; border: none; font-size: 22px; line-height: 1; padding: 6px 8px; border-radius: 999px;
  cursor: pointer; transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.reaction-picker-btn:hover { transform: scale(1.25); background: var(--surface); }
.reaction-picker-btn.active { background: rgba(56, 189, 248, 0.15); }

/* -- comment thread ------------------------------------------------------ */
.announcement-comments { display: none; flex-direction: column; gap: 14px; padding-top: 4px; border-top: 1px solid var(--surface-border); }
.announcement-comments.open { display: flex; }
.comment-form { display: flex; flex-direction: column; gap: 8px; position: relative; }
.comment-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 13.5px; color: var(--white); font-family: var(--font-body);
}
.comment-form textarea { resize: vertical; min-height: 44px; }
.comment-form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: flex-end;
  background: var(--grad-primary); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.comment-form-submit:disabled { opacity: 0.6; cursor: default; }
.comment-form-status { font-size: 12.5px; color: var(--silver-dim); }

/* -- signed-in-to-comment status bar ------------------------------------ */
.comment-google-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--surface-border-strong); color: var(--white);
  padding: 9px 15px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer;
}
.comment-google-btn:hover { background: var(--surface-strong); }
.commenting-as { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--silver-dim); flex-wrap: wrap; }
.commenting-as strong { color: var(--white); font-weight: 600; }
.commenting-as-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.comment-signout-btn { background: none; border: none; padding: 0; font-size: 12px; color: var(--cyan-glow); cursor: pointer; }
.comment-signout-btn:hover { text-decoration: underline; }
/* Not signed in with a real account yet — hide the message box until they are. */
.comment-form.signed-out textarea,
.comment-form.signed-out .comment-form-submit { display: none; }

.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item { display: flex; gap: 10px; }
.comment-avatar {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; background: var(--surface-strong);
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700;
  color: var(--silver); font-family: var(--font-display); overflow: hidden;
}
.comment-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.comment-body-wrap { background: var(--surface); border-radius: var(--radius-sm); padding: 9px 13px; flex: 1; min-width: 0; }
.comment-name { font-size: 13px; font-weight: 600; color: var(--white); }
.comment-name-row { display: flex; align-items: center; gap: 0; flex-wrap: wrap; font-size: 13px; }
.comment-name-row .comment-name { font-weight: 600; }

/* -- clickable leader avatar/name in comments -> their public profile --- */
button.comment-avatar,
button.comment-name {
  border: none; margin: 0; padding: 0; font: inherit; text-align: left; cursor: pointer;
  background: var(--surface-strong); color: var(--white); -webkit-tap-highlight-color: transparent;
}
button.comment-name { background: none; color: var(--white); }
button.comment-avatar:hover,
button.comment-name:hover { color: var(--cyan-glow); }
button.comment-avatar:focus-visible,
button.comment-name:focus-visible {
  outline: 2px solid var(--cyan-glow); outline-offset: 2px; border-radius: 4px;
}
.comment-role-badge {
  display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--cyan-glow);
  background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); padding: 2px 8px; border-radius: 999px;
}
.comment-text { font-size: 13.5px; color: var(--silver); line-height: 1.55; white-space: pre-line; word-break: break-word; }
.comment-mention { color: var(--cyan-glow); font-weight: 600; }

/* -- clickable @mention of a verified leader (in a post OR a comment) --- */
button.comment-mention.js-mention-link {
  border: none; background: none; padding: 0; margin: 0; font: inherit;
  font-weight: 600; color: var(--cyan-glow); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
button.comment-mention.js-mention-link:hover { text-decoration: underline; }
button.comment-mention.js-mention-link:focus-visible {
  outline: 2px solid var(--cyan-glow); outline-offset: 2px; border-radius: 3px;
}

/* -- clickable leader avatar/name on a post -> their public profile ----- */
button.announcement-avatar,
button.announcement-name {
  border: none; margin: 0; padding: 0; font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button.announcement-avatar { background: var(--grad-primary); }
button.announcement-name { background: none; color: var(--white); }
button.announcement-avatar:hover,
button.announcement-name:hover { color: var(--cyan-glow); }
button.announcement-name:hover { text-decoration: underline; }
button.announcement-avatar:focus-visible,
button.announcement-name:focus-visible {
  outline: 2px solid var(--cyan-glow); outline-offset: 2px; border-radius: 4px;
}

/* -- @mention autocomplete dropdown -------------------------------------- */
.mention-dropdown {
  position: absolute; z-index: 30; background: var(--surface-strong);
  border: 1px solid var(--surface-border-strong); border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); overflow: hidden;
}
.mention-dropdown-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-size: 13px; font-weight: 600; color: var(--white);
}
.mention-dropdown-item:hover, .mention-dropdown-item:focus { background: var(--surface); }
.mention-dropdown-avatar {
  width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--silver-dim);
}
.mention-dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mention-dropdown-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mention-dropdown-name { font-size: 13px; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-dropdown-role { font-size: 11px; font-weight: 500; color: var(--silver-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-empty { font-size: 13px; color: var(--silver-dim); }

.comment-meta-row { display: flex; align-items: center; gap: 14px; margin-top: 5px; flex-wrap: wrap; }
.comment-time { font-size: 11px; color: var(--silver-dim); }
.comment-mini-btn { background: none; border: none; padding: 0; font-size: 11.5px; font-weight: 600; color: var(--silver-dim); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.comment-mini-btn:hover { color: var(--white); }
.comment-mini-btn.primary { color: var(--cyan-glow); }
.comment-mini-btn svg { width: 12px; height: 12px; }
.js-comment-like.liked { color: #fb7185; }
.js-comment-like.liked svg { color: #fb7185; }

.js-comment-edit-input {
  display: none; width: 100%; margin-top: 6px; background: var(--surface-strong); border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm); padding: 8px 11px; font-size: 13.5px; color: var(--white); font-family: var(--font-body);
  resize: vertical; min-height: 44px;
}
.comment-edit-actions { display: none; gap: 12px; margin-top: 6px; }
.comment-item.editing .comment-text { display: none; }
.comment-item.editing .js-comment-edit-input { display: block; }
.comment-item.editing .comment-meta-row { display: none; }
.comment-item.editing .comment-edit-actions { display: flex; }

/* -- reply form + nested replies ---------------------------------------- */
.comment-reply-form { display: none; margin-top: 10px; }
.comment-reply-form.open { display: flex; }
.comment-replies { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; margin-left: 8px; padding-left: 14px; border-left: 2px solid var(--surface-border); }
.comment-replies:empty { display: none; margin: 0; padding: 0; border: none; }
.comment-item.is-reply .comment-avatar { width: 26px; height: 26px; font-size: 10px; }
.comment-item.is-reply .comment-body-wrap { padding: 7px 11px; }

.announcement-skeleton { height: 132px; border-radius: var(--radius-md); position: relative; overflow: hidden; }
.announcement-skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--surface-strong), transparent);
  animation: skeleton-sheen 1.5s infinite;
}
@keyframes skeleton-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.announcements-empty { text-align: center; padding: 50px 20px; color: var(--silver-dim); font-size: 14.5px; }

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partners-track { display: flex; gap: 44px; align-items: center; overflow: hidden; position: relative; }
.partners-track::before, .partners-track::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; }
.partners-track::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.partners-track::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.partners-scroll { display: flex; gap: 64px; animation: scroll-left 26s linear infinite; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-chip { font-family: var(--font-mono); font-size: 15px; color: var(--silver-dim); white-space: nowrap; letter-spacing: 0.04em; padding: 10px 22px; border: 1px solid var(--surface-border); border-radius: 999px; }

/* ==========================================================================
   COMMUNITY / TESTIMONIALS
   ========================================================================== */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.community-card { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.community-card .c-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-strong); display: flex; align-items: center; justify-content: center; color: var(--cyan-glow); }
.community-card h3 { font-size: 17px; }
.community-card p { color: var(--silver-dim); font-size: 14px; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.testimonial-card { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.testimonial-card .t-quote { font-size: 14.5px; color: var(--silver); line-height: 1.7; }
.t-person { display: flex; align-items: center; gap: 10px; }
.t-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: #fff; }
.t-person .t-name { font-size: 13.5px; font-weight: 600; }
.t-person .t-role { font-size: 12px; color: var(--silver-dim); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; background: none; border: none; color: var(--white); text-align: left; font-family: var(--font-display); font-size: 15.5px; font-weight: 600; }
.faq-q .plus { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--surface-border-strong); display: flex; align-items: center; justify-content: center; position: relative; transition: transform 0.35s var(--ease); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--silver); }
.faq-q .plus::before { width: 9px; height: 1px; }
.faq-q .plus::after { width: 1px; height: 9px; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 26px 22px; color: var(--silver-dim); font-size: 14.5px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.contact-info { padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.contact-info h3 { font-size: 20px; }
.contact-info p { color: var(--silver-dim); font-size: 14.5px; }
.contact-channels { display: flex; gap: 12px; margin-top: 8px; }
.contact-channel { width: 48px; height: 48px; border-radius: 13px; background: var(--surface-strong); border: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: center; color: var(--silver); transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.contact-channel:hover { transform: translateY(-4px); color: var(--cyan-glow); border-color: var(--cyan-glow); }
.contact-channel svg { width: 20px; height: 20px; }

.contact-form-card { padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.field label { font-size: 12.5px; color: var(--silver-dim); font-family: var(--font-mono); }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--white); font-family: var(--font-body); font-size: 14.5px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cyan-glow); background: var(--surface-strong); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field input[type="range"] { accent-color: var(--cyan-glow); padding: 0; height: 22px; background: none; border: none; }
.form-status { font-size: 13.5px; margin-top: 12px; min-height: 18px; }
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { padding: 70px 0 30px; border-top: 1px solid var(--surface-border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 56px; }
.footer-brand p { color: var(--silver-dim); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 13px; color: var(--silver-dim); font-family: var(--font-mono); letter-spacing: 0.06em; margin-bottom: 16px; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--silver); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--cyan-glow); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; border-top: 1px solid var(--surface-border); }
.footer-bottom p { font-size: 13px; color: var(--silver-dim); }
.footer-credit { font-size: 13px; color: var(--silver-dim); font-family: var(--font-mono); }
.footer-credit span { color: var(--cyan-glow); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 13.5px; min-width: 240px; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5); animation: toast-in 0.35s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.toast.success { border: 1px solid rgba(74,222,128,0.4); }
.toast.error { border: 1px solid rgba(248,113,113,0.4); }
