/* ============================================================
   neekOS Connext — Business AI for Careers
   Brand palette derived from the official neekOS brand kit
   ============================================================ */

:root {
  /* Brand colors — exact values from the neekOS Business AI kit */
  --neek-ink: #1f1813;         /* Primary deep ink background */
  --neek-ink-deep: #15110d;    /* Deeper ink, darkest tone */
  --neek-cream: #f4ecd8;       /* Cream — primary brand foreground */
  --neek-cream-soft: #e8dfc8;  /* Slightly muted cream */
  --neek-terracotta: #d97c5f;  /* Warm orange/terracotta accent */
  --neek-terracotta-soft: #e89880;
  --neek-terracotta-deep: #b85a3e;

  /* Surface tones derived from the ink */
  --bg-0: #15110d;
  --bg-1: #1f1813;
  --bg-2: #2a2018;
  --bg-3: #36281e;
  --line: #3a2d22;
  --line-2: #4d3c2e;

  /* Ink tones for text on dark surfaces */
  --ink-0: #f4ecd8;
  --ink-1: #d5cab2;
  --ink-2: #a39580;
  --ink-3: #756855;

  /* Accent system */
  --accent: var(--neek-terracotta);
  --accent-soft: var(--neek-terracotta-soft);
  --accent-deep: var(--neek-terracotta-deep);
  --accent-glow: rgba(217, 124, 95, 0.22);

  /* Status colors */
  --ok: #7fc77f;
  --warn: #e8b34b;
  --err: #e07a6a;

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

  /* 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 { display: none; }

.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; }
}
