/* ════════════════════════════════════════════════
   Faster Hiring — Main Stylesheet (RTL / Arabic)
   ════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --fh-primary:       #1a56db;
  --fh-primary-dark:  #1341a8;
  --fh-accent:        #10b981;
  --fh-warning:       #f59e0b;
  --fh-danger:        #ef4444;
  --fh-bg:            #f8fafc;
  --fh-section-bg:    #f1f5f9;
  --fh-card-bg:       #ffffff;
  --fh-surface:       #ffffff;
  --fh-border:        #e5e7eb;
  --fh-text:          #111827;
  --fh-text-muted:    #6b7280;
  --fh-muted:         #6b7280;
  --fh-radius:        0.875rem;
  --fh-shadow:        0 2px 16px rgba(0,0,0,.07);
  --fh-shadow-lg:     0 8px 32px rgba(0,0,0,.10);
  --fh-nav-height:    70px;
  /* dark mode transition */
  color-scheme: light;
}

/* ══════════ DARK MODE TOKENS ══════════ */
[data-theme="dark"] {
  --fh-bg:            #0f1117;
  --fh-section-bg:    #161b27;
  --fh-card-bg:       #1e2433;
  --fh-surface:       #1e2433;
  --fh-border:        #2d3449;
  --fh-text:          #e8eaf0;
  --fh-text-muted:    #9aa3b8;
  --fh-muted:         #9aa3b8;
  --fh-shadow:        0 2px 16px rgba(0,0,0,.35);
  --fh-shadow-lg:     0 8px 32px rgba(0,0,0,.50);
  color-scheme: dark;
}

/* ── Dark: body & base ── */
[data-theme="dark"] body {
  background: var(--fh-bg);
  color: var(--fh-text);
}

/* ── Dark: navbar ── */
[data-theme="dark"] .fh-navbar {
  background: rgba(15,17,23,.95);
  border-bottom-color: var(--fh-border);
}
[data-theme="dark"] .fh-navbar .nav-link {
  color: var(--fh-text) !important;
}
[data-theme="dark"] .fh-navbar .nav-link:hover,
[data-theme="dark"] .fh-navbar .nav-link.active {
  background: rgba(26,86,219,.18);
  color: #93c5fd !important;
}
[data-theme="dark"] .fh-navbar .dropdown-menu {
  background: var(--fh-card-bg);
  border-color: var(--fh-border);
}
[data-theme="dark"] .fh-navbar .dropdown-item {
  color: var(--fh-text);
}
[data-theme="dark"] .fh-navbar .dropdown-item:hover {
  background: rgba(26,86,219,.18);
}

/* ── Dark: hero ── */
[data-theme="dark"] .fh-hero {
  background: linear-gradient(135deg, #0f1117 0%, #161b27 100%);
}
[data-theme="dark"] .fh-hero-card {
  background: var(--fh-card-bg);
  border-color: var(--fh-border);
}

/* ── Dark: sections ── */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .fh-stats { background: var(--fh-bg) !important; }
[data-theme="dark"] .fh-section-bg { background: var(--fh-section-bg) !important; }

/* ── Dark: cards ── */
[data-theme="dark"] .fh-feature-card,
[data-theme="dark"] .fh-value-card,
[data-theme="dark"] .fh-insight-card,
[data-theme="dark"] .fh-price-card,
[data-theme="dark"] .fh-register-card,
[data-theme="dark"] .fh-service-item,
[data-theme="dark"] .fh-dual-cta-card,
[data-theme="dark"] .fh-step {
  background: var(--fh-card-bg);
  border-color: var(--fh-border);
}

[data-theme="dark"] .fh-price-card-featured {
  background: linear-gradient(160deg, #0d2b23 0%, var(--fh-card-bg) 60%);
}

[data-theme="dark"] .fh-enhance-card {
  background: linear-gradient(135deg, rgba(26,86,219,.08) 0%, rgba(16,185,129,.08) 100%);
  border-color: rgba(26,86,219,.3);
}

/* ── Dark: accordion ── */
[data-theme="dark"] .fh-accordion-item {
  background: var(--fh-card-bg);
  border-color: var(--fh-border);
}
[data-theme="dark"] .accordion-button {
  background: var(--fh-card-bg);
  color: var(--fh-text);
}
[data-theme="dark"] .accordion-button:not(.collapsed) {
  background: rgba(26,86,219,.12);
  color: #93c5fd;
}
[data-theme="dark"] .accordion-body {
  background: var(--fh-card-bg);
  color: var(--fh-text-muted);
}

/* ── Dark: footer ── */
[data-theme="dark"] .fh-footer {
  background: #080b12;
  border-top-color: var(--fh-border);
}
[data-theme="dark"] .fh-footer-links a,
[data-theme="dark"] .fh-footer-inline-link {
  color: var(--fh-text-muted);
}

/* ── Dark: form controls ── */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background: var(--fh-card-bg);
  border-color: var(--fh-border);
  color: var(--fh-text);
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background: var(--fh-card-bg);
  border-color: var(--fh-primary);
  color: var(--fh-text);
  box-shadow: 0 0 0 .2rem rgba(26,86,219,.25);
}

/* ── Dark: progress bars ── */
[data-theme="dark"] .progress {
  background: var(--fh-border);
}

/* ── Dark: badges ── */
[data-theme="dark"] .fh-badge-soft {
  background: rgba(26,86,219,.2);
  color: #93c5fd;
}
[data-theme="dark"] .fh-badge-success-soft {
  background: rgba(16,185,129,.2);
  color: #6ee7b7;
}

/* ── Dark: divider ── */
[data-theme="dark"] .fh-divider,
[data-theme="dark"] hr {
  border-color: var(--fh-border);
}

/* ── Dark: muted text ── */
[data-theme="dark"] .text-muted {
  color: var(--fh-text-muted) !important;
}

/* ══════════ THEME TOGGLE BUTTON ══════════ */
.fh-theme-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--fh-border);
  background: transparent;
  color: var(--fh-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: background .2s, border-color .2s, transform .2s;
  padding: 0;
}
.fh-theme-btn:hover {
  background: rgba(26,86,219,.1);
  border-color: var(--fh-primary);
  transform: rotate(15deg);
}
[data-theme="dark"] .fh-theme-btn {
  border-color: var(--fh-border);
  color: #f0c040;
}
[data-theme="dark"] .fh-theme-btn:hover {
  background: rgba(240,192,64,.12);
  border-color: #f0c040;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--fh-bg);
  color: var(--fh-text);
  line-height: 1.7;
}

/* ── Spacing helper ── */
.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* ══════════ NAVBAR ══════════ */
.fh-navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fh-border);
  height: var(--fh-nav-height);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.fh-navbar .nav-link {
  color: var(--fh-text) !important;
  font-weight: 600;
  font-size: .93rem;
  padding: .5rem .9rem !important;
  border-radius: .5rem;
  transition: background .15s, color .15s;
}

.fh-navbar .nav-link:hover,
.fh-navbar .nav-link.active {
  background: rgba(26,86,219,.08);
  color: var(--fh-primary) !important;
}

.fh-navbar .dropdown-menu {
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-lg);
  min-width: 200px;
}

.fh-navbar .dropdown-item {
  font-weight: 500;
  border-radius: .5rem;
  margin: 2px 4px;
}

.fh-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  border-radius: .6rem;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(26,86,219,.3);
}

.fh-brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.01em;
}

/* ══════════ BUTTONS ══════════ */
.btn-fh-primary {
  background: linear-gradient(135deg, var(--fh-primary) 0%, var(--fh-primary-dark) 100%);
  color: #fff !important;
  border: none;
  border-radius: .6rem;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
}

.btn-fh-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,86,219,.45);
}

.btn-white {
  background: #fff;
  color: var(--fh-primary) !important;
  border: none;
  border-radius: .6rem;
  font-weight: 700;
}

.btn-outline-white {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: .6rem;
  font-weight: 700;
}

.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ══════════ BADGES ══════════ */
.fh-badge-soft {
  background: rgba(26,86,219,.1);
  color: var(--fh-primary);
  font-size: .78rem;
  font-weight: 700;
  padding: .4em 1em;
  border-radius: 50px;
}

.fh-badge-accent {
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .4em 1em;
  border-radius: 50px;
}

/* ══════════ HERO ══════════ */
.fh-hero {
  min-height: 100vh;
  padding-top: calc(var(--fh-nav-height) + 2rem);
  padding-bottom: 4rem;
  background: linear-gradient(155deg, #f0f5ff 0%, #fff 50%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}

.fh-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,.08) 0%, transparent 70%);
  top: -100px; left: -200px;
  pointer-events: none;
}

.fh-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--fh-text);
}

.fh-hero-sub {
  font-size: 1.1rem;
  color: var(--fh-muted);
  max-width: 520px;
}

.fh-gradient-text {
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero visual cards */
.fh-hero-visual {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fh-hero-card {
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--fh-shadow-lg);
  min-width: 130px;
}

.fh-hero-icon { font-size: 2.5rem; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.fh-card-float { animation: float 3s ease-in-out infinite; }
.fh-delay-1    { animation-delay: .8s; }
.fh-delay-2    { animation-delay: 1.6s; }

/* ══════════ STATS ══════════ */
.fh-stat-item { padding: 1.5rem; }

.fh-stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--fh-primary);
  line-height: 1;
}

.fh-stat-label {
  font-size: .9rem;
  color: var(--fh-muted);
  font-weight: 600;
  margin-top: .4rem;
}

/* ══════════ SECTION COMMON ══════════ */
.fh-section-bg { background: var(--fh-bg); }

.fh-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--fh-text);
}

.fh-section-sub {
  color: var(--fh-muted);
  max-width: 540px;
  font-size: 1rem;
}

.fh-divider { border-color: var(--fh-border); }

/* ══════════ FEATURE CARDS ══════════ */
.fh-feature-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.fh-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fh-shadow-lg);
}

.fh-feature-icon {
  width: 52px; height: 52px;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.fh-feature-link {
  color: var(--fh-primary);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}

.fh-feature-link:hover { text-decoration: underline; }

/* ══════════ SOFT COLOR HELPERS ══════════ */
.bg-primary-soft  { background: rgba(26,86,219,.1); color: var(--fh-primary); }
.bg-success-soft  { background: rgba(16,185,129,.1); color: #10b981; }
.bg-warning-soft  { background: rgba(245,158,11,.1); color: #f59e0b; }
.bg-danger-soft   { background: rgba(239,68,68,.1); color: #ef4444; }

/* ══════════ STEPS ══════════ */
.fh-step-num {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(26,86,219,.3);
}

/* ══════════ CTA SECTION ══════════ */
.fh-cta-section { background: var(--fh-bg); }

.fh-cta-card {
  background: linear-gradient(135deg, var(--fh-primary) 0%, #0d47a1 100%);
  border-radius: calc(var(--fh-radius) * 2);
  box-shadow: 0 12px 40px rgba(26,86,219,.35);
}

.fh-cta-icon {
  font-size: 3.5rem;
  color: rgba(255,255,255,.8);
  display: block;
}

.text-white-75 { color: rgba(255,255,255,.8) !important; }

/* ══════════ AUDIT PREVIEW ══════════ */
.fh-audit-preview {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow-lg);
}

.fh-score-circle {
  display: flex;
  align-items: baseline;
  gap: .25rem;
}

.fh-score-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--fh-primary);
}

.fh-score-max {
  font-size: 1rem;
  color: var(--fh-muted);
}

.fh-audit-bar-row {
  display: flex;
  align-items: center;
}

.fh-progress-sm {
  height: 6px !important;
  border-radius: 50px;
}

/* ══════════ PAGE HEADER ══════════ */
.fh-page-header {
  padding-top: calc(var(--fh-nav-height) + 3.5rem);
  padding-bottom: 3rem;
  background: linear-gradient(160deg, #f0f5ff 0%, #fff 100%);
  border-bottom: 1px solid var(--fh-border);
}

.fh-page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
}

.fh-page-sub {
  color: var(--fh-muted);
  max-width: 560px;
  font-size: 1.05rem;
}

.fh-main { padding-top: 0; }

/* ══════════ CARDS ══════════ */
.fh-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow);
}

/* ══════════ DROPZONE ══════════ */
.fh-dropzone {
  border: 2px dashed var(--fh-primary);
  border-radius: var(--fh-radius);
  background: rgba(26,86,219,.03);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  position: relative;
}

.fh-dropzone:hover { background: rgba(26,86,219,.07); }

.fh-dropzone-icon { font-size: 3rem; color: var(--fh-primary); }

.fh-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.fh-file-name-display {
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: .5rem;
  padding: .6rem 1rem;
  font-weight: 600;
}

/* ══════════ AUDIT RESULTS ══════════ */
.fh-alert-security {
  background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--fh-radius);
  color: var(--fh-text);
}

.fh-big-score-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}

.fh-score-high   { background: rgba(16,185,129,.12); border: 3px solid #10b981; }
.fh-score-medium { background: rgba(245,158,11,.12); border: 3px solid #f59e0b; }
.fh-score-low    { background: rgba(239,68,68,.12);  border: 3px solid #ef4444; }

.fh-big-score-num { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.fh-big-score-label { font-size: .8rem; color: var(--fh-muted); }

.fh-score-mini {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
}

.fh-check-list {
  list-style: none;
  padding-right: 0;
  padding-left: 0;
  margin: 0;
}

.fh-check-list li { padding: .35rem 0; font-size: .92rem; }

.fh-recommendation-card {
  background: linear-gradient(135deg, rgba(26,86,219,.04), rgba(16,185,129,.04));
  border: 1px solid rgba(26,86,219,.15);
}

.fh-mini-step {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 auto;
}

.fh-how-card {
  background: rgba(26,86,219,.03);
  border: 1px solid rgba(26,86,219,.12);
  border-radius: var(--fh-radius);
}

/* ══════════ JOB AUDIT ══════════ */
.fh-textarea {
  font-family: 'Cairo', sans-serif;
  border-radius: var(--fh-radius);
  border: 1px solid var(--fh-border);
  resize: vertical;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}

.fh-textarea:focus {
  border-color: var(--fh-primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
  outline: none;
}

.fh-bias-table thead th {
  background: rgba(239,68,68,.06);
  font-weight: 700;
  font-size: .88rem;
}

/* ══════════ SURVEY ══════════ */
.fh-stats-bar {
  background: var(--fh-card-bg);
  border-bottom: 1px solid var(--fh-border);
  box-shadow: var(--fh-shadow);
}

.fh-stats-bar-label { font-size: .92rem; font-weight: 600; }

.fh-survey-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: calc(var(--fh-radius) * 1.5);
  overflow: hidden;
  box-shadow: var(--fh-shadow);
}

.fh-survey-card-header { padding: 2rem 2rem 0; }

.fh-survey-icon { font-size: 2.5rem; }

.fh-survey-form-wrap { padding: 0 1rem; }

.fh-data-table { font-size: .83rem; }

/* ══════════ FAQ ══════════ */
.fh-faq-cat-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--fh-text);
  border-right: 4px solid var(--fh-primary);
  padding-right: .75rem;
}

.fh-accordion .accordion-item.fh-accordion-item {
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius) !important;
  margin-bottom: .5rem;
  overflow: hidden;
}

.fh-accordion .accordion-button {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: .97rem;
  background: var(--fh-card-bg);
  color: var(--fh-text);
}

.fh-accordion .accordion-button:not(.collapsed) {
  background: rgba(26,86,219,.05);
  color: var(--fh-primary);
  box-shadow: none;
}

.fh-accordion .accordion-button::after {
  /* Bootstrap RTL flips this automatically */
}

.fh-contact-cta {
  background: linear-gradient(135deg, rgba(26,86,219,.05), rgba(16,185,129,.05));
  border: 1px solid rgba(26,86,219,.12);
  border-radius: calc(var(--fh-radius) * 2);
}

.fh-contact-icon {
  font-size: 3rem;
  color: var(--fh-primary);
  display: block;
}

/* ══════════ PRIVACY ══════════ */
.fh-gdpr-banner {
  background: rgba(26,86,219,.05);
  border: 1px solid rgba(26,86,219,.18);
  border-radius: var(--fh-radius);
}

.fh-privacy-title {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--fh-border);
}

.fh-data-item {
  border-radius: var(--fh-radius);
  padding: 1.25rem;
}

.fh-data-temporary { background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.2); }
.fh-data-minimal   { background: rgba(26,86,219,.05); border: 1px solid rgba(26,86,219,.15); }

.fh-not-collected {
  background: rgba(16,185,129,.05);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--fh-radius);
}

.fh-use-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.fh-security-badge {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  transition: box-shadow .2s;
}

.fh-security-badge:hover { box-shadow: var(--fh-shadow-lg); }

.fh-third-party-table thead th {
  background: var(--fh-bg);
  font-weight: 700;
  font-size: .88rem;
}

.fh-contact-rights {
  background: rgba(26,86,219,.04);
  border: 1px solid rgba(26,86,219,.12);
  border-radius: .6rem;
}

/* ══════════ FOOTER ══════════ */
.fh-footer {
  background: #111827;
  color: #d1d5db;
}

.fh-brand-name-footer {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}

.fh-footer-links { margin: 0; padding: 0; list-style: none; }
.fh-footer-links li { margin-bottom: .4rem; }
.fh-footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s;
}
.fh-footer-links a:hover { color: #fff; }

.fh-footer-inline-link {
  color: #9ca3af;
  text-decoration: none;
}
.fh-footer-inline-link:hover { color: #fff; }

/* ══════════ PRICING ══════════ */
.fh-pricing-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.fh-pricing-card:hover {
  box-shadow: var(--fh-shadow-lg);
  transform: translateY(-3px);
}
.fh-pricing-featured {
  border-color: var(--fh-primary);
  box-shadow: 0 0 0 2px var(--fh-primary), var(--fh-shadow-lg);
}
.fh-pricing-badge {
  position: absolute;
  top: -13px;
  right: 1.5rem;
  background: var(--fh-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 99px;
  letter-spacing: .03em;
}
.fh-pricing-header { text-align: center; margin-bottom: 1.5rem; }
.fh-pricing-icon { font-size: 2.2rem; }
.fh-pricing-amount { margin-top: .75rem; line-height: 1; }
.fh-price-value { font-size: 2.4rem; font-weight: 900; color: var(--fh-text); }
.fh-price-currency { font-size: 1rem; color: var(--fh-text-muted); }
.fh-price-period { display: block; font-size: .85rem; color: var(--fh-text-muted); margin-top: .2rem; }
.fh-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.fh-pricing-features li {
  padding: .45rem 0;
  font-size: .92rem;
  border-bottom: 1px solid var(--fh-border);
  display: flex;
  align-items: center;
}
.fh-pricing-features li:last-child { border-bottom: none; }
.fh-pricing-enterprise {
  background: linear-gradient(135deg, rgba(26,86,219,.08) 0%, rgba(16,185,129,.08) 100%);
  border: 1px solid var(--fh-border);
}
.fh-enterprise-icon {
  font-size: 2.5rem;
  color: var(--fh-primary);
  line-height: 1;
}
[data-theme="dark"] .fh-pricing-card { background: var(--fh-card-bg); border-color: var(--fh-border); }
[data-theme="dark"] .fh-pricing-enterprise { background: rgba(26,86,219,.12); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 768px) {
  .fh-hero { min-height: auto; padding-top: calc(var(--fh-nav-height) + 1.5rem); }
  .fh-hero-visual { height: auto; }
  .py-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}

/* ══════════ DUAL CTA (Hero) ══════════ */
.fh-dual-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.fh-dual-cta-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--fh-shadow);
  transition: box-shadow .2s;
}

.fh-dual-cta-card:hover { box-shadow: var(--fh-shadow-lg); }

.fh-cta-candidate { border-right: 4px solid var(--fh-primary); }
.fh-cta-recruiter { border-right: 4px solid var(--fh-accent); }

.fh-dual-cta-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-top: .2rem;
}

.fh-cta-candidate .fh-dual-cta-icon {
  background: rgba(26,86,219,.1);
  color: var(--fh-primary);
}
.fh-cta-recruiter .fh-dual-cta-icon {
  background: rgba(16,185,129,.1);
  color: var(--fh-accent);
}

/* ══════════ DASHBOARD CAROUSEL (Hero) ══════════ */
.fh-dashboard-carousel {
  border-radius: var(--fh-radius);
  overflow: hidden;
  box-shadow: var(--fh-shadow-lg);
}
.fh-carousel-img {
  display: block;
  border-radius: var(--fh-radius);
}
.fh-dashboard-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--fh-primary);
  width: 24px;
  height: 4px;
  border-radius: 2px;
  opacity: .45;
}
.fh-dashboard-carousel .carousel-indicators .active {
  opacity: 1;
}
.fh-carousel-caption {
  bottom: 12px;
  background: none;
  padding: 0;
}
.fh-dashboard-carousel .carousel-control-prev-icon,
.fh-dashboard-carousel .carousel-control-next-icon {
  background-color: rgba(26,86,219,.7);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  background-size: 55%;
}
[data-theme="dark"] .fh-dashboard-carousel {
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

/* ══════════ AUTH PAGE ══════════ */
.fh-auth-wrapper {
  min-height: calc(100vh - 72px);
  background: var(--fh-bg);
}

/* Card */
.fh-auth-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--fh-shadow-lg);
}
@media (max-width: 576px) {
  .fh-auth-card { padding: 1.5rem 1.25rem; }
}

/* Path tabs (segmented control) — Academic / Professional */
.fh-auth-path-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-radius: .6rem;
  padding: 4px;
  gap: 4px;
}
.fh-auth-path-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .75rem;
  border-radius: .45rem;
  font-weight: 600;
  font-size: .82rem;
  text-decoration: none;
  color: var(--fh-text-muted);
  transition: background .15s, color .15s;
}
.fh-auth-path-tab:hover:not(.active) {
  background: var(--fh-border);
  color: var(--fh-text);
}
.fh-auth-path-tab.fh-path-academic.active {
  background: #b8862e;
  color: #fff;
}
.fh-auth-path-tab.fh-path-professional.active {
  background: var(--fh-accent);
  color: #fff;
}

/* Section label inside the register form (org info vs recruiter info) */
.fh-form-section-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--fh-text-muted);
  margin: .25rem 0 .6rem;
}

/* Role tabs (segmented control) */
.fh-auth-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-radius: .6rem;
  padding: 4px;
  gap: 4px;
}
.fh-auth-role-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .75rem;
  border-radius: .45rem;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  color: var(--fh-text-muted);
  transition: background .15s, color .15s;
}
.fh-auth-role-tab:hover:not(.active) {
  background: var(--fh-border);
  color: var(--fh-text);
}
.fh-auth-role-tab.fh-role-candidate.active {
  background: var(--fh-primary);
  color: #fff;
}
.fh-auth-role-tab.fh-role-recruiter.active {
  background: var(--fh-accent);
  color: #fff;
}

/* "أو" divider */
.fh-auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--fh-text-muted);
  font-size: .8rem;
}
.fh-auth-divider::before,
.fh-auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--fh-border);
}

/* OAuth buttons */
.fh-btn-linkedin {
  background: #0a66c2;
  color: #fff !important;
  border: none;
  font-weight: 600;
  padding: .6rem 1rem;
  border-radius: .6rem;
  transition: background .15s;
}
.fh-btn-linkedin:hover { background: #004182; }

.fh-btn-google {
  background: var(--fh-surface);
  color: var(--fh-text) !important;
  border: 1px solid var(--fh-border);
  font-weight: 600;
  padding: .6rem 1rem;
  border-radius: .6rem;
  transition: background .15s, box-shadow .15s;
}
.fh-btn-google:hover {
  background: var(--fh-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Form inputs */
.fh-auth-input {
  background: var(--fh-bg);
  border: 1.5px solid var(--fh-border);
  border-radius: .55rem;
  color: var(--fh-text);
  padding: .6rem .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.fh-auth-input:focus {
  border-color: var(--fh-primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
  background: var(--fh-surface);
  color: var(--fh-text);
  outline: none;
}
[data-theme="dark"] .fh-auth-input {
  background: var(--fh-bg);
  color: var(--fh-text);
}

/* Password show/hide toggle (RTL: positioned on left side) */
.fh-pwd-toggle {
  position: absolute;
  top: 50%;
  left: .6rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: .2rem .4rem;
  color: var(--fh-text-muted);
  line-height: 1;
  z-index: 5;
}
.fh-pwd-toggle:hover { color: var(--fh-primary); }
/* Push text away from the toggle icon */
.fh-auth-input { padding-left: 2.4rem; }

/* Password strength bar */
.fh-pwd-track {
  height: 4px;
  background: var(--fh-border);
  border-radius: 2px;
  overflow: hidden;
}
.fh-pwd-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s ease, background .3s ease;
}

/* ══════════ BTN SUCCESS ══════════ */
.btn-fh-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  border: none;
  border-radius: .6rem;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(16,185,129,.35);
}
.btn-fh-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16,185,129,.45);
}
.btn-outline-success {
  border-radius: .6rem !important;
  font-weight: 700 !important;
}

/* ══════════ BADGE SUCCESS SOFT ══════════ */
.fh-badge-success-soft {
  background: rgba(16,185,129,.1);
  color: #059669;
  font-size: .78rem;
  font-weight: 700;
  padding: .4em 1em;
  border-radius: 50px;
}

/* ══════════ GRADIENT TEXT GREEN ══════════ */
.fh-gradient-text-green {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════ VALUE CARDS (Candidates section) ══════════ */
.fh-value-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.fh-value-card:hover { transform: translateY(-3px); box-shadow: var(--fh-shadow-lg); }

.fh-value-icon {
  width: 46px; height: 46px;
  border-radius: .7rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* ══════════ SERVICES GRID (Recruiters section) ══════════ */
.fh-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .fh-services-grid { grid-template-columns: 1fr; }
}

.fh-service-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.1rem 1.2rem;
  transition: box-shadow .2s;
}
.fh-service-item:hover { box-shadow: var(--fh-shadow-lg); }

.fh-service-num {
  width: 30px; height: 30px; min-width: 30px;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 900;
  margin-top: .1rem;
}

.fh-service-body p { line-height: 1.5; }

/* ══════════ HOW IT WORKS TABS ══════════ */
.fh-tabs .nav-link {
  border-radius: 50px !important;
  font-weight: 700;
  padding: .6rem 1.8rem;
  color: var(--fh-text);
  border: 1px solid var(--fh-border);
  margin: 0 .3rem;
  transition: all .2s;
}
.fh-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(26,86,219,.3);
}

.fh-step-num-green {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 4px 12px rgba(16,185,129,.3) !important;
}

/* ══════════ REGISTER SECTION ══════════ */
.fh-register-section { background: var(--fh-bg); }

.fh-register-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: calc(var(--fh-radius) * 2);
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
}
.fh-register-card:hover { transform: translateY(-5px); box-shadow: var(--fh-shadow-lg); }

.fh-register-card-candidate { border-top: 4px solid var(--fh-primary); }
.fh-register-card-recruiter { border-top: 4px solid var(--fh-accent); }

.fh-register-icon {
  width: 72px; height: 72px;
  background: rgba(26,86,219,.1);
  color: var(--fh-primary);
  border-radius: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto;
}

.fh-register-icon-green {
  background: rgba(16,185,129,.1) !important;
  color: var(--fh-accent) !important;
}

.fh-register-perks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fh-register-perks li {
  padding: .35rem 0;
  font-size: .93rem;
}

/* ══════════ PURPLE HELPER ══════════ */
.text-purple { color: #7c3aed !important; }
.fh-service-item .bi-shield-fill-check { color: #7c3aed; }

/* ══════════ SURVEY INSIGHT CARDS ══════════ */
.fh-insights { background: var(--fh-section-bg, #f8faff); }

.fh-insight-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.fh-insight-card:hover { transform: translateY(-4px); box-shadow: var(--fh-shadow-lg); }

.fh-insight-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
}
.fh-insight-recruiter::before { background: linear-gradient(90deg, var(--fh-primary), #60a5fa); }
.fh-insight-candidate::before { background: linear-gradient(90deg, var(--fh-accent), #34d399); }

.fh-insight-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(26,86,219,.08);
  color: var(--fh-primary);
  font-size: .72rem;
  font-weight: 700;
  padding: .25em .8em;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.fh-insight-tag-candidate {
  background: rgba(16,185,129,.08);
  color: #059669;
}

.fh-insight-pct {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--fh-primary);
  margin-bottom: .75rem;
  font-feature-settings: "tnum";
}
.fh-insight-pct-candidate { color: var(--fh-accent); }

.fh-insight-unit {
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: .15rem;
}

.fh-insight-text {
  color: var(--fh-text-muted, #6b7280);
  font-size: .9rem;
  line-height: 1.65;
  margin: 0;
}

/* ══════════ RESUME ENHANCEMENT CARD ══════════ */
.fh-enhance-card {
  background: linear-gradient(135deg, rgba(26,86,219,.05) 0%, rgba(16,185,129,.05) 100%);
  border: 2px solid rgba(26,86,219,.2);
  border-radius: var(--fh-radius);
  padding: 1.4rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.fh-enhance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,86,219,.03), rgba(16,185,129,.03));
  pointer-events: none;
}
.fh-enhance-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
}
.fh-badge-premium {
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .3em .75em;
  border-radius: 50px;
  letter-spacing: .04em;
}

/* ══════════ PRICING CARDS ══════════ */
.fh-price-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: calc(var(--fh-radius) * 1.5);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.fh-price-card:hover { transform: translateY(-5px); box-shadow: var(--fh-shadow-lg); }

.fh-price-card-featured {
  border: 2px solid var(--fh-accent);
  background: linear-gradient(160deg, #f0fdf9 0%, #fff 60%);
  box-shadow: 0 8px 30px rgba(16,185,129,.18);
}

.fh-price-badge-popular {
  position: absolute;
  top: 1.1rem; left: 1.2rem;
  background: linear-gradient(135deg, var(--fh-accent), #059669);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: .3em 1em;
  border-radius: 50px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.fh-price-header { text-align: center; margin-bottom: 1.5rem; }

.fh-price-icon {
  width: 54px; height: 54px;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto;
}

.fh-price-amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--fh-primary);
  line-height: 1;
  margin-bottom: .2rem;
}
.fh-price-cur {
  font-size: 1rem;
  font-weight: 700;
  margin-right: .25rem;
}
.fh-price-period {
  font-size: .78rem;
  color: var(--fh-text-muted, #6b7280);
}
.fh-price-soon {
  font-size: 1.5rem;
  color: #9ca3af;
}
.fh-price-contact {
  font-size: 1.2rem;
  color: #ef4444;
}

.fh-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.fh-price-features li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .4rem 0;
  font-size: .875rem;
  border-bottom: 1px solid var(--fh-border);
  line-height: 1.5;
}
.fh-price-features li:last-child { border-bottom: none; }
.fh-price-features li i { flex-shrink: 0; margin-top: .15rem; }
.fh-price-feat-off {
  opacity: .4;
}
.fh-price-feat-off i { color: #9ca3af !important; }

/* ══════════ COMPARISON TABLE ══════════ */
.fh-compare-wrap {
  border-radius: var(--fh-radius);
  overflow: hidden;
  box-shadow: var(--fh-shadow-lg);
  border: 1px solid var(--fh-border);
}

.fh-compare-table {
  margin: 0;
  font-size: .9rem;
}
.fh-compare-table thead tr {
  background: var(--fh-section-bg);
}
.fh-compare-table thead th {
  border-bottom: 2px solid var(--fh-border);
  padding: 1rem .75rem;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}
.fh-compare-table tbody tr {
  border-bottom: 1px solid var(--fh-border);
  transition: background .15s;
}
.fh-compare-table tbody tr:last-child { border-bottom: none; }
.fh-compare-table tbody tr:hover { background: rgba(26,86,219,.03); }
.fh-compare-table td {
  padding: .85rem .75rem;
  vertical-align: middle;
}

.fh-compare-feature-col { min-width: 230px; }
.fh-compare-row-label { font-weight: 600; color: var(--fh-text); }

/* Highlighted "us" column */
.fh-compare-us {
  background: rgba(26,86,219,.05);
  border-left: 3px solid var(--fh-primary);
  border-right: 3px solid var(--fh-primary);
}
[data-theme="dark"] .fh-compare-us {
  background: rgba(26,86,219,.12);
}

.fh-compare-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--fh-text);
}
.fh-compare-brand i { font-size: 1.2rem; }

.fh-compare-brand-us {
  color: var(--fh-primary);
  font-size: .85rem;
}
.fh-compare-brand-us i { font-size: 1.4rem; }

/* Cell status indicators */
.fh-cmp-yes {
  display: inline-block;
  background: rgba(16,185,129,.12);
  color: #059669;
  font-size: .75rem;
  font-weight: 800;
  padding: .25em .8em;
  border-radius: 50px;
  white-space: nowrap;
}
.fh-cmp-partial {
  display: inline-block;
  background: rgba(245,158,11,.12);
  color: #b45309;
  font-size: .75rem;
  font-weight: 800;
  padding: .25em .8em;
  border-radius: 50px;
  white-space: nowrap;
}
.fh-cmp-no {
  display: inline-block;
  background: rgba(239,68,68,.1);
  color: #b91c1c;
  font-size: .85rem;
  font-weight: 900;
  padding: .2em .7em;
  border-radius: 50px;
}

/* Dark overrides for table */
[data-theme="dark"] .fh-compare-table thead tr { background: var(--fh-section-bg); }
[data-theme="dark"] .fh-compare-table thead th,
[data-theme="dark"] .fh-compare-table td { border-color: var(--fh-border); }
[data-theme="dark"] .fh-compare-wrap { background: var(--fh-card-bg); }

/* ══════════ TECH CARDS ══════════ */
.fh-tech-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.fh-tech-card:hover { transform: translateY(-4px); box-shadow: var(--fh-shadow-lg); }

.fh-tech-card-featured {
  border: 2px solid rgba(26,86,219,.3);
  background: linear-gradient(160deg, rgba(26,86,219,.04) 0%, var(--fh-card-bg) 60%);
}
[data-theme="dark"] .fh-tech-card-featured {
  background: linear-gradient(160deg, rgba(26,86,219,.1) 0%, var(--fh-card-bg) 60%);
}

.fh-tech-badge-best {
  position: absolute;
  top: .9rem; right: .9rem;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: .25em .8em;
  border-radius: 50px;
  letter-spacing: .04em;
}

.fh-tech-icon {
  width: 56px; height: 56px;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

.fh-tech-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  padding: .3em 1em;
  border-radius: 50px;
  letter-spacing: .03em;
}
.fh-tech-pill-weak    { background: rgba(239,68,68,.1);    color: #b91c1c; }
.fh-tech-pill-medium  { background: rgba(245,158,11,.12);   color: #b45309; }
.fh-tech-pill-strong  { background: rgba(26,86,219,.1);    color: var(--fh-primary); }

/* ══════════ TECH CALLOUT ══════════ */
.fh-tech-callout {
  background: linear-gradient(135deg, rgba(26,86,219,.06) 0%, rgba(16,185,129,.06) 100%);
  border: 1px solid rgba(26,86,219,.2);
  border-radius: calc(var(--fh-radius) * 1.5);
}
[data-theme="dark"] .fh-tech-callout {
  background: linear-gradient(135deg, rgba(26,86,219,.12) 0%, rgba(16,185,129,.12) 100%);
  border-color: rgba(26,86,219,.3);
}

.fh-tech-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(26,86,219,.1);
  color: var(--fh-primary);
  font-size: .8rem;
  font-weight: 800;
  padding: .45em 1.1em;
  border-radius: 50px;
  border: 1px solid rgba(26,86,219,.2);
}
.fh-tech-badge-pill-green {
  background: rgba(16,185,129,.1);
  color: #059669;
  border-color: rgba(16,185,129,.25);
}

/* ══════════ PROBLEM / SOLUTION / VALUE SECTION ══════════ */
.fh-psv { background: var(--fh-bg); }

/* spacing helper for inner rows */
.mb-6 { margin-bottom: 4rem !important; }

/* Problem cards */
.fh-psv-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.5rem;
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
}
.fh-psv-card:hover { transform: translateY(-3px); box-shadow: var(--fh-shadow-lg); }

.fh-psv-problem { border-top: 3px solid #ef4444; }

.fh-psv-icon {
  width: 46px; height: 46px;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* Danger badge */
.fh-badge-danger-soft {
  background: rgba(239,68,68,.1);
  color: #b91c1c;
  font-size: .78rem;
  font-weight: 700;
  padding: .4em 1em;
  border-radius: 50px;
}

/* Gradient text red */
.fh-gradient-text-red {
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Solution flow steps */
.fh-solution-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fh-sol-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--fh-shadow);
  transition: box-shadow .2s;
}
.fh-sol-step:hover { box-shadow: var(--fh-shadow-lg); }

.fh-sol-num {
  width: 34px; height: 34px; min-width: 34px;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* Value pillars */
.fh-value-pillar {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: calc(var(--fh-radius) * 1.5);
  padding: 2.25rem 2rem;
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.fh-value-pillar:hover { transform: translateY(-5px); box-shadow: var(--fh-shadow-lg); }

.fh-vp-featured {
  border: 2px solid rgba(26,86,219,.25);
  background: linear-gradient(160deg, rgba(26,86,219,.04) 0%, var(--fh-card-bg) 60%);
}
[data-theme="dark"] .fh-vp-featured {
  background: linear-gradient(160deg, rgba(26,86,219,.1) 0%, var(--fh-card-bg) 60%);
}

.fh-vp-icon {
  width: 64px; height: 64px;
  border-radius: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
}

/* Dark overrides for PSV section */
[data-theme="dark"] .fh-psv-card,
[data-theme="dark"] .fh-sol-step,
[data-theme="dark"] .fh-value-pillar {
  background: var(--fh-card-bg);
  border-color: var(--fh-border);
}

/* ══════════ TEAM SECTION ══════════ */
.fh-team-card {
  background: var(--fh-card-bg);
  border: 1px solid var(--fh-border);
  border-radius: calc(var(--fh-radius) * 1.5);
  padding: 2.25rem 2rem 2rem;
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
}
.fh-team-card:hover { transform: translateY(-5px); box-shadow: var(--fh-shadow-lg); }

/* Avatar circle */
.fh-team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.fh-team-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.fh-avatar-primary { background: rgba(26,86,219,.12); }
.fh-avatar-accent  { background: rgba(16,185,129,.12); }
.fh-avatar-purple  { background: rgba(124,58,237,.12); }

.fh-avatar-initials {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.fh-avatar-primary .fh-avatar-initials { color: var(--fh-primary); }
.fh-avatar-accent  .fh-avatar-initials { color: #059669; }
.fh-avatar-purple  .fh-avatar-initials { color: #7c3aed; }

/* Role badges */
.fh-team-badge-row { min-height: 1.8rem; }

.fh-badge-role-ceo {
  background: linear-gradient(135deg, var(--fh-primary), #3b82f6);
  color: #fff;
  font-size: .7rem; font-weight: 800;
  padding: .3em 1em; border-radius: 50px;
  letter-spacing: .04em;
}
.fh-badge-role-bi {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: .7rem; font-weight: 800;
  padding: .3em 1em; border-radius: 50px;
  letter-spacing: .04em;
}
.fh-badge-role-ai {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  font-size: .7rem; font-weight: 800;
  padding: .3em 1em; border-radius: 50px;
  letter-spacing: .04em;
}

/* Title line under name */
.fh-team-title {
  color: var(--fh-muted);
  font-size: .85rem;
  font-weight: 600;
}

/* Skill tags */
.fh-team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
}
.fh-team-skills span {
  background: rgba(26,86,219,.07);
  color: var(--fh-primary);
  font-size: .7rem;
  font-weight: 700;
  padding: .3em .85em;
  border-radius: 50px;
  border: 1px solid rgba(26,86,219,.15);
  direction: ltr;
}

/* Dark overrides */
[data-theme="dark"] .fh-team-card {
  background: var(--fh-card-bg);
  border-color: var(--fh-border);
}
[data-theme="dark"] .fh-team-skills span {
  background: rgba(26,86,219,.15);
  border-color: rgba(26,86,219,.3);
  color: #93c5fd;
}

/* ═══════════════════════════════════════
   DEMO MODAL
═══════════════════════════════════════ */
.fh-demo-modal-content {
  border: none;
  border-radius: 1.25rem;
  background: var(--fh-card-bg);
  color: var(--fh-text);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.fh-demo-title-icon {
  font-size: 1.25rem;
  margin-left: .35rem;
}
.fh-demo-submit-btn {
  border-radius: .75rem;
  padding: .75rem;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform .12s, box-shadow .12s;
}
.fh-demo-submit-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,.35);
}

[data-theme="dark"] .fh-demo-modal-content .form-control,
[data-theme="dark"] .fh-demo-modal-content .form-select {
  background: var(--fh-input-bg, #1e293b);
  border-color: var(--fh-border);
  color: var(--fh-text);
}
[data-theme="dark"] .fh-demo-modal-content .form-control::placeholder {
  color: #64748b;
}
[data-theme="dark"] .fh-demo-modal-content .modal-header .btn-close {
  filter: invert(1) grayscale(1);
}

/* ═══════════════════════════════════════
   DEMO STICKY BAR
═══════════════════════════════════════ */
.fh-demo-sticky {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 1040;
  background: linear-gradient(90deg, var(--fh-primary) 0%, #1d4ed8 100%);
  padding: .75rem 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  transition: transform .3s ease;
}
.fh-demo-sticky-close {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.25);
  padding: .2rem .55rem;
  line-height: 1;
}
.fh-demo-sticky-close:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
}

/* add bottom padding to body so footer isn't hidden behind sticky bar
   (toggled by JS when bar is visible) */
body.fh-has-sticky-demo {
  padding-bottom: 60px;
}

/* ══════════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════════ */

/* Wrapper */
.fh-db-layout {
  display: flex;
  min-height: 100vh;
  background: var(--fh-bg);
}

/* Sidebar */
.fh-db-sidebar {
  width: 216px;
  flex-shrink: 0;
  background: var(--fh-surface);
  border-left: 1px solid var(--fh-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
}
.fh-db-sidebar-logo {
  padding: .85rem 1rem .7rem;
  border-bottom: 1px solid var(--fh-border);
}
.fh-db-sidebar-user {
  padding: .65rem .85rem;
  border-top: 1px solid var(--fh-border);
  margin-top: auto;
}

/* Main area */
.fh-db-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.fh-db-topbar {
  height: 60px;
  background: var(--fh-surface);
  border-bottom: 1px solid var(--fh-border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: .75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.fh-db-topbar-title { font-size: .9rem; }

/* Content */
.fh-db-content {
  flex: 1;
  padding: 1.75rem 2rem;
}

/* ── Navigation ── */
.fh-db-nav { flex: 1; padding: .2rem .45rem; overflow-y: auto; }
.fh-db-nav-section {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fh-text-muted);
  padding: .45rem .6rem .2rem;
  margin-top: .15rem;
}
.fh-db-nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .6rem;
  border-radius: .45rem;
  color: var(--fh-text-muted);
  text-decoration: none;
  font-size: .83rem;
  margin-bottom: .05rem;
  transition: background .12s, color .12s;
}
.fh-db-nav-link:hover { background: var(--fh-bg); color: var(--fh-text); }
.fh-db-nav-icon { font-size: 1rem; width: 1.25rem; text-align: center; flex-shrink: 0; }
.fh-db-nav-divider { border-color: var(--fh-border); margin: .4rem .5rem; }

/* Active state by role */
.fh-db-recruiter .fh-db-nav-link.active {
  background: rgba(26,86,219,.1);
  color: var(--fh-primary);
  font-weight: 600;
}
.fh-db-candidate .fh-db-nav-link.active {
  background: rgba(16,185,129,.1);
  color: var(--fh-accent);
  font-weight: 600;
}

/* ── Topbar icon buttons ── */
.fh-db-icon-btn {
  color: var(--fh-text-muted);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: .45rem;
  border: 1px solid var(--fh-border);
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}
.fh-db-icon-btn:hover { background: var(--fh-bg); color: var(--fh-text); }
.fh-db-user-btn {
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-radius: .5rem;
  padding: .25rem .6rem;
  color: var(--fh-text);
}
.fh-db-menu-btn {
  color: var(--fh-text-muted);
  border: 1px solid var(--fh-border);
  border-radius: .45rem;
  padding: .3rem .5rem;
  background: transparent;
}

/* ── Avatar ── */
.fh-db-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--fh-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
.fh-db-candidate .fh-db-avatar { background: var(--fh-accent); }
.fh-db-avatar-sm { width: 28px; height: 28px; font-size: .75rem; }
.fh-db-avatar-lg { width: 48px; height: 48px; font-size: 1.2rem; }
.fh-db-logout-btn {
  color: var(--fh-text-muted); padding: .25rem .4rem;
  background: none; border: none; border-radius: .35rem;
}
.fh-db-logout-btn:hover { color: #ef4444; background: rgba(239,68,68,.07); }

/* ── Role badge ── */
.fh-db-role-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.fh-db-role-tag-recruiter { background: rgba(26,86,219,.1); color: var(--fh-primary); }
.fh-db-role-tag-candidate { background: rgba(16,185,129,.1); color: var(--fh-accent); }

/* ── Page header ── */
.fh-db-page-header { margin-bottom: 1.5rem; }
.fh-db-page-header h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .2rem; }
.fh-db-page-header p { color: var(--fh-text-muted); font-size: .875rem; margin: 0; }

/* ── Stat cards ── */
.fh-db-stat-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.25rem 1.5rem;
}
.fh-db-stat-icon {
  width: 44px; height: 44px;
  border-radius: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.fh-db-stat-label { font-size: .78rem; color: var(--fh-text-muted); margin-bottom: .15rem; }
.fh-db-stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.fh-db-stat-trend { font-size: .75rem; margin-top: .25rem; }

/* ── Service cards ── */
.fh-db-service-card {
  background: var(--fh-surface);
  border: 1.5px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .15s, border-color .15s, transform .12s;
}
.fh-db-service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
  color: inherit;
}
.fh-db-recruiter .fh-db-service-card:hover { border-color: var(--fh-primary); }
.fh-db-candidate .fh-db-service-card:hover { border-color: var(--fh-accent); }
.fh-db-service-icon {
  width: 52px; height: 52px;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem; flex-shrink: 0;
}

/* ── Section container ── */
.fh-db-section {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.5rem;
}
.fh-db-section + .fh-db-section { margin-top: 1rem; }
.fh-db-section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--fh-text-muted); margin-bottom: .85rem;
}

/* ── Match score badge ── */
.fh-match-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
}
.fh-match-high { background: rgba(16,185,129,.13); color: #059669; }
.fh-match-med  { background: rgba(245,158,11,.13);  color: #d97706; }
.fh-match-low  { background: rgba(239,68,68,.13);   color: #dc2626; }

/* ── Candidate card ── */
.fh-candidate-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1rem 1.25rem;
  transition: box-shadow .12s;
}
.fh-candidate-card:hover { box-shadow: 0 2px 14px rgba(0,0,0,.07); }

/* ── Job card ── */
.fh-job-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.25rem 1.5rem;
  transition: box-shadow .12s, border-color .12s;
}
.fh-job-card:hover { box-shadow: 0 2px 14px rgba(0,0,0,.07); border-color: var(--fh-accent); }
.fh-job-logo {
  width: 44px; height: 44px; border-radius: .5rem;
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}

/* ── Skill tag ── */
.fh-skill-tag {
  display: inline-block; padding: .18rem .6rem;
  background: var(--fh-bg); border: 1px solid var(--fh-border);
  border-radius: 999px; font-size: .72rem; color: var(--fh-text-muted);
}
.fh-skill-tag.matched { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); color: #059669; }
.fh-skill-tag.missing { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.25); color: #dc2626; }

/* ── Quality bars ── */
.fh-quality-track {
  height: 8px; background: var(--fh-border);
  border-radius: 999px; overflow: hidden; flex: 1;
}
.fh-quality-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }

/* ── Circular score gauge ── */
.fh-gauge-ring { transform: rotate(-90deg); }
.fh-gauge-bg { fill: none; stroke: var(--fh-border); }
.fh-gauge-arc { fill: none; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.fh-gauge-label { font-family: 'Cairo', sans-serif; font-weight: 700; fill: var(--fh-text); }
.fh-gauge-sub { font-family: 'Cairo', sans-serif; fill: var(--fh-text-muted); }

/* ── Platform toggle cards (post job) ── */
.fh-platform-card {
  background: var(--fh-surface);
  border: 2px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color .15s;
  user-select: none;
}
.fh-platform-card.selected { border-color: var(--fh-primary); background: rgba(26,86,219,.04); }
.fh-platform-card input[type=checkbox] { display: none; }

/* ── Semantic analysis results ── */
.fh-analysis-score-block {
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-radius: .6rem; padding: .75rem 1rem;
}
.fh-suggestion-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .65rem .85rem;
  background: var(--fh-bg); border: 1px solid var(--fh-border);
  border-radius: .5rem; margin-bottom: .5rem;
}

/* ── Activity feed ── */
.fh-activity-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px solid var(--fh-border);
}
.fh-activity-item:last-child { border-bottom: none; }
.fh-activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: .35rem;
}

/* ── Dark mode overrides ── */
[data-theme="dark"] .fh-db-sidebar { background: #1e2028; border-color: #2d3040; }
[data-theme="dark"] .fh-db-topbar  { background: #1e2028; border-color: #2d3040; }
[data-theme="dark"] .fh-db-stat-card,
[data-theme="dark"] .fh-db-section,
[data-theme="dark"] .fh-candidate-card,
[data-theme="dark"] .fh-job-card,
[data-theme="dark"] .fh-db-service-card { background: #1e2028; border-color: #2d3040; }

/* ── Mobile ── */
@media (max-width: 991.98px) {
  .fh-db-sidebar { display: none; }
  .fh-db-content { padding: 1rem; }
  .fh-db-topbar  { padding: 0 1rem; }
}

/* ══════════════════════════════════════════════════
   MATCH WORKSPACE
   Recruiter-facing resume ⇄ job description matching
   dashboard: toolbar, JD panel, candidate ranking
   table and candidate detail side panel.
   ══════════════════════════════════════════════════ */

.fh-match-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.25rem;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: .9rem 1.1rem;
  margin-bottom: 1rem;
}
.fh-match-toolbar-stat { display: flex; flex-direction: column; line-height: 1.2; }
.fh-match-toolbar-stat b { font-size: 1.05rem; }
.fh-match-toolbar-stat span {
  font-size: .66rem; color: var(--fh-text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.fh-match-search { flex: 1 1 220px; min-width: 200px; }

/* ── Workspace grid: JD panel | table | detail panel ── */
.fh-match-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 0;
  gap: 1rem;
  align-items: start;
}
.fh-match-workspace.fh-detail-open { grid-template-columns: 280px minmax(0, 1fr) 380px; }
@media (max-width: 1199.98px) {
  .fh-match-workspace,
  .fh-match-workspace.fh-detail-open { grid-template-columns: 1fr; }
}

.fh-match-jd-panel,
.fh-match-table-panel {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  overflow: hidden;
}
.fh-match-jd-panel {
  position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto;
}
@media (max-width: 1199.98px) { .fh-match-jd-panel { position: static; max-height: none; } }

.fh-match-panel-header {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--fh-border);
  font-weight: 700; font-size: .82rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.fh-match-panel-body { padding: .9rem 1.1rem; }

.fh-match-jd-section + .fh-match-jd-section {
  border-top: 1px solid var(--fh-border); margin-top: .35rem; padding-top: .35rem;
}
.fh-match-jd-section-title {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: .4rem 0; font-weight: 600; font-size: .82rem; user-select: none;
}
.fh-match-jd-section-title .bi-chevron-down { transition: transform .15s; }
.fh-match-jd-section-title[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }

/* ── Candidate ranking table ── */
.fh-match-table-toolbar {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .65rem 1.1rem; border-bottom: 1px solid var(--fh-border);
}
.fh-match-table-wrap { overflow-x: auto; }
table.fh-match-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 880px; }
table.fh-match-table thead th {
  position: sticky; top: 0; background: var(--fh-surface); z-index: 2;
  text-align: start; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--fh-text-muted); font-weight: 700; padding: .6rem .75rem;
  border-bottom: 1px solid var(--fh-border); cursor: pointer; white-space: nowrap; user-select: none;
}
table.fh-match-table thead th.no-sort { cursor: default; }
table.fh-match-table thead th .bi { font-size: .65rem; opacity: .45; margin-inline-start: .2rem; }
table.fh-match-table thead th.sort-asc .bi,
table.fh-match-table thead th.sort-desc .bi { opacity: 1; color: var(--fh-primary); }
table.fh-match-table tbody td {
  padding: .6rem .75rem; border-bottom: 1px solid var(--fh-border); vertical-align: middle;
}
table.fh-match-table tbody tr { cursor: pointer; transition: background .1s; }
table.fh-match-table tbody tr:hover { background: var(--fh-bg); }
table.fh-match-table tbody tr.fh-row-selected { background: rgba(26,86,219,.06); }
table.fh-match-table tbody tr.fh-row-active { background: rgba(26,86,219,.1); box-shadow: inset 3px 0 0 var(--fh-primary); }
table.fh-match-table tbody tr[hidden] { display: none; }

.fh-rank-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.65rem; height: 1.65rem; border-radius: 50%;
  background: var(--fh-bg); border: 1px solid var(--fh-border);
  font-weight: 700; font-size: .7rem; flex-shrink: 0;
}
.fh-match-status-tag {
  font-size: .66rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap;
}
.fh-match-status-qualified { background: rgba(16,185,129,.12); color: #059669; }
.fh-match-status-failed { background: rgba(239,68,68,.1); color: #dc2626; }
.fh-match-status-error { background: rgba(245,158,11,.14); color: #b45309; }
.fh-match-status-shortlisted { background: rgba(26,86,219,.12); color: var(--fh-primary); }
.fh-match-status-rejected { background: rgba(239,68,68,.12); color: #dc2626; }

/* ── Bulk action bar ── */
.fh-bulk-bar {
  display: none; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .6rem 1.1rem; background: rgba(26,86,219,.06);
  border-bottom: 1px solid var(--fh-border); font-size: .82rem;
}
.fh-bulk-bar.active { display: flex; }

/* ── Pagination ── */
.fh-match-pagination {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: .7rem 1.1rem; border-top: 1px solid var(--fh-border); font-size: .8rem;
}

/* ── Candidate detail side panel ── */
.fh-match-detail-panel {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  position: sticky; top: 76px; max-height: calc(100vh - 96px);
  overflow-y: auto; overflow-x: hidden; display: none;
}
.fh-match-workspace.fh-detail-open .fh-match-detail-panel { display: block; }
@media (max-width: 1199.98px) {
  .fh-match-detail-panel {
    position: fixed; inset-inline-end: 0; top: 0; height: 100vh; width: min(420px, 100vw);
    z-index: 1050; max-height: none; border-radius: 0;
    transform: translateX(100%); transition: transform .2s ease;
  }
  [dir="rtl"] .fh-match-detail-panel { transform: translateX(-100%); }
  .fh-match-workspace.fh-detail-open .fh-match-detail-panel { display: block; transform: translateX(0); }
}
.fh-match-detail-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(15,17,23,.4); z-index: 1040;
}
@media (max-width: 1199.98px) {
  body.fh-detail-open .fh-match-detail-backdrop { display: block; }
}
.fh-detail-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--fh-border);
}
.fh-detail-close {
  background: none; border: none; color: var(--fh-text-muted); font-size: 1.05rem; flex-shrink: 0;
}
.fh-detail-close:hover { color: var(--fh-text); }
.fh-detail-score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .85rem 0; }
.fh-detail-score-cell {
  text-align: center; background: var(--fh-bg); border: 1px solid var(--fh-border);
  border-radius: .6rem; padding: .6rem .4rem;
}
.fh-detail-score-cell b { display: block; font-size: 1.05rem; }
.fh-detail-score-cell span { font-size: .64rem; color: var(--fh-text-muted); text-transform: uppercase; }
.fh-detail-progress-row { margin-bottom: .65rem; }
.fh-detail-progress-row .fh-detail-progress-label {
  display: flex; justify-content: space-between; font-size: .75rem; margin-bottom: .25rem;
}
.fh-detail-empty { color: var(--fh-text-muted); font-size: .8rem; }
.fh-detail-panel-nav.nav-tabs { border-bottom-color: var(--fh-border); font-size: .78rem; }
.fh-detail-panel-nav.nav-tabs .nav-link { color: var(--fh-text-muted); border: none; padding: .5rem .35rem; margin-inline-end: .75rem; }
.fh-detail-panel-nav.nav-tabs .nav-link.active { color: var(--fh-primary); border-bottom: 2px solid var(--fh-primary); background: transparent; }

/* ── Compare modal ── */
.fh-compare-table th, .fh-compare-table td { font-size: .8rem; padding: .5rem .6rem; }

/* ── Skeleton loader (perceived performance while a run executes) ── */
.fh-skeleton { position: relative; overflow: hidden; background: var(--fh-bg); border-radius: .4rem; }
.fh-skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: fh-shimmer 1.2s infinite;
}
[data-theme="dark"] .fh-skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
@keyframes fh-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ── Dark mode ── */
[data-theme="dark"] .fh-match-toolbar,
[data-theme="dark"] .fh-match-jd-panel,
[data-theme="dark"] .fh-match-table-panel,
[data-theme="dark"] .fh-match-detail-panel { background: #1e2028; border-color: #2d3040; }

/* ── Mobile ── */
@media (max-width: 767.98px) {
  .fh-match-toolbar { padding: .75rem .9rem; }
  .fh-detail-score-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════════════════
   RECRUITER HOME — SaaS overview redesign
   Compact KPI cards, quick actions, matching preview,
   mini-lists (jobs/reports/uploads/tasks/shortcuts),
   topbar quick search + workspace pill.
   ══════════════════════════════════════════════════ */

/* Topbar quick search */
.fh-db-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
}
.fh-db-search input {
  width: 100%;
  border: 1px solid var(--fh-border);
  background: var(--fh-bg);
  border-radius: .55rem;
  padding: .4rem .75rem .4rem 2.1rem;
  font-size: .82rem;
  color: var(--fh-text);
}
.fh-db-search input:focus { outline: none; border-color: var(--fh-primary); }
.fh-db-search i {
  position: absolute; top: 50%; right: .65rem; transform: translateY(-50%);
  color: var(--fh-text-muted); font-size: .85rem; pointer-events: none;
}
.fh-db-search-results {
  position: absolute; top: calc(100% + 4px); right: 0; left: 0;
  background: var(--fh-surface); border: 1px solid var(--fh-border);
  border-radius: .6rem; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  z-index: 300; overflow: hidden; display: none;
}
.fh-db-search-results.show { display: block; }
.fh-db-search-results a {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; font-size: .82rem; color: var(--fh-text);
  text-decoration: none;
}
.fh-db-search-results a:hover,
.fh-db-search-results a.active { background: var(--fh-bg); }

/* Topbar workspace pill */
.fh-db-workspace-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600;
  border: 1px solid var(--fh-border);
  color: var(--fh-text-muted);
  white-space: nowrap;
}

/* Org chip (page header) */
.fh-org-chip {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: .65rem;
  padding: .4rem .75rem;
}

/* Quick actions */
.fh-quick-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.fh-quick-action {
  flex: 1 1 160px;
  display: flex; align-items: center; gap: .6rem;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: .65rem;
  padding: .65rem .85rem;
  font-size: .82rem; font-weight: 600;
  color: var(--fh-text);
  text-decoration: none;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.fh-quick-action i { font-size: 1.05rem; color: var(--fh-primary); flex-shrink: 0; }
.fh-quick-action:hover {
  border-color: var(--fh-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transform: translateY(-1px);
  color: var(--fh-text);
}
.fh-quick-action-primary { background: var(--fh-primary); border-color: var(--fh-primary); color: #fff; }
.fh-quick-action-primary i { color: #fff; }
.fh-quick-action-primary:hover { color: #fff; opacity: .92; }

/* Compact KPI cards */
.fh-kpi-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  border-radius: .7rem;
  padding: .8rem .9rem;
  display: flex; align-items: center; gap: .65rem;
  height: 100%;
}
.fh-kpi-icon {
  width: 36px; height: 36px; border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.fh-kpi-label { font-size: .68rem; color: var(--fh-text-muted); line-height: 1.2; }
.fh-kpi-value { font-size: 1.15rem; font-weight: 700; line-height: 1.15; }

/* Compact section variant (tighter padding for dense right-column widgets) */
.fh-db-section-sm { padding: 1rem 1.1rem; }
.fh-db-section-sm + .fh-db-section-sm { margin-top: .85rem; }

/* Matching workspace preview table */
.fh-mwp-table { width: 100%; font-size: .82rem; }
.fh-mwp-table th {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--fh-text-muted); font-weight: 700; padding: 0 .5rem .5rem;
  border-bottom: 1px solid var(--fh-border);
}
.fh-mwp-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--fh-border); vertical-align: middle; }
.fh-mwp-table tr:last-child td { border-bottom: none; }

/* Generic compact mini-list item (jobs / reports / uploads / tasks / shortcuts) */
.fh-mini-list { display: flex; flex-direction: column; }
.fh-mini-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--fh-border);
}
.fh-mini-item:last-child { border-bottom: none; }
.fh-mini-icon {
  width: 30px; height: 30px; border-radius: .45rem;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.fh-mini-title { font-size: .82rem; font-weight: 600; }
.fh-mini-sub { font-size: .71rem; color: var(--fh-text-muted); }

/* Shortcut links */
.fh-shortcut-link {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .6rem; border-radius: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--fh-text);
  text-decoration: none; transition: background .12s;
}
.fh-shortcut-link:hover { background: var(--fh-bg); color: var(--fh-text); }
.fh-shortcut-link i { color: var(--fh-primary); width: 1.1rem; text-align: center; }

/* Empty state */
.fh-empty-mini { text-align: center; padding: 1rem .5rem; color: var(--fh-text-muted); font-size: .82rem; }

/* Dark mode */
[data-theme="dark"] .fh-quick-action,
[data-theme="dark"] .fh-kpi-card,
[data-theme="dark"] .fh-org-chip { background: #1e2028; border-color: #2d3040; }
[data-theme="dark"] .fh-db-search input { background: #171923; border-color: #2d3040; }
[data-theme="dark"] .fh-db-search-results { background: #1e2028; border-color: #2d3040; }

/* Responsive */
@media (max-width: 991.98px) {
  .fh-db-search { display: none; }
}
@media (max-width: 575.98px) {
  .fh-quick-action { flex: 1 1 100%; }
}
