/* ===========================================================
   APPLICATION FLOW
   =========================================================== */

.af-shell {
  background: var(--paper);
  min-height: calc(100vh - 56px);
  padding: 28px 0 64px;
}

.af-grid {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1100px) {
  .af-grid { grid-template-columns: 200px 1fr; }
  .af-job-card { display: none; }
}
@media (max-width: 800px) {
  .af-grid { grid-template-columns: 1fr; }
  .af-rail { display: none; }
}

/* ===========================================================
   LEFT RAIL — STEP TRACKER
   =========================================================== */
.af-rail {
  position: sticky;
  top: 16px;
  padding: 8px 0;
}
.af-rail-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.af-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  align-items: start;
  transition: opacity 0.2s;
}
.af-step:not(.is-current):not(.is-done) { opacity: 0.45; }
.af-step:hover { opacity: 1; }
.af-step-disc {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-3);
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}
.af-step.is-done .af-step-disc {
  background: var(--live);
  border-color: var(--live);
  color: white;
}
.af-step.is-done .af-step-disc svg { width: 14px; height: 14px; stroke-width: 3.5; }
.af-step.is-current .af-step-disc {
  background: var(--asb-orange);
  border-color: var(--asb-orange);
  color: white;
  box-shadow: 0 0 0 6px rgba(245,130,32,0.18);
}

.af-step-line {
  position: absolute;
  left: 15px; top: 46px; bottom: -10px;
  width: 2px;
  background: var(--line);
  z-index: 1;
}
.af-step.is-done .af-step-line { background: var(--live); }

.af-step-text { padding-top: 4px; min-width: 0; }
.af-step-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.af-step.is-current .af-step-label,
.af-step.is-done .af-step-label { color: var(--ink); }
.af-step-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.af-step-name .t-bn,
.af-step-name .t-en { display: inline; }
body.lang-bn .af-step-name .t-en,
body.lang-en .af-step-name .t-bn { display: none; }

.af-rail-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex; flex-direction: column; gap: 6px;
}
.af-rail-meta strong { color: var(--ink); }
.af-rail-save {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  color: var(--live);
  font-weight: 600;
}
.af-rail-save-dot {
  width: 6px; height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: af-blink 1.6s ease-in-out infinite;
}
@keyframes af-blink { 50% { opacity: 0.4; } }

/* ===========================================================
   MAIN CARD
   =========================================================== */
.af-main {
  display: flex; flex-direction: column;
  gap: 16px;
}
.af-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.af-card-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.af-step-no {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--asb-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.af-step-no::before {
  content: ''; width: 16px; height: 1.5px;
  background: var(--asb-orange);
}
.af-card h1 {
  font-family: var(--font-bn);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
  text-wrap: balance;
}
body.lang-en .af-card h1 { font-family: var(--font-display); letter-spacing: -0.03em; }
.af-card h1 + p {
  font-size: 14.5px;
  color: var(--ink-3);
  text-wrap: pretty;
}

@media (max-width: 600px) {
  .af-card { padding: 24px 20px; }
  .af-card h1 { font-size: 24px; }
}

/* ===========================================================
   STEP 1 — CV / RESUME
   =========================================================== */
.af-cv-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.af-cv-opt {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  transition: all 0.15s;
  display: flex; gap: 14px; align-items: start;
}
.af-cv-opt:hover { border-color: var(--asb-orange); }
.af-cv-opt.is-on {
  background: var(--gold-mist);
  border-color: var(--asb-orange);
}
.af-cv-opt-rad {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.15s;
}
.af-cv-opt.is-on .af-cv-opt-rad {
  border-color: var(--asb-orange);
  background: var(--asb-orange);
}
.af-cv-opt.is-on .af-cv-opt-rad::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
}
.af-cv-opt-body { min-width: 0; flex: 1; }
.af-cv-opt-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.af-cv-opt-title .af-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--asb-orange);
  color: white;
  padding: 2px 6px;
  border-radius: 100px;
}
.af-cv-opt-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }

@media (max-width: 600px) {
  .af-cv-toggle { grid-template-columns: 1fr; }
}

/* CV preview */
.af-cv-preview {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
}
.af-cv-prev-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: var(--asb-navy);
  color: var(--paper);
}
.af-cv-prev-head-l {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.af-cv-prev-head-l svg { width: 13px; height: 13px; }
.af-cv-prev-head-r {
  display: flex; gap: 6px;
}
.af-cv-prev-head-r button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--paper);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
}
.af-cv-prev-head-r button:hover { background: rgba(255,255,255,0.2); }

.af-cv-prev-body { padding: 24px 28px; }
.af-cv-prev-name {
  font-family: var(--font-bn);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
}
body.lang-en .af-cv-prev-name { font-family: var(--font-display); letter-spacing: -0.03em; }
.af-cv-prev-role { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; font-weight: 500; }
.af-cv-prev-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 11.5px; color: var(--ink-3);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
}
.af-cv-prev-section {
  margin-bottom: 14px;
}
.af-cv-prev-section h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--asb-orange);
  margin-bottom: 8px;
}
.af-cv-prev-job {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.af-cv-prev-job-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}
.af-cv-prev-job-role { font-weight: 700; color: var(--ink); }
.af-cv-prev-job-co { color: var(--ink-3); }
.af-cv-prev-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.af-cv-prev-skill {
  background: var(--gold-mist);
  color: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}

/* AI match check on CV */
.af-cv-match {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(135deg, var(--gold-mist) 0%, var(--surface-2) 100%);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-top: 16px;
}
.af-cv-match-orb {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--asb-orange), var(--asb-orange-bright));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 6px 18px -4px rgba(245,130,32,0.45);
}
.af-cv-match-text { flex: 1; min-width: 0; }
.af-cv-match-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
  display: flex; align-items: center; gap: 6px;
}
.af-cv-match-title svg { width: 12px; height: 12px; color: var(--asb-orange); }
.af-cv-match-sub { font-size: 12px; color: var(--ink-3); }
.af-cv-match-strengths {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px;
}
.af-cv-match-strength {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--surface);
  border: 1px solid var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 100px;
  color: var(--gold-deep);
}
.af-cv-match-strength::before { content: '✓'; color: var(--live); }

/* Upload variant */
.af-upload {
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  text-align: center;
  margin-top: 4px;
  transition: all 0.2s;
}
.af-upload:hover { border-color: var(--asb-orange); background: var(--gold-mist); }
.af-upload-icon {
  width: 56px; height: 56px;
  background: var(--asb-navy);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
}
.af-upload-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.af-upload-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.af-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 100px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.af-upload-btn:hover { background: var(--asb-navy); }

/* ===========================================================
   STEP 2 — COVER LETTER
   =========================================================== */
.af-cl-tabs {
  display: flex;
  background: var(--paper);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 18px;
  width: fit-content;
}
.af-cl-tab {
  padding: 8px 18px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.af-cl-tab svg { width: 12px; height: 12px; }
.af-cl-tab.is-on { background: var(--ink); color: var(--paper); }
.af-cl-tab.is-ai.is-on { background: var(--asb-orange); }

.af-cl-editor {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: border-color 0.2s;
}
.af-cl-editor:focus-within { border-color: var(--asb-orange); }

.af-cl-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  flex-wrap: wrap;
}
.af-cl-tool {
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--ink-3);
  font-family: serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.af-cl-tool:hover { background: var(--paper); color: var(--ink); }
.af-cl-tool-divider { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

.af-cl-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-bn);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  padding: 18px 22px;
  min-height: 280px;
  resize: vertical;
  outline: none;
}
body.lang-en .af-cl-textarea { font-family: var(--font-body); }

.af-cl-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
  border-top: 1px dashed var(--line-soft);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-size: 11.5px; color: var(--ink-3);
}
.af-cl-meta strong { color: var(--ink); font-family: var(--font-display); font-weight: 800; }

/* AI assist panel */
.af-ai-panel {
  background: linear-gradient(135deg, var(--asb-navy) 0%, #1A2240 100%);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}
.af-ai-panel::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--asb-orange) 0%, transparent 70%);
  opacity: 0.4;
}
.af-ai-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.af-ai-orb {
  width: 32px; height: 32px;
  background: var(--asb-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
}
.af-ai-orb svg { width: 16px; height: 16px; }
.af-ai-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--asb-orange);
}
.af-ai-title {
  font-family: var(--font-bn);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}
body.lang-en .af-ai-title { font-family: var(--font-display); }
.af-ai-prompts {
  display: flex; flex-wrap: wrap; gap: 6px;
  position: relative; z-index: 1;
}
.af-ai-prompt {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--paper);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}
.af-ai-prompt:hover {
  background: var(--asb-orange);
  border-color: var(--asb-orange);
}
.af-ai-prompt::before {
  content: '✦';
  color: var(--asb-orange-bright);
  font-size: 10px;
}
.af-ai-prompt:hover::before { color: white; }

/* AI generated draft */
.af-ai-draft {
  background: var(--gold-mist);
  border: 1px solid var(--gold-soft);
  border-left: 3px solid var(--asb-orange);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}
.af-ai-draft-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--asb-orange);
}
.af-ai-draft-actions { display: flex; gap: 6px; }
.af-ai-draft-actions button {
  background: var(--surface);
  border: 1px solid var(--gold-soft);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.af-ai-draft-actions button:hover { border-color: var(--asb-orange); color: var(--asb-orange); }
.af-ai-draft-actions .is-primary {
  background: var(--asb-orange);
  border-color: var(--asb-orange);
  color: white;
}
.af-ai-draft-actions .is-primary:hover { background: var(--asb-orange-bright); }

/* ===========================================================
   STEP 3 — SCREENING QUESTIONS
   =========================================================== */
.af-scr-banner {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.af-scr-banner-ic {
  width: 26px; height: 26px;
  background: var(--asb-navy);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.af-q {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
}
.af-q.is-required {
  border-left: 3px solid var(--asb-orange);
}
.af-q-num {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.af-q-num strong {
  background: var(--asb-orange);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-display);
  letter-spacing: 0;
}
.af-q-num .af-q-req {
  color: var(--urgent);
  font-family: var(--font-display);
}
.af-q-text {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.af-q-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.af-q-input:focus { border-color: var(--asb-orange); }
.af-q-input.af-q-textarea { min-height: 100px; resize: vertical; line-height: 1.5; }

.af-q-radio-list {
  display: flex; flex-direction: column; gap: 8px;
}
.af-q-radio {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all 0.15s;
}
.af-q-radio:hover { border-color: var(--asb-orange); color: var(--ink); }
.af-q-radio.is-on {
  background: var(--gold-mist);
  border-color: var(--asb-orange);
  color: var(--ink);
  font-weight: 600;
}
.af-q-radio-disc {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  position: relative;
}
.af-q-radio.is-on .af-q-radio-disc {
  border-color: var(--asb-orange);
  background: var(--asb-orange);
}
.af-q-radio.is-on .af-q-radio-disc::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
}

.af-q-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.af-q-scale-cell {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.af-q-scale-cell:hover { border-color: var(--asb-orange); }
.af-q-scale-cell.is-on {
  background: var(--asb-orange);
  border-color: var(--asb-orange);
  color: white;
}
.af-q-scale-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.af-q-scale-cell.is-on .af-q-scale-num { color: white; }
.af-q-scale-label { font-size: 10px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }
.af-q-scale-cell.is-on .af-q-scale-label { color: rgba(255,255,255,0.85); }

.af-q-help {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 8px;
}
.af-q-help svg { width: 11px; height: 11px; }

/* ===========================================================
   STEP 4 — REVIEW
   =========================================================== */
.af-rev-section {
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  padding: 20px 22px;
  margin-bottom: 12px;
}
.af-rev-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.af-rev-head-l {
  display: flex; align-items: center; gap: 10px;
}
.af-rev-head-no {
  width: 24px; height: 24px;
  background: var(--asb-orange);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}
.af-rev-head h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.af-rev-edit {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  cursor: pointer;
}
.af-rev-edit:hover { border-color: var(--asb-orange); color: var(--asb-orange); }

.af-rev-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.af-rev-pair {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}
.af-rev-pair-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 1px;
}
.af-rev-pair-v { color: var(--ink); font-weight: 500; }
.af-rev-pair-v.is-quote {
  font-family: var(--font-bn-display);
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-2);
  padding-left: 10px;
  border-left: 2px solid var(--asb-orange);
}
body.lang-en .af-rev-pair-v.is-quote { font-family: var(--font-display); }

/* Consents */
.af-consent {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-top: 8px;
}
.af-consent-row {
  display: flex; gap: 12px; align-items: start;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}
.af-consent-row a { color: var(--asb-orange); text-decoration: underline; }
.af-consent-check {
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.af-consent-row.is-on .af-consent-check {
  background: var(--asb-orange);
  border-color: var(--asb-orange);
  color: white;
}
.af-consent-row.is-on .af-consent-check svg { width: 11px; height: 11px; stroke-width: 4; }

/* ===========================================================
   FOOTER NAV
   =========================================================== */
.af-nav {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 12px 16px 12px 22px;
  position: sticky;
  bottom: 16px;
  z-index: 5;
  box-shadow: 0 18px 40px -16px rgba(42,54,86,0.15);
}
.af-nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
}
.af-nav-back:hover { border-color: var(--ink-muted); color: var(--ink); }
.af-nav-back:disabled { opacity: 0.3; cursor: not-allowed; }
.af-nav-info {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.af-nav-info strong { color: var(--asb-orange); font-family: var(--font-display); font-size: 13px; letter-spacing: 0; }
.af-nav-next {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--asb-orange);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(245,130,32,0.6);
  transition: all 0.15s;
}
.af-nav-next:hover { background: var(--asb-orange-bright); transform: translateY(-1px); }
.af-nav-next svg { width: 13px; height: 13px; }
.af-nav-next.is-submit {
  background: var(--live);
  box-shadow: 0 6px 18px -6px rgba(82,162,46,0.6);
}
.af-nav-next.is-submit:hover { background: #5FB535; }

/* ===========================================================
   JOB CARD (right rail)
   =========================================================== */
.af-job-card {
  position: sticky;
  top: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.af-job-pulse {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live);
}
.af-job-pulse-dot {
  width: 6px; height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: af-blink 1.4s ease-in-out infinite;
}
.af-job-co {
  display: flex; align-items: center; gap: 10px;
}
.af-job-logo {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  color: white;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: #E2126B;
}
.af-job-co-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.af-job-co-sub { font-size: 11.5px; color: var(--ink-3); }
.af-job-title {
  font-family: var(--font-bn);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
body.lang-en .af-job-title { font-family: var(--font-display); }
.af-job-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.af-job-meta-pill {
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 3px 8px;
  border-radius: 100px;
}
.af-job-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.af-job-stat-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.af-job-stat-label { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }

.af-job-match {
  display: flex; gap: 12px; align-items: center;
  background: linear-gradient(135deg, var(--gold-mist) 0%, var(--surface) 100%);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.af-job-match-orb {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--asb-orange), var(--asb-orange-bright));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 10px -2px rgba(245,130,32,0.4);
  flex-shrink: 0;
}
.af-job-match-text { font-size: 11px; color: var(--ink-3); }
.af-job-match-text strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 700; }

/* ===========================================================
   SUCCESS STATE
   =========================================================== */
.af-success {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.af-success-bg {
  position: absolute; inset: 0; opacity: 0.18;
  background:
    radial-gradient(circle at 20% 30%, var(--asb-orange) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, var(--gold-bright) 0%, transparent 30%),
    radial-gradient(circle at 50% 80%, var(--live) 0%, transparent 30%);
  pointer-events: none;
}
.af-success-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.af-success-icon {
  width: 96px; height: 96px;
  background: var(--live);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 12px 32px -8px rgba(82,162,46,0.5);
  animation: af-success-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.af-success-icon svg { width: 44px; height: 44px; stroke-width: 3.5; }
@keyframes af-success-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.af-success-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--live);
  background: var(--live-soft);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.af-success h1 {
  font-family: var(--font-bn);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 12px;
  text-wrap: balance;
}
body.lang-en .af-success h1 { font-family: var(--font-display); letter-spacing: -0.03em; }
.af-success-sub {
  font-size: 15.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 26px;
  text-wrap: pretty;
}
.af-success-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  background: var(--paper);
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 26px;
}
.af-success-id strong { color: var(--ink); }
.af-success-actions {
  display: flex; gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.af-success-actions .btn {
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 13.5px;
}
.af-success-actions .btn-ink { background: var(--ink); color: var(--paper); }
.af-success-actions .btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.af-success-next {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  text-align: left;
  border: 1px dashed var(--line);
}
.af-success-next h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--asb-orange);
  margin-bottom: 12px;
}
.af-success-next-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.af-success-next-item {
  display: flex; gap: 10px; align-items: start;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.af-success-next-item strong { color: var(--ink); display: block; margin-bottom: 1px; }
.af-success-next-num {
  width: 22px; height: 22px;
  background: var(--asb-navy);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Similar jobs after submit */
.af-similar {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  margin-top: 16px;
}
.af-similar h3 {
  font-family: var(--font-bn);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
}
body.lang-en .af-similar h3 { font-family: var(--font-display); }
.af-similar p { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.af-similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 600px) { .af-similar-grid { grid-template-columns: 1fr; } }
.af-similar-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.af-similar-card:hover {
  border-color: var(--asb-orange);
  transform: translateX(3px);
}
.af-similar-card-logo {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.af-similar-card-text { flex: 1; min-width: 0; }
.af-similar-card-co { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.af-similar-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.af-similar-card-match {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--asb-orange);
  letter-spacing: -0.02em;
}
