/* ===========================================================================
   RecruitingGenius — Design System
   Aesthetic: futuristic precision-dark, enterprise SaaS
   =========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..900;1,14..32,300..900&display=swap');
@import url('rg-nav.css?v=4');

:root {
  /* Backgrounds — RecruitingGenius landing slate (#0f172a) */
  --bg:           #0f172a;
  --bg-mid:       #111827;
  --bg-surface:   #172033;

  /* Panels glassmorphism */
  --panel:        rgba(255,255,255,0.04);
  --panel-solid:  #1e293b;
  --panel-2:      #243044;
  --panel-hover:  rgba(255,255,255,0.055);
  --glass:        rgba(255,255,255,0.025);
  --glass-border: rgba(255,255,255,0.08);

  /* Typography — landing match (fonts loaded via rg-nav.css) */
  --font-display: var(--rg-font-display);
  --font-satoshi: var(--rg-font-satoshi);

  /* Typography */
  --text:         #f0efff;
  --text-2:       #c2bfdf;
  --muted:        #7a7898;
  --muted-2:      #4e4c68;

  /* Brand — RecruitingGenius teal */
  --emerald:      #14b8a6;
  --emerald-dim:  rgba(20,184,166,0.12);
  --emerald-glow: rgba(20,184,166,0.22);
  --indigo:       #6366f1;
  --indigo-dim:   rgba(99,102,241,0.10);
  --indigo-glow:  rgba(99,102,241,0.20);
  --violet:       #8b5cf6;
  --sky:          #38bdf8;
  --amber:        #f59e0b;
  --rose:         #f43f5e;
  --rose-dim:     rgba(244,63,94,0.10);

  /* Semantic */
  --success:      var(--emerald);
  --danger:       var(--rose);

  /* Borders */
  --border:       rgba(255,255,255,0.065);
  --border-2:     rgba(255,255,255,0.11);
  --border-glow:  rgba(99,102,241,0.35);

  /* Radii */
  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    7px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.5);
  --shadow:       0 4px 28px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lg:    0 20px 70px rgba(0,0,0,0.65), 0 4px 20px rgba(0,0,0,0.4);
  --glow-emerald: 0 0 50px rgba(16,185,129,0.15);
  --glow-indigo:  0 0 50px rgba(99,102,241,0.15);

  /* Gradients */
  --grad:         linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --grad-soft:    linear-gradient(135deg, var(--emerald-dim), var(--indigo-dim));
  --grad-text:    linear-gradient(135deg, #14b8a6 0%, #2dd4bf 55%, #5eead4 100%);

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset & base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 1000px 700px at 75% -8%, rgba(20,184,166,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 800px 600px at 15% 12%, rgba(99,102,241,0.06) 0%, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--emerald); text-decoration: none; transition: color 0.15s; }
a:hover { color: #34d399; }
h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Navigation (shared rg-nav.css) ------------------------------------ */

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--grad); color: #04052a; border: none; cursor: pointer;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; font-family: inherit;
  transition: transform 0.15s var(--ease-out-expo), box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(16,185,129,0.22);
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}
.btn:hover { transform: translateY(-1px); color: #04052a; box-shadow: 0 6px 24px rgba(16,185,129,0.32); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: var(--panel); color: var(--text-2);
  border: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
}
.btn.secondary::after { display: none; }
.btn.secondary:hover { background: var(--panel-hover); color: var(--text); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: none; border: none; }
.btn.ghost::after { display: none; }
.btn.ghost:hover { color: var(--text-2); background: var(--panel); }
.btn.block { display: flex; width: 100%; }
.btn.lg { padding: 13px 24px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { flex-shrink: 0; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.hero-orb-1 {
  width: 600px; height: 600px; top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  animation: orb-float 8s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 400px; height: 400px; bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  animation: orb-float 10s ease-in-out infinite alternate-reverse;
}
@keyframes orb-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -20px) scale(1.05); }
}
.hero > *:not(.hero-orb) { position: relative; z-index: 1; }

.hero-kicker, .hero h1, .hero-sub, .hero-actions, .trust-bar {
  opacity: 0; transform: translateY(24px);
  animation: hero-in var(--ease-out-expo) 0.6s forwards;
}
.hero h1      { animation-delay: 0.1s; }
.hero-sub     { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
.trust-bar    { animation-delay: 0.45s; }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
  padding: 5px 14px 5px 10px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--border-2);
}
.hero-kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: blink 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 {
  font-size: clamp(42px, 6.5vw, 72px);
  font-weight: 800; line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 22px; max-width: 880px;
  color: var(--text);
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted); line-height: 1.65;
  margin: 0 0 36px; max-width: 640px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-actions .btn.lg { padding: 14px 28px; font-size: 15.5px; }

/* ---- Trust bar --------------------------------------------------------- */
.trust-bar {
  margin: 60px 0 0; padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.trust-bar-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-2); white-space: nowrap;
}
.trust-logos { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; flex: 1; }
.trust-logo {
  font-size: 13px; font-weight: 600; color: var(--muted);
  opacity: 0.6; letter-spacing: -0.01em; transition: opacity 0.2s;
}
.trust-logo:hover { opacity: 1; }

/* ---- Stats strip ------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin: 16px 0 80px;
}
.stat {
  background: var(--panel-solid);
  padding: 32px 28px; text-align: left;
  transition: background 0.2s;
}
.stat:hover { background: var(--panel-hover); }
.stat .num {
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---- Section ----------------------------------------------------------- */
.section { margin: 100px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 14px;
}
.section-head p { color: var(--muted); font-size: 16px; margin: 0; line-height: 1.7; }

/* ---- Eyebrow ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--emerald);
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 16px; height: 2px; background: var(--emerald); border-radius: 1px;
}
.section-head .eyebrow { justify-content: center; }

/* ---- How it works ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative; padding: 36px 28px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease-out-expo), box-shadow 0.25s;
}
.step:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.12), var(--shadow);
}
.step-num {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--emerald);
  margin-bottom: 16px;
}
.step-num::before {
  content: ""; display: inline-block;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--emerald-dim);
  border: 1px solid rgba(16,185,129,0.3);
}
.step h3 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.65; }

/* ---- Feature cards ----------------------------------------------------- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.feature {
  background: var(--panel-solid);
  padding: 36px 32px; position: relative;
  transition: background 0.2s var(--ease-out-expo);
}
.feature::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0;
  transition: opacity 0.3s; pointer-events: none;
}
.feature:hover { background: var(--panel-hover); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--indigo-dim);
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
  transition: background 0.2s, box-shadow 0.2s;
}
.feature:hover .feature-icon {
  background: rgba(99,102,241,0.18);
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; position: relative; z-index: 1; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.65; position: relative; z-index: 1; }
.feature.coming-soon { opacity: 0.55; }
.feature-badge {
  display: inline-block; margin-top: 12px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); background: var(--panel);
  border: 1px solid var(--border); position: relative; z-index: 1;
}

/* ---- Pricing ----------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.plan {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out-expo);
}
.plan:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.plan.highlight {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(145deg, rgba(99,102,241,0.06) 0%, var(--panel-solid) 60%);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.15), var(--glow-indigo);
}
.plan > .plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #04052a;
  font-size: 11px; font-weight: 800;
  padding: 4px 14px; border-radius: 999px;
  letter-spacing: 0.04em; white-space: nowrap;
}
.period-badge {
  align-self: flex-start;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: var(--panel); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.plan.highlight .period-badge { color: var(--indigo); background: var(--indigo-dim); border-color: rgba(99,102,241,0.2); }
.plan h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.plan .price { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 4px; }
.plan .price span { font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .save { color: var(--emerald); font-size: 12.5px; font-weight: 600; min-height: 18px; margin-bottom: 10px; }
.plan .desc { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; line-height: 1.6; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; font-size: 14px; color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.plan li:last-child { border-bottom: none; }
.plan li .check { color: var(--emerald); font-size: 14px; font-weight: 800; flex-shrink: 0; margin-top: 1px; }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band {
  margin: 80px 0; padding: 80px 60px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(16,185,129,0.06));
  border: 1px solid rgba(99,102,241,0.2);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute;
  width: 600px; height: 600px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; position: relative; z-index: 1; }
.cta-band p { color: var(--muted); font-size: 17px; margin: 0 0 36px; position: relative; z-index: 1; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---- Footer ------------------------------------------------------------ */
.page-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0; border-top: 1px solid var(--border);
  margin-top: 0; flex-wrap: wrap; gap: 16px;
}
.page-foot-brand { font-size: 13px; color: var(--muted-2); font-weight: 500; }
.page-foot-links { display: flex; gap: 20px; }
.page-foot-links a { font-size: 13px; color: var(--muted); font-weight: 500; transition: color 0.15s; }
.page-foot-links a:hover { color: var(--text-2); }

/* ---- Auth -------------------------------------------------------------- */
.auth-wrap {
  min-height: calc(100vh - var(--rg-nav-h, 72px));
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
}
.panel {
  background: var(--panel-solid);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 48px 44px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg), var(--glow-indigo);
  position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
}
.panel h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.panel .sub { color: var(--muted); font-size: 14px; margin: 0 0 32px; }

body.page-auth {
  font-family: var(--font-satoshi);
}
body.page-auth .panel h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  letter-spacing: -0.02em;
  color: #fff;
}
body.page-auth .panel .sub {
  font-family: var(--font-satoshi);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
body.page-auth label {
  font-family: var(--font-satoshi);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.55);
}
body.page-auth input,
body.page-auth select,
body.page-auth textarea {
  font-family: var(--font-satoshi);
  font-size: 15px;
  font-weight: 500;
}
body.page-auth .btn {
  font-family: var(--font-satoshi);
  font-weight: 700;
  font-size: 15px;
  border-radius: 100px;
  color: #fff;
  background: #14b8a6;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.22);
}
body.page-auth .btn:hover {
  background: #0d9488;
  color: #fff;
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.32);
}
body.page-auth .panel .foot {
  font-family: var(--font-satoshi);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}
body.page-auth .panel .foot a {
  color: #14b8a6;
  font-weight: 500;
}
body.page-auth .plan-opt .pname,
body.page-auth .plan-opt .pprice {
  font-family: var(--font-satoshi);
}
body.page-auth .msg {
  font-family: var(--font-satoshi);
}

/* ---- Forms ------------------------------------------------------------- */
label {
  display: block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-2); margin: 18px 0 7px;
}
input, select, textarea {
  width: 100%; padding: 11px 14px;
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px; font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
select option { background: var(--panel-solid); color: var(--text); }

/* ---- Plan picker (register) ------------------------------------------- */
.plan-picker { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; margin-bottom: 4px; }
.plan-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer; user-select: none;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.plan-opt:hover { border-color: rgba(20, 184, 166, 0.35); background: rgba(255, 255, 255, 0.05); }
.plan-opt.active {
  border-color: rgba(20, 184, 166, 0.65);
  background: rgba(20, 184, 166, 0.08);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.2);
}
.plan-opt-main { flex: 1; min-width: 0; }
.plan-opt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.plan-opt .plan-badge {
  position: static; transform: none;
  display: inline-flex; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: #5eead4; background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.28);
}
.plan-opt-desc { display: block; font-size: 13px; line-height: 1.45; }
.plan-opt .pname { font-size: 15px; font-weight: 700; display: block; margin: 0; }
.plan-opt .pprice { font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; }
.plan-opt .pprice .kv { font-size: 12px; font-weight: 500; color: var(--muted); }
.plan-opt input { display: none; }

/* ---- Messages ---------------------------------------------------------- */
.msg {
  margin-top: 14px; padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; display: none;
}
.msg.error { background: rgba(244,63,94,0.08); color: #fda4af; display: block; border: 1px solid rgba(244,63,94,0.25); }
.msg.ok { background: rgba(16,185,129,0.08); color: #6ee7b7; display: block; border: 1px solid rgba(16,185,129,0.25); }
.foot { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---- Pills & badges ---------------------------------------------------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: capitalize;
}
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.active, .status-pill.hired, .status-pill.shortlisted, .status-pill.open, .status-pill.ready {
  background: var(--emerald-dim); color: var(--emerald);
}
.status-pill.pending, .status-pill.screening, .status-pill.applied, .status-pill.assessment, .status-pill.draft {
  background: var(--indigo-dim); color: var(--indigo);
}
.status-pill.setting_up, .status-pill.provisioning {
  background: rgba(245,158,11,0.12); color: var(--amber);
}
.status-pill.error, .status-pill.rejected, .status-pill.closed {
  background: var(--rose-dim); color: var(--rose);
}
.status-pill.paused { background: rgba(245,158,11,0.12); color: var(--amber); }

/* ---- Dashboard --------------------------------------------------------- */
.page-dashboard .nav-wrap {
  border-bottom-color: rgba(99,102,241,0.14);
}

.dash-page {
  padding: 36px 0 80px;
  min-height: calc(100vh - 60px);
}

.dash-container {
  max-width: 960px;
}

.dash-header {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.dash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin: 0 0 10px;
}

.dash-eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--emerald);
  border-radius: 1px;
}

.dash-header h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.dash-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.dash-card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.2s, transform 0.2s var(--ease-out-expo);
}

.dash-card-wide {
  grid-column: 1 / -1;
}

.dash-card:hover { border-color: var(--border-2); }

.dash-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 10px;
}

.dash-card-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.dash-card-sub { font-size: 13px; color: var(--muted); }

/* ---- Workspace status card --------------------------------------------- */
.workspace-card {
  background: var(--panel-solid);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.workspace-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 400px 250px at 80% -20%, rgba(99,102,241,0.08), transparent 65%);
}

.workspace-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
}

.ws-status-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  overflow: hidden;
}

.ws-status-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex-shrink: 0;
}

.ws-status-body {
  flex: 1;
  min-width: 0;
}

.ws-status-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.ws-status-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.ws-status-msg {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.ws-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  position: relative;
}

.ws-spinner { font-size: 12.5px; color: var(--muted); }

.ws-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Workspace states */
.workspace-card.ws-pending  { border-color: rgba(99,102,241,0.3); box-shadow: 0 0 0 1px rgba(99,102,241,0.08), var(--glow-indigo); }
.workspace-card.ws-pending  .ws-status-icon { background: var(--indigo-dim); color: var(--indigo); }
.workspace-card.ws-setting_up { border-color: rgba(99,102,241,0.3); box-shadow: 0 0 0 1px rgba(99,102,241,0.08), var(--glow-indigo); }
.workspace-card.ws-setting_up .ws-status-icon { background: rgba(245,158,11,0.12); color: var(--amber); animation: ws-pulse 1.8s ease-in-out infinite; }
.workspace-card.ws-ready { border-color: rgba(16,185,129,0.3); box-shadow: 0 0 0 1px rgba(16,185,129,0.08), var(--glow-emerald); }
.workspace-card.ws-ready .ws-status-icon { background: var(--emerald-dim); color: var(--emerald); }
.workspace-card.ws-error { border-color: rgba(244,63,94,0.3); box-shadow: 0 0 0 1px rgba(244,63,94,0.08); }
.workspace-card.ws-error .ws-status-icon { background: var(--rose-dim); color: var(--rose); }
@keyframes ws-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ---- Progress bar ------------------------------------------------------ */
.ws-progress { margin-top: 20px; }
.ws-progress-bar { height: 4px; background: var(--border-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.ws-progress-fill {
  height: 100%; border-radius: 999px; background: var(--grad);
  transition: width 1.2s var(--ease-out-expo);
  box-shadow: 0 0 8px var(--emerald-glow);
}

/* ---- Next steps list --------------------------------------------------- */
.next-steps { list-style: none; padding: 0; margin: 0; }
.next-steps li {
  font-size: 13.5px; color: var(--text-2);
  padding: 8px 0 8px 28px; position: relative;
  border-bottom: 1px solid var(--border); line-height: 1.5;
}
.next-steps li:last-child { border-bottom: none; }
.next-steps li::before {
  content: attr(data-n);
  position: absolute; left: 0; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--indigo-dim);
  border: 1px solid rgba(99,102,241,0.25);
  font-size: 10px; font-weight: 800; color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
}
.next-steps b { color: var(--text); }

/* ---- Platform admin panel ---------------------------------------------- */
.admin-callout {
  background: var(--panel-solid); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-top: 24px;
}
.admin-callout h3 { margin: 0 0 8px; font-size: 17px; }
.admin-callout p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* ---- Tables ------------------------------------------------------------ */
table { width: 100%; border-collapse: collapse; }
thead tr { text-align: left; }
th { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; padding: 10px 10px; border-bottom: 1px solid var(--border); }
td { padding: 12px 10px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
tbody tr:hover td { background: var(--panel); }

/* ---- Layout helpers ---------------------------------------------------- */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.kv { color: var(--muted); font-size: 13px; }
.kv b { color: var(--text-2); }
.card { background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.suggest-banner { background: var(--emerald-dim); border: 1px solid rgba(16,185,129,0.2); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px; color: var(--text-2); }

/* ---- Assessment generation loading ------------------------------------ */
.assessment-loading-wrap { margin-top: 16px; display: block; }
.assessment-loading {
  text-align: center; padding: 32px 20px; border-radius: var(--radius-sm);
  background: var(--indigo-dim); border: 1px solid rgba(99,102,241,0.15);
}
.spinner-ring {
  width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px solid var(--border-2);
  border-top-color: var(--emerald);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-size: 15px; font-weight: 700; margin: 0 0 7px; color: var(--text); }
.loading-sub { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }
.assessment-loading-panel { margin-top: 20px; }

/* ---- Secure assessment (candidate exam) ------------------------------- */
.secure-exam-wrap.secure-exam-active,
.secure-exam-active #exam-body { -webkit-user-select: none; user-select: none; }
.secure-exam-active textarea.allow-paste-none { -webkit-user-select: text; user-select: text; }
.secure-rules { margin: 14px 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.secure-rules li { margin-bottom: 8px; }
.honor-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; margin-top: 14px; }
.honor-check input { width: auto; margin-top: 3px; }
.secure-progress { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.secure-timer { font-size: 26px; font-weight: 800; margin: 10px 0 16px; font-variant-numeric: tabular-nums; min-height: 32px; }
.secure-timer.urgent { color: var(--rose); }
.secure-timer.expired { animation: secure-pulse 1s ease-in-out infinite; }
.secure-q-prompt { font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; min-height: 48px; }
.secure-q-body { margin-top: 8px; min-height: 100px; transition: opacity 0.12s ease; }
.secure-q-body.secure-q-swapping { opacity: 0.5; }
#exam-body { min-height: 220px; }
#exam-panel { contain: layout style; }
@keyframes secure-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.secure-badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--rose-dim); color: var(--rose); font-weight: 600; }
.secure-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,13,0.9);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
  backdrop-filter: blur(8px);
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .features   { grid-template-columns: repeat(2, 1fr); }
  .steps      { grid-template-columns: 1fr; }
  .stats      { grid-template-columns: repeat(2, 1fr); }
  .dash-grid  { grid-template-columns: 1fr; }
  .dash-card-wide { grid-column: auto; }
  .plans      { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features    { grid-template-columns: 1fr; }
  .stats       { grid-template-columns: repeat(2, 1fr); }
  .hero        { padding: 80px 0 32px; }
  .hero h1     { font-size: 36px; }
  .panel       { padding: 32px 24px; }
  .cta-band    { padding: 48px 24px; }
  .dash-page  { padding: 24px 0 56px; }
  .workspace-card { padding: 22px 20px; }
  .workspace-card-inner { gap: 14px; }
  .ws-status-name { font-size: 18px; }
  .page-foot   { flex-direction: column; gap: 16px; text-align: center; }
  .page-foot-links { justify-content: center; }
  .trust-logos { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
