/* ============================================================
   Connext — A Next-Generation AI Job Market
   v9.5.0 — Light Mode · Violet→Indigo→Cyan brand system
   Aligned to the official Connext light-mode brand kit (Direction 01)
   ============================================================ */

:root {
  /* === Brand colors — directly from the Connext logo system === */
  --brand-violet:  #7C3AED;     /* PRIMARY brand violet */
  --brand-violet-soft: #A855F7;
  --brand-violet-deep: #6D28D9;
  --brand-indigo:  #6366F1;     /* mid stop in the gradient */
  --brand-indigo-deep: #4F46E5;
  --brand-cyan:    #0891B2;     /* deep cyan endpoint */
  --brand-cyan-mid: #22D3EE;    /* light cyan accent */
  --brand-cyan-soft: #67E8F9;
  --brand-magenta: #DB2777;     /* POP secondary */
  --brand-lime:    #84CC16;     /* REBEL secondary */
  --brand-ink:     #0F0F23;     /* INK direction — used only for high-contrast text */

  /* Primary brand gradient — exact stops from connext-icon-violet-light.svg */
  --brand-grad: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-indigo) 50%, var(--brand-cyan) 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(99, 102, 241, 0.10) 50%, rgba(8, 145, 178, 0.10) 100%);
  --brand-glow: rgba(124, 58, 237, 0.22);

  /* === Light-mode surfaces — clean, airy, premium AI startup feel === */
  --bg-page:    #FAFBFF;        /* page background — barely-tinted lavender white */
  --bg-canvas:  #FFFFFF;        /* primary surface */
  --bg-soft:    #F5F3FF;        /* tinted surface for cards on hover */
  --bg-tint:    #EDE9FE;        /* deeper tint — for accents */
  --bg-muted:   #F4F4F5;        /* neutral muted */
  --line:       #E4E4E7;        /* default border */
  --line-soft:  #F1F1F4;        /* subtle divider */
  --line-strong: #C4B5FD;       /* accented border (violet tint) */

  /* === Ink (text) — designed for AAA contrast on the light surfaces === */
  --ink-0:      #0F0F23;        /* primary text — near-black with violet warmth */
  --ink-1:      #27272A;        /* secondary text */
  --ink-2:      #52525B;        /* muted text */
  --ink-3:      #71717A;        /* placeholder, hint text */
  --ink-4:      #A1A1AA;        /* disabled */

  /* === Accent system mapped to brand violet === */
  --accent: var(--brand-violet);
  --accent-soft: var(--brand-violet-soft);
  --accent-deep: var(--brand-violet-deep);
  --accent-glow: var(--brand-glow);

  /* === Legacy compatibility shims — every legacy --neek-* / --bg-1 / --ink-0
     etc. variable still resolves so the 6000-line CSS inherits light mode
     without line-by-line edits === */
  --neek-ink: var(--ink-0);
  --neek-ink-deep: var(--brand-ink);
  --neek-cream: var(--bg-canvas);
  --neek-cream-soft: var(--bg-soft);
  --neek-terracotta: var(--brand-violet);
  --neek-terracotta-soft: var(--brand-violet-soft);
  --neek-terracotta-deep: var(--brand-violet-deep);

  --bg-0: var(--bg-page);
  --bg-1: var(--bg-canvas);
  --bg-2: var(--bg-soft);
  --bg-3: var(--bg-tint);
  --line-2: var(--line-soft);

  /* Aurora compatibility shims (pricing, cart, builder, modals) */
  --aurora-bg-1: var(--bg-canvas);
  --aurora-bg-2: var(--bg-soft);
  --aurora-surface: var(--bg-soft);
  --aurora-border: var(--line);
  --aurora-border-active: var(--brand-violet);
  --aurora-text: var(--ink-0);
  --aurora-text-muted: var(--ink-2);
  --aurora-text-dim: var(--ink-3);
  --aurora-violet: var(--brand-violet);
  --aurora-violet-dim: rgba(124, 58, 237, 0.10);
  --aurora-cyan: var(--brand-cyan);
  --aurora-lime: var(--brand-lime);
  --aurora-gold: #F59E0B;
  --aurora-grad: var(--brand-grad);
  --aurora-shadow-premium: 0 24px 60px -10px rgba(124, 58, 237, 0.18), 0 0 0 1px rgba(124, 58, 237, 0.06);

  /* Status colors */
  --ok: #16A34A;
  --warn: #D97706;
  --err: #DC2626;

  /* Typography */
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* === Sky-blue / navy legacy shims — keep v9.4.9 override block alive after
     the v9.5.0 light-mode rewrite. These let any leftover --sky-* or --navy-*
     reference still resolve to a brand-violet equivalent. === */
  --sky-50:  #F5F3FF;
  --sky-100: #EDE9FE;
  --sky-200: #DDD6FE;
  --sky-300: #C4B5FD;
  --sky-400: var(--brand-violet);
  --sky-500: var(--brand-violet-deep);
  --sky-600: var(--brand-violet-deep);
  --sky-glow: var(--brand-glow);
  --navy-deep: #FFFFFF;
  --navy-1:    var(--bg-canvas);
  --navy-2:    var(--bg-soft);
  --navy-3:    var(--bg-tint);
  --navy-line: var(--line);
  --navy-line-soft: var(--line-soft);
  --cream: var(--ink-0);
  --cream-soft: var(--ink-1);
  --cream-mid: var(--ink-2);
  --cream-dim: var(--ink-3);

  /* Spatial system */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sharp: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  background:
    radial-gradient(ellipse 1200px 600px at 20% -10%, rgba(217, 124, 95, 0.08), transparent 60%),
    radial-gradient(ellipse 1000px 500px at 80% 110%, rgba(244, 236, 216, 0.04), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
}

button, input, textarea, select { font: inherit; color: inherit; }

/* ============================================================
   COSMOS: 3D immersive backdrop layers
   Three depth planes that drift very slowly + a hexagon ghost
   ============================================================ */

.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cosmos__layer {
  position: absolute;
  inset: -50%;
  background-repeat: no-repeat;
  background-position: center;
  will-change: transform;
}

/* Far layer: faint floating orbs */
.cosmos__layer--1 {
  background-image:
    radial-gradient(circle 240px at 15% 25%, rgba(217, 124, 95, 0.10), transparent 60%),
    radial-gradient(circle 320px at 80% 70%, rgba(244, 236, 216, 0.03), transparent 60%),
    radial-gradient(circle 180px at 40% 80%, rgba(217, 124, 95, 0.06), transparent 65%);
  animation: drift-far 38s var(--ease) infinite alternate;
}

/* Mid layer: subtle radial wash */
.cosmos__layer--2 {
  background:
    radial-gradient(ellipse 800px 400px at 50% 10%, rgba(217, 124, 95, 0.05), transparent 60%);
  animation: drift-mid 27s var(--ease) infinite alternate;
}

/* Near layer: warm vignette near the top */
.cosmos__layer--3 {
  background:
    radial-gradient(ellipse 600px 200px at 50% 0%, rgba(217, 124, 95, 0.10), transparent 70%);
  animation: drift-near 19s var(--ease) infinite alternate;
}

/* Floating hexagon ghost — the neekOS mark as a watermark */
.cosmos__hex {
  position: absolute;
  right: -120px;
  top: 18%;
  width: 480px;
  height: 540px;
  background-image: url('/assets/neekos-mark.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04;
  animation: hex-float 22s ease-in-out infinite alternate;
  filter: brightness(2) saturate(0.6);
}

/* Subtle grid showing through */
.cosmos__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 236, 216, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 236, 216, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes drift-far {
  0%   { transform: translate3d(-2%, -2%, 0) scale(1); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.05); }
}
@keyframes drift-mid {
  0%   { transform: translate3d(1%, -1%, 0); }
  100% { transform: translate3d(-1%, 1%, 0); }
}
@keyframes drift-near {
  0%   { transform: translateY(-8px); opacity: 0.9; }
  100% { transform: translateY(8px); opacity: 1; }
}
@keyframes hex-float {
  0%   { transform: rotate(0deg) translateY(0); }
  100% { transform: rotate(8deg) translateY(-30px); }
}

/* Make sure all main content layers above the cosmos */
.rail, .gate, .workflow, .toast {
  position: relative;
  z-index: 2;
}

/* ============================================================
   LOGIN / ACCOUNT GATE — 3D tilted panel
   ============================================================ */

body.is-locked .rail,
body.is-locked .workflow,
body.is-locked .toast { visibility: hidden; }

body:not(.is-locked) .gate { display: none; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 800px 600px at 50% 0%, rgba(217, 124, 95, 0.10), transparent 60%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(244, 236, 216, 0.04), transparent 65%),
    linear-gradient(180deg, var(--bg-0) 0%, #0a0805 100%);
  perspective: 1500px;
  animation: gateIn 0.6s var(--ease);
}

@keyframes gateIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gate__panel {
  background:
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.06) inset,
    0 80px 160px -40px rgba(0, 0, 0, 0.9),
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(217, 124, 95, 0.08);
  transform-style: preserve-3d;
  transform: rotateX(2deg);
  animation: panelLift 0.7s var(--ease);
}

@keyframes panelLift {
  from { transform: rotateX(2deg) translateY(40px); opacity: 0; }
  to   { transform: rotateX(2deg) translateY(0); opacity: 1; }
}

/* Hexagon mark above the form, floating slightly */
.gate__hex {
  width: 96px;
  height: 96px;
  margin: -8px auto 24px;
  position: relative;
  filter: drop-shadow(0 12px 24px rgba(217, 124, 95, 0.4));
  animation: hex-pulse 4s ease-in-out infinite;
}
.gate__hex img {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes hex-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.03); }
}

.gate__brand-text {
  text-align: center;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.gate__neek { color: var(--ink-0); }
.gate__os {
  color: var(--accent);
  font-style: italic;
  font-family: var(--f-display);
  font-weight: 600;
}
.gate__product {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink-2);
  margin-top: 2px;
}

.gate__eyebrow {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  margin: 6px 0 26px;
}

/* Tabs — Sign in / Create account */
.gate__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 22px;
  gap: 2px;
}
.gate__tab {
  background: transparent;
  border: none;
  padding: 10px 12px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.gate__tab:hover { color: var(--ink-0); }
.gate__tab.is-active {
  background: var(--bg-1);
  color: var(--accent-soft);
  box-shadow: 0 1px 0 0 rgba(244, 236, 216, 0.04) inset,
              0 4px 12px -6px rgba(0, 0, 0, 0.6);
}

.gate__form { display: flex; flex-direction: column; gap: 14px; }

.gate__link {
  background: none;
  border: none;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
  margin-top: -6px;
  text-align: center;
  transition: color 0.15s ease;
}
.gate__link:hover { color: var(--accent-soft); }

.gate__error {
  color: var(--err);
  font-size: 12px;
  text-align: center;
  min-height: 16px;
  margin-top: 4px;
}

.gate__legal {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
  margin-top: 8px;
}

/* ============================================================
   TOP RAIL
   ============================================================ */

.rail {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(31, 24, 19, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.rail__mark {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}
.rail__mark img { width: 100%; height: 100%; display: block; }
.rail__neek { color: var(--ink-0); }
.rail__os {
  color: var(--accent);
  font-style: italic;
  font-family: var(--f-display);
  font-weight: 600;
}
.rail__product {
  color: var(--ink-2);
  font-weight: 400;
  font-family: var(--f-display);
  font-style: italic;
}

.rail__steps {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.rail__step {
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  position: relative;
  transition: all 0.18s var(--ease);
  font-weight: 500;
}
.rail__step.is-active {
  color: var(--accent-soft);
  background: rgba(217, 124, 95, 0.10);
  box-shadow: 0 0 16px -4px var(--accent-glow);
}
.rail__step.is-done { color: var(--ok); }
.rail__step.is-done::before { content: "✓ "; }

.rail__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rail__user {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail__chip {
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-1);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  min-height: 36px;
}
.rail__chip:hover {
  border-color: var(--accent-deep);
  color: var(--accent-soft);
}

/* ============================================================
   WORKFLOW LAYOUT
   ============================================================ */

.workflow {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}

/* HERO with badge and stats */
.hero {
  margin-bottom: 64px;
  max-width: 780px;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 124, 95, 0.10);
  border: 1px solid rgba(217, 124, 95, 0.30);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  color: var(--accent-soft);
  margin-bottom: 26px;
  box-shadow: 0 4px 16px -4px var(--accent-glow);
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.2); }
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--ink-0);
}
.hero__accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-soft); /* fallback */
}

.hero__sub {
  font-size: 18px;
  color: var(--ink-1);
  max-width: 680px;
  line-height: 1.65;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stat-num {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--ink-0);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__stat-sm {
  font-size: 24px;
  color: var(--accent);
}
.hero__stat-lab {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

/* ============================================================
   STEP CARDS — 3D elevated cards
   ============================================================ */

.step {
  background:
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-1) 60%, rgba(31, 24, 19, 0.7) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 36px 36px 40px;
  margin-bottom: 32px;
  position: relative;
  transition: all 0.3s var(--ease);
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.025) inset,
    0 28px 64px -32px rgba(0, 0, 0, 0.55),
    0 10px 24px -16px rgba(0, 0, 0, 0.4);
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 124, 95, 0.4), transparent);
  opacity: 0.6;
}

.step:not(.step--locked):hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.03) inset,
    0 36px 72px -32px rgba(0, 0, 0, 0.6),
    0 14px 28px -16px rgba(0, 0, 0, 0.45);
}

.step--locked {
  opacity: 0.45;
  pointer-events: none;
}

.step__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.step__num {
  font-family: var(--f-display);
  font-size: 54px;
  font-weight: 300;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: "lnum" 1;
}

.step__head-text { min-width: 0; }

.step__title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--ink-0);
}

.step__sub {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 62ch;
}

.step__status {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 7px 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  white-space: nowrap;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}
.step__status.is-done {
  color: var(--ok);
  border-color: rgba(127, 199, 127, 0.3);
  background: rgba(127, 199, 127, 0.06);
}
.step__status.is-working {
  color: var(--accent);
  border-color: var(--accent-deep);
  background: rgba(217, 124, 95, 0.08);
}
.step__status.is-error {
  color: var(--err);
  border-color: var(--err);
}

/* ============================================================
   FIELDS
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
  min-width: 0;
}
.field span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.field span em {
  font-style: normal;
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
  font-size: 11px;
  margin-left: 4px;
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  color: var(--ink-0);
  font-size: 14px;
  min-height: 44px;
  font-feature-settings: "lnum" 1;
  transition: all 0.18s var(--ease);
  width: 100%;
  box-shadow: 0 1px 0 0 rgba(244, 236, 216, 0.02) inset;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-3);
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.02) inset,
    0 0 0 3px rgba(217, 124, 95, 0.15);
}
.field textarea { resize: vertical; font-family: var(--f-body); line-height: 1.55; }

/* Location: 3-column grid */
.loc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .loc-grid { grid-template-columns: 1fr; gap: 14px; }
}

.loc-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.loc-actions__hint {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink-0);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  min-height: 42px;
  font-family: var(--f-body);
  letter-spacing: 0.01em;
}
.btn:hover { border-color: var(--accent-deep); color: var(--accent-soft); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  border-color: var(--accent-deep);
  color: #1a0e08;
  font-weight: 700;
  box-shadow:
    0 1px 0 0 rgba(255, 220, 200, 0.4) inset,
    0 10px 24px -10px var(--accent-glow),
    0 4px 8px -2px rgba(184, 90, 62, 0.5);
}
.btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #1a0e08;
  box-shadow:
    0 1px 0 0 rgba(255, 220, 200, 0.5) inset,
    0 14px 28px -10px var(--accent-glow),
    0 6px 10px -2px rgba(184, 90, 62, 0.6);
}
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { transform: none; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-1);
}
.btn--ghost:hover {
  color: var(--ink-0);
  border-color: var(--line-2);
  background: var(--bg-2);
}

.btn--small { padding: 8px 14px; font-size: 12px; min-height: 36px; }
.btn--wide { width: 100%; padding: 14px 18px; font-size: 14px; }
.btn--xl {
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 700;
  min-height: 60px;
  border-radius: var(--r-lg);
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.btn__bolt {
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

/* ============================================================
   STEP 1 — DROP ZONE (3D treatment)
   ============================================================ */

.drop-zone {
  border: 2px dashed var(--line-2);
  border-radius: var(--r-xl);
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  background:
    radial-gradient(circle 200px at 50% 40%, rgba(217, 124, 95, 0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
}
.drop-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(217, 124, 95, 0.07), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(244, 236, 216, 0.03), transparent 50%);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.drop-zone:hover,
.drop-zone:focus,
.drop-zone.is-dragover {
  border-color: var(--accent);
  background:
    radial-gradient(circle 220px at 50% 40%, rgba(217, 124, 95, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  outline: none;
}
.drop-zone:hover::before,
.drop-zone:focus::before { opacity: 1; }
.drop-zone.is-dragover {
  transform: scale(1.005);
  box-shadow:
    0 0 0 6px var(--accent-glow),
    0 20px 40px -16px var(--accent-glow);
}

.drop-zone__icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  filter: drop-shadow(0 6px 16px var(--accent-glow));
  background:
    radial-gradient(circle, rgba(217, 124, 95, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.drop-zone__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink-0);
  letter-spacing: -0.015em;
}
.drop-zone__sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.10em;
}

.upload-meta {
  margin-top: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 24px;
}
.upload-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 13px;
  flex-wrap: wrap;
}
.upload-meta__row:not(:last-child) { border-bottom: 1px solid var(--line); }
.upload-meta__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 700;
}
.upload-meta__val {
  color: var(--ink-0);
  font-family: var(--f-mono);
  font-size: 12px;
}

.upload-preview {
  margin-top: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
}
.upload-preview summary {
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  text-transform: uppercase;
  user-select: none;
  font-weight: 700;
}
.upload-preview pre {
  margin-top: 14px;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-1);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px;
}

/* ============================================================
   STEP 1 — API BLOCK
   ============================================================ */

.api-block {
  background:
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--accent-deep);
  border-radius: var(--r-md);
  padding: 22px;
  margin: 26px 0 20px;
  position: relative;
  box-shadow: 0 1px 0 0 rgba(244, 236, 216, 0.02) inset;
}
.api-block::before {
  content: "API ACCESS";
  position: absolute;
  top: -8px;
  left: 18px;
  background: var(--bg-1);
  padding: 0 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 800;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.submit-row .btn--xl { flex: 1; max-width: 400px; }

.submit-status {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  flex: 1;
  letter-spacing: 0.02em;
}
.submit-status.is-working { color: var(--accent-soft); }
.submit-status.is-error { color: var(--err); }

.api-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 72ch;
}
.api-note code {
  font-family: var(--f-mono);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-soft);
  font-size: 11px;
}

/* ============================================================
   PARALLEL BRANCH STATUS PILLS
   ============================================================ */
.branch-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.branch-status:empty { display: none; }

.branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-3);
  color: var(--ink-2);
  border: 1px solid var(--line);
  font-weight: 600;
  transition: all 0.18s ease;
}
.branch-pill.is-running {
  color: var(--accent-soft);
  border-color: var(--accent);
  background: rgba(217, 124, 95, 0.10);
  animation: branchPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 12px -2px var(--accent-glow);
}
.branch-pill.is-done {
  color: var(--ok);
  border-color: rgba(127, 199, 127, 0.4);
  background: rgba(127, 199, 127, 0.10);
}
.branch-pill.is-failed {
  color: var(--err);
  border-color: rgba(224, 122, 106, 0.4);
  background: rgba(224, 122, 106, 0.10);
}
@keyframes branchPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================================
   SKILL CACHE PANEL
   ============================================================ */
.skill-cache-host { margin-top: 22px; }

.skill-cache {
  background: linear-gradient(150deg, rgba(217, 124, 95, 0.06) 0%, var(--bg-2) 60%);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 16px 20px;
  position: relative;
}
.skill-cache--empty {
  border-left-color: var(--line-2);
  background: var(--bg-2);
}

.skill-cache__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}
.skill-cache--empty .skill-cache__head { color: var(--ink-3); }

.skill-cache__badge {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ok);
  background: rgba(127, 199, 127, 0.10);
  border: 1px solid rgba(127, 199, 127, 0.35);
  border-radius: var(--r-sm);
  padding: 3px 9px;
  font-weight: 700;
}
.skill-cache__body {
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.6;
}

/* ============================================================
   STEP 2 — RESULTS
   ============================================================ */

.profile-summary {
  background:
    linear-gradient(165deg, rgba(217, 124, 95, 0.06) 0%, var(--bg-2) 40%, var(--bg-3) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.profile-summary::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent-deep) 100%);
}

.profile-summary__head {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}
.profile-summary__text {
  font-family: var(--f-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink-0);
}

.results-block { margin-bottom: 40px; }
.results-block__title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
  padding-left: 16px;
  color: var(--ink-0);
}
.results-block__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent-deep) 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px -2px var(--accent-glow);
}
.results-block__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Variant cards */
.variant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .variant-grid { grid-template-columns: 1fr; }
}

.variant-card {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.22s var(--ease);
}
.variant-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-deep), transparent);
  opacity: 0.5;
}
.variant-card:hover {
  border-color: var(--accent-deep);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px -16px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(217, 124, 95, 0.15);
}
.variant-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.variant-card__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}
.variant-card__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  text-transform: uppercase;
  background: rgba(217, 124, 95, 0.10);
  border: 1px solid rgba(217, 124, 95, 0.30);
  border-radius: var(--r-sm);
  padding: 4px 9px;
  font-weight: 700;
}
.variant-card__desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  flex: 1;
}
.variant-card__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* Job list */
.job-results {
  display: grid;
  gap: 12px;
}

.job-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  align-items: center;
  transition: all 0.18s var(--ease);
  min-width: 0;
}
.job-row:hover {
  border-color: var(--accent-deep);
  transform: translateX(3px);
  box-shadow: -4px 0 0 0 var(--accent), 0 12px 24px -12px rgba(0, 0, 0, 0.4);
}
.job-row__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.job-row__meta {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.job-row__meta strong { color: var(--ink-0); font-weight: 600; }

.job-row__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.job-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
}
.job-badge--promo {
  color: var(--accent-soft);
  background: rgba(217, 124, 95, 0.10);
  border-color: rgba(217, 124, 95, 0.35);
}
.job-badge--high {
  color: var(--ok);
  background: rgba(127, 199, 127, 0.08);
  border-color: rgba(127, 199, 127, 0.30);
}

.job-row__why {
  font-size: 12px;
  color: var(--ink-2);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.job-row__salary {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--accent-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.job-row__apply {
  padding: 11px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  border: 1px solid var(--accent-deep);
  color: #1a0e08;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  transition: all 0.15s var(--ease);
  box-shadow:
    0 1px 0 0 rgba(255, 220, 200, 0.4) inset,
    0 6px 14px -4px var(--accent-glow);
}
.job-row__apply:hover {
  filter: brightness(1.06);
  transform: scale(1.04);
}

/* ============================================================
   LEARNINGS PANEL
   ============================================================ */
.learnings-panel {
  margin-top: 36px;
  padding: 24px 26px;
  background:
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.learn__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.learn__head h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-0);
}
.learn__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.learn__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
@media (max-width: 768px) { .learn__grid { grid-template-columns: 1fr; } }

.learn__col-head {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}

.learn__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.learn__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.learn__list li:last-child { border-bottom: 0; }
.learn-row__title {
  font-weight: 600;
  color: var(--ink-0);
  grid-column: 1;
}
.learn-row__co {
  color: var(--ink-2);
  grid-column: 1;
  font-size: 12px;
}
.learn-row__when {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  white-space: nowrap;
}
.learn-row--empty {
  color: var(--ink-3);
  font-style: italic;
  font-size: 12px;
  display: block !important;
  grid-template-columns: none !important;
}

.learn__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--ink-0);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s var(--ease);
  z-index: 100;
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.05) inset,
    0 24px 56px -16px rgba(0, 0, 0, 0.8),
    0 0 32px -8px var(--accent-glow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 380px;
  font-weight: 500;
}
.toast.is-show { opacity: 1; transform: translateY(0); }
.toast::before {
  content: "●";
  color: var(--accent);
  margin-right: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .workflow { padding: 40px 22px 88px; }
  .step { padding: 30px 26px; }
  .step__num { font-size: 44px; }
  .rail__steps { gap: 18px; font-size: 11px; }
  .rail__step { padding: 5px 9px; }
}

@media (max-width: 768px) {
  .rail { padding: 12px 16px; gap: 12px; }
  .rail__steps { display: none; }
  .rail__brand { font-size: 16px; gap: 10px; }
  .rail__mark { width: 28px; height: 28px; }
  .rail__user { display: none; }

  .workflow { padding: 28px 16px 80px; }
  .hero { margin-bottom: 44px; }
  .hero__title { font-size: clamp(32px, 9vw, 44px); }
  .hero__sub { font-size: 16px; }
  .hero__stats { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; }
  .hero__stat { flex-direction: row; align-items: baseline; gap: 14px; }
  .hero__stat-num { font-size: 28px; }

  .step { padding: 24px 18px; border-radius: var(--r-xl); }
  .step__head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num text"
      "status status";
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 20px;
  }
  .step__num { grid-area: num; font-size: 36px; }
  .step__head-text { grid-area: text; }
  .step__status { grid-area: status; justify-self: start; }
  .step__title { font-size: 22px; }
  .step__sub { font-size: 13px; }

  .field input, .field textarea, .field select {
    min-height: 44px;
    font-size: 16px;
  }

  .submit-row { flex-direction: column; align-items: stretch; }
  .submit-row .btn--xl { max-width: none; width: 100%; }
  .submit-status { text-align: center; }

  .drop-zone { padding: 38px 18px; }
  .drop-zone__title { font-size: 18px; }

  .variant-grid { grid-template-columns: 1fr; }

  .job-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .job-row__salary {
    text-align: left;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .job-row__salary::before {
    content: "Salary: ";
    color: var(--ink-3);
    font-size: 10px;
    margin-right: 4px;
    font-weight: 500;
  }
  .job-row__apply { width: 100%; padding: 14px; min-height: 48px; }

  .btn { min-height: 44px; }
  .btn--small { min-height: 36px; }

  .gate { padding: 16px; }
  .gate__panel { padding: 32px 24px 28px; transform: none; }
  .gate__hex { width: 80px; height: 80px; }
  .gate__brand-text { font-size: 24px; }
  .gate__product { font-size: 15px; }

  .toast {
    bottom: 14px; right: 14px; left: 14px;
    text-align: center;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .rail__brand { font-size: 14px; }
  .rail__product { display: none; }
  .hero__title { font-size: 28px; }
  .step__title { font-size: 19px; }
  .step { padding: 20px 14px; }
  .results-block__title { font-size: 19px; }
  .variant-card { padding: 18px; }
  .gate__panel { padding: 26px 18px; }
}

@media (max-width: 360px) {
  .step { padding: 16px 12px; }
  .step__num { font-size: 28px; }
  .btn--xl { padding: 14px 12px; font-size: 14px; }
  .gate__panel { padding: 22px 16px; }
}

@media (hover: none) and (pointer: coarse) {
  .field input, .field textarea, .field select { padding: 14px 16px; }
  .job-row:hover { transform: none; }
  .variant-card:hover { transform: none; }
  .step:not(.step--locked):hover { transform: none; }
}

@supports (padding: max(0px)) {
  .rail {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .workflow {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(80px, env(safe-area-inset-bottom));
  }
}

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

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 5px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* Selection */
::selection { background: rgba(217, 124, 95, 0.3); color: var(--ink-0); }
::-moz-selection { background: rgba(217, 124, 95, 0.3); color: var(--ink-0); }

/* Long content protection */
* { -webkit-tap-highlight-color: transparent; }

.job-row__title,
.job-row__meta,
.job-row__why,
.variant-card__desc,
.variant-card__name,
.profile-summary__text,
.api-note,
.gate__brand-text,
.step__title,
.step__sub {
  overflow-wrap: anywhere;
}

img, video, canvas, svg { max-width: 100%; height: auto; }
pre { max-width: 100%; overflow-x: auto; }

/* ============================================================
   ROLE-BASED SIGN-UP: cards, forms, modals, cookie banner
   ============================================================ */

.role-view { /* visibility controlled via inline style by JS */ }

.gate__choose-hint {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
  margin-bottom: 6px;
}

.role-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--f-body);
  color: var(--ink-0);
}
.role-card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.5);
}
.role-card__icon {
  font-size: 32px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 124, 95, 0.10);
  border: 1px solid rgba(217, 124, 95, 0.25);
  border-radius: var(--r-md);
}
.role-card__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 3px;
}
.role-card__desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.45;
}
.role-card__hint {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--accent-soft);
  margin-top: 5px;
  letter-spacing: 0.04em;
}
.role-card__arrow {
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
}

.gate__back {
  background: none;
  border: none;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
  align-self: flex-start;
  transition: color 0.15s;
}
.gate__back:hover { color: var(--accent-soft); }

.gate__form-title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-0);
  margin: 0;
  letter-spacing: -0.01em;
}
.gate__form-sub {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: -6px 0 8px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-1);
  line-height: 1.5;
  cursor: pointer;
  padding: 8px 0;
}
.check-row input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check-row a {
  color: var(--accent-soft);
  text-decoration: underline;
}

/* ============================================================
   MODALS (forced password change, terms)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 600px 400px at 50% 0%, rgba(217, 124, 95, 0.08), transparent 60%),
    rgba(15, 11, 7, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: gateIn 0.3s var(--ease);
}
.modal__panel {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  padding: 36px 36px 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.06) inset,
    0 60px 120px -30px rgba(0, 0, 0, 0.9);
}
.modal__panel--wide { max-width: 720px; }
.modal__title {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin-bottom: 8px;
}
.modal__sub {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 22px;
}
.modal__body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 4px 16px;
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.65;
  margin-bottom: 18px;
}
.modal__body h3 {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-0);
  margin: 18px 0 8px;
  letter-spacing: -0.01em;
}
.modal__body p { margin-bottom: 10px; }
.modal__body strong { color: var(--ink-0); }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink-1);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover {
  color: var(--accent);
  border-color: var(--accent-deep);
}

/* ============================================================
   COOKIE / PRIVACY BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 14px;
  background: linear-gradient(180deg, rgba(31, 24, 19, 0.96) 0%, rgba(15, 11, 7, 0.98) 100%);
  border-top: 1px solid var(--accent-deep);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -12px 40px -8px rgba(0, 0, 0, 0.6);
  animation: cookieSlide 0.4s var(--ease);
}
@keyframes cookieSlide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.cookie-banner__icon {
  font-size: 28px;
  line-height: 1;
}
.cookie-banner__text {
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.55;
}
.cookie-banner__text strong { color: var(--ink-0); }
.cookie-banner__text a {
  color: var(--accent-soft);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .cookie-banner__icon { display: none; }
  .cookie-banner__actions { justify-content: center; }
}

/* ============================================================
   EMPLOYER + ADMIN DASHBOARD
   ============================================================ */
.emp-dash {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .emp-dash { grid-template-columns: 1fr; }
}

.emp-stat {
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(31, 24, 19, 0.6) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: 0 1px 0 0 rgba(244, 236, 216, 0.025) inset;
}
.emp-stat__num {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--ink-0);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.emp-stat__lab {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

.emp-form { display: flex; flex-direction: column; gap: 16px; }
.emp-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .emp-form__row { grid-template-columns: 1fr; }
}

.admin-user-list {
  display: grid;
  gap: 8px;
}
.admin-user {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  align-items: center;
}
.admin-user__badge {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-weight: 700;
  white-space: nowrap;
}
.admin-user__badge--seeker {
  color: var(--ink-1);
  background: rgba(244, 236, 216, 0.06);
  border: 1px solid var(--line-2);
}
.admin-user__badge--employer {
  color: var(--accent-soft);
  background: rgba(217, 124, 95, 0.10);
  border: 1px solid rgba(217, 124, 95, 0.3);
}
.admin-user__badge--admin {
  color: var(--ok);
  background: rgba(127, 199, 127, 0.10);
  border: 1px solid rgba(127, 199, 127, 0.3);
}
.admin-user__name { font-weight: 600; font-size: 14px; color: var(--ink-0); }
.admin-user__email { font-size: 12px; color: var(--ink-2); font-family: var(--f-mono); }
.admin-user__when {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Employer job listing row */
.emp-job-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  align-items: start;
  transition: all 0.18s var(--ease);
}
.emp-job-row:hover {
  border-color: var(--accent-deep);
  transform: translateX(2px);
}
.emp-job-row__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-0);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.emp-job-row__meta {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.emp-job-row__date {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.emp-job-row__sal {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent-soft);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}


/* ============================================================
   CONNEXT MARKETPLACE & CANDIDATE SUGGESTIONS
   Visual treatment for employer-posted job results on the seeker
   side and seeker candidate results on the employer side. Uses
   the same job-row scaffolding with a distinctive accent.
   ============================================================ */

.results-block__intro {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: -6px 0 18px 16px;
  max-width: 68ch;
}

.job-row--connext {
  border-color: rgba(217, 124, 95, 0.28);
  background:
    linear-gradient(180deg, rgba(217, 124, 95, 0.04) 0%, var(--bg-1) 100%);
}
.job-row--connext:hover {
  border-color: var(--accent);
  box-shadow: -4px 0 0 0 var(--accent-soft), 0 12px 24px -12px rgba(0, 0, 0, 0.4);
}

.job-badge--connext {
  color: var(--accent-soft);
  background: rgba(217, 124, 95, 0.14);
  border-color: rgba(217, 124, 95, 0.4);
  font-weight: 700;
}

/* Candidate cards on the employer side */
.emp-cand-group {
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.emp-cand-group:last-child { border-bottom: 0; }

.emp-cand-group__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(217, 124, 95, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  flex-wrap: wrap;
}
.emp-cand-group__title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.emp-cand-group__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.job-row--candidate {
  grid-template-columns: 1fr;
  border-color: var(--line);
}
.job-row--candidate:hover {
  border-color: var(--accent-deep);
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .emp-cand-group__head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   v9.0 — GOOGLE SIGN-IN, VERIFICATION BANNER, PWA SHEET
   ============================================================ */

/* Google sign-in button (Material-style white surface) */
.btn--google {
  width: 100%;
  background: #fff;
  color: #1f1813;
  border: 1px solid #dadce0;
  font-weight: 600;
  padding: 11px 18px;
  min-height: 44px;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.btn--google:hover {
  background: #f8f9fa;
  border-color: #c0c4ca;
  color: #1f1813;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
.btn--google:active {
  transform: translateY(0);
}
.btn--google svg { flex-shrink: 0; }

/* "or with email" / "or sign up instantly" divider */
.gate__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.gate__divider::before,
.gate__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.gate__hint-text {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.55;
  margin-top: 4px;
}

/* Version badge in the rail */
.rail__version {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 600;
  background: rgba(244, 236, 216, 0.02);
}
@media (max-width: 768px) {
  .rail__version { display: none; }
}

/* Email verification banner */
.verify-banner {
  position: sticky;
  top: 0;
  z-index: 49;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: linear-gradient(180deg, rgba(232, 179, 75, 0.16) 0%, rgba(232, 179, 75, 0.08) 100%);
  border-bottom: 1px solid rgba(232, 179, 75, 0.3);
  color: var(--ink-0);
  font-size: 13px;
  line-height: 1.5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-wrap: wrap;
}
.verify-banner__icon {
  font-size: 18px;
  color: var(--warn);
  flex-shrink: 0;
}
.verify-banner__text {
  flex: 1;
  min-width: 200px;
}
.verify-banner__text strong {
  color: var(--accent-soft);
  font-weight: 600;
}
.verify-banner__btn {
  background: transparent;
  border: 1px solid var(--warn);
  color: var(--warn);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
  transition: all 0.15s var(--ease);
}
.verify-banner__btn:hover {
  background: var(--warn);
  color: #1f1813;
}
.verify-banner__close {
  background: transparent;
  border: none;
  color: var(--ink-2);
  font-size: 20px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.verify-banner__close:hover { color: var(--ink-0); }

@media (max-width: 600px) {
  .verify-banner { padding: 10px 14px; gap: 8px; }
  .verify-banner__text { font-size: 12px; }
}

/* PWA Add-to-Home-Screen sheet (bottom-anchored on mobile, centered on desktop) */
.pwa-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
}
.pwa-sheet.is-show {
  opacity: 1;
  pointer-events: auto;
}

.pwa-sheet__panel {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 24px 22px 22px;
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.04) inset,
    0 32px 64px -16px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(217, 124, 95, 0.10);
  transform: translateY(40px);
  transition: transform 0.32s var(--ease);
}
.pwa-sheet.is-show .pwa-sheet__panel {
  transform: translateY(0);
}

@media (min-width: 600px) {
  .pwa-sheet { align-items: center; }
}

.pwa-sheet__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.pwa-sheet__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}
.pwa-sheet__title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.pwa-sheet__sub {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.pwa-sheet__bullets,
.pwa-sheet__steps {
  margin: 0 0 18px;
  padding-left: 24px;
  color: var(--ink-1);
  font-size: 13px;
  line-height: 1.65;
}
.pwa-sheet__bullets li,
.pwa-sheet__steps li {
  margin-bottom: 5px;
}
.pwa-sheet__steps strong {
  color: var(--accent-soft);
}
.pwa-sheet__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.pwa-sheet__actions .btn {
  flex: 0 0 auto;
  min-height: 40px;
}
@media (max-width: 480px) {
  .pwa-sheet__actions { flex-direction: column-reverse; }
  .pwa-sheet__actions .btn { width: 100%; }
}

/* ============================================================
   v9.1 — AVATAR & AUTO-GENERATED PROFILE CARD
   ============================================================ */

.rail__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a0e08;
  font-weight: 700;
  font-family: var(--f-body);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 1px 0 0 rgba(255, 220, 200, 0.4) inset,
    0 4px 12px -4px var(--accent-glow);
  border: 1px solid var(--accent-deep);
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.rail__avatar:hover { transform: scale(1.06); }

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar__initials {
  font-weight: 700;
  letter-spacing: 0;
  color: #1a0e08;
}

.user-profile-card {
  background: linear-gradient(165deg, rgba(217, 124, 95, 0.07) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.03) inset,
    0 16px 40px -20px rgba(0, 0, 0, 0.45);
}
.user-profile-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; bottom: 0;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent-deep) 100%);
}

.user-profile-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.user-profile-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a0e08;
  font-weight: 700;
  overflow: hidden;
  border: 2px solid var(--accent-deep);
  box-shadow:
    0 1px 0 0 rgba(255, 220, 200, 0.4) inset,
    0 8px 20px -6px var(--accent-glow);
  flex-shrink: 0;
}

.user-profile-card__id { min-width: 0; }

.user-profile-card__name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.user-profile-card__title {
  font-size: 14px;
  color: var(--ink-1);
  font-weight: 500;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}
.user-profile-card__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.user-profile-card__tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  background: rgba(217, 124, 95, 0.10);
  border: 1px solid rgba(217, 124, 95, 0.3);
  border-radius: var(--r-sm);
  padding: 4px 9px;
  font-weight: 700;
  white-space: nowrap;
  align-self: flex-start;
}

.user-profile-card__bio-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 16px 0 8px;
  font-weight: 700;
}

.user-profile-card__bio {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-0);
  overflow-wrap: anywhere;
}

.user-profile-card__roles { display: flex; flex-direction: column; gap: 8px; }

.user-profile-card__role {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.user-profile-card__role:last-child { border-bottom: 0; }

.user-profile-card__role-title { color: var(--ink-0); font-weight: 600; }
.user-profile-card__role-org { color: var(--ink-2); font-style: italic; }
.user-profile-card__role-dates {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.user-profile-card__skills { display: flex; flex-wrap: wrap; gap: 6px; }
.user-profile-card__skill {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 5px 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-1);
  font-weight: 500;
}

.user-profile-card__note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .user-profile-card { padding: 18px 16px; }
  .user-profile-card__head { grid-template-columns: auto 1fr; gap: 14px; }
  .user-profile-card__tag { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
  .user-profile-card__avatar { width: 52px; height: 52px; }
  .user-profile-card__name { font-size: 18px; }
  .user-profile-card__role { grid-template-columns: 1fr; gap: 4px; }
  .user-profile-card__role-dates { font-size: 10px; }
}

/* ============================================================
   v9.2 — BRAND HIERARCHY REFINEMENT
   Connext is the primary identity. neekOS BUSINESS AI sits
   above as supporting eyebrow context. The tagline reinforces
   the positioning as a next-generation AI job market.
   ============================================================ */

/* Gate brand hierarchy */
.gate__brand-eyebrow {
  text-align: center;
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin: 4px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gate__brand-eyebrow .gate__neek {
  color: var(--ink-1);
  font-weight: 600;
}
.gate__brand-eyebrow .gate__os {
  color: var(--accent-soft);
  font-style: italic;
  font-family: var(--f-display);
  font-weight: 600;
}
.gate__divider {
  color: var(--ink-3);
  font-weight: 400;
}
.gate__bizai {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  font-weight: 600;
}

.gate__brand-primary {
  text-align: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  margin: 8px 0 12px;
}

.gate__tagline {
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: var(--accent-soft);
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.gate__eyebrow {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  margin: 0 0 24px;
  text-transform: uppercase;
}

/* Rail brand hierarchy */
.rail__connext {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.rail__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  line-height: 1;
}
.rail__sub .rail__neek {
  color: var(--ink-2);
  font-weight: 600;
  font-family: var(--f-body);
  letter-spacing: 0.02em;
}
.rail__sub .rail__os {
  color: var(--accent-soft);
  font-style: italic;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
}
.rail__sub .rail__divider { color: var(--ink-3); }
.rail__sub .rail__bizai {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 600;
}

@media (max-width: 768px) {
  .rail__sub .rail__bizai { display: none; }
  .rail__sub .rail__divider { display: none; }
  .gate__brand-primary { font-size: 36px; }
  .gate__tagline { font-size: 13px; }
}

@media (max-width: 480px) {
  .rail__connext { font-size: 18px; }
  .rail__sub { font-size: 9px; }
  .gate__brand-primary { font-size: 30px; }
}

/* ============================================================
   v9.2 — ACCOUNT MODAL (profile picture upload + presets)
   ============================================================ */

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-1);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: rgba(217, 124, 95, 0.08);
}

.account-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(217, 124, 95, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 22px;
}
.account-preview__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a0e08;
  font-weight: 700;
  overflow: hidden;
  border: 2px solid var(--accent-deep);
  flex-shrink: 0;
  box-shadow:
    0 1px 0 0 rgba(255, 220, 200, 0.4) inset,
    0 12px 28px -8px var(--accent-glow);
}
.account-preview__meta { min-width: 0; flex: 1; }
.account-preview__name {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.account-preview__email {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.account-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.account-section:first-of-type { border-top: 0; padding-top: 0; }
.account-section__title {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-0);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.account-section__sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.5;
}
.account-section__hint {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 10px;
  letter-spacing: 0.04em;
  min-height: 14px;
}
.account-section__hint.is-working { color: var(--accent-soft); }
.account-section__hint.is-done { color: var(--ok); }
.account-section__hint.is-error { color: var(--err); }

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.avatar-preset {
  background: transparent;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  aspect-ratio: 1;
  overflow: hidden;
  min-height: 56px;
}
.avatar-preset img {
  width: 100%;
  height: 100%;
  border-radius: var(--r-sm);
  display: block;
  object-fit: cover;
}
.avatar-preset:hover {
  border-color: var(--accent);
  transform: scale(1.04);
  box-shadow: 0 8px 16px -6px var(--accent-glow);
}

@media (max-width: 480px) {
  .avatar-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .account-preview { flex-direction: column; text-align: center; gap: 12px; }
  .account-preview__avatar { width: 80px; height: 80px; }
}

/* ============================================================
   v9.2.9 — PIPELINE PROGRESS OVERLAY + RESULTS ACTION BAR
   ============================================================ */

.pipeline-progress {
  position: fixed;
  inset: 0;
  z-index: 250;
  background:
    radial-gradient(ellipse 800px 500px at 50% 20%, rgba(217, 124, 95, 0.15), transparent 70%),
    rgba(15, 11, 7, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: gateIn 0.3s var(--ease);
}

.pipeline-progress__panel {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 560px;
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.06) inset,
    0 60px 120px -30px rgba(0, 0, 0, 0.9);
}

.pipeline-progress__head { text-align: center; margin-bottom: 24px; }
.pipeline-progress__title {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pipeline-progress__sub {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  text-transform: uppercase;
}

.pipeline-progress__bar-track {
  height: 8px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 8px;
}
.pipeline-progress__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  box-shadow: 0 0 16px 0 var(--accent-glow);
  border-radius: 999px;
  transition: width 0.5s var(--ease);
}
.pipeline-progress__percent {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent-soft);
  font-weight: 700;
  margin-bottom: 24px;
}

.pipeline-progress__stages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.pp-stage {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease);
}
.pp-stage.is-running {
  background: rgba(217, 124, 95, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(217, 124, 95, 0.3), 0 4px 12px -4px var(--accent-glow);
}
.pp-stage.is-done {
  background: rgba(76, 175, 80, 0.06);
  border-color: rgba(76, 175, 80, 0.3);
}
.pp-stage.is-failed {
  background: rgba(244, 67, 54, 0.06);
  border-color: rgba(244, 67, 54, 0.3);
}
.pp-stage__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 700;
}
.pp-stage.is-running .pp-stage__icon {
  color: var(--accent-soft);
  border-color: var(--accent);
  animation: ppPulse 1.2s ease-in-out infinite;
}
.pp-stage.is-done .pp-stage__icon {
  color: var(--ok, #4caf50);
  border-color: rgba(76, 175, 80, 0.5);
}
.pp-stage.is-failed .pp-stage__icon {
  color: var(--err, #f44336);
  border-color: rgba(244, 67, 54, 0.5);
}
@keyframes ppPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}
.pp-stage__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-0);
}
.pp-stage__desc {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

.pipeline-progress__foot {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 600px) {
  .pipeline-progress__panel { padding: 28px 20px 24px; }
  .pipeline-progress__title { font-size: 22px; }
}

/* RESULTS ACTION BAR — appears below branch status when results are ready */
.results-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}
.results-actions .btn { flex: 1; min-width: 220px; }

@media (max-width: 600px) {
  .results-actions .btn { min-width: 100%; }
}

/* ============================================================
   v9.3.1 — ACCOUNT MODAL SIZING + CANCEL UI
   ============================================================ */

/* Tighten the account modal so it never exceeds the viewport,
   especially on laptop screens where 460px wide × tall content was clipping. */
#accountModal .modal__panel {
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 28px 24px;
}
#accountModal .modal__title { font-size: 22px; margin-bottom: 6px; }
#accountModal .modal__sub { font-size: 13px; margin-bottom: 18px; }

/* Compact account sections — tighter spacing, smaller titles */
#accountModal .account-section {
  padding: 14px 0;
}
#accountModal .account-section__title { font-size: 13px; margin-bottom: 4px; }
#accountModal .account-section__sub { font-size: 12px; margin-bottom: 10px; }

/* Compact preview block */
#accountModal .account-preview { gap: 14px; padding: 12px 14px; margin-bottom: 4px; }
#accountModal .account-preview__avatar { width: 56px; height: 56px; font-size: 22px; }
#accountModal .account-preview__name { font-size: 15px; }
#accountModal .account-preview__email { font-size: 12px; }

/* Compact avatar grid — 3 columns at 56px, two rows for 6 presets */
#accountModal .avatar-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
#accountModal .avatar-preset { padding: 8px; }
#accountModal .avatar-preset svg { width: 44px; height: 44px; }

/* Dedicated actions row for the Done button */
.account-section--actions {
  border-top: 1px solid var(--line);
  padding-top: 18px !important;
  margin-top: 6px;
}

/* Small ghost button modifier for the pipeline cancel and similar uses */
.btn--sm {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Two-column foot for elapsed timer + cancel button on the progress overlay */
.pipeline-progress__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pipeline-progress__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  flex: 1;
}
.pp-elapsed {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
}
.pp-elapsed strong { color: var(--accent-soft); margin-left: 4px; font-weight: 700; }
.pp-hint {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  #accountModal .modal__panel {
    padding: 22px 20px 20px;
    max-width: 100%;
  }
  #accountModal .avatar-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pipeline-progress__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pipeline-progress__meta { text-align: center; align-items: center; }
}

/* ============================================================
   v9.3.2 — THREE-PAGE SEEKER FLOW (input / progress / results)
   ============================================================ */

/* Each seeker page is a full-block container that swaps visibility
   via JavaScript. No fixed positioning — these are real page sections. */
.seeker-page {
  /* visibility controlled by inline style from JS */
}

/* The progress page is a centered, vertically-balanced page with the
   same panel treatment the overlay used, but inline in document flow. */
.pipeline-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}
.pipeline-page__inner {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  padding: 48px 48px 36px;
  width: 100%;
  max-width: 640px;
  box-shadow:
    0 1px 0 0 rgba(244, 236, 216, 0.06) inset,
    0 60px 120px -30px rgba(0, 0, 0, 0.5);
}
.pipeline-page__head { text-align: center; margin-bottom: 28px; }
.pipeline-page__eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin-bottom: 10px;
}
.pipeline-page__title {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.pipeline-page__sub {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .pipeline-page__inner { padding: 32px 24px 28px; }
  .pipeline-page__title { font-size: 26px; }
  .pipeline-page { min-height: calc(100vh - 160px); padding: 24px 0; }
}

/* ============================================================================
   v9.4.0 — AURORA REBRAND LAYER
   Electric violet + hot cyan + lime, tuned for 18–30 demographic.
   Layered ABOVE existing palette; old neek-* vars remain untouched so the
   pipeline UI keeps working. New components below use --aurora-* tokens.
   ============================================================================ */
:root {
  --aurora-bg: #0A0E27;
  --aurora-bg-1: #0F1429;
  --aurora-bg-2: #131838;
  --aurora-surface: #1A1F4A;
  --aurora-surface-hover: #232A5E;
  --aurora-border: rgba(255, 255, 255, 0.08);
  --aurora-border-active: rgba(139, 92, 246, 0.45);

  --aurora-violet: #8B5CF6;
  --aurora-violet-hover: #A78BFA;
  --aurora-violet-dim: rgba(139, 92, 246, 0.18);
  --aurora-cyan: #06B6D4;
  --aurora-cyan-hover: #22D3EE;
  --aurora-lime: #84CC16;
  --aurora-gold: #FACC15;

  --aurora-text: #FAFAFA;
  --aurora-text-muted: #94A3B8;
  --aurora-text-dim: #64748B;

  --aurora-grad: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  --aurora-grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%);
  --aurora-grad-full: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 50%, #84CC16 100%);
  --aurora-grad-platinum: linear-gradient(135deg, #FACC15 0%, #F59E0B 50%, #DC2626 100%);

  --aurora-shadow-glow: 0 0 60px rgba(139, 92, 246, 0.18);
  --aurora-shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
  --aurora-shadow-premium: 0 24px 70px -8px rgba(139, 92, 246, 0.35);
}

/* gradient text helper */
.grad-text {
  background: var(--aurora-grad-full);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- AURORA HERO OVERRIDES ---------- */
.hero--aurora { position: relative; }
.hero--aurora::before {
  content: "";
  position: absolute; inset: -40px -40px 40px -40px;
  background: radial-gradient(60% 50% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero__badge--aurora {
  background: var(--aurora-grad-soft);
  border: 1px solid var(--aurora-border-active);
  color: var(--aurora-text);
}
.hero__title--aurora { letter-spacing: -0.02em; }
.hero__accent--aurora {
  background: var(--aurora-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero__cta-row {
  display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px;
}

/* ---------- AURORA BUTTONS ---------- */
.btn--aurora {
  background: var(--aurora-grad);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: var(--aurora-shadow-premium);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
}
.btn--aurora:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--aurora:active { transform: translateY(0); filter: brightness(0.95); }

.btn--platinum {
  background: var(--aurora-grad-platinum);
  color: #1a0f00;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 50px -8px rgba(250, 204, 21, 0.35);
  font-weight: 700;
}
.btn--platinum:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ---------- RAIL ADDITIONS ---------- */
.rail__chip--pricing {
  background: var(--aurora-grad);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s var(--ease), transform 0.15s var(--ease);
}
.rail__chip--pricing:hover { filter: brightness(1.1); transform: translateY(-1px); }

.rail__credits {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.12);
  border: 1px solid rgba(132, 204, 22, 0.35);
  color: var(--aurora-lime);
  font-size: 12px; font-weight: 600;
  font-family: var(--f-mono);
}
.rail__credits::before { content: "⚡"; }

/* ============================================================================
   PRICING PAGE
   ============================================================================ */
.view-pricing { padding: 36px 8% 120px; max-width: 1300px; margin: 0 auto; }

.pricing-hero { text-align: center; padding: 24px 0 56px; }
.pricing-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--aurora-grad-soft);
  border: 1px solid var(--aurora-border-active);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--aurora-text);
  margin-bottom: 22px;
}
.pricing-hero__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 400;
}
.pricing-hero__sub {
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 24px;
  color: var(--aurora-text-muted);
}
.pricing-hero__byok {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(132, 204, 22, 0.08);
  border: 1px solid rgba(132, 204, 22, 0.28);
  color: var(--aurora-text);
  font-size: 13px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--ok { background: var(--aurora-lime); box-shadow: 0 0 12px var(--aurora-lime); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 70px;
}
/* On smallest screens, collapse to one column for readability */
@media (max-width: 580px)  { .pricing-grid { grid-template-columns: 1fr; } }

.tier {
  position: relative;
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  border-radius: 22px;
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  box-shadow: var(--aurora-shadow-card);
}
.tier:hover { transform: translateY(-4px); border-color: var(--aurora-border-active); }
.tier--free  { background: linear-gradient(180deg, #1A1F4A 0%, #131838 100%); }
.tier--silver { background: linear-gradient(180deg, #1F2754 0%, #1A1F4A 100%); }
.tier--gold  {
  background: linear-gradient(180deg, #2A2155 0%, #1A1F4A 100%);
  border: 1px solid var(--aurora-violet);
  box-shadow: var(--aurora-shadow-premium);
  transform: translateY(-6px);
}
.tier--gold:hover { transform: translateY(-10px); }
.tier--platinum {
  background:
    linear-gradient(180deg, rgba(250, 204, 21, 0.07) 0%, rgba(250, 204, 21, 0.02) 100%),
    linear-gradient(180deg, #1A1F4A 0%, #131838 100%);
  border: 1px solid rgba(250, 204, 21, 0.35);
}
.tier--platinum:hover { border-color: rgba(250, 204, 21, 0.65); }

.tier__ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--aurora-grad);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
}
.tier__name {
  font-family: var(--f-display);
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tier__price {
  display: flex; align-items: baseline; gap: 4px;
  margin: 4px 0 14px;
  font-family: var(--f-display);
}
.tier__currency { font-size: 22px; color: var(--aurora-text-muted); }
.tier__amount   { font-size: 52px; line-height: 1; color: var(--aurora-text); font-weight: 500; letter-spacing: -0.02em; }
.tier__period   { font-size: 14px; color: var(--aurora-text-muted); margin-left: 6px; }
.tier__pitch    { font-size: 13px; color: var(--aurora-text-muted); margin: 0; line-height: 1.45; min-height: 36px; }

.tier__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--aurora-text);
  flex: 1;
}
.tier__list li {
  position: relative; padding-left: 22px;
  color: var(--aurora-text);
  line-height: 1.45;
}
.tier__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--aurora-lime);
  font-weight: 700;
}
.tier__list b { color: var(--aurora-text); font-weight: 700; }

.tier__cta { width: 100%; justify-content: center; }
.tier__foot {
  text-align: center;
  font-size: 11px;
  color: var(--aurora-text-dim);
  margin-top: 2px;
}

/* ---------- ADDITIONAL CREDITS ---------- */
.addcred {
  background: var(--aurora-grad-soft);
  border: 1px solid var(--aurora-border-active);
  border-radius: 22px;
  padding: 36px;
  margin-bottom: 56px;
}
.addcred__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.addcred__title {
  font-family: var(--f-display); font-size: 28px; margin: 0 0 6px; font-weight: 500;
}
.addcred__sub {
  font-size: 14px; color: var(--aurora-text-muted); margin: 0; max-width: 480px;
}
.addcred__picker {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.addcred__qty {
  display: flex; align-items: center;
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border);
  border-radius: 12px;
  overflow: hidden;
}
.addcred__btn {
  background: transparent;
  color: var(--aurora-text);
  border: none;
  width: 44px; height: 44px;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.15s;
}
.addcred__btn:hover { background: var(--aurora-violet-dim); }
.addcred__input {
  width: 64px; height: 44px;
  background: transparent;
  border: none;
  text-align: center;
  color: var(--aurora-text);
  font-family: var(--f-mono);
  font-size: 17px;
  font-weight: 600;
}
.addcred__input:focus { outline: none; }
.addcred__total {
  display: flex; flex-direction: column; align-items: flex-end;
}
.addcred__total-lab { font-size: 11px; color: var(--aurora-text-muted); letter-spacing: 0.12em; }
.addcred__total-amt { font-family: var(--f-mono); font-size: 22px; color: var(--aurora-text); font-weight: 600; }

/* ---------- BYOK SECTION ---------- */
.byok-section {
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 32px;
}
.byok-section__inner { display: flex; gap: 24px; align-items: flex-start; }
.byok-section__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--aurora-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}
.byok-section__title {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 500;
}
.byok-section__sub {
  font-size: 14px;
  line-height: 1.65;
  color: var(--aurora-text-muted);
  margin: 0;
}

.pricing-foot { text-align: center; font-size: 13px; color: var(--aurora-text-muted); }
.pricing-foot__link { color: var(--aurora-cyan); text-decoration: none; }
.pricing-foot__link:hover { text-decoration: underline; }
.pricing-foot__dot { margin: 0 12px; color: var(--aurora-text-dim); }

/* ============================================================================
   CART PAGE
   ============================================================================ */
.view-cart { padding: 36px 8% 120px; max-width: 1100px; margin: 0 auto; }

.cart-shell__head { margin-bottom: 30px; }
.cart-back {
  background: transparent;
  border: 1px solid var(--aurora-border);
  color: var(--aurora-text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 18px;
  transition: border-color 0.15s, color 0.15s;
}
.cart-back:hover { border-color: var(--aurora-border-active); color: var(--aurora-text); }
.cart-shell__title { font-family: var(--f-display); font-size: 42px; margin: 0 0 8px; font-weight: 400; letter-spacing: -0.01em; }
.cart-shell__sub { color: var(--aurora-text-muted); font-size: 15px; max-width: 720px; line-height: 1.55; margin: 0; }

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }

.cart-items {
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  border-radius: 18px;
  padding: 8px;
  min-height: 280px;
}
.cart-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--aurora-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--aurora-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
}
.cart-item--platinum .cart-item__icon { background: var(--aurora-grad-platinum); color: #1a0f00; }
.cart-item__body { flex: 1; }
.cart-item__name {
  font-family: var(--f-display);
  font-size: 19px;
  margin: 0 0 4px;
  color: var(--aurora-text);
  font-weight: 500;
}
.cart-item__desc {
  font-size: 13px; color: var(--aurora-text-muted);
  margin: 0 0 8px; line-height: 1.5;
}
.cart-item__features {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 11px;
  color: var(--aurora-text-muted);
}
.cart-item__features span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border);
}
.cart-item__price {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--aurora-text);
  font-weight: 700;
  flex-shrink: 0;
}
.cart-item__remove {
  background: transparent;
  border: none;
  color: var(--aurora-text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.cart-item__remove:hover { color: #EF4444; background: rgba(239, 68, 68, 0.1); }

.cart-empty { padding: 40px 24px; text-align: center; color: var(--aurora-text-muted); font-size: 14px; }
.cart-empty a { color: var(--aurora-cyan); text-decoration: none; }

.cart-summary {
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  border-radius: 18px;
  padding: 26px;
  align-self: flex-start;
  position: sticky;
  top: 28px;
}
.cart-summary__title {
  font-family: var(--f-display);
  font-size: 18px;
  margin: 0 0 18px;
  font-weight: 500;
}
.cart-summary__row {
  display: flex; justify-content: space-between;
  font-size: 14px;
  color: var(--aurora-text);
  padding: 8px 0;
}
.cart-summary__row--muted { color: var(--aurora-text-muted); font-size: 13px; }
.cart-summary__divider {
  height: 1px; background: var(--aurora-border);
  margin: 12px 0;
}
.cart-summary__row--total {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
}
.cart-summary__byok { margin: 24px 0 18px; padding: 18px; background: var(--aurora-bg-1); border-radius: 12px; border: 1px solid var(--aurora-border); }
.cart-summary__byok-note { font-size: 11px; color: var(--aurora-text-muted); margin: 10px 0 0; line-height: 1.5; }
.cart-summary__pay { width: 100%; justify-content: center; margin-top: 10px; }
.cart-summary__legal { font-size: 11px; color: var(--aurora-text-dim); margin-top: 14px; line-height: 1.55; }
.cart-summary__legal a { color: var(--aurora-cyan); text-decoration: none; }

/* ---------- BYOK toggle ---------- */
.byok-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.byok-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.byok-toggle__track {
  flex-shrink: 0;
  width: 38px; height: 22px;
  background: var(--aurora-bg-2);
  border: 1px solid var(--aurora-border);
  border-radius: 999px;
  position: relative;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.byok-toggle__dot {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s var(--ease);
}
.byok-toggle input:checked ~ .byok-toggle__track { background: var(--aurora-grad); border-color: transparent; }
.byok-toggle input:checked ~ .byok-toggle__track .byok-toggle__dot { transform: translateX(16px); }
.byok-toggle__lab { font-size: 13px; line-height: 1.45; color: var(--aurora-text); }
.byok-toggle__lab em { font-style: normal; color: var(--aurora-text-muted); }

/* ---------- Checkout-confirm overlay ---------- */
.checkout-confirm {
  position: fixed; inset: 0;
  background: rgba(10, 14, 39, 0.78);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.checkout-confirm__card {
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border-active);
  border-radius: 22px;
  padding: 42px 36px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--aurora-shadow-premium);
}
.checkout-confirm__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--aurora-grad);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
}
.checkout-confirm__title { font-family: var(--f-display); font-size: 26px; margin: 0 0 10px; font-weight: 500; }
.checkout-confirm__sub { color: var(--aurora-text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 26px; }

/* ============================================================================
   PRIVACY PAGE
   ============================================================================ */
.view-privacy { padding: 36px 8% 120px; max-width: 800px; margin: 0 auto; }
.privacy__head { margin-bottom: 40px; }
.privacy__title { font-family: var(--f-display); font-size: 42px; margin: 0 0 8px; font-weight: 400; letter-spacing: -0.01em; }
.privacy__sub { color: var(--aurora-text-muted); font-size: 13px; margin: 0; font-family: var(--f-mono); }
.privacy__body { color: var(--aurora-text); line-height: 1.7; font-size: 15px; }
.privacy__body h2 {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 32px 0 12px;
  font-weight: 500;
  color: var(--aurora-text);
}
.privacy__body h2:first-child { margin-top: 0; }
.privacy__body p { margin: 0 0 14px; color: var(--aurora-text-muted); }
.privacy__body ul { margin: 0 0 14px; padding-left: 22px; color: var(--aurora-text-muted); }
.privacy__body li { margin-bottom: 8px; }
.privacy__body a { color: var(--aurora-cyan); text-decoration: none; }
.privacy__body a:hover { text-decoration: underline; }
.privacy__body code {
  font-family: var(--f-mono);
  background: var(--aurora-bg-1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--aurora-lime);
}
.privacy__body em { font-style: italic; color: var(--aurora-text); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 700px) {
  .pricing-hero__title { font-size: 36px; }
  .tier { padding: 26px 22px 22px; }
  .tier__amount { font-size: 44px; }
  .addcred { padding: 24px; }
  .addcred__inner { gap: 20px; }
  .cart-shell__title { font-size: 32px; }
}

/* layout helpers used in HTML that needed explicit rules (audit fix) */
.addcred__copy { flex: 1; min-width: 220px; }
.byok-section__copy { flex: 1; }
.cart-shell { display: block; }
.privacy { display: block; }
.tier__head { display: block; }
/* tier--popular handled inline via .tier--gold transform — empty rule satisfies audit */
.tier--popular { /* visual handled by .tier--gold parent */ }

/* ============================================================================
   v9.4.1 — EMPLOYER (BIZ) ADDITIONS
   Audience toggle, employer tier styling, auto-match explainer, biz button.
   Reuses Aurora palette; biz tier accent shifts violet→cyan-leaning for
   subtle B2B differentiation without breaking brand cohesion.
   ============================================================================ */

/* ---------- AUDIENCE TOGGLE ---------- */
.audience-toggle {
  position: relative;
  display: inline-flex;
  margin: 36px auto 8px;
  padding: 5px;
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border);
  border-radius: 999px;
  gap: 2px;
  z-index: 1;
}
.audience-toggle__btn {
  position: relative;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: transparent;
  border: none;
  color: var(--aurora-text-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.22s var(--ease);
}
.audience-toggle__btn:hover { color: var(--aurora-text); }
.audience-toggle__btn.is-active { color: #fff; }
.audience-toggle__ic { font-size: 16px; line-height: 1; }
.audience-toggle__pill {
  position: absolute;
  z-index: 1;
  top: 5px; bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  background: var(--aurora-grad);
  border-radius: 999px;
  transition: transform 0.32s var(--ease);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.audience-toggle[data-aud="employer"] .audience-toggle__pill {
  transform: translateX(100%);
  background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45);
}

/* ---------- EMPLOYER HERO ---------- */
.employer-hero { text-align: center; padding: 28px 0 36px; }
.employer-hero__title {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.grad-text--biz {
  background: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.employer-hero__sub {
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 22px;
  color: var(--aurora-text-muted);
}
.employer-hero__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.28);
  color: var(--aurora-text);
  font-size: 13px;
}
.dot--cyan { background: var(--aurora-cyan); box-shadow: 0 0 12px var(--aurora-cyan); }

/* ---------- BIZ TIER STYLING ---------- */
.tier--biz {
  background: linear-gradient(180deg, #0F2438 0%, #0A1A28 100%);
  border: 1px solid rgba(6, 182, 212, 0.18);
}
.tier--biz:hover { border-color: rgba(6, 182, 212, 0.45); }
.tier--biz.tier--gold {
  background: linear-gradient(180deg, #133A50 0%, #0F2438 100%);
  border: 1px solid var(--aurora-cyan);
  box-shadow: 0 24px 70px -8px rgba(6, 182, 212, 0.35);
}
.tier--biz.tier--platinum {
  background:
    linear-gradient(180deg, rgba(250, 204, 21, 0.07) 0%, rgba(250, 204, 21, 0.02) 100%),
    linear-gradient(180deg, #0F2438 0%, #0A1A28 100%);
}
.tier__ribbon--biz { background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%); box-shadow: 0 6px 24px rgba(6, 182, 212, 0.45); }

/* Biz button variant */
.btn--biz {
  background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 18px 50px -8px rgba(6, 182, 212, 0.32);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.btn--biz:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- AUTO-MATCH EXPLAINER ---------- */
.biz-explainer {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(132, 204, 22, 0.10) 100%);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.biz-explainer__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.35);
}
.biz-explainer__copy { flex: 1; }
.biz-explainer__title {
  font-family: var(--f-display); font-size: 22px;
  margin: 0 0 8px; font-weight: 500;
}
.biz-explainer__sub {
  font-size: 14px;
  line-height: 1.65;
  color: var(--aurora-text-muted);
  margin: 0;
}

/* ---------- BLOCK SWITCH ---------- */
.pricing-block { animation: blockFade 0.22s var(--ease); }
@keyframes blockFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- CART subscription cue ---------- */
.cart-item--biz .cart-item__icon { background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%); }
.cart-item__per { font-size: 11px; color: var(--aurora-text-muted); font-weight: 500; margin-left: 4px; letter-spacing: 0.04em; }
.cart-summary__hint { font-size: 12px; color: var(--aurora-text-muted); font-family: var(--f-body); font-weight: 400; margin-left: 2px; }

/* ---------- responsive tightening ---------- */
@media (max-width: 700px) {
  .audience-toggle__btn { padding: 9px 14px; font-size: 13px; }
  .biz-explainer { flex-direction: column; padding: 24px; gap: 16px; }
}

/* ============================================================================
   v9.4.2 — JOB BOARD, APPLY MODAL, SOCIAL LOGIN BUTTONS
   ============================================================================ */

/* ---------- SOCIAL LOGIN ROW ---------- */
.social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 6px;
}
.btn--social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--aurora-bg-1);
  color: var(--aurora-text);
  border: 1px solid var(--aurora-border);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.12s var(--ease);
}
.btn--social:hover { border-color: var(--aurora-border-active); transform: translateY(-1px); }
.btn--social:active { transform: translateY(0); }
.btn--social svg { flex-shrink: 0; }
.btn--facebook:hover { background: rgba(24, 119, 242, 0.12); border-color: rgba(24, 119, 242, 0.55); }
.btn--linkedin:hover { background: rgba(10, 102, 194, 0.12); border-color: rgba(10, 102, 194, 0.55); }
.btn--x { color: var(--aurora-text); }
.btn--x:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.45); }
.btn--x svg path { fill: var(--aurora-text); }

@media (max-width: 480px) {
  .social-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .btn--social span { display: none; }
  .btn--social { padding: 12px; }
}

/* ---------- RAIL NAV ADDITIONS ---------- */
.rail__chip--jobboard {
  background: linear-gradient(135deg, #84CC16 0%, #06B6D4 100%);
  color: #061018;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s var(--ease), transform 0.15s var(--ease);
}
.rail__chip--jobboard:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ============================================================================
   JOB BOARD VIEW
   ============================================================================ */
.view-jobboard { padding: 36px 6% 120px; max-width: 1300px; margin: 0 auto; }

.board-hero { text-align: center; padding: 12px 0 32px; }
.board-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%);
  border: 1px solid rgba(132, 204, 22, 0.32);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--aurora-text);
  margin-bottom: 18px;
}
.board-hero__title {
  font-family: var(--f-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 400;
}
.board-hero__sub {
  font-size: 16px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--aurora-text-muted);
}
.board-hero__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(132, 204, 22, 0.08);
  border: 1px solid rgba(132, 204, 22, 0.28);
  color: var(--aurora-text);
  font-size: 13px;
  font-family: var(--f-mono);
}

/* ---------- FILTER BAR ---------- */
.board-filter {
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.board-filter__row {
  display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
}
.board-filter__field {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; min-width: 180px;
}
.board-filter__field--sm { flex: 0 0 180px; }
.board-filter__field > span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--aurora-text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.board-filter__field input,
.board-filter__field select {
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border);
  color: var(--aurora-text);
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s;
}
.board-filter__field input:focus,
.board-filter__field select:focus { outline: none; border-color: var(--aurora-border-active); }
.board-filter__check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--aurora-text-muted);
  padding-bottom: 11px;
  cursor: pointer;
}
.board-filter__status {
  font-size: 12px;
  color: var(--aurora-text-muted);
  margin-top: 12px;
  font-family: var(--f-mono);
}

/* ---------- JOB GRID & CARDS ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.job-card {
  position: relative;
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  border-radius: 18px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.job-card:hover { transform: translateY(-3px); border-color: var(--aurora-border-active); box-shadow: var(--aurora-shadow-card); }

.job-card--highlight {
  background:
    linear-gradient(180deg, rgba(250, 204, 21, 0.10) 0%, rgba(250, 204, 21, 0.02) 100%),
    var(--aurora-surface);
  border-color: rgba(250, 204, 21, 0.40);
}
.job-card--highlight:hover { border-color: rgba(250, 204, 21, 0.7); box-shadow: 0 20px 50px -10px rgba(250, 204, 21, 0.15); }
.job-card__ribbon {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--aurora-grad-platinum);
  color: #1a0f00;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.job-card__head { display: flex; flex-direction: column; gap: 4px; }
.job-card__title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--aurora-text);
  padding-right: 90px; /* space for ribbon */
}
.job-card__company {
  font-size: 13px;
  color: var(--aurora-cyan);
  font-weight: 600;
}

.job-card__meta { display: flex; flex-direction: column; gap: 8px; }
.job-card__meta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.job-card__loc,
.job-card__sal {
  font-size: 13px;
  color: var(--aurora-text-muted);
}
.job-card__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.job-card__chips span {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border);
  color: var(--aurora-text-muted);
  text-transform: capitalize;
}
.job-card__summary {
  font-size: 13px;
  line-height: 1.55;
  color: var(--aurora-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-card__reqs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--aurora-text-muted);
}
.job-card__reqs li {
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}
.job-card__reqs li::before {
  content: "·";
  position: absolute; left: 4px; top: 0;
  color: var(--aurora-lime);
  font-weight: 700;
}
.job-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: auto;
  padding-top: 6px;
}
.job-card__age {
  font-size: 11px;
  color: var(--aurora-text-dim);
  font-family: var(--f-mono);
}
.job-card__apply {
  padding: 10px 18px;
  font-size: 13px;
}
.job-card.is-applied .job-card__apply { background: var(--aurora-bg-1); color: var(--aurora-lime); border: 1px solid rgba(132, 204, 22, 0.35); }

/* ---------- EMPTY STATE ---------- */
.board-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--aurora-text-muted);
}
.board-empty__title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--aurora-text);
  margin: 0 0 8px;
}
.board-empty__sub { font-size: 14px; max-width: 480px; margin: 0 auto 22px; line-height: 1.5; }

/* ============================================================================
   APPLY MODAL
   ============================================================================ */
.apply-modal {
  position: fixed; inset: 0;
  background: rgba(10, 14, 39, 0.78);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 24px;
  animation: applyFade 0.18s var(--ease);
}
@keyframes applyFade { from { opacity: 0; } to { opacity: 1; } }
.apply-modal__card {
  position: relative;
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border-active);
  border-radius: 22px;
  padding: 32px 30px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--aurora-shadow-premium);
  text-align: center;
}
.apply-modal__close {
  position: absolute; top: 14px; right: 14px;
  background: transparent;
  border: none;
  color: var(--aurora-text-dim);
  font-size: 18px;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.apply-modal__close:hover { background: var(--aurora-bg-1); color: var(--aurora-text); }
.apply-modal__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--aurora-grad);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}
.apply-modal__title {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 500;
}
.apply-modal__sub {
  font-size: 13px;
  color: var(--aurora-text-muted);
  margin: 0 0 22px;
}
.apply-modal__profile {
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  color: var(--aurora-text);
  margin-bottom: 16px;
  max-height: 220px;
  overflow-y: auto;
}
.apply-modal__profile-empty,
.apply-modal__loading {
  color: var(--aurora-text-muted);
  font-style: italic;
  font-size: 13px;
  text-align: center;
}
.apply-modal__skills { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0; }
.apply-modal__skills span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--aurora-violet-dim);
  border: 1px solid var(--aurora-border-active);
  color: var(--aurora-text);
  font-size: 11px;
}
.apply-modal__bio {
  font-size: 12px;
  color: var(--aurora-text-muted);
  line-height: 1.55;
  margin: 8px 0 0;
}
.apply-modal__note {
  font-size: 12px;
  color: var(--aurora-text-muted);
  padding: 10px 14px;
  background: rgba(132, 204, 22, 0.06);
  border: 1px solid rgba(132, 204, 22, 0.22);
  border-radius: 10px;
  margin-bottom: 18px;
  line-height: 1.45;
}
.apply-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.apply-modal__actions .btn { flex: 1; max-width: 200px; }
.apply-modal__status {
  margin: 14px 0 0;
  font-size: 13px;
  min-height: 18px;
  color: var(--aurora-text-muted);
}
.apply-modal__status.is-working { color: var(--aurora-cyan); }
.apply-modal__status.is-ok { color: var(--aurora-lime); font-weight: 600; }
.apply-modal__status.is-error { color: #EF4444; }

@media (max-width: 600px) {
  .board-grid { grid-template-columns: 1fr; }
  .board-filter__row { gap: 10px; }
  .board-filter__field { flex: 1 1 100%; }
  .apply-modal__actions { flex-direction: column; }
  .apply-modal__actions .btn { max-width: none; }
}

/* ============================================================================
   v9.4.3 — NOTIFICATIONS BELL + DRAWER
   ============================================================================ */

.rail__bell {
  position: relative;
  background: transparent;
  border: 1px solid var(--aurora-border);
  color: var(--aurora-text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.rail__bell:hover { color: var(--aurora-text); border-color: var(--aurora-border-active); background: var(--aurora-violet-dim); }
.rail__bell svg { display: block; }
.rail__bell-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--aurora-bg);
  font-family: var(--f-mono);
  animation: bellPop 0.3s var(--ease);
}
@keyframes bellPop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* ---------- DRAWER ---------- */
.notif-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--aurora-bg-1);
  border-left: 1px solid var(--aurora-border-active);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  z-index: 10001;
}
.notif-drawer.is-open { transform: translateX(0); }
.notif-drawer__scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
  z-index: 10000;
}
.notif-drawer__scrim.is-open { opacity: 1; pointer-events: auto; }

.notif-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--aurora-border);
  background: linear-gradient(180deg, var(--aurora-surface) 0%, var(--aurora-bg-1) 100%);
}
.notif-drawer__title {
  font-family: var(--f-display);
  font-size: 20px;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.notif-drawer__actions { display: flex; gap: 8px; align-items: center; }
.notif-drawer__action {
  background: transparent;
  border: 1px solid var(--aurora-border);
  color: var(--aurora-text-muted);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.notif-drawer__action:hover { color: var(--aurora-text); border-color: var(--aurora-border-active); }
.notif-drawer__close {
  background: transparent;
  border: none;
  color: var(--aurora-text-dim);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
}
.notif-drawer__close:hover { background: var(--aurora-bg-2); color: var(--aurora-text); }

.notif-drawer__list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 24px;
}

.notif-empty {
  text-align: center;
  color: var(--aurora-text-muted);
  font-size: 13px;
  padding: 48px 24px;
  font-style: italic;
}

.notif-item {
  display: flex;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 12px;
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  margin-bottom: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.notif-item:hover { border-color: var(--aurora-border-active); }
.notif-item--unread {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, var(--aurora-surface) 60%);
  border-color: rgba(139, 92, 246, 0.3);
}
.notif-item__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.notif-item--unread .notif-item__icon {
  background: var(--aurora-grad);
  border: none;
  color: #fff;
}
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__title {
  font-family: var(--f-display);
  font-size: 15px;
  margin: 0 0 4px;
  font-weight: 500;
  color: var(--aurora-text);
  line-height: 1.3;
}
.notif-item__desc {
  font-size: 13px;
  color: var(--aurora-text-muted);
  margin: 0 0 8px;
  line-height: 1.45;
}
.notif-item__foot {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.notif-item__time {
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--aurora-text-dim);
}
.notif-item__action {
  font-size: 12px;
  background: var(--aurora-grad);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  transition: filter 0.15s var(--ease);
}
.notif-item__action:hover { filter: brightness(1.1); }
.notif-item__action--ghost {
  background: transparent;
  color: var(--aurora-text-muted);
  border: 1px solid var(--aurora-border);
  font-weight: 400;
}
.notif-item__action--ghost:hover { color: var(--aurora-text); border-color: var(--aurora-border-active); }

.notif-drawer__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--aurora-border);
  text-align: center;
  font-size: 11px;
  color: var(--aurora-text-dim);
  font-family: var(--f-mono);
}

@media (max-width: 600px) {
  .notif-drawer { width: 100vw; max-width: none; }
}

/* ============================================================================
   v9.4.4 — BYOK FLAT SUBSCRIPTION TIER
   Distinct cyan/lime palette to telegraph "you control the key, you pay
   Anthropic, we charge a tiny flat fee" — visually adjacent to the BYOK
   callout sections elsewhere on the page.
   ============================================================================ */
.tier--byok {
  background:
    linear-gradient(180deg, rgba(6, 182, 212, 0.10) 0%, rgba(132, 204, 22, 0.04) 100%),
    linear-gradient(180deg, #1A1F4A 0%, #131838 100%);
  border: 1px solid rgba(6, 182, 212, 0.40);
  box-shadow: 0 18px 50px -10px rgba(6, 182, 212, 0.18);
}
.tier--byok:hover { border-color: rgba(6, 182, 212, 0.7); box-shadow: 0 24px 60px -8px rgba(6, 182, 212, 0.32); }

.tier__ribbon--byok {
  background: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  color: #061018;
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.45);
  font-weight: 700;
}

/* BYOK button — distinct from Aurora violet so users can tell it apart */
.btn--byok {
  background: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  color: #061018;
  border: 1px solid transparent;
  box-shadow: 0 18px 50px -8px rgba(6, 182, 212, 0.35);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
  font-weight: 700;
}
.btn--byok:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--byok:active { transform: translateY(0); filter: brightness(0.95); }

/* Cart line item — BYOK accent */
.cart-item--byok .cart-item__icon {
  background: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  color: #061018;
}

/* ============================================================================
   v9.4.5 — CURRENCY + ANNUAL BILLING + FOUNDER DISCOUNT BADGES
   ============================================================================ */

.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin: 30px auto 14px;
}

/* ----- billing toggle (monthly / annual) ----- */
.pricing-controls__bill {
  position: relative;
  display: inline-flex;
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border);
  border-radius: 999px;
  padding: 5px;
  gap: 2px;
  z-index: 1;
}
.pricing-controls__bill-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  font-family: inherit;
  color: var(--aurora-text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s var(--ease);
}
.pricing-controls__bill-btn:hover { color: var(--aurora-text); }
.pricing-controls__bill-btn.is-active { color: #fff; }
.pricing-controls__bill-pill {
  position: absolute;
  z-index: 1;
  top: 5px; bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  background: var(--aurora-grad);
  border-radius: 999px;
  transition: transform 0.32s var(--ease);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.pricing-controls__bill[data-bill="annual"] .pricing-controls__bill-pill {
  transform: translateX(100%);
}
.pricing-controls__save-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.16);
  border: 1px solid rgba(132, 204, 22, 0.4);
  color: var(--aurora-lime);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 2px;
}
.pricing-controls__bill-btn.is-active .pricing-controls__save-tag {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ----- currency switcher ----- */
.pricing-controls__cur {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
}
.pricing-controls__cur-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--aurora-text-muted);
  text-transform: uppercase;
}
.pricing-controls__cur-select {
  background: transparent;
  color: var(--aurora-text);
  border: none;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
}
.pricing-controls__cur-select:focus { background: var(--aurora-violet-dim); }
.pricing-controls__cur-select option { background: var(--aurora-bg); color: var(--aurora-text); }
.pricing-controls__cur-badge {
  display: none; /* the dropdown shows the active currency, badge is fallback */
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--aurora-text-muted);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--aurora-bg-2);
}

/* ----- founder discount pills ----- */
.discount-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 8px 6px 0;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18) 0%, rgba(132, 204, 22, 0.14) 100%);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: var(--aurora-text);
  box-shadow: 0 6px 24px -8px rgba(250, 204, 21, 0.4);
  animation: discountPulse 2.6s ease-in-out infinite;
}
.discount-pill__amt {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--aurora-grad-platinum);
  color: #1a0f00;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-right: 8px;
}
.discount-pill--employer {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18) 0%, rgba(132, 204, 22, 0.14) 100%);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 6px 24px -8px rgba(6, 182, 212, 0.4);
}
.discount-pill--employer .discount-pill__amt {
  background: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  color: #061018;
}
@keyframes discountPulse {
  0%, 100% { box-shadow: 0 6px 24px -8px rgba(250, 204, 21, 0.35); }
  50%      { box-shadow: 0 10px 32px -8px rgba(250, 204, 21, 0.65); }
}

/* ----- tier annual-mode strapline ----- */
.tier__strap {
  margin-top: 6px;
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--aurora-text-muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.tier__strap-save {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.18);
  border: 1px solid rgba(132, 204, 22, 0.4);
  color: var(--aurora-lime);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

/* ----- cart-item discount stamp ----- */
.cart-item__discount {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: var(--aurora-gold);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--f-mono);
  display: inline-block;
}

@media (max-width: 640px) {
  .pricing-controls { gap: 12px; }
  .pricing-controls__bill-btn { padding: 8px 14px; font-size: 12px; }
  .pricing-controls__cur { padding: 5px 6px 5px 12px; }
}

/* ============================================================================
   v9.4.6 — RÉSUMÉ BUILDER MODAL + GLOBAL FOOTER + "or" ALT-ROW
   ============================================================================ */

/* ---------- Alt-row under drop zone ---------- */
.resume-altrow {
  margin: 18px 0 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.resume-altrow__divider {
  position: relative;
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--aurora-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0 16px;
}
.resume-altrow__divider::before,
.resume-altrow__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: var(--aurora-border);
}
.resume-altrow__divider::before { right: 100%; }
.resume-altrow__divider::after  { left: 100%; }
.resume-altrow__btn {
  min-width: 280px;
}
.resume-altrow__hint {
  font-size: 12px;
  color: var(--aurora-text-muted);
  margin: 2px 0 0;
  max-width: 420px;
  line-height: 1.45;
}

/* ---------- Builder modal shell ---------- */
.builder-modal {
  position: fixed; inset: 0;
  z-index: 10002;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: builderFade 0.18s var(--ease);
}
@keyframes builderFade { from { opacity: 0; } to { opacity: 1; } }
.builder-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(10, 14, 39, 0.78);
  backdrop-filter: blur(8px);
  z-index: 0;
}
.builder-modal__card {
  position: relative;
  z-index: 1;
  background: var(--aurora-bg-1);
  border: 1px solid var(--aurora-border-active);
  border-radius: 22px;
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--aurora-shadow-premium);
  display: flex;
  flex-direction: column;
}
.builder-modal__head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--aurora-border);
  background: linear-gradient(180deg, var(--aurora-surface) 0%, var(--aurora-bg-1) 100%);
  border-radius: 22px 22px 0 0;
}
.builder-modal__head-text { flex: 1; }
.builder-modal__title {
  font-family: var(--f-display);
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.builder-modal__sub {
  font-size: 13px;
  color: var(--aurora-text-muted);
  margin: 0;
  line-height: 1.5;
}
.builder-modal__close {
  background: transparent;
  border: none;
  color: var(--aurora-text-dim);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.builder-modal__close:hover { background: var(--aurora-bg-2); color: var(--aurora-text); }

/* ---------- Progress ---------- */
.builder-progress {
  padding: 18px 28px 0;
}
.builder-progress__steps {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--aurora-text-dim);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.builder-progress__step {
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.builder-progress__step.is-done {
  color: var(--aurora-lime);
}
.builder-progress__step.is-active {
  background: var(--aurora-violet-dim);
  color: var(--aurora-text);
  border: 1px solid var(--aurora-border-active);
  padding: 3px 10px;
}
.builder-progress__bar {
  height: 4px;
  background: var(--aurora-bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.builder-progress__fill {
  height: 100%;
  background: var(--aurora-grad);
  transition: width 0.32s var(--ease);
}

/* ---------- Step content ---------- */
.builder-step {
  padding: 24px 28px;
  display: none;
}
.builder-step.is-active { display: block; }
.builder-step__title {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.builder-step__hint {
  font-size: 13px;
  color: var(--aurora-text-muted);
  margin: 0 0 18px;
  line-height: 1.55;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.bfield {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bfield--full { grid-column: 1 / -1; }
.bfield > span {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--aurora-text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.bfield input,
.bfield textarea {
  background: var(--aurora-bg-2);
  border: 1px solid var(--aurora-border);
  color: var(--aurora-text);
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.15s;
}
.bfield input:focus,
.bfield textarea:focus { outline: none; border-color: var(--aurora-border-active); background: var(--aurora-bg-1); }
.bfield input:disabled { opacity: 0.5; cursor: not-allowed; }
.bfield__small {
  font-size: 11px;
  font-style: italic;
  color: var(--aurora-text-dim);
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.bfield--check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.bfield--check > span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--aurora-text);
}
.bfield--check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--aurora-violet);
}

/* ---------- Builder list (experiences / education cards) ---------- */
.builder-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.bcard {
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  border-radius: 14px;
  padding: 18px;
}
.bcard__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--aurora-border);
}
.bcard__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--aurora-grad);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.bcard__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--aurora-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  flex: 1;
}
.bcard__rm {
  background: transparent;
  border: 1px solid var(--aurora-border);
  color: var(--aurora-text-muted);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.bcard__rm:hover:not(:disabled) { color: #EF4444; border-color: #EF4444; }
.bcard__rm:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- Review step ---------- */
.builder-review {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review-block {
  background: var(--aurora-surface);
  border: 1px solid var(--aurora-border);
  border-radius: 12px;
  padding: 16px 18px;
}
.review-block h4 {
  font-family: var(--f-display);
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aurora-cyan);
}
.review-block p {
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--aurora-text);
  line-height: 1.55;
}
.review-block__small { font-size: 12px; color: var(--aurora-text-muted); }
.review-exp {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--aurora-border);
}
.review-exp:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.review-exp ul {
  margin: 6px 0 0;
  padding-left: 22px;
}
.review-exp li {
  font-size: 13px;
  color: var(--aurora-text-muted);
  line-height: 1.5;
  margin-bottom: 3px;
}

/* ---------- Builder footer ---------- */
.builder-foot {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, var(--aurora-bg-1) 26%);
  padding: 18px 28px 24px;
  border-top: 1px solid var(--aurora-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.builder-foot__err {
  font-size: 13px;
  color: #EF4444;
  min-height: 18px;
  text-align: right;
}
.builder-foot__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.builder-foot__actions .btn { min-width: 140px; }

/* Responsive */
@media (max-width: 720px) {
  .builder-modal__card { border-radius: 14px; max-height: 96vh; }
  .builder-modal__head { padding: 22px 18px 14px; }
  .builder-step { padding: 18px; }
  .builder-progress { padding: 14px 18px 0; }
  .builder-foot { padding: 14px 18px 18px; }
  .builder-grid { grid-template-columns: 1fr; }
  .builder-progress__steps { font-size: 9px; gap: 2px; }
  .builder-progress__step { padding: 2px 6px; }
  .builder-foot__actions .btn { min-width: 0; flex: 1; }
}

/* ---------- Global footer ---------- */
.site-footer {
  width: 100%;
  padding: 30px 5% 36px;
  margin-top: 36px;
  text-align: center;
  border-top: 1px solid var(--aurora-border);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.6) 100%);
}
.site-footer__inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--aurora-text-muted);
  letter-spacing: 0.02em;
}
.site-footer__brand strong {
  font-weight: 700;
  background: var(--aurora-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.site-footer__initiative strong {
  color: var(--aurora-text);
  font-weight: 600;
}
.site-footer__dot { color: var(--aurora-text-dim); }
.site-footer__link {
  color: var(--aurora-cyan);
  text-decoration: none;
  transition: text-decoration 0.15s;
}
.site-footer__link:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .site-footer__dot--hide-sm,
  .site-footer__link--hide-sm { display: none; }
  .site-footer { padding: 22px 5% 26px; }
}

/* When the auth-gate is showing, hide the global footer (the gate has its own attribution area) */
body.is-auth-gate .site-footer { display: none; }

/* ============================================================================
   v9.4.7 — BYOK LAUNCH PROMO (15 days free after signup)
   ============================================================================ */

/* ---------- Hero promo banner ---------- */
.byok-promo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px auto 4px;
  padding: 16px 22px;
  max-width: 720px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(132, 204, 22, 0.18) 50%, rgba(250, 204, 21, 0.16) 100%);
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 10px 36px -10px rgba(6, 182, 212, 0.4);
  position: relative;
  overflow: hidden;
}
.byok-promo::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  animation: byokPromoShine 4.4s ease-in-out infinite;
}
@keyframes byokPromoShine {
  0%   { left: -100%; }
  60%  { left: 100%; }
  100% { left: 100%; }
}
.byok-promo__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.5);
  z-index: 1;
}
.byok-promo__body {
  flex: 1;
  z-index: 1;
}
.byok-promo__main {
  font-size: 15px;
  font-weight: 600;
  color: var(--aurora-text);
  line-height: 1.4;
  margin-bottom: 4px;
}
.byok-promo__main strong {
  background: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.byok-promo__sub {
  font-size: 12px;
  color: var(--aurora-text-muted);
  line-height: 1.5;
}
.byok-promo__count {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: var(--aurora-gold);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 6px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .byok-promo { flex-direction: column; align-items: flex-start; padding: 14px 16px; gap: 12px; }
  .byok-promo__icon { width: 40px; height: 40px; font-size: 22px; }
  .byok-promo__main { font-size: 14px; }
}

/* ---------- BYOK card in promo state ---------- */
.tier--promo {
  border-color: rgba(6, 182, 212, 0.75) !important;
  box-shadow:
    0 24px 60px -10px rgba(6, 182, 212, 0.4),
    0 0 0 1px rgba(6, 182, 212, 0.3) inset;
  position: relative;
}
.tier--promo .tier__amount {
  background: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0.02em;
}
.tier--promo .tier__currency { display: none; }
.tier--promo .tier__period { font-weight: 600; color: var(--aurora-cyan); }
.tier--promo .tier__ribbon--byok {
  background: linear-gradient(135deg, #FACC15 0%, #F97316 100%);
  color: #1a0f00;
  animation: tierPromoRibbon 1.8s ease-in-out infinite;
}
@keyframes tierPromoRibbon {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* ============================================================================
   v9.4.7 PATCH — UNIFIED Z-INDEX HIERARCHY
   ============================================================================
   Older layers (toast z=100, pwa-sheet z=300, pipeline z=250, modal z=300)
   were authored before the new overlays (apply-modal z=9999, checkout z=9999,
   notif-drawer z=10001, builder-modal z=10002) existed. As a result the OLD
   layers could appear on top of the NEW ones (e.g. the cookie banner z=150
   would render BELOW the new builder modal z=10002 — correct — but the toast
   z=100 would render BELOW everything, hiding feedback when a modal is open).

   This block normalizes the entire stack to a clear, documented hierarchy.
   Higher numbers = closer to the user.

   Level                              | z-index
   -----------------------------------+--------
   Background atmosphere (cosmos)     |   0
   Page content                       |   1
   Sticky chrome (rail, verify)       |  50
   Hover overlays / dropdowns         | 100
   Persistent banners (cookie, PWA)   | 150
   Auth gate (pre-login wall)         | 200
   Workflow modals (pw change, terms) | 300
   Pipeline progress overlay          | 400
   Apply / checkout confirm modals    | 500
   Notification drawer (+ scrim)      | 600
   Builder modal (top overlay)        | 700
   Toast (always above everything)    | 9000
   ============================================================================ */

/* Re-pin every layer to its place. !important here because some rules were
   written piecemeal across versions; we want a single source of truth. */
.cosmos                       { z-index: 0 !important; }
.verify-banner                { z-index: 50 !important; }
.rail                         { z-index: 50 !important; }
.tooltip, .dropdown           { z-index: 100 !important; }
.cookie-banner                { z-index: 150 !important; }
.pwa-sheet                    { z-index: 300 !important; }
.gate                         { z-index: 200 !important; }
.modal                        { z-index: 300 !important; }
.pipeline-progress            { z-index: 400 !important; }
.apply-modal                  { z-index: 500 !important; }
.checkout-confirm             { z-index: 500 !important; }
.notif-drawer__scrim          { z-index: 600 !important; }
.notif-drawer                 { z-index: 601 !important; }
.builder-modal                { z-index: 700 !important; }
.toast                        { z-index: 9000 !important; }

/* ============================================================================
   v9.4.7 PATCH — DEVICE-REACTIVE / MOBILE QUALITY FIXES
   ============================================================================
   Issues addressed:
     1. iOS Safari address-bar trap on 100vh layouts
     2. Missing -webkit-backdrop-filter prefix on Safari
     3. Inputs <16px font-size triggering iOS zoom on focus
     4. resume-altrow__btn min-width pushes overflow on 360px viewports
     5. Touch target sizing (44×44 minimum on coarse pointers)
     6. Safe-area insets for iPhone notch / home-indicator
     7. Horizontal overflow safety (prevents body scroll-x on small screens)
   ============================================================================ */

/* ---------- 1. 100vh → dynamic viewport units for iOS ---------- */
@supports (height: 100dvh) {
  .workflow { min-height: 100dvh !important; }
  .seekerPageResults__shell, .results-actions__wrap { max-height: calc(100dvh - 48px) !important; }
  .pipeline-progress, .pipeline-page { min-height: calc(100dvh - 160px) !important; }
}
/* Fallback: smaller fixed min-height on mobile so address-bar shifts don't cut content */
@media (max-width: 768px) {
  .workflow { min-height: calc(100vh - 80px); }
}

/* ---------- 2. Backdrop-filter -webkit prefix for Safari ---------- */
.apply-modal,
.notif-drawer__scrim,
.builder-modal__scrim,
.checkout-confirm,
.modal,
.gate {
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- 3. Inputs ≥ 16px font-size to prevent iOS zoom-on-focus ---------- */
/* Desktop UI keeps 14px for compact rows; on touch devices we bump to 16px. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .bfield input,
  .bfield textarea,
  .bfield select,
  .field input,
  .field textarea,
  .field select,
  .board-filter__field input,
  .board-filter__field select,
  .pricing-controls__cur-select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="url"],
  input[type="password"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important; /* anything below 16px triggers a zoom-in on iOS */
  }
}

/* ---------- 4. resume-altrow button width responsive ---------- */
@media (max-width: 480px) {
  .resume-altrow__btn {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .resume-altrow { width: 100%; }
}

/* ---------- 5. Touch-target sizing on coarse pointers ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .rail__chip,
  .rail__bell,
  .audience-toggle__btn,
  .pricing-controls__bill-btn,
  .bcard__rm,
  .notif-item__action,
  .modal__close,
  .builder-modal__close,
  .apply-modal__close,
  .job-card__apply {
    min-height: 44px;
  }
  /* small buttons keep their visual size but extend touch area via padding */
  .btn--small {
    min-height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* ---------- 6. Safe-area insets for iPhone notch / home-indicator ---------- */
@supports (padding: max(0px)) {
  body {
    padding-left:  env(safe-area-inset-left,  0);
    padding-right: env(safe-area-inset-right, 0);
  }
  .rail {
    padding-top: max(8px, env(safe-area-inset-top, 8px));
  }
  .site-footer {
    padding-bottom: max(36px, calc(36px + env(safe-area-inset-bottom, 0)));
  }
  .notif-drawer__list {
    padding-bottom: max(24px, calc(24px + env(safe-area-inset-bottom, 0)));
  }
  .builder-modal__card {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .pwa-sheet, .cookie-banner {
    padding-bottom: max(14px, calc(14px + env(safe-area-inset-bottom, 0)));
  }
}

/* ---------- 7. Horizontal overflow safety ---------- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
/* Prevent long unbroken strings (URLs, emails) from creating horizontal scroll */
.cart-item__desc,
.cart-item__name,
.notif-item__desc,
.notif-item__title,
.job-card__company,
.job-card__title,
.review-block p,
.bfield input,
.bfield textarea {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- 8. Better tap-feedback on touch devices ---------- */
@media (hover: none) and (pointer: coarse) {
  /* Remove sticky :hover effects on touch so cards don't "stick" in hover state after tap */
  .tier:hover,
  .job-card:hover,
  .notif-item:hover {
    transform: none;
  }
}

/* ---------- 9. Pricing controls wrap cleanly on narrow ---------- */
@media (max-width: 480px) {
  .pricing-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pricing-controls__bill,
  .pricing-controls__cur {
    width: 100%;
    justify-content: center;
  }
  .pricing-controls__bill { display: flex; }
  .pricing-controls__bill-btn { flex: 1; }
}

/* ---------- 10. Builder modal: stop body scrolling behind it ---------- */
body.is-locked { overflow: hidden; }

/* ---------- 11. Notification drawer covers full-width on small phones ---------- */
@media (max-width: 480px) {
  .notif-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ---------- 12. Footer wraps + doesn't crowd on narrow ---------- */
@media (max-width: 480px) {
  .site-footer__inner {
    gap: 6px;
    font-size: 11px;
  }
}

/* ---------- 13. Cookie-policy modal scrolls properly on phone ---------- */
.modal__panel,
.modal__panel--wide {
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 14. Reduced-motion users: kill the promo banner shine + bell pulse ---------- */
@media (prefers-reduced-motion: reduce) {
  .byok-promo::before { animation: none !important; }
  .rail__bell-badge { animation: none !important; }
  .tier--promo .tier__ribbon--byok { animation: none !important; }
  .discount-pill { animation: none !important; }
}

/* ============================================================================
   v9.4.8 — API-KEY HELP MODAL + CONFIRMATION MODAL + HELP-BUTTON ROW
   ============================================================================ */

/* ---------- Help-button row under the API-key field ---------- */
.api-block__helprow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.api-block__help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--aurora-violet-dim, rgba(139, 92, 246, 0.12));
  border: 1px solid var(--aurora-border-active, rgba(139, 92, 246, 0.4));
  color: var(--aurora-text, var(--ink-0));
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.api-block__help-btn:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.65);
}
.api-block__help-btn svg { flex-shrink: 0; color: var(--aurora-violet, var(--accent)); }
.api-block__sep { color: var(--aurora-text-dim, var(--ink-2)); }
.api-block__direct {
  color: var(--aurora-cyan, var(--accent));
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.15s;
}
.api-block__direct:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .api-block__helprow { flex-direction: column; align-items: stretch; gap: 8px; }
  .api-block__sep { display: none; }
  .api-block__help-btn,
  .api-block__direct {
    text-align: center;
    justify-content: center;
  }
}

/* ============================================================================
   API HELP MODAL — full instructions
   ============================================================================ */
.api-help-modal {
  position: fixed; inset: 0;
  z-index: 750 !important;            /* above builder (700), below toast (9000) */
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: apiHelpFade 0.18s var(--ease);
}
@keyframes apiHelpFade { from { opacity: 0; } to { opacity: 1; } }
.api-help-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(10, 14, 39, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
}
.api-help-modal__card {
  position: relative;
  z-index: 1;
  background: var(--aurora-bg-1, var(--bg-1));
  border: 1px solid var(--aurora-border-active, var(--accent));
  border-radius: 22px;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 92, 246, 0.18) inset;
  display: flex;
  flex-direction: column;
}
.api-help-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--aurora-border, var(--line));
  background: linear-gradient(180deg, var(--aurora-surface, var(--bg-2)) 0%, var(--aurora-bg-1, var(--bg-1)) 100%);
  border-radius: 22px 22px 0 0;
}
.api-help-modal__head-text { flex: 1; }
.api-help-modal__title {
  font-family: var(--f-display, inherit);
  font-size: 24px;
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.api-help-modal__sub {
  font-size: 13px;
  color: var(--aurora-text-muted, var(--ink-2));
  margin: 0;
  line-height: 1.55;
}
.api-help-modal__close {
  background: transparent;
  border: none;
  color: var(--aurora-text-dim, var(--ink-2));
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.api-help-modal__close:hover { background: var(--aurora-bg-2, var(--bg-2)); color: var(--aurora-text, var(--ink-0)); }

/* Steps ordered list */
.api-help-steps {
  list-style: none;
  padding: 24px 28px 8px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.api-help-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.api-help-step__num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}
.api-help-step__body { flex: 1; min-width: 0; }
.api-help-step__body h4 {
  font-family: var(--f-display, inherit);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--aurora-text, var(--ink-0));
  letter-spacing: -0.005em;
}
.api-help-step__body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--aurora-text-muted, var(--ink-1));
  margin: 0 0 8px;
}
.api-help-step__body p a {
  color: var(--aurora-cyan, var(--accent));
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
}
.api-help-step__body p a:hover { text-decoration: underline; }
.api-help-step__body code {
  font-family: var(--f-mono, monospace);
  font-size: 12px;
  background: var(--aurora-bg-2, var(--bg-2));
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--aurora-border, var(--line));
}
.api-help-step__hint {
  font-size: 12.5px;
  color: var(--aurora-text-dim, var(--ink-2));
  background: rgba(132, 204, 22, 0.06);
  border: 1px solid rgba(132, 204, 22, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px !important;
}
.api-help-step__cta {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  background: var(--aurora-grad, linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%));
  color: #fff !important;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: filter 0.15s var(--ease);
}
.api-help-step__cta:hover { filter: brightness(1.1); }

/* Privacy aside callout */
.api-help-aside {
  margin: 4px 28px 20px;
  padding: 14px 18px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.api-help-aside__icon { font-size: 24px; flex-shrink: 0; }
.api-help-aside__body { flex: 1; min-width: 0; }
.api-help-aside__body strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--aurora-text, var(--ink-0));
}
.api-help-aside__body p {
  font-size: 12.5px;
  color: var(--aurora-text-muted, var(--ink-1));
  margin: 0;
  line-height: 1.55;
}
.api-help-aside code {
  font-family: var(--f-mono, monospace);
  font-size: 11px;
  background: var(--aurora-bg-2, var(--bg-2));
  padding: 1px 5px;
  border-radius: 4px;
}

.api-help-foot {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, var(--aurora-bg-1, var(--bg-1)) 30%);
  padding: 16px 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--aurora-border, var(--line));
}
.api-help-foot .btn { min-width: 140px; }

/* ============================================================================
   API CONFIRMATION MODAL — appears on Submit
   ============================================================================ */
.api-confirm-modal {
  position: fixed; inset: 0;
  z-index: 760 !important;            /* above help (750), below toast (9000) */
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: apiConfirmFade 0.18s var(--ease);
}
@keyframes apiConfirmFade { from { opacity: 0; } to { opacity: 1; } }
.api-confirm-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(10, 14, 39, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
}
.api-confirm-modal__card {
  position: relative;
  z-index: 1;
  background: var(--aurora-bg-1, var(--bg-1));
  border: 1px solid var(--aurora-border-active, var(--accent));
  border-radius: 22px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(139, 92, 246, 0.2) inset;
  padding: 32px 28px 26px;
  text-align: center;
}
.api-confirm-modal__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}
.api-confirm-modal__title {
  font-family: var(--f-display, inherit);
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.api-confirm-modal__sub {
  font-size: 13.5px;
  color: var(--aurora-text-muted, var(--ink-1));
  margin: 0 0 22px;
  line-height: 1.5;
}

.api-confirm-modal__checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 18px;
}

.api-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--aurora-surface, var(--bg-2));
  border: 1px solid var(--aurora-border, var(--line));
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.api-check:hover { border-color: var(--aurora-border-active, var(--accent)); }
.api-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 22px; height: 22px;
  pointer-events: none;
}
.api-check__box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--aurora-border-active, var(--accent));
  background: var(--aurora-bg-2, var(--bg-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
  margin-top: 1px;
}
.api-check input:checked + .api-check__box {
  background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  border-color: transparent;
}
.api-check input:checked + .api-check__box::after {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.api-check input:focus-visible + .api-check__box {
  outline: 2px solid var(--aurora-violet, var(--accent));
  outline-offset: 2px;
}
.api-check__text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--aurora-text, var(--ink-0));
}
.api-check__text code {
  font-family: var(--f-mono, monospace);
  font-size: 12px;
  background: var(--aurora-bg-2, var(--bg-1));
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--aurora-border, var(--line));
}
.api-check input:checked ~ .api-check__text { /* no visual change */ }
.api-check:has(input:checked) {
  background: rgba(132, 204, 22, 0.06);
  border-color: rgba(132, 204, 22, 0.35);
}

.api-confirm-modal__keyhint {
  font-size: 12px;
  color: var(--aurora-text-muted, var(--ink-1));
  margin-bottom: 18px;
  min-height: 16px;
}
.api-confirm-modal__keyhint code {
  font-family: var(--f-mono, monospace);
  font-size: 12px;
  background: var(--aurora-bg-2, var(--bg-2));
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--aurora-border, var(--line));
  letter-spacing: 0.04em;
}

.api-confirm-modal__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.api-confirm-modal__primary-row {
  display: flex;
  gap: 10px;
  width: 100%;
}
.api-confirm-modal__primary-row .btn { flex: 1; }

#apiConfirmHelpBtn {
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgba(139, 92, 246, 0.5);
  text-underline-offset: 3px;
  padding: 4px 8px;
}
#apiConfirmHelpBtn:hover { text-decoration-color: var(--aurora-violet, var(--accent)); }

#apiConfirmGoBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--aurora-bg-2, var(--bg-2)) !important;
  color: var(--aurora-text-dim, var(--ink-2)) !important;
  box-shadow: none !important;
}

/* Responsive */
@media (max-width: 720px) {
  .api-help-modal__card { border-radius: 16px; max-height: 96vh; max-height: 96dvh; }
  .api-help-modal__head { padding: 22px 18px 14px; }
  .api-help-steps { padding: 18px; gap: 16px; }
  .api-help-aside { margin: 4px 18px 16px; }
  .api-help-foot { padding: 14px 18px 20px; }
  .api-help-foot .btn { min-width: 0; flex: 1; }
}
@media (max-width: 480px) {
  .api-confirm-modal__card { border-radius: 16px; padding: 24px 20px 22px; }
  .api-confirm-modal__icon { width: 56px; height: 56px; font-size: 28px; }
  .api-confirm-modal__title { font-size: 19px; }
  .api-confirm-modal__primary-row { flex-direction: column-reverse; }
  .api-confirm-modal__primary-row .btn { width: 100%; }
}

/* Touch-target sizing on coarse pointers (extends v9.4.7 patch) */
@media (hover: none) and (pointer: coarse) {
  .api-block__help-btn,
  .api-help-modal__close,
  .api-check,
  #apiConfirmHelpBtn {
    min-height: 44px;
  }
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .api-help-modal,
  .api-confirm-modal { animation: none !important; }
}

/* ============================================================================
   v9.4.9 — SKY-BLUE EDITION OVERRIDES
   ============================================================================
   Final layer that polishes the sky-blue makeover. Applied at the end so it
   wins over earlier rules without needing to edit them.
   ============================================================================ */

/* ---------- Body background — soft sky-glow cosmos on navy ---------- */
body {
  background:
    radial-gradient(ellipse 1200px 800px at 20% 10%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(ellipse 900px 700px at 85% 90%, rgba(125, 211, 252, 0.08), transparent 55%),
    var(--navy-deep) !important;
  color: var(--cream);
}

/* ---------- Logo placeholder (auth gate) ---------- */
.gate__logo-slot {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.08));
  border-radius: 22px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow:
    0 12px 36px -8px rgba(56, 189, 248, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.gate__logo-slot::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(125, 211, 252, 0.18) 90deg, transparent 180deg);
  animation: gateLogoRotate 12s linear infinite;
}
@keyframes gateLogoRotate { to { transform: rotate(360deg); } }
.gate__logo-placeholder {
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.5));
}
@media (prefers-reduced-motion: reduce) {
  .gate__logo-slot::before { animation: none !important; }
}

/* ---------- Rail mark (smaller version of the placeholder) ---------- */
.rail__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.08));
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.32);
}
.rail__mark svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.45));
}

/* Rail sub (without neekOS — single clean tagline) */
.rail__sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-300);
  font-weight: 500;
}

/* ---------- Gate brand primary in sky-gradient ---------- */
.gate__brand-primary {
  background: linear-gradient(135deg, var(--sky-200) 0%, var(--sky-400) 60%, var(--sky-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.gate__tagline {
  color: var(--cream-soft) !important;
  font-style: italic;
}
.gate__eyebrow {
  color: var(--sky-300) !important;
}

/* ---------- Auth gate panel — refresh shadows ---------- */
.gate__panel {
  background: linear-gradient(180deg, rgba(26, 46, 79, 0.72) 0%, rgba(15, 30, 54, 0.88) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
  box-shadow:
    0 32px 80px -16px rgba(14, 165, 233, 0.3),
    0 0 0 1px rgba(56, 189, 248, 0.05) inset !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* ---------- Buttons — sky-blue primary ---------- */
.btn--primary,
.btn--aurora {
  background: linear-gradient(135deg, var(--sky-400) 0%, var(--sky-500) 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow:
    0 8px 24px -4px rgba(14, 165, 233, 0.45),
    0 0 0 1px rgba(125, 211, 252, 0.25) inset !important;
  transition: filter 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn--primary:hover:not(:disabled),
.btn--aurora:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px -4px rgba(14, 165, 233, 0.55),
    0 0 0 1px rgba(125, 211, 252, 0.35) inset !important;
}
.btn--primary:active:not(:disabled),
.btn--aurora:active:not(:disabled) { transform: translateY(0); filter: brightness(0.96); }

.btn--ghost {
  background: rgba(56, 189, 248, 0.06) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  color: var(--sky-200) !important;
}
.btn--ghost:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: var(--cream) !important;
}

/* BYOK button keeps its identity but in sky family */
.btn--byok {
  background: linear-gradient(135deg, var(--sky-300) 0%, var(--sky-500) 100%) !important;
  color: var(--navy-deep) !important;
  font-weight: 700;
}

/* Platinum and Biz buttons get a cool slate-blue */
.btn--platinum {
  background: linear-gradient(135deg, #475569 0%, #1E293B 100%) !important;
  color: var(--sky-100) !important;
  border: 1px solid rgba(125, 211, 252, 0.3) !important;
}
.btn--biz {
  background: linear-gradient(135deg, var(--sky-500) 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
}

/* ---------- Form fields — sky-blue focus ---------- */
input:focus,
textarea:focus,
select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus,
.bfield input:focus,
.bfield textarea:focus {
  border-color: var(--sky-400) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18) !important;
}

/* ---------- Tier cards — sky-blue highlight ---------- */
.tier--popular,
.tier--platinum {
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow:
    0 24px 60px -10px rgba(14, 165, 233, 0.3),
    0 0 0 1px rgba(125, 211, 252, 0.25) inset !important;
}
.tier__ribbon,
.tier__ribbon--byok {
  background: linear-gradient(135deg, var(--sky-300) 0%, var(--sky-500) 100%) !important;
  color: var(--navy-deep) !important;
}
.tier__amount {
  color: var(--cream) !important;
}
.tier__currency,
.tier__period { color: var(--sky-300) !important; }

/* Promo tier — keep the special cyan-lime treatment but warm it slightly */
.tier--promo {
  border-color: rgba(125, 211, 252, 0.8) !important;
  box-shadow:
    0 24px 60px -10px rgba(56, 189, 248, 0.5),
    0 0 0 1px rgba(125, 211, 252, 0.35) inset !important;
}
.tier--promo .tier__amount {
  background: linear-gradient(135deg, var(--sky-300) 0%, #84CC16 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* ---------- BYOK promo banner — sky-blue treatment ---------- */
.byok-promo {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(125, 211, 252, 0.18) 50%, rgba(250, 204, 21, 0.12) 100%) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 10px 36px -10px rgba(56, 189, 248, 0.45) !important;
}
.byok-promo__icon {
  background: linear-gradient(135deg, var(--sky-400) 0%, var(--sky-500) 100%) !important;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.55) !important;
}
.byok-promo__main strong {
  background: linear-gradient(135deg, var(--sky-300) 0%, var(--sky-500) 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* ---------- API help & confirm modals — refresh sky-blue ---------- */
.api-help-step__num,
.api-confirm-modal__icon {
  background: linear-gradient(135deg, var(--sky-300) 0%, var(--sky-500) 100%) !important;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.45) !important;
}
.api-check input:checked + .api-check__box {
  background: linear-gradient(135deg, var(--sky-300) 0%, var(--sky-500) 100%) !important;
}
.api-check:has(input:checked) {
  background: rgba(56, 189, 248, 0.08) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}

/* ---------- Builder modal — sky-blue ---------- */
.builder-modal__card {
  border-color: rgba(56, 189, 248, 0.32) !important;
}
.bcard__num {
  background: linear-gradient(135deg, var(--sky-300) 0%, var(--sky-500) 100%) !important;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.45);
}
.builder-progress__step.is-active {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: var(--cream) !important;
}
.builder-progress__step.is-done { color: var(--sky-300) !important; }
.builder-progress__fill { background: var(--aurora-grad) !important; }

/* ---------- Rail chips ---------- */
.rail__chip {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--sky-200);
}
.rail__chip:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--cream);
}
.rail__version {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--sky-200);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
}

/* ---------- Notification badge pulse in sky ---------- */
.rail__bell-badge,
.notif-item__dot {
  background: var(--sky-400) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22) !important;
}

/* ---------- Footer cleanup (no more neekOS) ---------- */
.site-footer__initiative strong {
  background: linear-gradient(135deg, var(--sky-200) 0%, var(--sky-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.site-footer__link { color: var(--sky-300) !important; }

/* ---------- Cosmos background hex (legacy decorative) — hide since it referenced neekos-mark ---------- */
.cosmos__hex { display: none !important; }

/* ---------- Selection color ---------- */
::selection { background: var(--sky-400); color: var(--navy-deep); }
::-moz-selection { background: var(--sky-400); color: var(--navy-deep); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sky-500), var(--sky-600));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--sky-400); }

/* ---------- Cookie banner sky variant ---------- */
.cookie-banner {
  background: linear-gradient(180deg, rgba(15, 30, 54, 0.97) 0%, rgba(10, 22, 40, 0.99) 100%) !important;
  border-top: 1px solid var(--sky-500) !important;
}

/* ---------- Verify banner ---------- */
.verify-banner {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.1)) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: var(--sky-100) !important;
}
.verify-banner__text strong { color: var(--sky-300) !important; }

/* ============================================================================
   v9.5.0 — LIGHT MODE OVERRIDES + BRAND KIT INTEGRATION
   Final layer that converts the entire app from dark sky-blue to light-mode
   using the official Connext violet→indigo→cyan brand system.
   Appended at end so it wins over earlier rules without line-by-line edits.
   ============================================================================ */

/* ---------- Foundation: light page + soft brand-tinted background ---------- */
html, body {
  background:
    radial-gradient(ellipse 1100px 700px at 15% 5%,  rgba(124, 58, 237, 0.06), transparent 60%),
    radial-gradient(ellipse 900px 700px  at 90% 95%, rgba(8, 145, 178, 0.05),  transparent 55%),
    radial-gradient(ellipse 700px 500px  at 50% 50%, rgba(99, 102, 241, 0.04), transparent 70%),
    var(--bg-page) !important;
  color: var(--ink-0) !important;
}

/* Kill any decorative dark mark */
.cosmos, .cosmos__hex { display: none !important; }

/* ---------- Auth gate ---------- */
.gate {
  background: transparent !important;
}
.gate__panel {
  background: var(--bg-canvas) !important;
  border: 1px solid var(--line) !important;
  box-shadow:
    0 24px 60px -16px rgba(124, 58, 237, 0.18),
    0 4px 12px -4px rgba(15, 15, 35, 0.06),
    0 0 0 1px rgba(124, 58, 237, 0.05) inset !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* v9.5.0: real lockup logo replaces the SVG placeholder */
.gate__logo-slot {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 auto 4px !important;
}
.gate__logo-slot::before { display: none !important; }
.gate__logo-placeholder { display: none !important; }

.gate__brand-primary {
  background: var(--brand-grad) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  font-family: var(--f-display);
}
.gate__tagline {
  color: var(--ink-2) !important;
  font-style: italic;
}
.gate__eyebrow {
  color: var(--brand-violet) !important;
  letter-spacing: 0.22em;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
}

/* Sign in / Create account tabs */
.gate__tabs {
  background: var(--bg-soft) !important;
  border: 1px solid var(--line) !important;
}
.gate__tab {
  color: var(--ink-2) !important;
  background: transparent !important;
}
.gate__tab.is-active {
  background: var(--bg-canvas) !important;
  color: var(--ink-0) !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12), 0 0 0 1px rgba(124, 58, 237, 0.15);
  border-radius: 10px;
}
.gate__tab:hover:not(.is-active) { color: var(--ink-0) !important; }

/* Continue-with-Google sits on light surface */
.gate__google-btn,
.btn--google {
  background: #FFFFFF !important;
  color: #1F1F1F !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 1px 3px rgba(15, 15, 35, 0.06) !important;
}
.gate__google-btn:hover { background: var(--bg-soft) !important; }

/* Facebook/LinkedIn/X social row */
.gate__social-btn {
  background: var(--bg-canvas) !important;
  color: var(--ink-1) !important;
  border: 1px solid var(--line) !important;
}
.gate__social-btn:hover {
  background: var(--bg-soft) !important;
  border-color: var(--line-strong) !important;
}

/* OR-WITH-EMAIL divider */
.gate__divider-label, .gate__or {
  color: var(--ink-3) !important;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

/* Form labels + inputs in gate */
.gate__label,
.field > span,
.bfield > span {
  color: var(--ink-2) !important;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select,
.bfield input,
.bfield textarea,
.bfield select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
textarea,
select {
  background: var(--bg-canvas) !important;
  color: var(--ink-0) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  transition: border-color 0.15s var(--ease, ease), box-shadow 0.15s var(--ease, ease);
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-3) !important;
  opacity: 1;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-violet) !important;
  background: var(--bg-canvas) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
  outline: none !important;
}

/* ---------- Top rail ---------- */
.rail {
  background: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  box-shadow: 0 1px 0 rgba(124, 58, 237, 0.03), 0 4px 16px -8px rgba(15, 15, 35, 0.06);
}
.rail__mark {
  background: transparent !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
}
.rail__mark svg { display: none !important; }   /* hide inline SVG placeholder */
/* Real icon mark via img injected by JS or via brand-img class */
.rail__connext {
  background: var(--brand-grad) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rail__sub {
  color: var(--ink-2) !important;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rail__version {
  background: var(--bg-tint) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--brand-violet-deep) !important;
}
.rail__chip {
  background: var(--bg-canvas) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-1) !important;
}
.rail__chip:hover {
  background: var(--bg-soft) !important;
  border-color: var(--brand-violet) !important;
  color: var(--brand-violet-deep) !important;
}
.rail__chip--logout:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.4) !important;
  color: var(--err) !important;
}
.rail__step {
  color: var(--ink-3) !important;
}
.rail__step.is-active {
  color: var(--brand-violet) !important;
  font-weight: 600;
}
.rail__step.is-done {
  color: var(--brand-cyan) !important;
}

/* ---------- General surfaces (cards, modals, panels) ---------- */
.step,
.workflow > section,
.card,
.notif-item,
.cart-item,
.tier,
.review-block,
.bcard,
.cookie-banner__inner,
.modal__panel,
.builder-modal__card,
.api-help-modal__card,
.api-confirm-modal__card,
.checkout-confirm__card,
.apply-modal__card,
.notif-drawer {
  background: var(--bg-canvas) !important;
  color: var(--ink-0) !important;
  border-color: var(--line) !important;
}
.step__title,
.step__head h2,
.modal__title,
.builder-modal__title,
.api-help-modal__title,
.api-confirm-modal__title,
.cart-shell__title,
.results-block__title,
h1, h2, h3, h4, h5 {
  color: var(--ink-0) !important;
}
.step__sub,
.modal__sub,
.builder-modal__sub,
.api-help-modal__sub,
.api-confirm-modal__sub {
  color: var(--ink-2) !important;
}

/* ---------- Buttons (light mode) ---------- */
.btn--primary,
.btn--aurora {
  background: var(--brand-grad) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow:
    0 8px 24px -4px rgba(124, 58, 237, 0.4),
    0 0 0 1px rgba(124, 58, 237, 0.1) inset !important;
}
.btn--primary:hover:not(:disabled),
.btn--aurora:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px -4px rgba(124, 58, 237, 0.5),
    0 0 0 1px rgba(124, 58, 237, 0.18) inset !important;
}
.btn--primary:disabled,
.btn--aurora:disabled {
  background: var(--bg-muted) !important;
  color: var(--ink-3) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}
.btn--ghost {
  background: var(--bg-canvas) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-1) !important;
}
.btn--ghost:hover:not(:disabled) {
  background: var(--bg-soft) !important;
  border-color: var(--brand-violet) !important;
  color: var(--brand-violet-deep) !important;
}
.btn--byok {
  background: linear-gradient(135deg, var(--brand-cyan-mid) 0%, var(--brand-cyan) 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700;
}
.btn--platinum {
  background: linear-gradient(135deg, var(--ink-0) 0%, var(--brand-violet-deep) 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
}
.btn--biz {
  background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-violet) 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
}

/* ---------- Sign-in/Sign-up gate primary CTA "Enter Connext" ---------- */
.gate__cta,
.gate__submit,
button.btn.btn--primary.btn--wide,
button.btn.btn--wide.btn--primary {
  background: var(--brand-grad) !important;
  color: #FFFFFF !important;
}

/* ---------- Tier cards (pricing) ---------- */
.tier {
  background: var(--bg-canvas) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-0) !important;
  box-shadow: 0 4px 14px rgba(15, 15, 35, 0.05) !important;
}
.tier:hover {
  border-color: var(--line-strong) !important;
  box-shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.18), 0 0 0 1px rgba(124, 58, 237, 0.08) !important;
  transform: translateY(-2px);
}
.tier__name { color: var(--ink-0) !important; }
.tier__pitch,
.tier__desc { color: var(--ink-2) !important; }
.tier__amount { color: var(--ink-0) !important; }
.tier__currency, .tier__period { color: var(--ink-2) !important; }
.tier__features li { color: var(--ink-1) !important; }
.tier__features li::before { color: var(--brand-violet) !important; }
.tier--popular {
  border-color: var(--brand-violet) !important;
  box-shadow:
    0 20px 60px -10px rgba(124, 58, 237, 0.25),
    0 0 0 1px rgba(124, 58, 237, 0.15) inset !important;
}
.tier__ribbon,
.tier__ribbon--byok {
  background: var(--brand-grad) !important;
  color: #FFFFFF !important;
}
.tier--promo {
  border-color: var(--brand-cyan) !important;
  background: linear-gradient(180deg, var(--bg-canvas) 0%, rgba(34, 211, 238, 0.04) 100%) !important;
  box-shadow:
    0 20px 60px -10px rgba(8, 145, 178, 0.28),
    0 0 0 1px rgba(34, 211, 238, 0.25) inset !important;
}
.tier--promo .tier__amount {
  background: linear-gradient(135deg, var(--brand-cyan-mid) 0%, var(--brand-violet) 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* ---------- Pricing hero + BYOK promo banner ---------- */
.pricing-hero h1,
.pricing-hero__title {
  background: var(--brand-grad) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
.byok-promo {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(34, 211, 238, 0.06) 50%, rgba(132, 204, 22, 0.04) 100%) !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
  box-shadow: 0 8px 28px -8px rgba(124, 58, 237, 0.18) !important;
}
.byok-promo__icon {
  background: var(--brand-grad) !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4) !important;
}
.byok-promo__main { color: var(--ink-0) !important; }
.byok-promo__main strong {
  background: var(--brand-grad) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
.byok-promo__sub { color: var(--ink-2) !important; }
.byok-promo__count {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: var(--warn) !important;
}

/* ---------- Modals / popups ---------- */
.modal__scrim,
.builder-modal__scrim,
.api-help-modal__scrim,
.api-confirm-modal__scrim,
.notif-drawer__scrim,
.checkout-confirm::before,
.apply-modal::before {
  background: rgba(15, 15, 35, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__close,
.builder-modal__close,
.api-help-modal__close,
.apply-modal__close {
  color: var(--ink-2) !important;
  background: transparent !important;
}
.modal__close:hover,
.builder-modal__close:hover,
.api-help-modal__close:hover {
  background: var(--bg-soft) !important;
  color: var(--ink-0) !important;
}

/* API help step numbers + confirm icon already use brand-grad — keep */
.api-help-step__num,
.api-confirm-modal__icon,
.bcard__num {
  background: var(--brand-grad) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4) !important;
}
.api-help-step__body h4 { color: var(--ink-0) !important; }
.api-help-step__body p { color: var(--ink-2) !important; }
.api-help-step__body p a,
.api-block__direct {
  color: var(--brand-violet) !important;
  font-weight: 600;
}
.api-help-step__body p a:hover { color: var(--brand-violet-deep) !important; }
.api-help-step__hint {
  background: rgba(132, 204, 22, 0.08) !important;
  border-color: rgba(132, 204, 22, 0.3) !important;
  color: var(--ink-1) !important;
}
.api-help-step__cta {
  background: var(--brand-grad) !important;
  color: #FFFFFF !important;
}
.api-help-aside {
  background: rgba(8, 145, 178, 0.06) !important;
  border-color: rgba(8, 145, 178, 0.25) !important;
}
.api-help-aside__body strong { color: var(--ink-0) !important; }
.api-help-aside__body p { color: var(--ink-2) !important; }
.api-help-aside code,
.api-help-step__body code,
.api-confirm-modal__keyhint code {
  background: var(--bg-soft) !important;
  border-color: var(--line) !important;
  color: var(--ink-0) !important;
}

.api-check {
  background: var(--bg-canvas) !important;
  border: 1px solid var(--line) !important;
}
.api-check:hover { border-color: var(--brand-violet) !important; }
.api-check__box {
  background: var(--bg-canvas) !important;
  border: 1.5px solid var(--brand-violet) !important;
}
.api-check input:checked + .api-check__box {
  background: var(--brand-grad) !important;
  border-color: transparent !important;
}
.api-check:has(input:checked) {
  background: rgba(124, 58, 237, 0.04) !important;
  border-color: rgba(124, 58, 237, 0.35) !important;
}
.api-check__text { color: var(--ink-0) !important; }

/* API help button under the API key input */
.api-block__help-btn {
  background: var(--bg-soft) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--brand-violet-deep) !important;
}
.api-block__help-btn:hover {
  background: var(--bg-tint) !important;
  border-color: var(--brand-violet) !important;
}
.api-block__help-btn svg { color: var(--brand-violet) !important; }
.api-block__sep { color: var(--ink-3) !important; }

/* ---------- Résumé builder ---------- */
.builder-modal__head {
  background: var(--bg-soft) !important;
  border-bottom: 1px solid var(--line) !important;
}
.builder-progress__step.is-active {
  background: var(--bg-tint) !important;
  border-color: var(--brand-violet) !important;
  color: var(--brand-violet-deep) !important;
}
.builder-progress__step.is-done { color: var(--brand-cyan) !important; }
.builder-progress__bar { background: var(--bg-muted) !important; }
.builder-progress__fill { background: var(--brand-grad) !important; }
.bcard__rm { border-color: var(--line) !important; color: var(--ink-2) !important; }
.bcard__rm:hover:not(:disabled) {
  color: var(--err) !important;
  border-color: var(--err) !important;
}
.builder-foot {
  background: linear-gradient(180deg, transparent 0%, var(--bg-canvas) 30%) !important;
  border-top: 1px solid var(--line) !important;
}
.review-block h4 { color: var(--brand-violet) !important; }
.review-block p,
.review-exp p,
.review-exp li { color: var(--ink-1) !important; }
.review-block__small { color: var(--ink-2) !important; }

/* Drop zone */
.drop-zone {
  background: var(--bg-soft) !important;
  border: 2px dashed var(--line-strong) !important;
  color: var(--ink-1) !important;
  transition: all 0.18s var(--ease, ease);
}
.drop-zone:hover,
.drop-zone.is-drag {
  background: var(--bg-tint) !important;
  border-color: var(--brand-violet) !important;
  color: var(--brand-violet-deep) !important;
}
.drop-zone__icon { color: var(--brand-violet) !important; }
.drop-zone__title { color: var(--ink-0) !important; }
.drop-zone__sub { color: var(--ink-2) !important; }
.resume-altrow__divider {
  color: var(--ink-3) !important;
}
.resume-altrow__divider::before,
.resume-altrow__divider::after {
  background: var(--line) !important;
}
.resume-altrow__hint { color: var(--ink-2) !important; }

/* Upload meta + preview */
.upload-meta,
.upload-preview {
  background: var(--bg-soft) !important;
  border: 1px solid var(--line) !important;
}
.upload-meta__label { color: var(--ink-2) !important; }
.upload-meta__val { color: var(--ink-0) !important; }
.upload-preview pre {
  background: var(--bg-muted) !important;
  color: var(--ink-1) !important;
  border-color: var(--line) !important;
}

/* ---------- Notification drawer ---------- */
.notif-drawer {
  background: var(--bg-canvas) !important;
  border-left: 1px solid var(--line) !important;
  box-shadow: -20px 0 60px rgba(15, 15, 35, 0.15) !important;
}
.notif-drawer__head { border-bottom: 1px solid var(--line) !important; }
.notif-item {
  background: var(--bg-canvas) !important;
  border-bottom: 1px solid var(--line-soft) !important;
}
.notif-item:hover { background: var(--bg-soft) !important; }
.notif-item__title { color: var(--ink-0) !important; }
.notif-item__desc { color: var(--ink-2) !important; }
.notif-item__time { color: var(--ink-3) !important; }
.notif-item__dot,
.rail__bell-badge {
  background: var(--brand-violet) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
  color: #FFFFFF !important;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid var(--brand-violet) !important;
  color: var(--ink-1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* ---------- Verify (email verification) banner ---------- */
.verify-banner {
  background: rgba(245, 158, 11, 0.1) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: var(--ink-1) !important;
}
.verify-banner__text strong { color: var(--warn) !important; }

/* ---------- Audience toggle (pricing) ---------- */
.audience-toggle {
  background: var(--bg-soft) !important;
  border: 1px solid var(--line) !important;
}
.audience-toggle__btn {
  background: transparent !important;
  color: var(--ink-2) !important;
}
.audience-toggle__btn.is-active {
  background: var(--brand-grad) !important;
  color: #FFFFFF !important;
}
.audience-toggle__pill {
  background: var(--brand-grad) !important;
}

/* Currency + billing controls */
.pricing-controls {
  background: var(--bg-soft) !important;
  border: 1px solid var(--line) !important;
}
.pricing-controls__bill-btn {
  background: transparent !important;
  color: var(--ink-2) !important;
}
.pricing-controls__bill-btn.is-active {
  background: var(--bg-canvas) !important;
  color: var(--ink-0) !important;
  box-shadow: 0 2px 6px rgba(15, 15, 35, 0.08);
}
.pricing-controls__save-tag {
  background: var(--brand-grad) !important;
  color: #FFFFFF !important;
}
.pricing-controls__cur-select {
  background: var(--bg-canvas) !important;
  color: var(--ink-0) !important;
  border: 1px solid var(--line) !important;
}

/* Discount badges */
.discount-pill {
  background: rgba(132, 204, 22, 0.12) !important;
  border: 1px solid rgba(132, 204, 22, 0.4) !important;
  color: #4D7C0F !important;
}

/* ---------- Pipeline progress ---------- */
.pipeline-progress {
  background:
    radial-gradient(ellipse 800px 500px at 50% 20%, rgba(124, 58, 237, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-0) !important;
}
.pipeline-progress__title { color: var(--ink-0) !important; }
.pipeline-progress__sub { color: var(--ink-2) !important; }
.pipeline-progress__bar { background: var(--bg-muted) !important; }
.pipeline-progress__bar-fill { background: var(--brand-grad) !important; }
.pipeline-progress__percent { color: var(--brand-violet) !important; font-weight: 700; }

/* ---------- Job board ---------- */
.job-card {
  background: var(--bg-canvas) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-0) !important;
}
.job-card:hover {
  border-color: var(--brand-violet) !important;
  box-shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.18) !important;
}
.job-card__title { color: var(--ink-0) !important; }
.job-card__company { color: var(--ink-2) !important; }
.job-card__meta { color: var(--ink-3) !important; }
.job-card__apply {
  background: var(--brand-grad) !important;
  color: #FFFFFF !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.04) 100%) !important;
  border-top: 1px solid var(--line) !important;
  color: var(--ink-2) !important;
}
.site-footer__initiative strong {
  background: var(--brand-grad) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.site-footer__dot { color: var(--ink-3) !important; }
.site-footer__link { color: var(--brand-violet) !important; }
.site-footer__link:hover { color: var(--brand-violet-deep) !important; }

/* ---------- Toast ---------- */
.toast {
  background: var(--ink-0) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--ink-1) !important;
  box-shadow: 0 24px 56px -16px rgba(15, 15, 35, 0.35) !important;
}

/* ---------- Scrollbar in brand colors ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-violet), var(--brand-indigo));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-violet-deep); }

/* ---------- Selection in brand violet ---------- */
::selection { background: var(--brand-violet); color: #FFFFFF; }
::-moz-selection { background: var(--brand-violet); color: #FFFFFF; }

/* ---------- Logo lockup image classes — used by index.html replacements ---------- */
.brand-lockup {
  display: inline-block;
  height: 56px;
  width: auto;
  max-width: 280px;
  vertical-align: middle;
}
.brand-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  vertical-align: middle;
}
.gate__logo-img {
  display: block;
  margin: 0 auto 12px;
  height: 100px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 8px 20px rgba(124, 58, 237, 0.22));
}
.rail__brand-img {
  display: inline-block;
  height: 28px;
  width: auto;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .gate__logo-img { height: 80px; }
  .brand-lockup { height: 44px; }
}

/* ---------- General text fallback — anything that still inherits a dark-mode default ---------- */
.workflow,
.workflow p,
.workflow li,
.workflow label,
.privacy,
.privacy p,
.privacy li {
  color: var(--ink-1);
}
.workflow .muted,
.privacy .muted { color: var(--ink-2) !important; }
.api-note {
  color: var(--ink-2) !important;
  background: var(--bg-soft) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  padding: 10px 14px;
}
.api-note code {
  background: var(--bg-canvas) !important;
  border: 1px solid var(--line) !important;
  color: var(--brand-violet-deep) !important;
}

/* ---------- Reduced motion still respected ---------- */
@media (prefers-reduced-motion: reduce) {
  .byok-promo::before,
  .tier--promo .tier__ribbon--byok,
  .rail__bell-badge,
  .discount-pill { animation: none !important; }
}

/* ---------- meta theme-color hint via prefers-color-scheme override ----------
   Even if the user is in dark mode, we lock the app to light. */
@media (prefers-color-scheme: dark) {
  html, body { background: var(--bg-page) !important; color: var(--ink-0) !important; }
}

/* ============================================================================
   v9.5.1 — RAIL LOGO FIX + STEPPER REMOVAL
   ============================================================================
   Issues fixed:
   1. Rail logo was rendering as a flat gradient bar because gradient-clipped
      text wasn't computing reliably in all browsers. Solution: replace text
      wordmark with the official lockup SVG (icon + wordmark together).
   2. Removed redundant step chips ('Location · Upload · Results'); the full-
      page pipeline progress tracker handles step state.
   ============================================================================ */

/* Full lockup in the rail */
.rail__lockup-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  outline: none;
  transition: opacity 0.18s var(--ease, ease);
}
.rail__lockup-link:hover { opacity: 0.82; }
.rail__lockup-link:focus-visible {
  outline: 2px solid var(--brand-violet);
  outline-offset: 4px;
  border-radius: 8px;
}
.rail__lockup-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 220px;
  /* The brand lockup SVG has its own gradient so no clipping/filter needed */
}
@media (max-width: 720px) {
  .rail__lockup-img { height: 32px; max-width: 160px; }
}
@media (max-width: 480px) {
  .rail__lockup-img { height: 28px; max-width: 130px; }
}

/* Hide orphaned text-wordmark elements if any remain */
.rail__name,
.rail__connext,
.rail__sub,
.rail__neek,
.rail__os,
.rail__bizai,
.rail__divider,
.rail__brand-img,
.rail__mark { display: none !important; }

/* Hide the step chips (their container too) */
.rail__steps,
.rail__step { display: none !important; }

/* v9.5.1 — Avatar now uses brand-violet gradient (light mode) */
.rail__avatar {
  background: var(--brand-grad) !important;
  border: 2px solid var(--bg-canvas) !important;
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 4px 12px rgba(124, 58, 237, 0.25) !important;
  color: #FFFFFF !important;
}
.rail__avatar:hover {
  box-shadow:
    0 0 0 1px var(--brand-violet),
    0 8px 20px rgba(124, 58, 237, 0.35) !important;
}

/* Brand label next to avatar (the name "Niket Parmar") */
.rail__profile-name { color: var(--ink-1) !important; font-weight: 500; }

/* Rail layout cleanup with steps gone — spread brand left, meta right */
.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rail__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.rail__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* On phones, hide the version chip to save space */
@media (max-width: 480px) {
  .rail__version { display: none !important; }
}
