/* ============================================================
   MEREDEN — Design System (locked)
   Dark + teal futuristic AI identity
   BG #020708 · surface #061214 · primary #0D9488 · accent #14B8A6
   ============================================================ */

:root {
  /* Brand palette (locked) */
  --bg-brand: #020708;
  --bg-secondary: #061214;
  --teal: #0D9488;
  --soft-teal: #14B8A6;
  --bright-teal: #5EEAD4;
  --light-teal: #CCFBF1;
  --teal-wash: rgba(20, 184, 166, 0.16);
  --text-on-dark: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-on-light: #0F172A;

  /* Legacy aliases → new system
     --white = surface (cards). For light text use --text-on-dark. */
  --black: #F8FAFC;
  --pink: #0D9488;
  --soft-pink: #14B8A6;
  --light-pink: var(--teal-wash);
  --grey-text: #94A3B8;
  --light-grey: #020708;
  --white: #061214;
  --primary-gray: #143036;
  --hover-white: #0A1C20;

  /* Mapped app tokens */
  --bg: var(--bg-brand);
  --bg-deep: var(--bg-brand);
  --surface: var(--bg-secondary);
  --divider: #143036;
  --divider-strong: #1E454C;

  --text-hi: var(--text-on-dark);
  --text-body: #CBD5E1;
  --text-muted: var(--text-secondary);

  --btn-primary-bg: var(--teal);
  --btn-primary-fg: #F8FAFC;
  --accent-soft: var(--soft-teal);
  --accent: var(--teal);
  --accent-gradient: linear-gradient(135deg, #5EEAD4 0%, #14B8A6 50%, #0D9488 100%);

  --verified: var(--soft-teal);
  --verified-wash: rgba(20, 184, 166, 0.14);
  --error: #F87171;

  --radius-btn: 8px;
  --radius-card: 14px;
  --radius-pill: 999px;

  --tracking-tagline: 0.45em;
  --tracking-label: 0.14em;

  --max: 1140px;

  --font-display: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
html, body { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg-brand);
  color: var(--text-on-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--black); text-decoration-color: var(--primary-gray); text-underline-offset: 3px; }
a:hover { color: var(--pink); opacity: 1; }

::selection { background: var(--light-pink); color: var(--black); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(2, 7, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--primary-gray);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.brand-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none !important; line-height: 1;
}
.brand-logo img,
.brand-mark,
.brand-cube {
  width: auto; height: 44px; display: block; flex-shrink: 0;
  border-radius: 0; object-fit: contain;
  background: transparent;
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.04em;
  color: var(--black);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-logo .wordmark { -webkit-text-fill-color: transparent; }

[data-theme="light"] .wordmark {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-lockup { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; gap: 0.55em; }
.logo-lockup .logo-tagline {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: var(--tracking-tagline);
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--pink); opacity: 1; }
.nav-links .nav-cta-mobile { display: none; }

.nav-cta {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  background: #0D9488;
  color: #F8FAFC !important;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
}
.nav-cta:hover { background: #14B8A6; opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--primary-gray);
  color: var(--black);
  border-radius: var(--radius-btn);
  width: 40px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s;
}

.btn-primary {
  background: #0D9488;
  color: #F8FAFC !important;
  border-color: transparent;
}
.btn-primary:hover { background: #14B8A6; opacity: 1; }

.btn-ghost {
  background: var(--white);
  border-color: var(--primary-gray);
  color: var(--black) !important;
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink) !important; opacity: 1; }

.btn-sm {
  height: 36px; padding: 0 16px; font-size: 14px; border-radius: 8px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn-row .btn-primary { order: 0; }
.btn-row .btn-ghost,
.btn-row .btn-secondary { order: 1; }

/* ── Registry / status strip ─────────────────────── */
.registry-strip {
  border-bottom: 1px solid var(--primary-gray);
  background: var(--light-grey);
}
.registry-strip .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 0;
  font-family: var(--font-sans); font-weight: 300; font-size: 13px;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted);
}
.registry-strip strong {
  color: var(--pink);
  font-weight: 500;
  -webkit-text-fill-color: initial;
}

/* ── Hero ────────────────────────────────────────── */
.hero { padding: 88px 0 96px; }

.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }

/* ── Landing (dark teal brand) ───── */
.page-landing {
  --landing-max: 1080px;
  background: #020708;
  color: #F8FAFC;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}
.page-landing .nav {
  border-bottom: 1px solid #143036;
  height: 72px;
  background: rgba(2, 7, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.page-landing .nav-inner {
  width: min(100% - 48px, var(--landing-max));
  max-width: var(--landing-max);
}
.page-landing .landing-logo.brand-logo {
  gap: 10px;
}
.page-landing .landing-logo .brand-mark {
  width: auto; height: 48px; border-radius: 0;
  background: transparent;
}
.page-landing .landing-logo .wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0D9488;
}
.nav-landing .nav-links { gap: 28px; margin-left: auto; }
.nav-landing .nav-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: #F8FAFC;
}
.nav-landing .nav-links a:hover { color: #0D9488; }
.nav-login {
  height: 36px; padding: 0 16px; border-radius: 8px;
  border: 1px solid #143036 !important;
  color: #F8FAFC !important; text-decoration: none !important;
  display: inline-flex; align-items: center; font-weight: 500 !important; font-size: 14px;
  background: #061214;
}
.nav-login:hover { border-color: #0D9488 !important; color: #0D9488 !important; opacity: 1; }

/* Kill default 2-col hero grid on landing */
.hero.hero-landing,
.page-landing .hero.hero-landing {
  padding: 20px 0 56px;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.page-landing .hero.hero-landing::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 70%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 35%, rgba(20, 184, 166, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 35% at 70% 20%, rgba(94, 234, 212, 0.08), transparent 65%);
}
.hero.hero-landing .wrap,
.hero.hero-landing .wrap.hero-landing-wrap,
.page-landing .hero-landing-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: min(100% - 32px, 960px) !important;
  max-width: 960px !important;
  margin-inline: auto !important;
  text-align: center;
}
.page-landing .hero-landing h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 5.8vw, 58px);
  line-height: 1.1;
  color: #F8FAFC;
  max-width: 920px;
  width: 100%;
  margin: 0 0 14px;
  letter-spacing: -0.035em;
  text-align: center;
}
.page-landing .hero-landing .hero-sub {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: #94A3B8;
  max-width: 720px;
  width: 100%;
  line-height: 1.45;
  margin: 0 auto 24px;
  text-align: center;
}
.page-landing .hero-ctas,
.hero.hero-landing .btn-row.hero-ctas {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto !important;
  gap: 12px;
  order: unset;
}
.page-landing .hero-ctas .btn {
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  order: unset !important;
  flex: 0 0 auto;
}
.page-landing .hero-ctas .btn-primary {
  background: #0D9488;
  color: #F8FAFC !important;
  border: none;
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.15), 0 8px 28px rgba(13, 148, 136, 0.25);
}
.page-landing .hero-ctas .btn-primary:hover {
  background: #14B8A6;
  opacity: 1;
}
.page-landing .hero-ctas .btn-secondary {
  background: #0A1C20;
  border: none;
  color: #F8FAFC !important;
}
.page-landing .hero-ctas .btn-secondary:hover { background: #143036; opacity: 1; }
.btn-secondary {
  background: var(--light-grey); border-color: transparent; color: var(--black) !important;
}
.btn-secondary:hover { background: var(--hover-white); opacity: 1; }

.page-landing .stats-pill {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 680px;
  margin: 8px auto 40px;
  border: 1px solid #143036;
  border-radius: 999px;
  background: #061214;
  overflow: hidden;
}
.page-landing .stats-pill-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 18px;
  min-width: 0;
  border-left: 1px solid #143036;
}
.page-landing .stats-pill-item:first-child { border-left: none; }
.page-landing .stats-pill-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: #94A3B8;
  white-space: nowrap;
}
.page-landing .stats-pill-value {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-landing .section-roles { padding: 8px 0 72px; }
.page-landing .section-roles > .wrap {
  width: min(100% - 48px, var(--landing-max));
}
.page-landing .roles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.page-landing .roles-head h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  color: #F8FAFC;
  max-width: none;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.roles-nav { display: flex; gap: 8px; }
.roles-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: #0A1C20; color: #F8FAFC; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.roles-arrow:hover { background: #143036; }
.roles-arrow svg { width: 16px; height: 16px; }

.roles-track-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
/* Mercor-style: 2 rows, fill by column, scroll horizontally */
.page-landing .roles-track {
  display: grid;
  grid-template-rows: repeat(2, 168px);
  grid-auto-flow: column;
  grid-auto-columns: 252px;
  gap: 12px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px max(24px, calc((100% - var(--landing-max)) / 2 + 24px)) 10px;
  scrollbar-width: none; -ms-overflow-style: none;
  max-width: 100%;
}
.roles-track {
  display: grid;
  grid-template-rows: repeat(2, 168px);
  grid-auto-flow: column;
  grid-auto-columns: min(252px, 72vw);
  gap: 12px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px max(20px, calc((100% - min(1120px, 100%)) / 2 + 20px)) 12px;
  scrollbar-width: none; -ms-overflow-style: none;
  max-width: 100%;
}
.roles-track::-webkit-scrollbar { display: none; }

.page-landing .role-card,
a.role-card {
  width: 100%; height: 100%; scroll-snap-align: start;
  background: #061214; border: 1px solid #143036;
  border-radius: 12px; padding: 16px 16px 12px;
  display: flex; flex-direction: column; min-height: 0; box-sizing: border-box;
  text-decoration: none !important; color: inherit; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.role-card:hover {
  border-color: #14B8A6; box-shadow: 0 4px 16px rgba(13, 148, 136, 0.10); opacity: 1;
}
.role-card {
  width: 100%; height: 100%; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--primary-gray);
  border-radius: 14px; padding: 16px 16px 12px;
  display: flex; flex-direction: column; min-height: 0; box-sizing: border-box;
}
.page-landing a.role-card .role-card-foot a,
a.role-card .role-apply-label {
  color: #0D9488; font-weight: 500; pointer-events: none;
}
.page-landing .role-card h3 {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: #F8FAFC; line-height: 1.3; margin-bottom: 6px;
  min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.role-card h3 {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: var(--text-hi); line-height: 1.3; margin-bottom: 6px;
  min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.page-landing .role-card-rate {
  font-family: var(--font-sans); font-size: 13px; font-weight: 400;
  color: #94A3B8; margin: 0 0 auto; padding-bottom: 10px;
}
.role-card-rate {
  font-family: var(--font-sans); font-size: 14px; font-weight: 400;
  color: var(--text-muted); margin: 0 0 auto; padding-bottom: 10px;
}
.role-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--primary-gray);
  margin-top: auto; flex-shrink: 0;
}
.role-card-meta {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: #94A3B8;
  white-space: nowrap;
}
.role-card-avatars { display: flex; align-items: center; }
.role-card-avatars span {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #061214; color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; margin-left: -6px;
}
.role-card-avatars span:first-child { margin-left: 0; background: #7C3AED; }
.role-card-avatars span:nth-child(2) { background: #F97316; }
.role-card-avatars span:nth-child(3) { background: #EF4444; }
.role-card-foot a {
  font-family: var(--font-sans); font-size: 14px; font-weight: 400;
  color: #94A3B8; text-decoration: none;
}
.role-card-foot a:hover { color: var(--pink); opacity: 1; }

.page-landing .section-spotlight { padding: 24px 0 28px; }
.page-landing .section-spotlight > .wrap,
.page-landing .section-meet > .wrap,
.page-landing .footer-landing > .wrap {
  width: min(100% - 48px, var(--landing-max));
}
.section-spotlight { padding: 48px 0 32px; }
.page-landing .spotlight-grid {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: stretch;
}
.spotlight-grid {
  display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; align-items: stretch;
  margin-bottom: 0;
}
.spotlight-main { min-width: 0; display: flex; flex-direction: column; }
.apex-banner {
  display: block; flex: 1; min-height: 280px; border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.18), transparent 40%),
    linear-gradient(135deg, #14B8A6 0%, #0D9488 50%, #0F766E 100%);
  background-size: cover; background-position: center;
  text-decoration: none !important; position: relative; overflow: hidden;
  margin-bottom: 24px;
}
.apex-banner.has-image { background-color: #0D9488; }
.apex-banner-mark {
  position: absolute; top: 24px; left: 28px;
  font-family: var(--font-sans); font-size: clamp(36px, 4.5vw, 56px); font-weight: 600;
  color: rgba(248, 250, 252, 0.95); letter-spacing: -0.03em; line-height: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.page-landing .apex-title {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(26px, 3vw, 36px); color: #F8FAFC;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 10px; max-width: none;
}
.apex-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px); color: var(--black);
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; max-width: none;
}
.apex-meta {
  font-family: var(--font-sans); font-size: 15px; color: #94A3B8; margin-bottom: 0;
}
.apex-meta strong { color: var(--black); font-weight: 600; margin-right: 10px; }
.apex-divider { border: none; border-top: 1px solid var(--primary-gray); margin: 32px 0 22px; }
.apex-cats { display: flex; flex-wrap: wrap; gap: 36px; }
.apex-cats a {
  font-family: var(--font-sans); font-size: 17px; font-weight: 600;
  color: var(--black); text-decoration: none;
}
.apex-cats a:hover { color: var(--pink); opacity: 1; }

.spotlight-side {
  display: flex; flex-direction: column; align-items: stretch;
  text-decoration: none !important; color: inherit;
  min-width: 0; height: 100%;
}
.spotlight-side:hover { opacity: 1; }
.spotlight-side:hover .spotlight-side-visual { transform: translateY(-2px); }
.spotlight-side-visual {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  flex: none;
  border-radius: 20px;
  margin-bottom: 14px;
  background: #0A1C20;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: block;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.spotlight-side-visual.has-image .spotlight-side-initial { display: none; }
.spotlight-side-initial {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(248, 250, 252, 0.95);
  color: var(--pink); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 24px; font-weight: 600;
}
.spotlight-side h3 {
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  color: #F8FAFC; margin: 0 0 4px; line-height: 1.3; text-align: left;
}
.spotlight-side p {
  font-family: var(--font-sans); font-size: 14px; font-weight: 400; color: #94A3B8;
  margin: 0; text-align: left;
}

.page-landing .section-meet { padding: 8px 0 88px; }
.section-meet { padding: 16px 0 80px; }
.page-landing .meet-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.meet-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Insights / article trend cards — 2-row horizontal scroll, equal cards */
.page-landing .section-insights { padding: 28px 0 96px; }
.section-insights { padding: 48px 0 88px; }
.page-landing .section-insights > .wrap {
  width: min(100% - 48px, var(--landing-max));
}
.insights-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.insights-head-actions { display: flex; align-items: center; gap: 14px; }
.insights-title {
  font-family: var(--font-sans); font-size: clamp(24px, 3vw, 32px); font-weight: 700;
  color: #F8FAFC; letter-spacing: -0.03em; line-height: 1.15; margin-top: 6px;
}
.insights-all {
  font-size: 14px; font-weight: 500; color: #0D9488; text-decoration: none; white-space: nowrap;
}
.insights-all:hover { text-decoration: underline; opacity: 1; }

.insights-track-wrap { overflow: hidden; }
.insights-track {
  display: grid;
  grid-template-rows: repeat(2, 320px);
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px max(24px, calc((100vw - var(--landing-max)) / 2 + 24px)) 10px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.insights-track::-webkit-scrollbar { display: none; }

.insight-card {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: #061214; border: 1px solid #143036; border-radius: 16px;
  overflow: hidden; text-decoration: none !important; color: inherit;
  scroll-snap-align: start; box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.insight-card:hover {
  border-color: #1E454C; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); opacity: 1;
}
.insight-cover {
  position: relative; height: 140px; flex-shrink: 0;
  background-size: cover; background-position: center;
  background-color: #0D9488;
}
.insight-cover.has-photo {
  background-color: #143036;
}
.insight-body {
  padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px;
  min-height: 0; flex: 1;
}
.insight-tag {
  display: inline-flex; align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #0D9488; background: rgba(20, 184, 166, 0.16); border-radius: 999px; padding: 4px 9px;
}
.insight-card h3 {
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  color: #F8FAFC; line-height: 1.3; letter-spacing: -0.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.insight-card p {
  font-size: 13px; color: #94A3B8; line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.insight-meta { font-size: 12px; color: #94A3B8; margin-top: auto; padding-top: 4px; }

.article-page { background: #061214; }
.article-wrap { width: min(720px, 100% - 40px); margin: 0 auto; padding: 48px 0 88px; }
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: #94A3B8; text-decoration: none; margin-bottom: 28px;
}
.article-back:hover { color: #0D9488; opacity: 1; }
.article-tag {
  display: inline-flex; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #0D9488; background: rgba(20, 184, 166, 0.16);
  border-radius: 999px; padding: 4px 9px; margin-bottom: 14px;
}
.article-wrap h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; color: #F8FAFC; margin-bottom: 12px;
}
.article-meta { font-size: 14px; color: #94A3B8; margin-bottom: 28px; }
.article-hero {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; margin-bottom: 32px;
  background-size: cover; background-position: center top;
  background-color: #143036;
}
.article-hero.has-photo { background-color: #143036; }
.article-body p { font-size: 16px; line-height: 1.75; color: #CBD5E1; margin-bottom: 18px; }
.article-body h2 {
  font-size: 22px; font-weight: 600; color: #F8FAFC; margin: 32px 0 12px; letter-spacing: -0.02em;
}
.article-body ul { margin: 0 0 18px 20px; color: #CBD5E1; }
.article-body li { margin-bottom: 8px; line-height: 1.6; }
.articles-index-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px;
}

.page-landing .spotlight-grid .spotlight-side-visual {
  aspect-ratio: 3 / 4;
  max-height: none;
  min-height: 0;
  height: auto;
}
.page-landing .meet-row .spotlight-side-visual {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.page-landing .footer-landing {
  background: #061214; border-top: none; padding: 64px 0 40px;
}
.page-landing .footer-bottom {
  border-top: 1px solid #143036; padding-top: 20px; color: #94A3B8; font-size: 13px;
}
.footer-landing { background: var(--white); border-top: none; padding-top: 72px; }
.footer-grid-5 {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-bottom: 48px;
}
.footer-grid-5 h4 {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: #F8FAFC; margin-bottom: 14px; text-transform: none; letter-spacing: 0;
}
.footer-grid-5 a {
  display: block; font-size: 14px; font-weight: 400; color: #94A3B8;
  text-decoration: none; margin-bottom: 10px;
}
.footer-grid-5 a:hover { color: #0D9488; opacity: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 13px;
  font-weight: 300; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--grey-text); margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); display: inline-block; }

.hero h1 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 4.6vw, 68px); line-height: 1.05;
  color: var(--text-hi); max-width: 760px; margin-bottom: 24px; letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub { font-size: clamp(16px, 1.5vw, 20px); font-weight: 300; color: var(--text-body); max-width: 560px; line-height: 1.6; }

.hero-ledger { margin-top: 44px; border-top: 1px solid var(--divider); max-width: 560px; }
.hero-ledger-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--divider); font-family: var(--font-sans); font-size: 14px; font-weight: 300;
}
.hero-ledger-row .k { color: var(--text-muted); }
.hero-ledger-row .v { color: var(--text-body); font-weight: 400; }

/* ── Credential record card ──────────────────────── */
.seal-panel {
  background: var(--white);
  border: 1px solid var(--primary-gray);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.seal-panel-head {
  display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--font-sans);
  font-weight: 300; font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--divider); margin-bottom: 20px;
}
.seal-panel-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 15px; font-weight: 300; border-bottom: 1px solid var(--divider); }
.seal-panel-row .k { color: var(--text-muted); font-family: var(--font-sans); font-size: 13px; font-weight: 300; }
.seal-panel-row .v { color: var(--text-hi); font-weight: 400; text-align: right; }

.seal-stamp-wrap { display: flex; justify-content: flex-start; margin-top: 22px; }

.record-verified {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--verified-wash); color: var(--verified);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-family: var(--font-sans); font-weight: 400; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.record-verified svg { width: 14px; height: 14px; }

/* ── Stats band ──────────────────────────────────── */
.stats {
  border-top: 1px solid var(--primary-gray);
  border-bottom: 1px solid var(--primary-gray);
  background: var(--light-grey);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats-grid > div { padding: 40px 24px; border-left: 1px solid var(--divider); }
.stats-grid > div:first-child { border-left: none; }
.stat-num { font-family: var(--font-display); font-weight: 500; font-size: 42px; color: var(--text-hi); margin-bottom: 8px; }
.stat-label { font-family: var(--font-sans); font-weight: 300; font-size: 15px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }

/* ── Sections ────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt {
  background: var(--light-grey);
  border-top: 1px solid var(--primary-gray);
  border-bottom: 1px solid var(--primary-gray);
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.section h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 36px); color: var(--text-hi); line-height: 1.2; max-width: 620px; }
.section-lead { font-size: 18px; font-weight: 300; color: var(--text-body); max-width: 480px; margin-top: 12px; }
.section > .wrap > .eyebrow { margin-bottom: 14px; }

/* ── Process ledger ──────────────────────────────── */
.ledger { border-top: 1px solid var(--divider); }
.ledger-item { display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--divider); align-items: baseline; }
.ledger-item .stage { font-family: var(--font-sans); font-size: 13px; font-weight: 300; letter-spacing: var(--tracking-label); color: var(--text-muted); padding-top: 3px; }
.ledger-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--text-hi); }
.ledger-item p { font-size: 16px; font-weight: 300; color: var(--text-body); line-height: 1.6; }

/* ── Cards ───────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ── Domain browse cards ─────────────────────────── */
.domain-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--primary-gray);
  border-radius: var(--radius-card); padding: 24px; text-decoration: none; color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.domain-card:hover {
  border-color: var(--pink);
  transform: translateY(-2px); opacity: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.domain-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.domain-card h3 { font-family: var(--font-sans); font-weight: 500; font-size: 18px; color: var(--text-hi); margin-bottom: 4px; }
.domain-card .domain-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text-hi); margin-bottom: 12px; }
.domain-card p { font-size: 14px; font-weight: 300; color: var(--text-body); line-height: 1.55; margin-bottom: 18px; }
.domain-link { font-family: var(--font-sans); font-size: 14px; font-weight: 400; color: var(--text-hi); }

/* ── Profile pages ───────────────────────────────── */
.profile-hero { padding: 64px 0 72px; border-bottom: 1px solid var(--divider); }
.profile-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.profile-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 22px; }
.profile-avatar { width: 64px; height: 64px; font-size: 28px; }
.profile-identity h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4vw, 52px); color: var(--text-hi); line-height: 1.1; }
.profile-role { font-size: 16px; font-weight: 300; color: var(--text-body); margin-top: 4px; }
.domain-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.domain-pills a {
  font-family: var(--font-sans); font-size: 14px; font-weight: 300; color: var(--text-body);
  padding: 10px 18px; border: 1px solid var(--divider); border-radius: var(--radius-pill); text-decoration: none;
}
.domain-pills a:hover { color: var(--text-hi); border-color: var(--divider-strong); }

.card {
  background: var(--white);
  border: 1px solid var(--primary-gray);
  border-radius: var(--radius-card);
  padding: 30px 26px;
}
.card h3 { font-family: var(--font-sans); font-weight: 500; font-size: 20px; color: var(--text-hi); margin-bottom: 12px; }
.card p { font-size: 15px; font-weight: 300; color: var(--text-body); line-height: 1.6; }
.card-num { font-family: var(--font-sans); font-size: 13px; font-weight: 300; letter-spacing: var(--tracking-label); color: var(--text-muted); margin-bottom: 16px; }

/* ── Expert cards ────────────────────────────────── */
.expert-card {
  background: var(--white);
  border: 1px solid var(--primary-gray);
  border-radius: var(--radius-card);
  padding: 24px;
}
.expert-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.expert-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--light-pink); border: 1px solid #1E454C;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--pink);
}
.expert-name { font-family: var(--font-sans); font-size: 20px; font-weight: 500; color: var(--text-hi); margin-top: 12px; }
.expert-role { font-family: var(--font-sans); font-size: 15px; font-weight: 300; color: var(--text-body); margin-top: 4px; }
.expert-quote { font-size: 14px; font-weight: 300; color: var(--text-body); line-height: 1.6; font-style: italic; margin-top: 14px; margin-bottom: 14px; }
.expert-meta { font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--text-muted); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--divider); }

/* Verified badge — the brand's signature component. This green appears nowhere else. */
.badge-verified {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--verified-wash); color: var(--verified);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 13px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px;
  white-space: nowrap;
}
.badge-verified svg { width: 12px; height: 12px; }

/* ── Credential chip row ─────────────────────────── */
.cred-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cred-chip {
  font-family: var(--font-sans); font-size: 14px; font-weight: 300; color: var(--text-body);
  padding: 10px 18px; border: 1px solid var(--divider); border-radius: var(--radius-pill);
}

/* ── Split CTA ───────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-panel {
  background: var(--white);
  border: 1px solid var(--primary-gray);
  border-radius: var(--radius-card);
  padding: 48px 40px;
}
.split-panel .eyebrow { margin-bottom: 18px; }
.split-panel h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--text-hi); margin-bottom: 14px; }
.split-panel p { font-size: 16px; font-weight: 300; color: var(--text-body); margin-bottom: 30px; max-width: 360px; }

/* ── Forms ───────────────────────────────────────── */
.form-wrap { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: #F8FAFC; margin-bottom: 9px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-btn);
  color: var(--text-hi); font-family: var(--font-sans); font-weight: 300; font-size: 16px; padding: 14px 16px; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--divider-strong); }
.form-group label .req,
.form-checkbox label .req {
  color: var(--error);
  font-weight: 600;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea,
.upload-box.has-error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(192, 86, 78, 0.12);
}
.field-error-msg {
  display: none;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--error);
}
.form-group.has-error .field-error-msg,
.upload-box.has-error + .field-error-msg,
.form-checkbox.has-error .field-error-msg { display: block; }
.form-checkbox.has-error label { color: var(--error); }
#profile-save-status.is-error { color: var(--error); font-weight: 500; }
.entry-list { display: flex; flex-direction: column; gap: 0; }
.entry-card .entry-remove {
  float: right; margin: -4px 0 12px;
  font-family: var(--font-sans); font-size: 13px; color: var(--error);
  background: none; border: none; cursor: pointer; padding: 0;
}
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
@media (max-width: 720px) { .platform-grid { grid-template-columns: 1fr; } }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E9298' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-note { font-size: 14px; font-weight: 300; color: var(--text-muted); margin-top: 16px; }
.form-success { display: none; background: var(--verified-wash); border: 1px solid var(--verified); border-radius: var(--radius-card); padding: 32px 28px; }
.form-success.show { display: block; }
.form-success h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--text-hi); margin-bottom: 10px; }
.form-success p { color: var(--text-body); font-weight: 300; }

/* ── Search pill (for hero, per spec §5) ─────────── */
.search-pill {
  display: flex; align-items: center; gap: 12px;
  height: 60px; border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--primary-gray);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: 0 22px; max-width: 480px;
}
.search-pill svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-pill input {
  border: none; background: transparent; outline: none; width: 100%;
  font-family: var(--font-sans); font-weight: 300; font-size: 17px; color: var(--text-hi);
}
.search-pill input::placeholder { color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--light-grey);
  border-top: 1px solid var(--primary-gray);
  padding: 56px 0 28px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-brand .logo-lockup .wordmark { font-size: 30px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 300; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-cols a { display: block; font-size: 15px; font-weight: 300; color: var(--text-body); text-decoration: none; margin-bottom: 12px; }
.footer-cols a:hover { color: var(--text-hi); }
.footer-bottom { border-top: 1px solid var(--divider); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--text-muted); }

/* ── Page hero (inner pages) ─────────────────────── */
.page-hero { padding: 72px 0 52px; border-bottom: 1px solid var(--divider); }
.page-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.2vw, 52px); color: var(--text-hi); line-height: 1.12; max-width: 660px; margin-bottom: 18px; }

/* ── Motion — subtle only ─────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero-sub, .hero .btn-row, .hero .hero-ledger, .stats-pill { animation: fadeUp 0.5s ease both; }
.hero-sub { animation-delay: 0.06s; }
.hero .hero-ledger { animation-delay: 0.12s; }
.hero .btn-row { animation-delay: 0.18s; }
.hero-landing .stats-pill { animation-delay: 0s; }
.hero-landing h1 { animation-delay: 0.08s; }
.hero-landing .hero-sub { animation-delay: 0.14s; }
.hero-landing .btn-row { animation-delay: 0.2s; }

/* Menus/dropdowns only — the one permitted shadow */
.form-success, .seal-panel { box-shadow: none; }

/* ── Opportunities listing (Mercor-style) ────────── */
.opp-header { padding: 48px 0 0; }
.opp-header h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 38px); color: var(--text-hi); margin-bottom: 24px; }

.opp-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--divider); margin-bottom: 24px; }
.opp-tab {
  background: none; border: none; font-family: var(--font-sans); font-size: 15px; font-weight: 400;
  color: var(--text-muted); padding: 0 0 14px; cursor: pointer; border-bottom: 2px solid transparent;
}
.opp-tab.active { color: #F8FAFC; border-bottom-color: #F8FAFC; font-weight: 500; }

.opp-toolbar {
  display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 28px;
}
.opp-search {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: none;
  background: var(--white); border: 1px solid var(--primary-gray); border-radius: 10px;
  padding: 12px 16px;
}
.opp-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.opp-search input { border: none; background: transparent; outline: none; width: 100%; font-family: var(--font-sans); font-size: 14px; color: var(--text-hi); }
.opp-search input::placeholder { color: var(--text-muted); }
.opp-toolbar-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.opp-pill-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--primary-gray);
  border-radius: 10px; padding: 10px 16px; font-family: var(--font-sans); font-size: 14px; font-weight: 400;
  color: var(--black); cursor: pointer;
}

.crm-subtabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #e4ecec;
  margin-bottom: 18px;
}
.crm-subtab {
  background: none;
  border: none;
  padding: 0 0 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #6b8586;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.crm-subtab:hover { color: #102223; }
.crm-subtab.active {
  color: #102223;
  border-bottom-color: #0D9488;
}

.app-signin-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 40px; padding: 8px 12px;
  border-radius: 10px; background: var(--verified); color: #F8FAFC !important;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; text-decoration: none !important;
}
.app-signin-cta:hover { opacity: 0.92; }

.opp-browse-main { max-width: none; }
.opp-browse {
  display: grid;
  gap: 18px;
  align-items: start;
  padding-bottom: 72px;
}
.opp-browse.is-grid {
  grid-template-columns: 1fr;
}
.opp-browse.is-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}
.opp-browse.is-grid .opp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.opp-browse.is-split .opp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.opp-back-grid {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: #0D9488;
}
.opp-back-grid svg { width: 18px; height: 18px; }
.opp-back-grid:hover { opacity: 0.85; }
.opp-list-card {
  display: flex; flex-direction: column; text-align: left; width: 100%;
  background: var(--white);
  border: 1px solid var(--primary-gray);
  border-radius: var(--radius-card); padding: 20px 22px;
  cursor: pointer; color: inherit; min-height: 168px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.opp-list-card:hover {
  border-color: #0D9488;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.opp-list-card.selected {
  border-color: #0D9488;
  box-shadow: 0 0 0 1px #0D9488, 0 12px 28px rgba(13, 148, 136, 0.12);
}
.opp-list-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: #F8FAFC; line-height: 1.35; margin-bottom: 8px; }
.opp-list-card .opp-rate { margin-bottom: 14px; }
.opp-apply-link { font-size: 13px; font-weight: 600; color: #0D9488; white-space: nowrap; }
.opp-refer {
  font-size: 13px; font-weight: 600; color: #355; white-space: nowrap;
}
.opp-detail {
  position: sticky; top: 24px;
  background: var(--white);
  border: 1px solid var(--primary-gray);
  border-radius: var(--radius-card);
  padding: 22px;
  min-height: 420px;
}
.opp-browse.is-grid .opp-detail { display: none; }
.opp-detail-inner { display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.opp-detail-progress strong { display: block; font-size: 15px; color: #F8FAFC; }
.opp-detail-progress p { margin: 4px 0 10px; font-size: 13px; color: var(--text-muted); }
.opp-step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.opp-step-list li,
.opp-step-list a[data-step] {
  display: flex; gap: 12px; align-items: flex-start;
  text-decoration: none !important; color: inherit;
  border-radius: 10px; padding: 6px 4px;
}
.opp-step-list a[data-step]:hover { background: #f4fafa; }
.opp-step-dot {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9d4d4;
  margin-top: 2px; flex-shrink: 0; background: #061214;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.opp-step-list strong { display: block; font-size: 14px; color: #F8FAFC; }
.opp-step-list em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.opp-step-list .done em { color: #0D9488; font-weight: 600; }
.opp-steps-auth {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.opp-steps-auth a { color: #0D9488; font-weight: 600; }
.opp-detail-note { font-size: 13px; line-height: 1.55; color: var(--text-muted); font-style: italic; margin: 0; }
.opp-detail-section h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #F8FAFC; }
.opp-detail-section p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-body); }
.opp-start-btn { margin-top: auto; width: 100%; justify-content: center; }

.opp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 96px; }
.opp-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--primary-gray);
  border-radius: var(--radius-card); padding: 22px; text-decoration: none; color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.opp-pill-btn {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E9298' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.opp-card:hover {
  border-color: var(--pink);
  transform: translateY(-2px); opacity: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.opp-card-propose { border-style: dashed; border-color: var(--divider-strong); background: transparent; }
.opp-card-propose .opp-card-domain { color: var(--text-muted); }
.opp-card-domain { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #0D9488; margin-bottom: 10px; }
.opp-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: #F8FAFC; line-height: 1.35; margin-bottom: 10px; }
.opp-card .opp-rate { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--text-body); margin-bottom: 18px; }
.opp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--divider); }
.opp-card-foot > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.opp-avatars { display: flex; align-items: center; }
.opp-avatars span,
.role-card-avatars span {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #061214;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 10px; font-weight: 700; color: #ffffff;
  margin-left: -8px;
}
.opp-avatars span:first-child,
.role-card-avatars span:first-child { margin-left: 0; }

/* Mercor-style mixed avatar colors (K, S, etc. near hired counts) */
.opp-avatars span:nth-child(3n+1),
.role-card-avatars span:nth-child(3n+1) { background: #7C3AED; }
.opp-avatars span:nth-child(3n+2),
.role-card-avatars span:nth-child(3n+2) { background: #F97316; }
.opp-avatars span:nth-child(3n+3),
.role-card-avatars span:nth-child(3n+3) { background: #EF4444; }

/* Extra color variety across consecutive role cards */
.page-landing .role-card:nth-child(6n+1) .role-card-avatars span:nth-child(1) { background: #7C3AED; }
.page-landing .role-card:nth-child(6n+1) .role-card-avatars span:nth-child(2) { background: #F97316; }
.page-landing .role-card:nth-child(6n+2) .role-card-avatars span:nth-child(1) { background: #2563EB; }
.page-landing .role-card:nth-child(6n+2) .role-card-avatars span:nth-child(2) { background: #22C55E; }
.page-landing .role-card:nth-child(6n+3) .role-card-avatars span:nth-child(1) { background: #EC4899; }
.page-landing .role-card:nth-child(6n+3) .role-card-avatars span:nth-child(2) { background: #F59E0B; }
.page-landing .role-card:nth-child(6n+4) .role-card-avatars span:nth-child(1) { background: #14B8A6; }
.page-landing .role-card:nth-child(6n+4) .role-card-avatars span:nth-child(2) { background: #A855F7; }
.page-landing .role-card:nth-child(6n+5) .role-card-avatars span:nth-child(1) { background: #EF4444; }
.page-landing .role-card:nth-child(6n+5) .role-card-avatars span:nth-child(2) { background: #3B82F6; }
.page-landing .role-card:nth-child(6n+6) .role-card-avatars span:nth-child(1) { background: #F43F5E; }
.page-landing .role-card:nth-child(6n+6) .role-card-avatars span:nth-child(2) { background: #84CC16; }

.opp-card:nth-child(4n+1) .opp-avatars span:nth-child(1) { background: #7C3AED; }
.opp-card:nth-child(4n+1) .opp-avatars span:nth-child(2) { background: #FB923C; }
.opp-card:nth-child(4n+1) .opp-avatars span:nth-child(3) { background: #F43F5E; }
.opp-card:nth-child(4n+2) .opp-avatars span:nth-child(1) { background: #2563EB; }
.opp-card:nth-child(4n+2) .opp-avatars span:nth-child(2) { background: #7CDA4A; }
.opp-card:nth-child(4n+2) .opp-avatars span:nth-child(3) { background: #A855F7; }
.opp-card:nth-child(4n+3) .opp-avatars span:nth-child(1) { background: #EC4899; }
.opp-card:nth-child(4n+3) .opp-avatars span:nth-child(2) { background: #F59E0B; }
.opp-card:nth-child(4n+3) .opp-avatars span:nth-child(3) { background: #6366F1; }
.opp-card:nth-child(4n+4) .opp-avatars span:nth-child(1) { background: #14B8A6; }
.opp-card:nth-child(4n+4) .opp-avatars span:nth-child(2) { background: #F43F5E; }
.opp-card:nth-child(4n+4) .opp-avatars span:nth-child(3) { background: #8B5CF6; }

.role-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #7C3AED; border: none; color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.opp-hired-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.opp-hired { font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: #94A3B8; margin-left: 0; }
.opp-verified-tag {
  display: inline-flex; align-items: center; gap: 6px; background: var(--verified-wash); color: var(--verified);
  border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 12px; font-weight: 400; padding: 5px 10px; white-space: nowrap;
}

/* ── Role listing rows (Mercor "Latest roles") ───── */
.role-list { border-top: 1px solid var(--divider); }
.role-row {
  display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--divider);
}
.role-row-main h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 500; color: var(--text-hi); margin-bottom: 5px; }
.role-row-main .role-domain { font-family: var(--font-sans); font-size: 12px; font-weight: 400; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--verified); }
.role-rate { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--text-hi); white-space: nowrap; }
.role-hired { font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--text-muted); white-space: nowrap; }
.btn-sm { height: 38px; padding: 0 20px; font-size: 14px; }

/* ── FAQ accordion ───────────────────────────────── */
.faq-list { border-top: 1px solid var(--divider); }
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
  font-family: var(--font-sans); font-size: 17px; font-weight: 400; color: var(--text-hi);
}
.faq-q::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 0 24px; font-size: 15px; font-weight: 300; color: var(--text-body); line-height: 1.7; max-width: 720px; }
.faq-item.open .faq-a { display: block; }

/* ── Expert profile dashboard ─────────────────────── */
.profile-shell { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 70vh; }
.profile-side { border-right: 1px solid var(--divider); padding: 40px 24px 40px 0; }
.profile-side-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text-hi); margin-bottom: 4px; }
.profile-side-role { font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--text-muted); margin-bottom: 28px; }
.profile-tabs-vert { display: flex; flex-direction: column; gap: 2px; }
.profile-tab-link {
  display: block; text-align: left; background: none; border: none; width: 100%;
  padding: 11px 14px; border-radius: var(--radius-btn); font-family: var(--font-sans); font-size: 15px; font-weight: 300;
  color: var(--text-body); cursor: pointer;
}
.profile-tab-link.active { background: var(--surface); color: var(--text-hi); font-weight: 400; }
.profile-tab-link:hover { color: var(--text-hi); }

.profile-main { padding: 40px 0 96px 40px; }
.profile-tab-panel { display: none; }
.profile-tab-panel.active { display: block; animation: fadeUp 0.3s ease both; }
.profile-panel-title { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--text-hi); margin-bottom: 6px; }
.profile-panel-note { font-size: 14px; font-weight: 300; color: var(--text-muted); margin-bottom: 32px; max-width: 460px; }

.entry-card { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-card); padding: 24px; margin-bottom: 18px; }
.entry-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.entry-card-head h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--text-hi); }
.entry-card-head .entry-meta { font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--text-muted); white-space: nowrap; }
.entry-card-sub { font-family: var(--font-sans); font-size: 14px; font-weight: 300; color: var(--text-body); margin-bottom: 10px; }
.entry-card p.entry-desc { font-size: 14px; font-weight: 300; color: var(--text-body); line-height: 1.65; }

.profile-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-pill); padding: 8px 14px; font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--text-body);
}
.section-divider { border: none; border-top: 1px solid var(--divider); margin: 36px 0; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--divider); gap: 16px; }
.toggle-row-text h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--text-hi); margin-bottom: 4px; }
.toggle-row-text p { font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--text-muted); }
.toggle-switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--divider); flex-shrink: 0; }
.toggle-switch.on { background: var(--verified); }
.toggle-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-hi); transition: transform 0.15s ease; }
.toggle-switch.on::after { transform: translateX(18px); }

/* ── App shell (signed-in workspace, Mercor-style layout) ── */
.app-shell { display: flex; align-items: stretch; min-height: 100vh; background: var(--light-grey); }
.app-sidebar {
  width: 84px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--primary-gray);
  display: flex; flex-direction: column; align-items: center; padding: 22px 0;
  position: fixed; left: 0; top: 0; z-index: 50; height: 100vh; overflow: visible;
}
.app-sidebar-logo {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: auto; min-height: 56px; margin-bottom: 24px; padding: 0 4px;
  text-decoration: none;
}
.app-sidebar-logo img {
  width: 100%; height: auto; max-height: 56px; display: block;
  border-radius: 0; object-fit: contain;
  background: transparent;
}
.app-sidebar-nav { display: flex; flex-direction: column; gap: 4px; width: 100%; align-items: center; }
.app-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; padding: 10px 4px;
  border-radius: var(--radius-btn); text-decoration: none !important; color: var(--text-muted);
  font-family: var(--font-sans); font-size: 11px; font-weight: 300;
}
.app-nav-item svg { width: 20px; height: 20px; }
.app-nav-item:hover { color: var(--text-hi); opacity: 1; }
.app-nav-item.active { background: var(--light-pink); color: var(--pink); }
.app-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.app-sidebar-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #7CDA4A; color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; padding: 0;
}

/* Avatar account menu — opens to the right so it isn't clipped by the fixed sidebar */
.avatar-menu-wrap { position: relative; z-index: 70; }
.avatar-menu {
  display: none; position: absolute; bottom: 0; left: 50px; width: 240px;
  background: var(--white); border: 1px solid var(--primary-gray); border-radius: var(--radius-card);
  padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 80;
}
.avatar-menu.open { display: block; }
.avatar-menu a.admin-crm-link {
  color: var(--accent); font-weight: 500;
}
.avatar-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--divider); margin-bottom: 6px; }
.avatar-menu-head span { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 300; color: var(--text-muted); margin-bottom: 3px; }
.avatar-menu-head strong { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--text-hi); word-break: break-all; }
.avatar-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-btn);
  font-family: var(--font-sans); font-size: 14px; font-weight: 300; color: var(--text-body); text-decoration: none !important;
}
.avatar-menu a:hover { background: var(--bg-deep); color: var(--text-hi); opacity: 1; }
.avatar-menu a.danger { color: var(--error); }
.avatar-menu a svg { width: 15px; height: 15px; flex-shrink: 0; }

.app-main {
  flex: 1; min-width: 0;
  margin-left: 84px;
  width: calc(100% - 84px);
  padding: 40px 48px 96px;
  background: var(--light-grey);
  text-align: left;
}
.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.app-steps { display: flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 13px; color: var(--text-muted); }
.app-step { display: flex; align-items: center; gap: 8px; }
.app-step-num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--divider-strong); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.app-step.active .app-step-num { background: var(--verified); border-color: var(--verified); color: #F8FAFC; }
.app-step.done .app-step-num { background: var(--verified); border-color: var(--verified); color: #F8FAFC; }
.app-step.active { color: var(--text-hi); }
.app-step-sep { width: 22px; height: 1px; background: var(--divider-strong); }
.app-page-title { font-family: var(--font-sans); font-weight: 700; font-size: clamp(28px, 3.2vw, 36px); color: #F8FAFC; margin-bottom: 8px; letter-spacing: -0.03em; text-align: left; }
.app-page-lead { font-size: 15px; font-weight: 400; color: #94A3B8; margin-bottom: 8px; text-align: left; }
.task-card.is-done h4::after { content: " ✓"; color: var(--verified); }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  font-family: var(--font-sans); font-size: 13px; color: var(--text-muted);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--divider);
}
.auth-social { display: grid; gap: 10px; }
.auth-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 44px; border-radius: 10px;
  border: 1px solid var(--divider-strong); background: var(--white);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text-hi);
  text-decoration: none !important; cursor: pointer;
}
.auth-social-btn:hover { background: var(--light-grey); opacity: 1; }
.auth-social-btn img, .auth-social-btn svg { width: 18px; height: 18px; }
/* —— Mereden Admin CRM —— */
.crm-body { margin: 0; background: #020708; font-family: "DM Sans", var(--font-sans); }
.crm-app { display: flex; min-height: 100vh; }
.crm-nav {
  width: 232px; flex-shrink: 0; background: #0f2f30; color: #dff5f5;
  display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.crm-brand {
  display: flex; align-items: center; gap: 10px; color: #F8FAFC !important; text-decoration: none !important;
  font-weight: 600; font-size: 15px; margin-bottom: 28px;
}
.crm-brand img {
  width: auto; height: 52px; border-radius: 0; background: transparent; object-fit: contain;
}
.crm-brand span { display: none; }
.crm-nav-links { display: flex; flex-direction: column; gap: 4px; }
.crm-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: transparent; border: none; color: rgba(255,255,255,0.72); border-radius: 10px;
  padding: 11px 12px; font: 500 14px/1.2 "DM Sans", sans-serif; cursor: pointer;
}
.crm-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.crm-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.crm-nav-item.active { background: rgba(13, 148, 136,0.35); color: #fff; }
.crm-nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.crm-nav-foot a, .crm-nav-foot button {
  background: none; border: none; color: rgba(255,255,255,0.55); text-align: left; padding: 0;
  font: 400 13px/1.4 "DM Sans", sans-serif; cursor: pointer; text-decoration: none;
}
.crm-nav-foot a:hover, .crm-nav-foot button:hover { color: #fff; }
.crm-main { flex: 1; min-width: 0; padding: 28px 32px 64px; }
.crm-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.crm-eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #6b8586; font-weight: 600; }
.crm-top h1, .crm-drawer-head h2, .crm-modal-head h3 { margin: 0; font-size: 28px; letter-spacing: -0.03em; color: #102223; }
.crm-stats { display: flex; gap: 10px; }
.crm-stat {
  background: #061214; border: 1px solid #dde7e7; border-radius: 12px; padding: 10px 14px; min-width: 96px;
}
.crm-stat strong { display: block; font-size: 20px; color: #0f2f30; }
.crm-stat span { font-size: 12px; color: #6b8586; }
.crm-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.crm-search {
  flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: #061214;
  border: 1px solid #dde7e7; border-radius: 12px; padding: 0 14px; height: 46px;
}
.crm-search svg { width: 18px; height: 18px; color: #6b8586; }
.crm-search input { border: none; outline: none; width: 100%; font: 400 14px/1.3 "DM Sans", sans-serif; background: transparent; }
.crm-filters { display: flex; gap: 8px; }
.crm-filters select {
  height: 46px; border-radius: 12px; border: 1px solid #dde7e7; background: #061214; padding: 0 12px;
  font: 500 13px/1 "DM Sans", sans-serif; color: #244;
}
.crm-table-wrap {
  background: #061214; border: 1px solid #dde7e7; border-radius: 16px; overflow: hidden;
}
.crm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.crm-table th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: #6b8586; padding: 14px 16px; background: #f7fafa; border-bottom: 1px solid #e6eeee;
}
.crm-table td { padding: 14px 16px; border-bottom: 1px solid #eef3f3; vertical-align: middle; color: #243; }
.crm-table tr { cursor: pointer; transition: background 0.15s ease; }
.crm-table tr:hover { background: #f3fbfb; }
.crm-person { display: flex; align-items: center; gap: 12px; }
.crm-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #14B8A6, #0F766E);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.crm-person strong { display: block; color: #102223; }
.crm-person span { color: #6b8586; font-size: 13px; }
.crm-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-chip {
  display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #e7f6f6; color: #0F766E;
  font-size: 11px; font-weight: 600; text-decoration: none !important; text-transform: uppercase; letter-spacing: 0.04em;
}
.crm-badge {
  display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #e7f6f6; color: #0F766E;
  font-size: 12px; font-weight: 600;
}
.crm-badge.bad { background: #fdecea; color: #b23b3b; }
.crm-resume-btn {
  border: 1px solid #9fd3d3; background: #061214; color: #0F766E; border-radius: 8px; padding: 6px 10px;
  font: 600 12px/1 "DM Sans", sans-serif; cursor: pointer;
}
.crm-resume-btn:hover { background: #e7f6f6; }
.crm-progress {
  width: 72px; height: 6px; border-radius: 999px; background: #e6eeee; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px;
}
.crm-progress span { display: block; height: 100%; background: linear-gradient(90deg, #14B8A6, #0D9488); }
.crm-muted { color: #8aa; }
.crm-empty { padding: 28px; text-align: center; color: #6b8586; }
.crm-pre { white-space: pre-wrap; margin: 0; font-size: 12px; max-width: 520px; }
.crm-lock { overflow: hidden; }

.crm-drawer-backdrop, .crm-modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 30, 31, 0.45); z-index: 90;
}
.crm-drawer-backdrop[hidden],
.crm-modal-backdrop[hidden],
.crm-modal[hidden] {
  display: none !important;
}
.crm-drawer {
  position: fixed; top: 0; right: 0; width: min(760px, 100%); height: 100vh; background: #f7fafa;
  z-index: 100; transform: translateX(105%); transition: transform 0.28s ease; display: flex; flex-direction: column;
  box-shadow: -16px 0 48px rgba(0,0,0,0.18); pointer-events: none;
}
.crm-drawer.open { transform: translateX(0); pointer-events: auto; }
.crm-drawer-head, .crm-modal-head {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: #061214;
  border-bottom: 1px solid #e6eeee;
}
.crm-drawer-head { flex-wrap: wrap; }
.crm-drawer-head > div:nth-child(2) { flex: 1; min-width: 180px; }
.crm-sub { margin: 4px 0 0; color: #6b8586; font-size: 14px; }
.crm-drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.crm-icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid #dde7e7; background: #061214;
  cursor: pointer; font-size: 16px; color: #355;
}
.crm-drawer-body { overflow: auto; padding: 20px 22px 48px; }
.crm-catalog-grid { display: grid; gap: 14px; }
.crm-section {
  background: #061214; border: 1px solid #e1ecec; border-radius: 14px; padding: 16px 18px;
}
.crm-section h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b8586; }
.crm-kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crm-kv span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #8aa; margin-bottom: 3px; }
.crm-kv strong { font-size: 14px; font-weight: 500; color: #203; word-break: break-word; }
.crm-summary { margin: 14px 0 0; color: #355; line-height: 1.6; }
.crm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crm-list li { padding: 10px 12px; border-radius: 10px; background: #f4f8f8; }
.crm-list strong { display: block; color: #102223; margin-bottom: 2px; }
.crm-list span { color: #6b8586; font-size: 13px; margin-right: 8px; }
.crm-list p { margin: 6px 0 0; color: #355; font-size: 13px; line-height: 1.5; }
.crm-platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crm-platform {
  display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px;
  border: 1px solid #d7ecec; background: #f7fcfc; text-decoration: none !important; color: inherit;
}
.crm-platform span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #0F766E; font-weight: 700; }
.crm-platform strong { font-size: 12px; font-weight: 500; color: #244; word-break: break-all; }
.crm-platform.empty { opacity: 0.55; border-style: dashed; }
.crm-platform.empty em { font-style: normal; color: #8aa; font-size: 12px; }
.crm-resume-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px; border-radius: 12px; background: #eef8f8; border: 1px solid #cfeaea;
}
.crm-resume-card p { margin: 4px 0 0; color: #6b8586; font-size: 13px; }

.crm-modal {
  position: fixed; inset: 4vh 4vw; z-index: 110; background: #0f2f30; border-radius: 16px; overflow: hidden;
  display: none; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.crm-modal:not([hidden]) {
  display: flex;
}
.crm-modal-head { background: #14393a; border-bottom-color: #1f4b4c; color: #dff5f5; }
.crm-modal-head .crm-eyebrow { color: #8ec; }
.crm-modal-head h3 { color: #fff; font-size: 20px; }
.crm-modal-body { flex: 1; background: #111; min-height: 0; }
.crm-modal-body iframe { width: 100%; height: 100%; border: 0; background: #061214; }
.crm-resume-fallback {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: #dff5f5; text-align: center; padding: 32px;
}

@media (max-width: 900px) {
  .crm-app { flex-direction: column; }
  .crm-nav { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .crm-nav-links { flex-direction: row; flex-wrap: wrap; }
  .crm-nav-foot { width: 100%; flex-direction: row; gap: 16px; }
  .crm-main { padding: 18px 14px 48px; }
  .crm-kv-grid, .crm-platform-grid { grid-template-columns: 1fr; }
  .crm-drawer { width: 100%; }
  .crm-modal { inset: 0; border-radius: 0; }
}
.privacy-doc { max-width: 760px; }
.privacy-doc h2 { font-family: var(--font-sans); font-size: 20px; font-weight: 600; margin: 36px 0 12px; color: var(--text-hi); }
.privacy-doc h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; margin: 22px 0 8px; color: var(--text-hi); }
.privacy-doc p, .privacy-doc li { font-size: 15px; line-height: 1.65; color: var(--text-body); }
.privacy-doc ul { padding-left: 20px; margin: 0 0 12px; }
.privacy-doc li { margin-bottom: 6px; }

/* Task cards (Home) */
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.task-card {
  background: var(--white);
  border: 1px solid var(--primary-gray);
  border-radius: var(--radius-card); padding: 22px;
}
.task-card h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--text-hi); margin-bottom: 8px; }
.task-card p { font-size: 13px; font-weight: 300; color: var(--text-muted); margin-bottom: 18px; line-height: 1.55; }
.task-progress { height: 6px; border-radius: 999px; background: var(--divider); margin-bottom: 14px; overflow: hidden; }
.task-progress-fill { height: 100%; background: var(--verified); }

/* Horizontal dashboard tabs — reuses .opp-tabs pattern via alias */
.dash-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--divider); margin-bottom: 0; flex-wrap: wrap; }
.dash-tab { background: none; border: none; font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--text-muted); padding: 0 0 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.dash-tab.active { color: var(--text-hi); border-bottom-color: var(--verified); }
.dash-panel { display: none; padding-top: 0; }
.dash-panel.active { display: block; animation: fadeUp 0.3s ease both; }

.app-list { padding-top: 20px; }
.app-list .entry-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.app-list .entry-card h4 { margin-bottom: 4px; }
.app-status { font-family: var(--font-sans); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; padding: 6px 12px; border-radius: 999px; background: var(--divider); color: var(--text-body); white-space: nowrap; }

.empty-state { text-align: center; padding: 72px 20px; border-top: 1px solid var(--divider); }
.empty-state svg { width: 36px; height: 36px; color: var(--text-muted); margin: 0 auto 18px; }
.empty-state h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text-hi); margin-bottom: 8px; }
.empty-state p { font-size: 14px; font-weight: 300; color: var(--text-muted); }
.empty-state a { font-size: 14px; }

/* Stat row (Referrals) */
.stat-row { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--divider); border-radius: var(--radius-card); overflow: hidden; margin-bottom: 32px; }
.stat-row > div { padding: 20px 18px; border-left: 1px solid var(--divider); }
.stat-row > div:first-child { border-left: none; }
.stat-row .stat-k { font-family: var(--font-sans); font-size: 12px; font-weight: 300; color: var(--text-muted); margin-bottom: 10px; }
.stat-row .stat-v { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--text-hi); }

/* Earnings */
.earn-total-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.earn-total { font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px); font-weight: 500; color: var(--text-hi); margin: 6px 0; }
.earn-chart-card { border: 1px solid var(--divider); border-radius: var(--radius-card); padding: 28px 24px; }
.earn-chart-placeholder { height: 200px; display: flex; align-items: stretch; border-top: 1px solid var(--divider); padding-top: 16px; margin-top: 20px; }
.earn-axis { display: flex; flex-direction: column-reverse; justify-content: space-between; font-family: var(--font-sans); font-size: 11px; color: var(--text-muted); }

/* Checkboxes / legal fine print */
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.form-checkbox input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--verified); flex-shrink: 0; }
.form-checkbox label { font-family: var(--font-sans); font-size: 14px; font-weight: 300; color: var(--text-body); text-transform: none; letter-spacing: 0; }
.fine-print { font-size: 12px; font-weight: 300; color: var(--text-muted); margin: 6px 0 0 26px; line-height: 1.65; }
.notice-strip { border: 1px solid var(--error); background: rgba(192, 86, 78, 0.1); border-radius: var(--radius-card); padding: 16px 20px; margin-bottom: 20px; }
.notice-strip strong { color: var(--error); font-family: var(--font-sans); font-weight: 400; font-size: 14px; display: block; margin-bottom: 4px; }
.notice-strip span { font-size: 13px; color: var(--text-muted); }

.btn-danger { background: var(--error); color: #F4F5F7 !important; border-color: var(--error); }
.btn-danger:hover { opacity: 0.88; }

/* Selectable chip (domain interests, hobbies) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-select {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-pill); padding: 10px 16px; font-family: var(--font-sans); font-size: 14px; font-weight: 300;
  color: var(--text-body); cursor: pointer;
}
.chip-select:hover { border-color: var(--divider-strong); color: var(--text-hi); }
.chip-select.on { background: var(--verified-wash); border-color: var(--verified); color: var(--verified); }

/* Availability day rows */
.day-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--divider); }
.day-row:last-child { border-bottom: none; }
.day-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--divider); display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: var(--text-body); flex-shrink: 0; }
.day-status { flex: 1; font-family: var(--font-sans); font-size: 14px; font-weight: 300; color: var(--text-muted); }
.day-row.is-available .day-status { color: var(--text-hi); }
.day-add { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--divider-strong); display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: none; cursor: pointer; flex-shrink: 0; font-size: 15px; line-height: 1; }
.day-add:hover { color: var(--text-hi); border-color: var(--text-hi); }
.day-row.is-available .day-add { color: var(--text-hi); border-color: var(--text-hi); }

/* Upload dropzone + add-entry button */
.upload-box { border: 1px dashed var(--divider-strong); border-radius: var(--radius-card); padding: 22px; text-align: center; color: var(--text-muted); font-family: var(--font-sans); font-size: 14px; font-weight: 300; }
.upload-box strong { color: var(--text-hi); font-weight: 400; }
.btn-add {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px dashed var(--divider-strong);
  border-radius: var(--radius-btn); padding: 12px 18px; font-family: var(--font-sans); font-size: 14px; font-weight: 300;
  color: var(--text-body); cursor: pointer; margin-bottom: 32px;
}
.btn-add:hover { color: var(--text-hi); border-color: var(--text-muted); }
.field-note { font-size: 12px; font-weight: 300; color: var(--text-muted); margin-top: 8px; }

/* ── Mercor-style public apply / role page ─────────── */
.page-apply { background: #020708; min-height: 100vh; color: #F8FAFC; }
.apply-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: #061214; border-bottom: 1px solid #143036;
  position: sticky; top: 0; z-index: 20;
}
.apply-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: 44px; text-decoration: none;
}
.apply-logo img {
  width: auto; height: 44px; display: block;
  border-radius: 0; object-fit: contain;
  background: transparent;
}
.apply-signin {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border: 1px solid #143036; border-radius: 8px; background: #061214;
  color: #F8FAFC; font-size: 14px; font-weight: 500; text-decoration: none;
}
.apply-signin:hover { border-color: #0D9488; color: #0D9488; opacity: 1; }

.apply-form-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.apply-shell { width: min(1120px, 100% - 40px); margin: 0 auto; padding: 28px 0 72px; }
.apply-empty { max-width: 480px; padding: 48px 0; }
.apply-empty h1 { font-size: 28px; margin-bottom: 10px; }
.apply-empty p { color: #94A3B8; margin-bottom: 20px; }

.apply-layout {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 40px; align-items: start;
}
.apply-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: #94A3B8; text-decoration: none; margin-bottom: 22px;
}
.apply-back svg { width: 14px; height: 14px; }
.apply-back:hover { color: #F8FAFC; opacity: 1; }

.apply-title-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  margin-bottom: 14px;
}
.apply-title-row h1 {
  font-family: var(--font-sans); font-size: clamp(26px, 3vw, 34px); font-weight: 700;
  color: #F8FAFC; line-height: 1.15; letter-spacing: -0.03em; max-width: 640px;
}
.apply-rate { text-align: right; flex-shrink: 0; }
.apply-rate strong {
  display: block; font-size: 22px; font-weight: 700; color: #F8FAFC; letter-spacing: -0.02em;
}
.apply-rate span { font-size: 13px; color: #94A3B8; }

.apply-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px;
  margin-bottom: 16px; font-size: 14px; color: #94A3B8;
}
.apply-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.apply-meta-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.apply-meta-item .opp-avatars { margin-right: 2px; }

.apply-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.apply-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e0f2fe; color: #0369a1; border-radius: 999px;
  font-size: 12px; font-weight: 500; padding: 6px 10px;
}
.apply-pill svg { width: 13px; height: 13px; }
.apply-pill.muted { background: rgba(20, 184, 166, 0.16); color: #0D9488; }

.apply-posted {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 22px; border-bottom: 1px solid #143036; margin-bottom: 28px;
}
.apply-posted-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: #061214; border: 1px solid #143036;
  display: flex; align-items: center; justify-content: center;
}
.apply-posted-mark img { width: 22px; height: 22px; display: block; }
.apply-posted strong { display: block; font-size: 14px; color: #F8FAFC; }
.apply-posted a { font-size: 13px; color: #0D9488; text-decoration: none; }
.apply-posted a:hover { text-decoration: underline; opacity: 1; }

.apply-roadmap {
  background: #061214; border: 1px solid #143036; border-radius: 14px;
  padding: 22px 22px 16px; margin-bottom: 32px;
}
.apply-roadmap-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.apply-roadmap-head h2 { font-size: 18px; font-weight: 600; color: #F8FAFC; }
.apply-roadmap-head p { font-size: 13px; color: #94A3B8; margin-top: 2px; }
.apply-roadmap-head > span { font-size: 13px; color: #94A3B8; white-space: nowrap; }
.apply-progress {
  height: 6px; border-radius: 999px; background: #ececec; overflow: hidden; margin-bottom: 8px;
}
.apply-progress-fill { height: 100%; background: var(--accent-gradient); }
.apply-step {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; border-top: 1px solid #143036;
  text-decoration: none !important; color: inherit;
}
a.apply-step:hover { opacity: 1; }
a.apply-step:hover h3 { color: #0D9488; }
.apply-step h3 { font-size: 15px; font-weight: 500; color: #F8FAFC; display: flex; align-items: center; gap: 8px; }
.apply-step p { font-size: 13px; color: #94A3B8; margin-top: 2px; }
.apply-step small[data-step-meta] {
  display: block; margin-top: 4px; font-size: 12px; color: #64748B; font-weight: 500;
}
.apply-step.done small[data-step-meta] { color: #0D9488; }
.apply-step-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #1E454C; flex-shrink: 0;
  background: #061214; transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.apply-step.done .apply-step-dot,
.opp-step-list .done .opp-step-dot,
.opp-step-list [data-step].done .opp-step-dot {
  background: #0D9488 !important;
  border-color: #0D9488 !important;
  box-shadow: none;
}
.apply-step.done .apply-step-dot::after,
.opp-step-list .done .opp-step-dot::after,
.opp-step-list [data-step].done .opp-step-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  background: transparent;
  inset: auto;
  border-radius: 0;
}
.apply-step.active .apply-step-dot,
.opp-step-list .active .opp-step-dot,
.opp-step-list [data-step].active .opp-step-dot {
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.apply-step.done h3,
.opp-step-list .done strong,
.opp-step-list [data-step].done strong { color: #0D9488; }
.apply-core {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: 4px; background: rgba(20, 184, 166, 0.16); color: #0D9488;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
}
.apply-footnote { font-size: 12px; color: #94A3B8; margin-top: 6px; padding-top: 10px; border-top: 1px solid #143036; }

.apply-section { margin-bottom: 30px; }
.apply-section h2 {
  font-size: 18px; font-weight: 600; color: #F8FAFC; margin-bottom: 12px; letter-spacing: -0.02em;
}
.apply-section p { font-size: 15px; color: #CBD5E1; line-height: 1.7; }
.apply-tag {
  display: inline-flex; background: #0A1C20; color: #CBD5E1; border-radius: 8px;
  font-size: 13px; font-weight: 500; padding: 8px 12px;
}
.apply-bullets { list-style: none; margin: 0; padding: 0; }
.apply-bullets li {
  position: relative; padding-left: 18px; margin-bottom: 10px;
  font-size: 15px; color: #CBD5E1; line-height: 1.65;
}
.apply-bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: #9ca3af;
}
.apply-refer-btn { margin-top: 14px; }

.apply-side { position: sticky; top: 84px; }
.apply-form-card {
  background: #061214; border: 1px solid #143036; border-radius: 14px;
  padding: 22px; box-shadow: 0 8px 28px rgba(0,0,0,0.04); margin-bottom: 14px;
}
.apply-form-card .form-group { margin-bottom: 14px; }
.apply-form-card label {
  display: block; font-size: 13px; font-weight: 600; color: #F8FAFC; margin-bottom: 6px;
}
.apply-form-card input[type="text"],
.apply-form-card input[type="email"],
.apply-form-card input[type="url"],
.apply-form-card select,
.apply-form-card textarea {
  width: 100%; border: 1px solid #143036; border-radius: 8px;
  padding: 11px 12px; font-size: 14px; font-family: var(--font-sans);
  background: #061214; color: #F8FAFC; outline: none;
}
.apply-form-card textarea { min-height: 96px; resize: vertical; }
.apply-form-card input:focus,
.apply-form-card select:focus,
.apply-form-card textarea:focus { border-color: #0D9488; }
.apply-check {
  display: flex !important; align-items: center; gap: 8px;
  margin-top: 8px; font-size: 13px !important; font-weight: 400 !important; color: #555 !important;
  cursor: pointer;
}
.apply-check input { width: auto; }
.apply-submit {
  width: 100%; justify-content: center; margin-top: 6px;
  background: var(--accent-gradient) !important; border: none;
}
.apply-earn-card {
  display: flex; align-items: center; gap: 10px;
  background: #061214; border: 1px solid #143036; border-radius: 12px;
  padding: 14px 16px; text-decoration: none; color: #0D9488;
  font-size: 14px; font-weight: 600;
}
.apply-earn-card svg { width: 18px; height: 18px; flex-shrink: 0; }
.apply-earn-card:hover { border-color: #1E454C; opacity: 1; }
.apply-success { text-align: left; }
.apply-success h3 { font-size: 18px; margin-bottom: 8px; }
.apply-success p { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 16px; }

@media (max-width: 900px) {
  .apply-layout { grid-template-columns: 1fr; gap: 28px; }
  .apply-side { position: static; order: -1; }
  .apply-title-row { flex-direction: column; gap: 8px; }
  .apply-rate { text-align: left; }
  .apply-shell { width: min(100% - 32px, 1120px); }
  .apply-topbar { padding: 14px 18px; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-landing-wrap { display: flex !important; }
  .seal-panel { max-width: 460px; }
  .grid-4, .grid-3, .grid-2, .split, .stats-grid, .meet-row, .footer-grid-5 { grid-template-columns: 1fr; }
  .footer-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .spotlight-grid { grid-template-columns: 1.4fr 1fr; gap: 18px; }
  .page-landing .stats-pill,
  .stats-pill { border-radius: 16px; flex-direction: column; max-width: 420px; }
  .page-landing .stats-pill-item,
  .stats-pill-item { border-left: none; border-top: 1px solid #e8e8e8; padding: 14px 16px; }
  .page-landing .stats-pill-item:first-child,
  .stats-pill-item:first-child { border-top: none; }
  .page-landing .hero-ctas { width: 100% !important; justify-content: center !important; }
  .apex-banner { min-height: 220px; border-radius: 20px; }
  .page-landing .spotlight-side-visual,
  .page-landing .meet-row .spotlight-side-visual {
    min-height: 0;
    height: auto;
  }
  .stats-grid > div { border-left: none; border-top: 1px solid var(--divider); }
  .stats-grid > div:first-child { border-top: none; }
  .section { padding: 56px 0; }
  .hero, .profile-hero { padding: 48px 0 56px; }
  .hero-landing { padding: 36px 0 48px; }
  .profile-layout { grid-template-columns: 1fr; }
  .ledger-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .opp-grid { grid-template-columns: repeat(2, 1fr); }
  .opp-browse.is-grid .opp-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-track {
    grid-auto-columns: min(260px, 42vw);
    grid-template-rows: repeat(2, 300px);
  }
}

@media (max-width: 720px) {
  .footer-grid-5 { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
  .wrap,
  .page-landing .nav-inner,
  .page-landing .section-roles > .wrap,
  .page-landing .section-spotlight > .wrap,
  .page-landing .section-meet > .wrap,
  .page-landing .footer-landing > .wrap {
    width: min(100% - 32px, var(--landing-max, 1080px));
  }
  .page-landing .hero-landing-wrap,
  .hero.hero-landing .wrap.hero-landing-wrap {
    width: min(100% - 32px, 760px) !important;
  }
  .page-landing .hero-landing h1 {
    font-size: clamp(32px, 9vw, 44px);
  }
  .page-landing .hero-landing .hero-sub {
    font-size: 16px;
  }
  .page-landing .stats-pill-label {
    white-space: normal;
    text-align: center;
  }
  .page-landing .hero-ctas .btn {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 100%;
  }
  .roles-track-wrap {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }
  .roles-track,
  .page-landing .roles-track {
    padding: 4px 16px 12px;
    grid-template-rows: repeat(2, 160px);
    grid-auto-columns: min(260px, calc(100% - 48px));
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-landing .roles-head {
    width: min(100% - 32px, var(--landing-max));
    margin-inline: auto;
    padding: 0;
  }
  .spotlight-grid { grid-template-columns: 1fr; }
  .meet-row { grid-template-columns: 1fr; }
  .insights-track {
    padding-left: 16px; padding-right: 16px;
    grid-auto-columns: min(240px, calc(100vw - 64px));
    grid-template-rows: repeat(2, 290px);
  }
  .articles-index-grid { grid-template-columns: 1fr; }
  .insights-head { align-items: flex-start; flex-direction: column; }
  .insights-head-actions { width: 100%; justify-content: space-between; }
  .opp-grid { grid-template-columns: 1fr; }
  .opp-browse.is-grid .opp-grid { grid-template-columns: 1fr; }
  .opp-browse.is-split { grid-template-columns: 1fr; }
  .opp-detail { position: static; min-height: 0; }
  .opp-toolbar { flex-direction: column; align-items: stretch; }
  .opp-search { max-width: none; }
  .role-row { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .profile-shell { grid-template-columns: 1fr; }
  .profile-side { border-right: none; border-bottom: 1px solid var(--divider); padding: 24px 0; }
  .profile-tabs-vert { flex-direction: row; flex-wrap: wrap; }
  .profile-main { padding: 32px 0 64px; }
  .profile-grid-2 { grid-template-columns: 1fr; }

  .app-shell { flex-direction: column; }
  .app-sidebar {
    width: 100%; height: auto; position: fixed; left: 0; top: 0; right: 0;
    flex-direction: row; padding: 12px 16px; justify-content: space-between; z-index: 50;
    overflow: visible;
  }
  .avatar-menu {
    left: auto; right: 0; bottom: auto; top: 46px;
  }
  .app-sidebar-logo { margin-bottom: 0; }
  .app-sidebar-nav { flex-direction: row; gap: 2px; width: auto; }
  .app-nav-item { width: auto; padding: 8px; }
  .app-nav-item span { display: none; }
  .app-sidebar-foot { margin-top: 0; flex-direction: row; }
  .app-main { margin-left: 0; width: 100%; padding: 88px 20px 64px; }
  .admin-crm-layout { grid-template-columns: 1fr; }
  .admin-expert-detail { position: static; }
  .task-grid { grid-template-columns: 1fr; }
  .role-body { grid-template-columns: 1fr; }
  .role-side { position: static; }
  .role-head { flex-direction: column; }
  .role-rate-block { text-align: left; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row > div:nth-child(2n+1) { border-left: none; }
  .stat-row > div:nth-child(-n+2) { border-top: none; }
  .stat-row > div { border-top: 1px solid var(--divider); }
}

@media (min-width: 721px) and (max-width: 980px) {
  .task-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--primary-gray); flex-direction: column; align-items: flex-start; padding: 20px 24px 28px; gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile {
    display: inline-flex; height: 40px; padding: 0 18px; border-radius: var(--radius-btn); background: var(--accent-gradient);
    color: var(--btn-primary-fg) !important; font-family: var(--font-sans); font-weight: 500; text-decoration: none !important; align-items: center;
  }
  .page-landing .nav-login { display: none; }
}

/* Admin console (shared bits) */
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeUp 0.3s ease both; }
.admin-new-role { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-card); padding: 24px; margin-bottom: 28px; }
.admin-new-role h3 { font-family: var(--font-sans); font-weight: 500; font-size: 16px; margin-bottom: 16px; }
.admin-new-role .profile-grid-2 { margin-bottom: 12px; }
.admin-login-gate { max-width: 380px; margin: 80px auto; text-align: center; }
.crm-table input, .crm-table select, .crm-table textarea {
  font-family: "DM Sans", var(--font-sans); font-size: 13px; padding: 6px 8px;
  border: 1px solid var(--divider-strong); border-radius: 6px; width: 100%; min-width: 90px;
}

/* Auth screen (Mercor-style centered card) */
.page-auth {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(13, 148, 136, 0.12), transparent 55%),
    radial-gradient(900px 500px at 80% 100%, rgba(8, 155, 156, 0.08), transparent 50%),
    #f4f6f6;
}
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.auth-banner {
  background: var(--light-teal);
  color: #065c5d;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 12px 18px;
}
.auth-card-body {
  padding: 36px 32px 40px;
  text-align: center;
}
.auth-logo {
  display: inline-flex;
  margin-bottom: 18px;
}
.auth-logo img {
  width: auto;
  height: 88px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.auth-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-hi);
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.auth-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form .form-group {
  margin: 0;
}
.auth-form label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 6px;
}
.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--divider-strong);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-hi);
  background: var(--white);
  box-sizing: border-box;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.auth-btn {
  width: 100%;
  justify-content: center;
  height: 46px;
  border-radius: 10px;
  margin-top: 4px;
  text-decoration: none;
}
.auth-form .btn-secondary {
  margin-top: 0;
  background: var(--white);
  border: 1px solid var(--divider-strong);
  color: var(--text-hi);
}
.auth-form .btn-secondary:hover {
  background: var(--light-grey);
}
.auth-error {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--error);
}

