/* ════════════════════════════════════════════════════════════════════
   ByteBrew HR — "Aurora" theme
   Drop-in replacement for styles.css. Keeps every existing class name
   and CSS-variable name, so no HTML or JS changes are required.

   Stripe-flavored, light, editorial.
   Type:  Schibsted Grotesk (display) + Hanken Grotesk (UI)
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* fonts */
  --display: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --ui: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* brand (original variable names, remapped to Aurora) */
  --navy:        #14131c;   /* deep ink — used by footer */
  --blue:        #5b5bf0;
  --blue-hover:  #4f46e5;
  --blue-light:  #f1f1fe;
  --text:        #14131c;
  --text-muted:  #56546a;
  --text-soft:   #8b8a9e;
  --border:      #ececf3;
  --border-strong: #dededf;
  --bg:          #ffffff;
  --bg-soft:     #f7f7fb;
  --card:        #ffffff;
  --radius:      14px;
  --radius-sm:   11px;
  --shadow:      0 1px 2px rgba(20,19,28,.04), 0 4px 14px -6px rgba(20,19,28,.08);
  --shadow-hover:0 12px 40px -14px rgba(80,70,230,.28);
  --shadow-cta:  0 8px 22px -8px rgba(91,91,240,.55);
  --green:       #0f9d6e;
  --green-light: #e9f9f2;
  --orange:      #c2410c;
  --orange-light:#fff1e8;

  --accent-grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 48%, #22d3ee 100%);
  --hero-bg:     radial-gradient(120% 120% at 80% -10%, #eef0ff 0%, #fbfbff 46%, #ffffff 100%);
}

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

body {
  font-family: var(--ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: color-mix(in oklab, var(--blue) 22%, transparent); }

/* ── NAV ──────────────────────────────────────────────────────────── */
.nav {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; color: var(--blue); }
.nav-logo svg { width: 30px; height: 30px; }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--accent-grad);
}
.nav-logo-text { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.nav-logo-text span { color: var(--blue); }

.nav-search { flex: 1; max-width: 420px; }
.nav-search input {
  width: 100%; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--border-strong);
  background: var(--bg-soft); color: var(--text); font-size: 14px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.nav-search input::placeholder { color: var(--text-soft); }
.nav-search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue) 13%, transparent); }

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-link { color: var(--text-muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--text); background: var(--bg-soft); }

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600;
  border: none; white-space: nowrap; font-family: var(--ui);
  transition: transform .12s, filter .18s, box-shadow .18s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
/* gradient hero / primary moments share the .btn-primary look but pages
   can opt into the gradient by adding .btn-grad */
.btn-grad { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-cta); }
.btn-grad:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid color-mix(in oklab, var(--blue) 40%, var(--border-strong)); }
.btn-outline:hover { background: var(--blue-light); border-color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); border: 1px solid var(--border-strong); }
.btn-white:hover { background: var(--bg-soft); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--text-soft); transform: translateY(-1px); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 13px 28px; font-size: 15.5px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid #fff;
  border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── USER MENU ────────────────────────────────────────────────────── */
.user-menu { display: none; align-items: center; gap: 8px; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent-grad); color: #fff;
  font-size: 14px; font-weight: 700; font-family: var(--display); display: flex; align-items: center;
  justify-content: center; cursor: pointer; border: none;
}
.user-name { font-size: 13.5px; color: var(--text); font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown { position: relative; }
.user-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-hover); min-width: 200px; overflow: hidden; display: none; z-index: 200;
}
.user-dropdown-menu.open { display: block; }
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 14px; color: var(--text);
  transition: background .15s; cursor: pointer; border: none; background: none; width: 100%; text-align: left;
}
.user-dropdown-item:hover { background: var(--bg-soft); }
.user-dropdown-item.danger { color: #ef4444; }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  position: relative; background: var(--hero-bg); padding: 84px 20px 72px; text-align: center; overflow: hidden;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(72px); pointer-events: none; }
.hero::before { width: 520px; height: 520px; top: -200px; right: 6%; background: radial-gradient(circle, rgba(124,92,255,.34), transparent 70%); }
.hero::after  { width: 460px; height: 460px; top: -150px; right: 28%; background: radial-gradient(circle, rgba(34,211,238,.30), transparent 70%); }
.hero > * { position: relative; }
.hero-title {
  font-family: var(--display); font-size: clamp(38px, 6vw, 64px); font-weight: 800; color: var(--text);
  letter-spacing: -.035em; line-height: 1.04; margin: 0 auto 16px; max-width: 18ch; text-wrap: balance;
}
.hero-subtitle { font-size: clamp(16px, 1.7vw, 19px); color: var(--text-muted); margin: 0 auto 36px; max-width: 52ch; text-wrap: pretty; }
.hero-search {
  max-width: 640px; margin: 0 auto; display: flex; gap: 8px; background: var(--card);
  padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid var(--border-strong);
  box-shadow: 0 18px 50px -22px rgba(20,19,28,.32), 0 2px 6px -2px rgba(20,19,28,.08); transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: color-mix(in oklab, var(--blue) 55%, var(--border-strong)); box-shadow: 0 18px 50px -22px rgba(20,19,28,.34), 0 0 0 4px color-mix(in oklab, var(--blue) 13%, transparent); }
.hero-search input { flex: 1; border: none; outline: none; font-size: 16px; color: var(--text); background: transparent; min-width: 0; }
.hero-search input::placeholder { color: var(--text-soft); }
.hero-search .btn { border-radius: 999px; padding: 12px 26px; background: var(--accent-grad); box-shadow: var(--shadow-cta); }

/* ── FILTERS ──────────────────────────────────────────────────────── */
.filters-bar { background: transparent; border-bottom: 1px solid var(--border); }
.filters-inner { max-width: 1140px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.filter-select {
  padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--text); background: var(--card); outline: none; cursor: pointer; transition: border-color .15s;
}
.filter-select:focus { border-color: var(--blue); }
.filter-chip {
  padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); background: var(--card); cursor: pointer; transition: all .15s;
}
.filter-chip:hover { border-color: var(--text-soft); color: var(--text); }
.filter-chip.active { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: var(--shadow-cta); }
.filter-divider { height: 22px; width: 1px; background: var(--border); margin: 0 4px; }
.filter-spacer { flex: 1; }
.results-count { font-size: 13.5px; color: var(--text-muted); white-space: nowrap; }
.results-count strong { color: var(--text); }

/* ── MAIN LAYOUT ──────────────────────────────────────────────────── */
.main { max-width: 1140px; margin: 0 auto; padding: 32px 24px 72px; flex: 1; width: 100%; }

/* ── JOB CARDS ────────────────────────────────────────────────────── */
.jobs-list { display: flex; flex-direction: column; gap: 14px; }
.job-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; display: block; text-decoration: none; color: var(--text); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
}
.job-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-grad); opacity: 0; transition: opacity .2s; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in oklab, var(--blue) 30%, var(--border)); }
.job-card:hover::before { opacity: 1; }
.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.job-card-title { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.25; letter-spacing: -.01em; transition: color .15s; }
.job-card:hover .job-card-title { color: var(--blue-hover); }
.job-card-company { font-size: 14.5px; color: var(--text-muted); margin-top: 4px; }
.job-card-sep { margin: 0 7px; color: var(--text-soft); }
.job-card-posted { font-size: 12.5px; font-weight: 500; color: var(--text-soft); white-space: nowrap; flex-shrink: 0; background: var(--bg-soft); padding: 5px 11px; border-radius: 999px; }
.job-card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag-type { background: var(--blue-light); color: var(--blue-hover); }
.tag-salary { background: var(--green-light); color: var(--green); }
.tag-grade { background: var(--bg-soft); color: var(--text-muted); }
.tag-location { background: var(--bg-soft); color: var(--text-muted); }
.tag-closed { background: var(--orange-light); color: var(--orange); }
.tag-new { background: #fff7ed; color: #c2410c; }
.job-card-summary {
  font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-soft); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; flex-wrap: wrap; }
.job-card-closing { color: var(--text-muted); }
.job-card-apply-hint {
  font-size: 13.5px; font-weight: 600; color: var(--blue-hover); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 14px; border-radius: var(--radius-sm); background: var(--blue-light);
  border: 1px solid color-mix(in oklab, var(--blue) 18%, transparent); transition: all .16s;
}
.job-card:hover .job-card-apply-hint { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-cta); }

/* ── LOAD MORE ────────────────────────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 32px; }

/* ── EMPTY / ERROR STATES ─────────────────────────────────────────── */
.state-box { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.state-box-icon { font-size: 42px; margin-bottom: 16px; }
.state-box h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.state-box p { font-size: 14.5px; max-width: 380px; margin: 0 auto 22px; }

/* ── LOADING SKELETON ─────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, #f1f1f5 25%, #e7e7ee 50%, #f1f1f5 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 14px; }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.skeleton-company { height: 13px; width: 38%; margin-bottom: 16px; }
.skeleton-tags { display: flex; gap: 7px; margin-bottom: 16px; }
.skeleton-tag { height: 24px; width: 72px; border-radius: 999px; }
.skeleton-summary { height: 12px; margin-bottom: 7px; }
.skeleton-summary:last-child { width: 70%; }

/* ── JOB DETAIL ───────────────────────────────────────────────────── */
.detail-header { position: relative; background: var(--hero-bg); border-bottom: 1px solid var(--border); padding: 30px 20px 36px; overflow: hidden; }
.detail-header::before { content: ""; position: absolute; width: 480px; height: 480px; top: -220px; right: 4%; border-radius: 50%; filter: blur(72px); background: radial-gradient(circle, rgba(124,92,255,.26), transparent 70%); pointer-events: none; }
.detail-header-inner { position: relative; max-width: 1140px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--blue-hover); margin-bottom: 18px; transition: gap .15s; }
.back-link:hover { gap: 11px; }
.detail-title { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.detail-company { font-size: 16px; color: var(--text-muted); margin-bottom: 16px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-apply-cta { flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 220px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.detail-apply-cta .apply-btn-wrap .btn { width: 100%; }
.detail-closing { font-size: 13px; color: var(--text-muted); text-align: center; }
.detail-layout { max-width: 1140px; margin: 36px auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow); }
.detail-section h3 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-bottom: 16px; padding-bottom: 0; border-bottom: none; }
.detail-body { font-size: 15.5px; line-height: 1.75; color: var(--text-muted); }
.detail-body h4 { font-size: 16px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.detail-body p { margin-bottom: 14px; }
.detail-body strong { color: var(--text); font-weight: 600; }
.detail-body ul, .detail-body ol { padding-left: 20px; margin-bottom: 14px; }
.detail-body li { margin-bottom: 6px; }
.ksp-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ksp-item { display: flex; align-items: flex-start; gap: 13px; padding: 0; background: transparent; border-radius: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.ksp-icon { width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; color: var(--green); background: var(--green-light); margin-top: 1px; font-size: 14px; }

/* ── SIDEBAR ──────────────────────────────────────────────────────── */
.detail-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.sidebar-card h4 { font-size: 12.5px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.sidebar-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sidebar-row:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-label { color: var(--text-soft); flex-shrink: 0; }
.sidebar-value { font-weight: 600; text-align: right; }
.sidebar-cta { background: linear-gradient(165deg, #f4f3ff, #fbfbff); border: 1px solid color-mix(in oklab, var(--blue) 20%, var(--border)); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.sidebar-cta p { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }

/* ── APPLY PAGE ───────────────────────────────────────────────────── */
.apply-layout { max-width: 800px; margin: 36px auto; padding: 0 24px 72px; flex: 1; width: 100%; }
.apply-job-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.apply-job-info { flex: 1; min-width: 0; }
.apply-job-title { font-family: var(--display); font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.apply-job-meta { font-size: 13.5px; color: var(--text-muted); }

/* Steps */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; cursor: default; }
.step::before { content: ''; position: absolute; top: 17px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--border-strong); z-index: 0; }
.step:last-child::before { display: none; }
.step-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--card); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--text-soft); position: relative; z-index: 1; transition: all .25s; }
.step.active .step-dot { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: var(--shadow-cta); }
.step.done .step-dot { border-color: transparent; background: var(--accent-grad); color: #fff; }
.step.done::before, .step.active::before { background: var(--blue); }
.step-label { font-size: 12px; font-weight: 600; color: var(--text-soft); white-space: nowrap; }
.step.active .step-label { color: var(--text); }
.step.done .step-label { color: var(--blue-hover); }

/* Form panels */
.form-panel { display: none; }
.form-panel.active { display: block; }
.panel-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 18px; box-shadow: var(--shadow); }
.panel-card h3 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.panel-card .panel-desc { font-size: 14.5px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.55; }

/* Fields */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.field label .req { color: #ef4444; margin-left: 2px; }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); background: var(--card); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue) 13%, transparent); }
.input.error, .textarea.error { border-color: #ef4444; }
.textarea { resize: vertical; min-height: 200px; line-height: 1.65; }
.field-hint { font-size: 12.5px; color: var(--text-soft); margin-top: 7px; }
.field-error { font-size: 12.5px; color: #ef4444; margin-top: 7px; display: none; }
.field.has-error .field-error { display: block; }

/* Question item */
.question-item { margin-bottom: 14px; padding: 20px; background: var(--bg-soft); border-radius: 14px; border: 1px solid var(--border); }
.question-item .question-label { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px; }
.must-badge { display: inline-block; font-size: 10.5px; font-weight: 700; background: #fef2f2; color: #ef4444; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; margin-top: 2px; letter-spacing: .02em; }

/* Review */
.review-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.review-section:last-child { border-bottom: none; }
.review-section h4 { font-size: 12px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.review-text { font-size: 14.5px; color: var(--text); white-space: pre-wrap; line-height: 1.6; }
.review-qa { margin-top: 12px; }
.review-qa .review-q { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.review-qa .review-a { font-size: 14px; color: var(--text-muted); }

.panel-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }

/* Auth gate */
.auth-gate { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 52px 32px; text-align: center; margin-bottom: 24px; box-shadow: var(--shadow); }
.auth-gate h3 { font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.auth-gate p { font-size: 14.5px; color: var(--text-muted); margin: 0 auto 24px; max-width: 380px; line-height: 1.55; }
.auth-gate-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── AUTH MODAL ───────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20,19,28,.45); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--card); border-radius: 22px; width: 100%; max-width: 440px; box-shadow: 0 30px 80px -24px rgba(20,19,28,.45); overflow: hidden; transform: translateY(12px) scale(.985); transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.modal-overlay.open .modal { transform: none; }
.modal-header { padding: 24px 28px 0; display: flex; align-items: flex-start; justify-content: space-between; }
.modal-header h2 { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.modal-close { background: none; border: none; font-size: 24px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 2px; transition: color .15s; flex-shrink: 0; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 22px 28px 28px; }
.modal-tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 22px; }
.modal-tab { flex: 1; padding: 9px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border: none; background: none; border-radius: 9px; transition: all .18s; }
.modal-tab.active { color: var(--text); background: var(--card); box-shadow: var(--shadow); }
.modal-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 11px 14px; font-size: 13px; color: #ef4444; margin-bottom: 14px; display: none; }
.modal-error.visible { display: block; }
.divider-text { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12.5px; color: var(--text-soft); }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; color: var(--text); background: var(--card); cursor: pointer; transition: background .15s, border-color .15s; }
.google-btn:hover { background: var(--bg-soft); border-color: var(--text-soft); }
.google-btn svg { width: 18px; height: 18px; }

/* ── FOOTER (dark ink, preserves existing white inline text) ───────── */
.footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 52px 20px 28px; margin-top: auto; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-brand .nav-logo { margin-bottom: 14px; color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 30ch; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.92); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1140px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ── ALERTS ───────────────────────────────────────────────────────── */
.alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 11px; }
.alert-success { background: var(--green-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: var(--blue-light); color: var(--blue-hover); border: 1px solid color-mix(in oklab, var(--blue) 18%, transparent); }

/* ── CLOSED BANNER / SUCCESS ──────────────────────────────────────── */
.closed-banner { background: var(--orange-light); border: 1px solid #fcd9bd; border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 500; color: var(--orange); margin-bottom: 20px; }
.success-screen { text-align: center; padding: 64px 24px; }
.success-icon { width: 84px; height: 84px; background: var(--accent-grad); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 34px; box-shadow: 0 16px 40px -12px color-mix(in oklab, var(--blue) 60%, transparent); }
.success-screen h2 { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.success-screen p { font-size: 15px; color: var(--text-muted); max-width: 44ch; margin: 0 auto 26px; line-height: 1.6; }

/* ── MISC ─────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; order: -1; }
  .detail-header-inner { flex-direction: column; }
  .detail-apply-cta { width: 100%; }
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 20px 52px; }
}
@media (max-width: 580px) {
  .hero { padding: 48px 18px 40px; }
  .hero-search { flex-direction: column; padding: 12px; border-radius: 18px; gap: 8px; }
  .hero-search .btn { width: 100%; }
  .nav-search { display: none; }
  .filters-inner { gap: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .step-label { display: none; }
  .panel-card, .detail-section { padding: 22px; }
}
