/* ─── State 3802 / icy-arctic ────────────────────────────── */

:root {
  /* Glacier palette (default) — overridden by Tweaks */
  --bg-0: #050b1a;
  --bg-1: #0a1628;
  --bg-2: #0f1f3a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.18);
  --ice: #7dd3fc;           /* primary accent */
  --ice-2: #38bdf8;
  --ice-glow: rgba(125, 211, 252, 0.35);
  --text: #e6f0ff;
  --text-dim: rgba(230, 240, 255, 0.65);
  --text-faint: rgba(230, 240, 255, 0.42);

  --maxw: 1200px;
  --nav-h: 64px;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Aurora / frost ambient background ----------------------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--ice-glow), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 30%, rgba(56, 189, 248, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(99, 102, 241, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Snow particles */
.snow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.snow span {
  position: absolute; top: -10px;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(.5px);
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-10vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110vh) translateX(40px); opacity: 0; }
}

/* Typography --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ice); box-shadow: 0 0 8px var(--ice);
}

/* Layout ------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
}

section {
  padding: 96px 0;
  position: relative;
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.section-head {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
  text-wrap: pretty;
}

/* Glass cards -------------------------------------------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 40px -20px rgba(0, 0, 0, 0.6);
}
.glass-strong {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 60px -30px rgba(0, 0, 0, 0.7);
}

/* Buttons ------------------------------------------------ */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #cfe8ff 100%);
  color: #051428;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 10px 30px -8px var(--ice-glow),
    inset 0 -2px 0 rgba(0, 30, 60, 0.1);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 14px 36px -8px var(--ice-glow); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* Top Nav ------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: backdrop-filter .2s, background .2s, border-color .2s;
}
.nav.scrolled {
  background: rgba(5, 11, 26, 0.65);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-family: 'Space Grotesk', sans-serif;
  color: var(--text); text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ice) 0%, var(--ice-2) 100%);
  color: #051428;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 14px -2px var(--ice-glow);
}
.nav-tabs {
  display: flex; align-items: center; gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 4px; border-radius: 999px;
}
.nav-tabs a {
  padding: 8px 14px;
  font-size: 0.83rem;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-tabs a:hover { color: var(--text); }
.nav-tabs a.active {
  color: var(--text); background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.nav-actions {
  display: flex; align-items: center; gap: 10px;
}

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .nav-tabs { display: none; }
  .menu-btn { display: inline-flex; }
  .admin-btn .lbl { display: none; }
  .admin-btn { padding: 9px; width: 40px; height: 40px; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 11, 26, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: 24px 24px 36px;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.4,.0,.2,1);
}
.drawer.open { transform: translateY(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.drawer a {
  display: block;
  padding: 18px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.drawer a span { color: var(--ice); margin-right: 14px; font-size: 0.85rem; font-family: 'Inter'; }

/* ========== HERO ========== */
.hero {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--ice) 0%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  text-wrap: pretty;
}

/* Hero v1 — centered */
.hero-v1 { text-align: center; }
.hero-v1 .hero-sub { margin: 22px auto 36px; }
.hero-v1 .hero-cta { justify-content: center; }

/* Hero v2 — split */
.hero-v2 .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-v2 .hero-sub { margin: 22px 0 36px; }
@media (max-width: 900px) {
  .hero-v2 .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Hero v3 — banner with stat card overlap */
.hero-v3 .banner {
  position: relative;
  margin-top: 30px;
  border-radius: 24px;
  overflow: hidden;
  height: 380px;
  background:
    radial-gradient(ellipse at center, rgba(125, 211, 252, 0.3) 0%, transparent 70%),
    linear-gradient(180deg, #0c1d3d 0%, #050b1a 100%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 40px;
}
.hero-stats .stat {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-stats .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.hero-stats .lbl {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-top: 6px;
}

/* ========== About ========== */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } }
.about-grid p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.02rem; }
.about-pillars {
  display: flex; flex-direction: column; gap: 14px;
}
.pillar {
  padding: 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.pillar-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(125, 211, 252, 0.05));
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  color: var(--ice);
}
.pillar h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.pillar p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* ========== Perks (Why Join) ========== */

/* Layout A — card grid */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .perks-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .perks-grid { grid-template-columns: 1fr; } }
.perk-card {
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, border-color .2s;
}
.perk-card:hover { transform: translateY(-2px); border-color: var(--border-2); }
.perk-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(125, 211, 252, 0.05));
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  color: var(--ice);
}
.perk-card h3 { font-size: 1.05rem; }
.perk-card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }

/* Layout B — numbered list */
.perks-list { display: flex; flex-direction: column; gap: 0; }
.perk-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 30px;
  padding: 26px 4px;
  border-top: 1px solid var(--border);
  align-items: start;
}
.perk-row:last-child { border-bottom: 1px solid var(--border); }
.perk-row .nm {
  font-family: 'Space Grotesk';
  font-size: 1.6rem; font-weight: 600;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}
.perk-row h3 { font-size: 1.2rem; margin-bottom: 8px; }
.perk-row p { color: var(--text-dim); font-size: 0.98rem; max-width: 600px; }
@media (max-width: 600px) {
  .perk-row { grid-template-columns: 1fr; gap: 8px; }
  .perk-row .nm { font-size: 1.2rem; }
}

/* Layout C — compact icon row */
.perks-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 800px) { .perks-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .perks-flow { grid-template-columns: 1fr; } }
.perk-cell {
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.perks-flow .perk-cell:last-child { border-right: 0; }
@media (max-width: 800px) {
  .perk-cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .perks-flow .perk-cell:nth-last-child(-n+1) { border-bottom: 0; }
}

/* ========== Power req ========== */
.req-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 800px) { .req-row { grid-template-columns: 1fr; } }
.req-card {
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.req-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 16px;
}
.req-card .num {
  font-family: 'Space Grotesk';
  font-size: 2.6rem; font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--ice) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.req-card .lbl {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.req-card.featured {
  border-color: var(--border-2);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.10), rgba(125, 211, 252, 0.02));
}

/* ========== Officers ========== */
.officers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 800px) { .officers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .officers { grid-template-columns: 1fr; } }
.officer {
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
}
.officer-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%),
    linear-gradient(135deg, var(--ice) 0%, #6366f1 100%);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  color: #051428;
  font-weight: 700;
  font-family: 'Space Grotesk';
  font-size: 1.2rem;
}
.officer .role {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 600;
}
.officer .name {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Space Grotesk';
  margin-top: 2px;
}
.officer .bio {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ========== Rules ========== */
.rules {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }
.rule {
  padding: 20px 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.rule .ck {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.15);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  color: var(--ice);
  margin-top: 2px;
}
.rule h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.rule p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; margin: 0; }

/* ========== Events ========== */
.events {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow: hidden;
}
.event {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.event:last-child { border-bottom: 0; }
.event .when {
  font-family: 'Space Grotesk';
  font-weight: 600;
  color: var(--ice);
  font-size: 0.95rem;
}
.event .when .day {
  display: block;
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text);
  line-height: 1;
}
.event .when .mo {
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
  display: block;
}
.event h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.event p { color: var(--text-dim); font-size: 0.9rem; }
.event-badge {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 600; color: var(--ice);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(125, 211, 252, 0.10);
  border: 1px solid var(--border-2);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .event { grid-template-columns: 80px 1fr; }
  .event-badge { display: none; }
  .event .when .day { font-size: 1.3rem; }
}

/* ========== Stats / Achievements ========== */
.achievements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .achievements { grid-template-columns: 1fr 1fr; } }
.ach {
  padding: 28px 22px;
  text-align: center;
}
.ach .big {
  font-family: 'Space Grotesk';
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, var(--ice) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.ach .lbl {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

/* ========== Steps / How to join ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.step .n {
  font-family: 'Space Grotesk';
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--ice);
  font-weight: 700;
}
.step h4 { font-size: 1.05rem; font-weight: 600; }
.step p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.step .arrow {
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}
@media (max-width: 900px) { .step .arrow { display: none; } }
.step:last-child .arrow { display: none; }

/* ========== FAQ ========== */
.faq { display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
}
.q {
  border-bottom: 1px solid var(--border);
  padding: 22px 4px;
  cursor: pointer;
}
.q summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--text);
}
.q summary::-webkit-details-marker { display: none; }
.q summary .plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  color: var(--ice);
  transition: transform .2s, background .2s;
  flex-shrink: 0;
}
.q[open] summary .plus { transform: rotate(45deg); background: var(--surface-2); }
.q p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.98rem;
  max-width: 760px;
  text-wrap: pretty;
}

/* ========== Schedule — Alliance-grouped blocks ========== */
.ally-sched-blocks {
  display: grid;
  gap: 18px;
}
.ally-sched-block {
  padding: 0;
  overflow: hidden;
}
.ally-sched-head {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.05) 0%, transparent 100%);
}
.ally-sched-mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.30), rgba(125, 211, 252, 0.05));
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ice);
  flex-shrink: 0;
}
.ally-sched-info { flex: 1; min-width: 0; }
.ally-sched-info h3 {
  font-family: 'Space Grotesk';
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.ally-sched-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.ally-sched-meta b {
  font-family: 'Space Grotesk';
  color: var(--ice);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  margin-right: 4px;
}

.ally-sched-tbl {
  display: flex; flex-direction: column;
}
.ally-sched-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 70px 110px 90px;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.ally-sched-row:first-of-type { border-top: 0; }
.ally-sched-row:not(.head):hover { background: rgba(125, 211, 252, 0.04); }
.ally-sched-row.head {
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 28px;
}
.ally-sched-evt {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.ally-sched-icon { font-size: 1.1rem; }
.ally-sched-name {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: -0.005em;
}
.ally-sched-day {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.ally-sched-time {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ice);
  letter-spacing: -0.01em;
}

@media (max-width: 700px) {
  .ally-sched-head { padding: 18px 18px; gap: 12px; }
  .ally-sched-info h3 { font-size: 1.15rem; }
  .ally-sched-mark { width: 44px; height: 44px; font-size: 0.85rem; }
  .ally-sched-row {
    grid-template-columns: 1.4fr 70px 100px;
    grid-template-areas:
      "evt name name"
      "day day  time";
    padding: 14px 18px;
    gap: 6px 12px;
  }
  .ally-sched-row.head { display: none; }
  .ally-sched-evt { grid-area: evt; }
  .ally-sched-name { grid-area: name; text-align: right; }
  .ally-sched-day { grid-area: day; }
  .ally-sched-time { grid-area: time; text-align: right; }
  .ally-sched-row > div:last-child { display: none; }
}

/* ========== Schedule (alliance × event blocks — legacy, kept) ========== */
.sched-blocks {
  display: grid;
  gap: 18px;
}
.sched-block {
  padding: 26px 28px;
}
.sched-block-head {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sched-evt-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.30), rgba(125, 211, 252, 0.05));
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.sched-block-head h3 {
  font-family: 'Space Grotesk';
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.sched-block-head p {
  color: var(--text-dim);
  font-size: 0.92rem;
  text-wrap: pretty;
}

.sched-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sched-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.sched-row:first-child { border-top: 0; padding-top: 0; }
.sched-ally {
  display: flex; align-items: center; gap: 12px;
}
.sched-ally-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.30), rgba(125, 211, 252, 0.05));
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--ice);
  flex-shrink: 0;
}
.sched-ally-name {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.sched-slots {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.sched-slot {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.sched-subtype {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-faint);
  padding-right: 8px;
  border-right: 1px solid var(--border);
}
.sched-time {
  font-family: 'Space Grotesk';
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.sched-vote {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.10);
  border: 1px solid var(--border-2);
}
@media (max-width: 700px) {
  .sched-row { grid-template-columns: 1fr; gap: 10px; }
  .sched-block { padding: 22px 18px; }
  .sched-block-head h3 { font-size: 1.1rem; }
}

/* ========== Transfer Facts ========== */
.tf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .tf-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .tf-stats { grid-template-columns: 1fr; } }
.tf-stat {
  padding: 26px 22px;
  text-align: left;
}
.tf-big {
  font-family: 'Space Grotesk';
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--ice) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tf-lbl {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}
.tf-sub {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-wrap: pretty;
}

.tf-rules-head {
  margin-bottom: 26px;
}
.tf-rules-head h3 {
  font-family: 'Space Grotesk';
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tf-rules-head p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ========== Language switcher ========== */
.lang-switch { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .15s;
}
.lang-trigger:hover { background: var(--surface-2); }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-family: 'Space Grotesk'; font-weight: 600; letter-spacing: 0.04em; font-size: 0.78rem; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 240px;
  padding: 6px;
  border-radius: 14px;
}
.lang-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
}
.lang-item:hover { background: var(--surface); }
.lang-item.on { background: var(--surface-2); }
.lang-item .lang-todo {
  margin-left: auto;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 999px;
}
.lang-foot {
  margin-top: 4px;
  padding: 10px;
  font-size: 0.74rem;
  color: var(--text-faint);
  line-height: 1.4;
  border-top: 1px solid var(--border);
}

.lang-banner {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: rgba(125, 211, 252, 0.12);
  border-bottom: 1px solid var(--border-2);
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 18px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.lang-banner b { color: var(--ice); font-weight: 600; }
.lang-banner button {
  margin-left: 10px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-banner button:hover { background: var(--surface); }
[dir="rtl"] .lang-banner button { margin-left: 0; margin-right: 10px; }
@media (max-width: 980px) {
  .lang-trigger .lang-code { display: none; }
  .lang-trigger { padding: 8px; }
}

/* ========== Back to top (left) ========== */
.back-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(8, 16, 32, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-2);
  color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(.95);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
}
.back-top.shown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-top:hover { background: rgba(20, 32, 56, 0.85); transform: translateY(-2px); }
@media (max-width: 480px) { .back-top { left: 16px; bottom: 16px; width: 40px; height: 40px; } }

/* ========== Application form (additions) ========== */
.form-section-h {
  font-family: 'Space Grotesk';
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 8px 0 4px;
}

.hint-inline {
  font-weight: 400;
  font-size: 0.74rem;
  color: var(--text-faint);
  margin-left: 6px;
  text-transform: none;
  letter-spacing: normal;
}

.hint-code {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.84rem;
  color: var(--ice);
  background: rgba(125, 211, 252, 0.10);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-2);
}

.field-err {
  font-size: 0.76rem;
  color: #fca5a5;
  margin-top: 2px;
}
.form-row input:invalid,
.form-row select:invalid { box-shadow: none; }

.toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  position: relative;
  text-align: left;
}
.toggle:hover { border-color: rgba(255, 255, 255, 0.3); }
.toggle .toggle-thumb {
  display: inline-block;
  width: 36px; height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  transition: background .15s;
  flex-shrink: 0;
}
.toggle .toggle-thumb::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  transition: transform .15s, background .15s;
}
.toggle.on .toggle-thumb { background: var(--ice); }
.toggle.on .toggle-thumb::after { transform: translateX(16px); background: #051428; }
.toggle .toggle-label { color: var(--text-dim); font-size: 0.88rem; }
.toggle.on .toggle-label { color: var(--text); }

.addp-wrap {
  border: 1px dashed var(--border-2);
  border-radius: 14px;
  padding: 16px;
  margin-top: 4px;
}
.addp-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.addp-empty {
  font-size: 0.85rem;
  color: var(--text-faint);
  padding: 12px;
  text-align: center;
}
.addp-card {
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
}
.addp-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.addp-num {
  font-family: 'Space Grotesk';
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 700;
}
.addp-del {
  width: 28px; height: 28px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  display: grid; place-items: center;
}
.addp-del:hover { color: #f87171; border-color: rgba(248, 113, 113, 0.4); }

.discord-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ========== NAP Alliances — Event Schedule Table (legacy) ========== */
.nap-tz {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-faint);
  margin-top: 6px;
}
.nap-tz b { color: var(--ice); font-weight: 600; }
.nap-tz-toggle {
  display: inline-flex; gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  margin-left: 6px;
}
.nap-tz-toggle button {
  appearance: none; background: transparent; border: 0;
  color: var(--text-dim); font: inherit;
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.nap-tz-toggle button.on {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* ── Schedule table ── */
.sch-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.sch-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sch-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}
.sch-tbl thead th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  padding: 16px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: bottom;
  font-family: 'Inter';
}
.sch-tbl thead th:first-child {
  position: sticky; left: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 16, 32, 0.95) 80%, rgba(8, 16, 32, 0));
  border-right: 1px solid var(--border);
}
.sch-tbl thead th .evt-name {
  display: block;
  color: var(--text);
  font-family: 'Space Grotesk';
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}
.sch-tbl thead th .evt-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ice);
  font-weight: 700;
}

.sch-tbl tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.sch-tbl tbody tr:last-child td { border-bottom: 0; }
.sch-tbl tbody tr:hover td { background: rgba(125, 211, 252, 0.04); }

/* First col — alliance identity, sticky */
.sch-tbl tbody td.sch-ally {
  position: sticky; left: 0;
  z-index: 1;
  background: rgba(8, 16, 32, 0.95);
  border-right: 1px solid var(--border);
  min-width: 240px;
}
.sch-tbl tbody tr:hover td.sch-ally {
  background: rgba(12, 24, 44, 0.95);
}
.sch-ally-row {
  display: flex; align-items: center; gap: 12px;
}
.sch-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.30), rgba(125, 211, 252, 0.05));
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--ice);
  flex-shrink: 0;
}
.sch-ally-info { min-width: 0; }
.sch-ally-info .nm {
  font-size: 0.95rem; font-weight: 600;
  font-family: 'Space Grotesk';
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.sch-ally-info .meta {
  font-size: 0.74rem;
  color: var(--text-faint);
  margin-top: 2px;
  white-space: nowrap;
}

.sch-time {
  font-family: 'Space Grotesk';
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sch-time small {
  display: block;
  font-family: 'Inter';
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.sch-time.muted {
  color: var(--text-faint); font-weight: 500;
}

.sch-status {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  white-space: nowrap;
  background: var(--surface);
}
.sch-status.active  { color: #5eead4; border-color: rgba(94, 234, 212, 0.35); background: rgba(94, 234, 212, 0.08); }
.sch-status.pending { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.sch-status.expired { color: #f87171; border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }

.sch-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.18);
}
.sch-foot .legend {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.sch-foot .legend span { display: inline-flex; align-items: center; gap: 6px; }
.sch-foot .legend i {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.sch-foot .legend .ok  { background: #5eead4; }
.sch-foot .legend .pen { background: #fbbf24; }
.sch-foot .legend .exp { background: #f87171; }

@media (max-width: 700px) {
  .sch-scroll::after {
    content: "Scroll →";
    position: sticky; right: 0;
    display: block; padding: 4px 0;
    text-align: right;
    color: var(--text-faint);
    font-size: 0.7rem;
  }
}

/* ========== Footer / Contact ========== */
.footer {
  padding: 100px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-cta {
  padding: 56px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-bottom: 50px;
}
.footer-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.footer-cta p { color: var(--text-dim); max-width: 560px; text-wrap: pretty; }
.footer-cta .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

@media (max-width: 600px) { .footer-cta { padding: 36px 24px; } }

.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-faint);
  gap: 20px;
}
.footer-meta .links { display: flex; gap: 18px; }
.footer-meta a { color: var(--text-faint); text-decoration: none; }
.footer-meta a:hover { color: var(--text); }
@media (max-width: 600px) { .footer-meta { flex-direction: column; align-items: flex-start; } }

/* ========== Floating CTA ========== */

/* Variant: pill (bottom-right) */
.fcta-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #cfe8ff 100%);
  color: #051428;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 14px 40px -8px var(--ice-glow),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform .2s, box-shadow .2s, opacity .3s;
  opacity: 0; transform: translateY(20px) scale(.95); pointer-events: none;
}
.fcta-pill.shown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fcta-pill:hover { transform: translateY(-2px) scale(1.02); }
.fcta-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px var(--ice);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
}

/* Variant: rail (side, vertical) */
.fcta-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(100%);
  z-index: 40;
  padding: 18px 14px;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #cfe8ff 100%);
  color: #051428;
  cursor: pointer;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  border: none;
  display: inline-flex; align-items: center; gap: 14px;
  box-shadow: -8px 0 30px -10px var(--ice-glow), -4px 0 12px rgba(0, 0, 0, 0.3);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.fcta-rail.shown { transform: translateY(-50%) translateX(0); }
.fcta-rail:hover { transform: translateY(-50%) translateX(-4px); }
.fcta-rail .arrow { transform: rotate(180deg); }

@media (max-width: 700px) {
  .fcta-rail { display: none; }
}

/* Variant: bar (full-width docked) */
.fcta-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  transform: translateX(-50%) translateY(120%);
  padding: 12px 12px 12px 22px;
  background: rgba(8, 16, 32, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  max-width: calc(100vw - 32px);
}
.fcta-bar.shown { transform: translateX(-50%) translateY(0); }
.fcta-bar .lbl {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.fcta-bar .lbl b { font-weight: 700; color: var(--ice); font-family: 'Space Grotesk'; }
.fcta-bar .btn { padding: 10px 18px; font-size: 0.88rem; }

@media (max-width: 480px) {
  .fcta-bar { left: 16px; right: 16px; transform: translateY(120%); padding: 10px 10px 10px 18px; }
  .fcta-bar.shown { transform: translateY(0); }
  .fcta-bar .lbl { font-size: 0.85rem; }
}

/* ========== Modals ========== */
.scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 6, 18, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px;
  transform: translateY(20px) scale(.98);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}
.scrim.open .modal { transform: translateY(0) scale(1); }
.modal.compact { max-width: 420px; padding: 32px; }
.modal h2 { font-size: 1.6rem; margin-bottom: 8px; }
.modal .sub { color: var(--text-dim); margin-bottom: 26px; }
.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
}
.modal-x:hover { background: var(--surface-2); }

.form-grid {
  display: grid; gap: 14px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row.two { grid-template-columns: 1fr; } }
.form-row label {
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s, background .15s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-faint); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--ice);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}
.form-row textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237dd3fc' d='M0 0h12L6 8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-row .hint { font-size: 0.78rem; color: var(--text-faint); }

.modal-submit {
  margin-top: 8px;
  width: 100%;
  padding: 15px;
}

.success {
  text-align: center;
  padding: 30px 10px 10px;
}
.success .check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.3), rgba(125, 211, 252, 0.08));
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  color: var(--ice);
  margin: 0 auto 18px;
}
.success h3 { font-size: 1.4rem; margin-bottom: 8px; font-family: 'Space Grotesk'; }
.success p { color: var(--text-dim); }

/* admin badge */
.admin-badge {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ice);
  padding: 5px 10px; border-radius: 999px;
  background: rgba(125, 211, 252, 0.10);
  border: 1px solid var(--border-2);
  margin-bottom: 14px; display: inline-block;
}

/* Focus visibility */
*:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Section divider — subtle horizontal line */
.div-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 0 auto;
  max-width: 1200px;
}
