/* ============================================================
   SUCCESS AFRICA JOBS — MAIN CSS  v2
   File : assets/css/main.css
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  --orange:        #E87722;
  --orange-light:  #F4934A;
  --orange-pale:   #FEF3EA;
  --navy:          #1B2F6E;
  --navy-light:    #2A4090;
  --navy-pale:     #EEF1FA;
  --white:         #FFFFFF;
  --grey-50:       #F9FAFB;
  --grey-100:      #F3F4F6;
  --grey-200:      #E5E7EB;
  --grey-300:      #D1D5DB;
  --grey-400:      #9CA3AF;
  --grey-500:      #6B7280;
  --grey-600:      #4B5563;
  --grey-700:      #374151;
  --grey-800:      #1F2937;
  --grey-900:      #111827;
  --success:       #059669;
  --success-bg:    #ECFDF5;
  --success-text:  #065F46;
  --warning:       #D97706;
  --warning-bg:    #FFFBEB;
  --warning-text:  #92400E;
  --danger:        #DC2626;
  --danger-bg:     #FEF2F2;
  --danger-text:   #991B1B;
  --info-bg:       #EEF1FA;
  --info-text:     #1B2F6E;
  --platinum-bg:   #EEF1FA; --platinum-text: #1B2F6E;
  --gold-bg:       #FEF3EA; --gold-text:     #923D0A;
  --silver-bg:     #F3F4F6; --silver-text:   #374151;
  --bronze-bg:     #FEF3EA; --bronze-text:   #92400E;
  --bg:            #F3F4F6;
  --bg-card:       #FFFFFF;
  --border:        #E5E7EB;
  --border-md:     #D1D5DB;
  --text-primary:  #111827;
  --text-secondary:#4B5563;
  --text-muted:    #9CA3AF;
  --text-light:    #D1D5DB;
  --sidebar-w:     224px;
  --topbar-h:      60px;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 28px rgba(0,0,0,.09), 0 4px 8px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 48px rgba(0,0,0,.11), 0 8px 16px rgba(0,0,0,.05);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); font-size: .9375rem; line-height: 1.65; color: var(--text-primary); background: var(--grey-50); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); font-size: .9375rem; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: 2.25rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.15rem; } h4 { font-size: .95rem; }

/* ------------------------------------------------------------
   3. UTILITIES
   ------------------------------------------------------------ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-8{gap:8px} .flex-gap-12{gap:12px} .flex-gap-16{gap:16px} .flex-gap-24{gap:24px}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mt-4{margin-top:4px} .mt-8{margin-top:8px} .mt-12{margin-top:12px}
.mt-16{margin-top:16px} .mt-24{margin-top:24px} .mt-32{margin-top:32px}
.mb-8{margin-bottom:8px} .mb-16{margin-bottom:16px} .mb-24{margin-bottom:24px}
.text-muted{color:var(--text-muted)} .text-secondary{color:var(--text-secondary)}
.text-orange{color:var(--orange)} .text-navy{color:var(--navy)}
.text-success{color:var(--success)} .text-danger{color:var(--danger)}
.font-500{font-weight:500} .font-600{font-weight:600} .font-700{font-weight:700}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
.divider{height:1px;background:var(--border);margin:20px 0}
.text-center{text-align:center} .text-right{text-align:right}
.w-full{width:100%} .hidden{display:none} .block{display:block}
.accent-line-orange{display:block;width:32px;height:2.5px;background:var(--orange);border-radius:2px;margin-bottom:12px}
.accent-line-navy{display:block;width:32px;height:2.5px;background:var(--navy);border-radius:2px;margin-bottom:12px}

/* ------------------------------------------------------------
   4. PUBLIC NAV
   ------------------------------------------------------------ */
.public-nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: inset 0 -2px 0 0 var(--orange); }
.public-nav__inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo__img { height: 44px; width: auto; max-width: 180px; }
.nav-logo__mark { height: 32px; padding: 0 9px; background: var(--navy); color: var(--white); border-radius: var(--radius-sm); display: flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: 1px; border-left: 3px solid var(--orange); }
.nav-logo__text { font-size: .9rem; color: var(--text-primary); font-weight: 400; }
.nav-logo__text strong { font-weight: 700; color: var(--navy); }
.public-nav__links { display: flex; align-items: center; gap: 28px; }
.public-nav__links a { font-size: .84rem; color: var(--text-secondary); font-weight: 500; transition: color .15s; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.public-nav__links a:hover { color: var(--text-primary); border-bottom-color: var(--orange); }
.public-nav__actions { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .875rem; font-weight: 600; padding: 8px 18px; border-radius: var(--radius-md); border: 1.5px solid transparent; transition: all .15s; white-space: nowrap; text-decoration: none; line-height: 1; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); }
.btn--orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn--orange:hover { background: var(--orange-light); color: var(--white); }
.btn--outline { background: var(--white); color: var(--text-primary); border-color: var(--border-md); }
.btn--outline:hover { border-color: var(--grey-400); background: var(--grey-50); color: var(--text-primary); }
.btn--ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn--ghost:hover { background: var(--grey-100); color: var(--text-primary); }
.btn--danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn--success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn--sm { padding: 5px 12px; font-size: .78rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 11px 26px; font-size: .95rem; }
.btn--full { width: 100%; } .btn--icon { padding: 7px; border-radius: var(--radius-sm); }

/* ------------------------------------------------------------
   6. FORMS
   ------------------------------------------------------------ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: .75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border-md); border-radius: var(--radius-md); font-size: .9rem; color: var(--text-primary); background: var(--white); transition: border-color .15s, box-shadow .15s; outline: none; box-shadow: var(--shadow-xs); }
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,47,110,.1); }
.form-control::placeholder { color: var(--text-light); }
.form-control:disabled { background: var(--grey-100); color: var(--text-muted); cursor: not-allowed; }
.form-control--error { border-color: var(--danger); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-hint { font-size: .76rem; color: var(--text-muted); }
.form-error { font-size: .76rem; color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-section { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
.form-section__title { font-size: .88rem; font-weight: 700; margin-bottom: 14px; }
.form-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 15px; height: 15px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.form-check__label { font-size: .875rem; color: var(--text-secondary); line-height: 1.5; }

/* ------------------------------------------------------------
   7. CARDS
   ------------------------------------------------------------ */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.card--hover { transition: box-shadow .2s, transform .15s; cursor: pointer; }
.card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card--accent-orange { border-left: 3px solid var(--orange); }
.card--accent-navy   { border-left: 3px solid var(--navy); }
.card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.card__title  { font-size: .88rem; font-weight: 700; }
.card__action { font-size: .78rem; color: var(--navy); font-weight: 600; cursor: pointer; }
.card__action:hover { color: var(--orange); }

/* ------------------------------------------------------------
   8. BADGES
   ------------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.badge-success   { background: var(--success-bg);  color: var(--success-text); }
.badge-warning   { background: var(--warning-bg);  color: var(--warning-text); }
.badge-danger    { background: var(--danger-bg);   color: var(--danger-text); }
.badge-info      { background: var(--info-bg);     color: var(--info-text); }
.badge-secondary { background: var(--grey-100);    color: var(--grey-500); }
.badge-primary   { background: var(--navy);        color: var(--white); }
.badge-orange    { background: var(--orange-pale); color: var(--orange); }
.badge-platinum  { background: var(--platinum-bg); color: var(--platinum-text); }
.badge-gold      { background: var(--gold-bg);     color: var(--gold-text); }
.badge-silver    { background: var(--silver-bg);   color: var(--silver-text); }
.badge-bronze    { background: var(--bronze-bg);   color: var(--bronze-text); }
.badge-registered{ background: var(--grey-100);    color: var(--text-muted); }

/* ------------------------------------------------------------
   9. ALERTS
   ------------------------------------------------------------ */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-size: .875rem; margin-bottom: 16px; border: 1px solid transparent; border-left-width: 3px; }
.alert--success { background: var(--success-bg); color: var(--success-text); border-color: #6EE7B7; border-left-color: var(--success); }
.alert--danger  { background: var(--danger-bg);  color: var(--danger-text);  border-color: #FCA5A5; border-left-color: var(--danger); }
.alert--warning { background: var(--warning-bg); color: var(--warning-text); border-color: #FCD34D; border-left-color: var(--warning); }
.alert--info    { background: var(--info-bg);    color: var(--info-text);    border-color: #BFDBFE; border-left-color: var(--navy); }

/* ------------------------------------------------------------
   10. TABLES
   ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { background: var(--grey-50); text-align: left; padding: 9px 14px; font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-primary); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--grey-50); }

/* ------------------------------------------------------------
   11. AVATAR
   ------------------------------------------------------------ */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; flex-shrink: 0; text-transform: uppercase; }
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.avatar--md { width: 42px; height: 42px; font-size: 14px; }
.avatar--lg { width: 56px; height: 56px; font-size: 17px; }
.avatar--xl { width: 72px; height: 72px; font-size: 21px; }
.avatar--navy   { background: var(--navy-pale);   color: var(--navy); }
.avatar--orange { background: var(--orange-pale); color: var(--orange); }
.avatar--green  { background: var(--success-bg);  color: var(--success-text); }
.avatar--grey   { background: var(--grey-200);    color: var(--grey-600); }

/* ------------------------------------------------------------
   12. STAT CARDS
   ------------------------------------------------------------ */
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; top: 0; right: 0; width: 36px; height: 3px; background: var(--orange); }
.stat-card__label { font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.stat-card__value { font-size: 1.9rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 5px; }
.stat-card__delta { font-size: .78rem; color: var(--text-muted); }
.stat-card__delta--up { color: var(--success); } .stat-card__delta--down { color: var(--danger); }

/* ------------------------------------------------------------
   13. PROGRESS
   ------------------------------------------------------------ */
.progress { height: 4px; background: var(--grey-200); border-radius: 10px; overflow: hidden; }
.progress__fill { height: 100%; border-radius: 10px; background: var(--navy); transition: width .4s ease; }
.progress__fill--orange  { background: var(--orange); }
.progress__fill--success { background: var(--success); }
.progress__fill--danger  { background: var(--danger); }

/* ------------------------------------------------------------
   14. EMPTY STATE
   ------------------------------------------------------------ */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state__title { font-size: .95rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 7px; }
.empty-state__text  { font-size: .84rem; max-width: 300px; margin: 0 auto 18px; color: var(--text-muted); line-height: 1.6; }

/* ------------------------------------------------------------
   15. AUTH PAGES
   ------------------------------------------------------------ */
.auth-page { min-height: 100vh; background: var(--grey-100); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px 40px; width: 100%; max-width: 460px; box-shadow: var(--shadow-xl); position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange) 0%, var(--navy) 100%); }
.auth-card__logo     { text-align: center; margin-bottom: 24px; }
.auth-card__title    { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: 5px; }
.auth-card__subtitle { font-size: .84rem; color: var(--text-muted); text-align: center; margin-bottom: 24px; }
.auth-card__footer   { text-align: center; margin-top: 18px; font-size: .84rem; color: var(--text-muted); }
.auth-card__footer a { color: var(--navy); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-light); font-size: .76rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 18px; }
.role-option { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 10px; border: 1.5px solid var(--border-md); border-radius: var(--radius-md); cursor: pointer; transition: all .15s; text-align: center; background: var(--white); }
.role-option:hover { border-color: var(--orange); }
.role-option input { display: none; }
.role-option--active { border-color: var(--navy); background: var(--navy-pale); }
.role-option__icon  { width: 38px; height: 38px; background: var(--grey-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.role-option__label { font-size: .84rem; font-weight: 700; }
.role-option__desc  { font-size: .72rem; color: var(--text-muted); }

/* ------------------------------------------------------------
   16. SCORE
   ------------------------------------------------------------ */
.score-display__number { font-size: 3.2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.score-dim { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.score-dim__label { font-size: .78rem; color: var(--text-secondary); width: 140px; flex-shrink: 0; font-weight: 500; }
.score-dim__bar   { flex: 1; }
.score-dim__value { font-size: .78rem; font-weight: 700; width: 28px; text-align: right; flex-shrink: 0; }

/* ------------------------------------------------------------
   17. CANDIDATE CARD
   ------------------------------------------------------------ */
.candidate-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px; transition: box-shadow .2s; box-shadow: var(--shadow-xs); }
.candidate-card:hover { box-shadow: var(--shadow-md); }
.candidate-card__body { flex: 1; min-width: 0; }
.candidate-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.candidate-card__name { font-size: .88rem; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.verified-tick { width: 14px; height: 14px; background: var(--success); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.verified-tick svg { width: 8px; height: 8px; stroke: white; stroke-width: 2.5; }
.candidate-card__role { font-size: .78rem; color: var(--text-secondary); margin-bottom: 7px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.skill-tag  { font-size: .72rem; padding: 2px 8px; background: var(--grey-100); color: var(--text-secondary); border-radius: 20px; font-weight: 500; border: 1px solid var(--border); }
.candidate-card__footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.candidate-card__meta   { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }

/* ------------------------------------------------------------
   18. PIPELINE
   ------------------------------------------------------------ */
.pipeline-board { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; align-items: start; }
.pipeline-col { background: var(--grey-100); border-radius: var(--radius-md); padding: 9px; min-height: 160px; border: 1px solid var(--border); }
.pipeline-col__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.pipeline-col__title { font-size: .68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.pipeline-col__count { background: var(--white); border-radius: 10px; padding: 1px 6px; font-size: .68rem; color: var(--text-muted); font-weight: 600; border: 1px solid var(--border); }
.pipeline-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 6px; cursor: pointer; transition: box-shadow .15s; box-shadow: var(--shadow-xs); }
.pipeline-card:hover { box-shadow: var(--shadow-sm); }
.pipeline-card__name { font-size: .78rem; font-weight: 700; }
.pipeline-card__role { font-size: .7rem; color: var(--text-muted); margin-top: 1px; }

/* ------------------------------------------------------------
   19. SPINNER
   ------------------------------------------------------------ */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   20. PUBLIC NAV — LOGO MARK (fallback when no image)
   ============================================================ */
.logo-mark { height: 32px; padding: 0 9px; background: var(--navy); color: var(--white); border-radius: var(--radius-sm); display: flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: 1px; border-left: 3px solid var(--orange); }

/* ============================================================
   21. HERO — two-column layout
   ============================================================ */
.hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 36px 0 32px; position: relative; overflow: hidden; }
.hero__dot-grid { position: absolute; inset: 0; background-image: radial-gradient(circle,#d1d5db 1px,transparent 1px); background-size: 22px 22px; opacity: .45; pointer-events: none; }
.hero__fade { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 70% 50%,rgba(255,255,255,0) 0%,rgba(255,255,255,.95) 65%); pointer-events: none; }
.hero__grid { max-width: 1180px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1fr 316px; gap: 24px; align-items: start; position: relative; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.hero__eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--orange); border-radius: 2px; }
.hero__title { font-size: 2.3rem; font-weight: 900; line-height: 1.1; letter-spacing: -.03em; color: var(--grey-900); margin-bottom: 10px; }
.hero__title em { font-style: normal; color: var(--navy); }
.hero__sub { font-size: .88rem; color: var(--text-secondary); line-height: 1.65; max-width: 420px; margin-bottom: 16px; }
.hero__search { display: flex; background: var(--white); border: 1.5px solid var(--border-md); border-radius: 10px; padding: 4px 4px 4px 14px; box-shadow: var(--shadow-md); margin-bottom: 12px; max-width: 480px; }
.hero__search input { flex: 1; border: none; outline: none; font-size: .88rem; color: var(--text-primary); background: transparent; }
.hero__search input::placeholder { color: var(--text-light); }
.hero__search select { border: none; border-left: 1px solid var(--border); background: transparent; font-size: .8rem; color: var(--text-secondary); padding: 0 10px; outline: none; cursor: pointer; width: 130px; }
.hero__search button { padding: 8px 18px; background: var(--orange); color: #fff; border: none; border-radius: 8px; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s; }
.hero__search button:hover { background: var(--orange-light); }
.hero__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.hero__tag { padding: 3px 10px; border-radius: 20px; font-size: .68rem; font-weight: 500; border: 1px solid var(--border-md); color: var(--text-secondary); background: var(--white); cursor: pointer; transition: all .12s; text-decoration: none; box-shadow: var(--shadow-xs); }
.hero__tag:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-pale); }
.hero__stats { display: flex; gap: 24px; padding-top: 14px; border-top: 1px solid var(--border); }
.hero__stat-num { font-size: 1.35rem; font-weight: 800; color: var(--grey-900); letter-spacing: -.02em; line-height: 1; }
.hero__stat-lbl { font-size: .62rem; color: var(--text-muted); margin-top: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* HERO SIDEBAR WIDGETS */
.hero__sidebar { display: flex; flex-direction: column; gap: 10px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.widget--score { position: relative; overflow: hidden; }
.widget--score::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange), var(--navy)); }
.widget__head { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.widget__cta { display: block; width: 100%; padding: 8px; background: var(--navy); color: #fff; border: none; border-radius: 8px; font-size: .75rem; font-weight: 700; cursor: pointer; text-align: center; margin-top: 10px; text-decoration: none; transition: background .15s; }
.widget__cta:hover { background: var(--navy-light); color: #fff; }
.score-preview__top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.score-preview__num { font-size: 2.8rem; font-weight: 900; color: var(--navy); letter-spacing: -.04em; line-height: 1; }
.score-preview__of  { font-size: .6rem; color: var(--text-muted); margin-top: 3px; }
.score-preview__next { font-size: .66rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.score-dims { display: flex; flex-direction: column; gap: 6px; }
.sdim { display: flex; align-items: center; gap: 6px; }
.sdim__l { font-size: .63rem; color: var(--text-secondary); width: 108px; flex-shrink: 0; font-weight: 500; }
.sdim__b { flex: 1; height: 3px; background: var(--grey-200); border-radius: 3px; overflow: hidden; }
.sdim__f { height: 100%; border-radius: 3px; background: var(--navy); }
.sdim__f--o { background: var(--orange); }
.sdim__v { font-size: .63rem; font-weight: 700; color: var(--text-primary); width: 22px; text-align: right; flex-shrink: 0; }

/* LIVE DOT */
.live-dot { display: inline-flex; align-items: center; gap: 4px; font-size: .6rem; font-weight: 700; color: var(--success); background: var(--success-bg); padding: 2px 7px; border-radius: 20px; }
.live-dot__pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--success); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* SCORE CALCULATOR */
.calc-checks { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.calc-check { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: .73rem; color: var(--text-secondary); padding: 4px 0; border-bottom: 1px solid var(--grey-100); }
.calc-check:last-child { border-bottom: none; }
.calc-check input { width: 13px; height: 13px; accent-color: var(--navy); cursor: pointer; flex-shrink: 0; }
.calc-check span:nth-child(2) { flex: 1; }
.calc-pts { font-size: .63rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.calc-result { text-align: center; padding: 8px 0 2px; border-top: 1px solid var(--border); }
.calc-result__num  { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; color: var(--text-muted); transition: color .3s; }
.calc-result__band { font-size: .7rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--grey-100); color: var(--text-muted); display: inline-block; margin: 3px 0; transition: all .3s; }
.calc-result__hint { font-size: .6rem; color: var(--text-light); }

/* TRENDING */
.trend-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--grey-100); }
.trend-item:last-child { border-bottom: none; }
.trend-item__title { font-size: .73rem; font-weight: 700; color: var(--text-primary); }
.trend-item__meta  { font-size: .63rem; color: var(--text-muted); }
.trend-hot { font-size: .6rem; font-weight: 700; background: var(--orange-pale); color: var(--orange); padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.trend-new { font-size: .6rem; font-weight: 700; background: var(--success-bg); color: var(--success-text); padding: 2px 7px; border-radius: 10px; white-space: nowrap; }

/* ============================================================
   22. MAIN CONTENT WRAP (two column below hero)
   ============================================================ */
.main-wrap { max-width: 1180px; margin: 0 auto; padding: 20px 28px; display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.section-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.section-hd__title { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.section-hd__link  { font-size: .72rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.section-hd__link:hover { color: var(--orange); }

/* HOW IT WORKS */
.how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 20px; }
.how-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 13px; position: relative; overflow: hidden; box-shadow: var(--shadow-xs); }
.how-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.how-card--navy::before   { background: linear-gradient(90deg, var(--navy), transparent); }
.how-card--orange::before { background: linear-gradient(90deg, var(--orange), transparent); }
.how-num  { font-size: 1.4rem; font-weight: 900; color: var(--grey-200); line-height: 1; margin-bottom: 7px; }
.how-icon { font-size: 17px; display: block; margin-bottom: 5px; }
.how-icon--navy   { color: var(--navy); }
.how-icon--orange { color: var(--orange); }
.how-card h3 { font-size: .76rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.how-card p  { font-size: .68rem; color: var(--text-muted); line-height: 1.55; }

/* JOB LIST */
.job-list { display: flex; flex-direction: column; gap: 6px; }
.job-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .12s; position: relative; overflow: hidden; box-shadow: var(--shadow-xs); }
.job-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transition: transform .2s; transform-origin: bottom; }
.job-row:hover { box-shadow: var(--shadow-md); transform: translateX(2px); }
.job-row:hover::before { transform: scaleY(1); }
.job-row__logo { width: 34px; height: 34px; border-radius: 6px; background: var(--grey-100); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--navy); flex-shrink: 0; }
.job-row__body { flex: 1; min-width: 0; }
.job-row__title { font-size: .82rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1px; }
.job-row__co    { font-size: .7rem; color: var(--text-muted); margin-bottom: 2px; }
.job-row__meta  { display: flex; gap: 8px; }
.job-row__meta span { font-size: .66rem; color: var(--text-muted); }
.job-row__meta span::before { content: '·'; margin-right: 8px; }
.job-row__meta span:first-child::before { display: none; }
.job-row__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.job-row__days  { font-size: .66rem; font-weight: 600; color: var(--text-muted); }
.job-row__days--urgent { color: var(--danger); }

/* ============================================================
   23. RIGHT SIDEBAR PANELS
   ============================================================ */
.sidebar-emp { background: var(--navy); border-radius: 12px; padding: 14px; margin-bottom: 10px; position: relative; overflow: hidden; }
.sidebar-emp::after { content: ''; position: absolute; bottom: -12px; right: -12px; width: 60px; height: 60px; border-radius: 50%; background: rgba(232,119,34,.18); }
.sidebar-emp__accent { height: 2px; background: var(--orange); border-radius: 2px; margin-bottom: 10px; width: 28px; }
.sidebar-emp h3 { font-size: .8rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sidebar-emp p  { font-size: .7rem; color: rgba(255,255,255,.6); line-height: 1.55; margin-bottom: 10px; }
.sidebar-emp__btn { display: block; padding: 8px; background: var(--orange); color: #fff; border-radius: 8px; font-size: .72rem; font-weight: 700; text-align: center; text-decoration: none; transition: background .15s; }
.sidebar-emp__btn:hover { background: var(--orange-light); color: #fff; }
.sidebar-panel { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-xs); }
.sidebar-panel__title { font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin-bottom: 9px; }
.sidebar-panel__note  { font-size: .6rem; color: var(--text-light); margin-top: 7px; }
.sidebar-panel__link  { display: block; text-align: center; font-size: .7rem; font-weight: 600; color: var(--navy); margin-top: 9px; text-decoration: none; }
.sidebar-panel__link:hover { color: var(--orange); }

/* MARKET PULSE */
.pulse-list { display: flex; flex-direction: column; gap: 6px; }
.pulse-row { display: flex; align-items: center; gap: 6px; }
.pulse-row__label { font-size: .68rem; color: var(--text-secondary); font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse-row__bar   { width: 68px; height: 4px; background: var(--grey-200); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.pulse-row__fill  { height: 100%; border-radius: 4px; background: var(--navy); }
.pulse-row__fill--o { background: var(--orange); }
.pulse-row__val   { font-size: .63rem; font-weight: 700; color: var(--text-secondary); width: 27px; text-align: right; flex-shrink: 0; }

/* STORIES */
.story-item { padding: 8px 0; border-bottom: 1px solid var(--grey-100); }
.story-item:last-of-type { border-bottom: none; }
.story-item__top  { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.story-item__name { font-size: .73rem; font-weight: 700; color: var(--text-primary); }
.story-item__role { font-size: .63rem; color: var(--text-muted); }
.story-item__co   { font-size: .63rem; color: var(--orange); font-weight: 600; }
.story-item__stars{ font-size: 9px; color: var(--orange); margin-bottom: 2px; }
.story-item__quote{ font-size: .68rem; color: var(--text-secondary); font-style: italic; line-height: 1.55; }

/* SALARY */
.salary-list { display: flex; flex-direction: column; gap: 5px; }
.salary-row { display: flex; justify-content: space-between; align-items: center; font-size: .73rem; padding: 4px 0; border-bottom: 1px solid var(--grey-100); }
.salary-row:last-child { border-bottom: none; }
.salary-row span  { color: var(--text-secondary); font-weight: 500; }
.salary-row strong{ font-weight: 700; color: var(--navy); }

/* ============================================================
   24. FOOTER — modern grey
   ============================================================ */
.site-footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.footer-accent-line { height: 2px; background: linear-gradient(90deg, var(--orange) 0%, var(--navy) 40%, transparent 100%); margin-bottom: 28px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.footer-logo__img { height: 32px; width: auto; }
.footer-tagline { font-size: .76rem; color: var(--text-muted); line-height: 1.65; max-width: 210px; margin-bottom: 12px; }
.footer-social { display: flex; gap: 6px; }
.social-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all .15s; text-decoration: none; }
.social-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-pale); }
.footer-col h4 { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 11px; }
.footer-col a { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--text-secondary); margin-bottom: 7px; text-decoration: none; font-weight: 500; transition: color .15s; }
.footer-col a:hover { color: var(--orange); }
.footer-col a i { font-size: 12px; opacity: .5; flex-shrink: 0; }
.footer-badge { font-size: .58rem; font-weight: 700; background: var(--orange-pale); color: var(--orange); padding: 1px 5px; border-radius: 10px; margin-left: 2px; }
.footer-bottom-bar { background: var(--grey-50); border-top: 1px solid var(--border); padding: 0 28px; }
.footer-bottom-inner { max-width: 1180px; margin: 0 auto; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom-inner p { font-size: .7rem; color: var(--text-light); font-weight: 500; }
.footer-legal { display: flex; gap: 14px; }
.footer-legal a { font-size: .7rem; color: var(--text-light); text-decoration: none; font-weight: 500; }
.footer-legal a:hover { color: var(--text-secondary); }

/* ============================================================
   25. DASHBOARD SHELL (loaded only when logged in)
   ============================================================ */
.dashboard-shell { display: flex; min-height: 100vh; background: var(--bg); }
.dashboard-main  { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: var(--sidebar-w); }
.dashboard-content { flex: 1; padding: 24px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-header__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 2px; }
.page-header__subtitle { font-size: .84rem; color: var(--text-muted); }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar .form-control { width: auto; min-width: 130px; }
.filter-bar__results { margin-left: auto; font-size: .82rem; color: var(--text-muted); }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.dash-section { margin-bottom: 24px; }
.dash-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-section__title { font-size: .9rem; font-weight: 700; }

/* ============================================================
   26. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid    { grid-template-columns: 1fr; }
  .hero__sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .main-wrap     { grid-template-columns: 1fr; }
  .main-sidebar  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .content-grid  { grid-template-columns: 1fr; }
  .stats-row     { grid-template-columns: 1fr 1fr; }
  .footer-top    { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-board { grid-template-columns: 1fr 1fr; }
  .hero__sidebar { grid-template-columns: 1fr; }
  .main-sidebar  { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 7px; text-align: center; }
}
@media (max-width: 640px) {
  .hero__title   { font-size: 1.7rem; }
  .hero__search  { flex-direction: column; padding: 10px; }
  .hero__search select { border-left: none; border-top: 1px solid var(--border); width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .auth-card     { padding: 24px 18px; }
  .public-nav__links { display: none; }
  .how-grid      { grid-template-columns: 1fr 1fr; }
  .footer-top    { grid-template-columns: 1fr; }
  .stats-row     { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   28. HOMEPAGE — ph- prefix, candidate-first design
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.ph-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  position: relative;
  overflow: visible;
}
.ph-hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .3;
  pointer-events: none;
}

/* Wrapper: relative so absolute sidebar is anchored here */
.ph-hero__wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

/* Left: width leaves room for the sidebar */
.ph-hero__left {
  max-width: calc(100% - 360px);
}

/* Right: absolutely positioned — zero effect on section height */
.ph-hero__right {
  position: absolute;
  top: 0;
  right: 28px;
  width: 320px;
}

/* ── EYEBROW ──────────────────────────────────────────────── */
.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.ph-eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── HEADLINE ─────────────────────────────────────────────── */
.ph-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--grey-900);
  margin-bottom: 14px;
}
.ph-title em { font-style: normal; color: var(--navy); }

/* ── SUB ──────────────────────────────────────────────────── */
.ph-sub {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 24px;
}

/* ── SEARCH BAR ───────────────────────────────────────────── */
.ph-search {
  display: flex;
  background: var(--white);
  border: 2px solid var(--border-md);
  border-radius: 12px;
  padding: 5px 5px 5px 16px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 14px;
  max-width: 520px;
}
.ph-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .9rem;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font);
  min-width: 0;
}
.ph-search input::placeholder { color: var(--text-light); }
.ph-search select {
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  font-size: .8rem;
  color: var(--text-secondary);
  padding: 0 12px;
  outline: none;
  cursor: pointer;
  width: 130px;
  font-family: var(--font);
}
.ph-search button {
  padding: 10px 20px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: background .15s;
  flex-shrink: 0;
}
.ph-search button:hover { background: var(--orange-light); }

/* ── TAGS ─────────────────────────────────────────────────── */
.ph-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.ph-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 500;
  border: 1px solid var(--border-md);
  color: var(--text-secondary);
  background: var(--white);
  text-decoration: none;
  transition: all .12s;
}
.ph-tag:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-pale); }

/* ── STATS ────────────────────────────────────────────────── */
.ph-stats {
  display: flex;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.ph-stat__num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--grey-900);
  line-height: 1;
  letter-spacing: -.02em;
}
.ph-stat__lbl {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── SCORE CALCULATOR WIDGET ──────────────────────────────── */
.ph-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.ph-widget--score {
  border-top: 3px solid var(--orange);
}
.ph-widget__head {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ph-widget__intro {
  font-size: .78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}
.ph-widget__cta {
  display: block;
  width: 100%;
  padding: 11px;
  background: var(--navy);
  color: var(--white);
  border-radius: 9px;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  margin-top: 14px;
  text-decoration: none;
  transition: background .15s;
}
.ph-widget__cta:hover { background: var(--navy-light); color: var(--white); }

/* Live badge */
.ph-live {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .6rem; font-weight: 700; color: var(--success);
  background: var(--success-bg); padding: 2px 8px; border-radius: 20px;
  letter-spacing: 0;
}
.ph-live__dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--success);
  animation: ph-pulse 1.5s infinite;
}
@keyframes ph-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Checkboxes */
.ph-calcs { display: flex; flex-direction: column; gap: 1px; margin-bottom: 12px; }
.ph-calc {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: .76rem; color: var(--text-secondary);
  padding: 6px 0; border-bottom: 1px solid var(--grey-100);
  transition: color .1s;
}
.ph-calc:last-child { border-bottom: none; }
.ph-calc:hover { color: var(--text-primary); }
.ph-calc input { width: 14px; height: 14px; accent-color: var(--navy); cursor: pointer; flex-shrink: 0; }
.ph-calc span:nth-child(2) { flex: 1; }
.ph-calc__pts { font-size: .65rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* Result display */
.ph-calc__result {
  text-align: center;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
}
.ph-calc__score-wrap {
  display: inline-flex; align-items: baseline; gap: 4px;
}
.ph-calc__num {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -.04em;
  color: var(--text-muted); transition: color .3s; line-height: 1;
}
.ph-calc__of {
  font-size: .8rem; color: var(--text-light); font-weight: 600;
}
.ph-calc__band {
  display: inline-block; margin: 4px 0 2px;
  font-size: .75rem; font-weight: 700; padding: 3px 12px;
  border-radius: 20px; background: var(--grey-100); color: var(--text-muted);
  transition: all .3s;
}
.ph-calc__hint { font-size: .65rem; color: var(--text-light); }

/* ── MAIN BODY ────────────────────────────────────────────── */
.ph-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.ph-sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ph-sec-hd h2 {
  font-size: .95rem; font-weight: 700;
  color: var(--text-primary); margin: 0;
}
.ph-sec-hd__link {
  font-size: .75rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
}
.ph-sec-hd__link:hover { color: var(--orange); }

/* ── JOB ROWS ─────────────────────────────────────────────── */
.ph-jobs { display: flex; flex-direction: column; gap: 6px; }
.ph-job {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: box-shadow .15s, transform .12s;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.ph-job::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange);
  transform: scaleY(0); transition: transform .2s; transform-origin: bottom;
}
.ph-job:hover { box-shadow: var(--shadow-md); transform: translateX(2px); color: inherit; }
.ph-job:hover::before { transform: scaleY(1); }
.ph-job__logo {
  width: 38px; height: 38px; border-radius: 7px;
  background: var(--grey-100); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: var(--navy); flex-shrink: 0;
}
.ph-job__body  { flex: 1; min-width: 0; }
.ph-job__title { font-size: .84rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.ph-job__co    { font-size: .72rem; color: var(--text-muted); margin-bottom: 3px; }
.ph-job__meta  { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-job__meta span { font-size: .67rem; color: var(--text-muted); }
.ph-job__meta span+span::before { content: '·'; margin-right: 6px; }
.ph-job__days  { font-size: .67rem; font-weight: 600; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }
.ph-job__days--urgent { color: var(--danger); }

.ph-empty {
  padding: 40px 20px; text-align: center;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
}
.ph-empty i { font-size: 2.2rem; color: var(--grey-300); display: block; margin-bottom: 10px; }
.ph-empty p { font-size: .88rem; color: var(--text-muted); }
.ph-empty a { color: var(--navy); font-weight: 600; }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.ph-how {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ph-how__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.ph-how__card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
}
.ph-how__card--n::before { background: linear-gradient(90deg, var(--navy), transparent); }
.ph-how__card--o::before { background: linear-gradient(90deg, var(--orange), transparent); }
.ph-how__num  { font-size: 1.4rem; font-weight: 900; color: var(--grey-200); line-height: 1; margin-bottom: 6px; }
.ph-how__icon { font-size: 16px; display: block; margin-bottom: 5px; }
.ph-how__icon--n { color: var(--navy); }
.ph-how__icon--o { color: var(--orange); }
.ph-how__card h3 { font-size: .75rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.ph-how__card p  { font-size: .68rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ── SIDEBAR ──────────────────────────────────────────────── */

/* Employer block — styled as an advert */
.ph-emp {
  background: var(--navy);
  border-radius: 12px; padding: 16px;
  margin-bottom: 10px;
  position: relative; overflow: hidden;
}
.ph-emp::after {
  content: ''; position: absolute;
  bottom: -14px; right: -14px;
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(232,119,34,.2);
}
.ph-emp__line  { height: 2px; background: var(--orange); width: 28px; border-radius: 2px; margin-bottom: 8px; }
.ph-emp__label { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.ph-emp h3     { font-size: .88rem; font-weight: 700; color: var(--white); margin: 0 0 5px 0; }
.ph-emp p      { font-size: .73rem; color: rgba(255,255,255,.6); line-height: 1.55; margin: 0 0 12px 0; }
.ph-emp__btn   {
  display: block; padding: 9px; background: var(--orange); color: var(--white);
  border-radius: 8px; font-size: .75rem; font-weight: 700;
  text-align: center; text-decoration: none; transition: background .15s;
}
.ph-emp__btn:hover { background: var(--orange-light); color: var(--white); }

.ph-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
}
.ph-panel__title {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-muted); margin-bottom: 10px;
}
.ph-panel__note  { font-size: .6rem; color: var(--text-light); margin-top: 7px; }
.ph-panel__link  {
  display: block; text-align: center; font-size: .73rem;
  font-weight: 600; color: var(--navy); margin-top: 10px; text-decoration: none;
}
.ph-panel__link:hover { color: var(--orange); }

/* Stories */
.ph-story { padding: 10px 0; border-bottom: 1px solid var(--grey-100); }
.ph-story:last-of-type { border-bottom: none; }
.ph-story__top  { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ph-story__name { font-size: .75rem; font-weight: 700; color: var(--text-primary); }
.ph-story__role { font-size: .64rem; color: var(--text-muted); }
.ph-story__quote {
  font-size: .72rem; color: var(--text-secondary);
  font-style: italic; line-height: 1.6; margin: 0;
}

/* Salary */
.ph-salary { display: flex; flex-direction: column; gap: 4px; }
.ph-sal__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .73rem; padding: 4px 0; border-bottom: 1px solid var(--grey-100);
}
.ph-sal__row:last-child { border-bottom: none; }
.ph-sal__row span   { color: var(--text-secondary); }
.ph-sal__row strong { font-weight: 700; color: var(--navy); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ph-hero__left  { max-width: 100%; }
  .ph-hero__right { position: static; width: 100%; margin-top: 24px; }
  .ph-body        { grid-template-columns: 1fr; }
  .ph-how         { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ph-title       { font-size: 2rem; }
  .ph-hero        { padding: 32px 0 28px; }
  .ph-hero__wrap  { padding: 0 16px; }
  .ph-body        { padding: 16px; }
  .ph-search      { flex-wrap: wrap; }
  .ph-search select { border-left: none; border-top: 1px solid var(--border); width: 100%; }
  .ph-how         { grid-template-columns: 1fr 1fr; }
  .ph-stats       { gap: 20px; }
}

/* ============================================================
   29. JOBS PAGE
   ============================================================ */
.jobs-page { max-width: 1180px; margin: 0 auto; padding: 24px 28px; }

.jobs-filter-bar { margin-bottom: 16px; }
.jobs-filter-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.jobs-filter-form .form-control { flex: 1; min-width: 140px; max-width: 220px; }
.jobs-results-hd {
  font-size: .84rem; color: var(--text-muted);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Job cards grid */
.job-cards { display: flex; flex-direction: column; gap: 8px; }
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .15s, transform .12s;
  position: relative; overflow: hidden;
}
.job-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange);
  transform: scaleY(0); transition: transform .2s; transform-origin: bottom;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateX(2px); }
.job-card:hover::before { transform: scaleY(1); }

.job-card__top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.job-card__logo {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--grey-100); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--navy); flex-shrink: 0;
}
.job-card__meta { flex: 1; min-width: 0; }
.job-card__title a {
  font-size: .92rem; font-weight: 700; color: var(--text-primary);
  text-decoration: none;
}
.job-card__title a:hover { color: var(--navy); }
.job-card__co { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.job-card__save {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none;
  transition: all .12s; flex-shrink: 0; font-size: 16px;
}
.job-card__save:hover { border-color: var(--orange); color: var(--orange); }
.job-card__save--saved { border-color: var(--orange); color: var(--orange); background: var(--orange-pale); }

/* Tags */
.job-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.job-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: .68rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-secondary);
  background: var(--white);
}
.job-tag i { font-size: 11px; }
.job-tag--cat { background: var(--info-bg); color: var(--navy); border-color: var(--navy-pale); }

.job-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 24px;
}

/* ============================================================
   30. JOB DETAIL PAGE
   ============================================================ */
.job-detail-wrap {
  max-width: 1180px; margin: 0 auto; padding: 24px 28px;
  display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start;
}
.job-detail__main { min-width: 0; }
.job-detail__side { position: sticky; top: 80px; }

/* Auth page */
.auth-page {
  min-height: 100vh; background: var(--grey-50);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.auth-card__logo { text-align: center; margin-bottom: 24px; }
.auth-card__title { font-size: 1.4rem; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-card__subtitle { font-size: .84rem; color: var(--text-muted); text-align: center; margin-bottom: 20px; }
.auth-card__footer { text-align: center; font-size: .84rem; color: var(--text-muted); }
.auth-card__footer a { color: var(--navy); font-weight: 600; text-decoration: none; }
.auth-divider {
  text-align: center; font-size: .76rem; color: var(--text-light);
  margin: 16px 0; position: relative;
}
.auth-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.auth-divider span, .auth-divider { background: var(--white); padding: 0 12px; position: relative; z-index: 1; }

/* Role selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-option {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; cursor: pointer; transition: all .15s; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.role-option input { display: none; }
.role-option__icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--grey-100); display: flex; align-items: center; justify-content: center; }
.role-option__label { font-size: .84rem; font-weight: 700; color: var(--text-primary); }
.role-option__desc  { font-size: .72rem; color: var(--text-muted); }
.role-option--active { border-color: var(--navy); background: var(--navy-pale); }
.role-option--active .role-option__label { color: var(--navy); }

/* Page header (dashboard pages) */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.page-header__title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.page-header__subtitle { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* Content grid (dashboard two-col) */
.content-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-xs);
}
.stat-card__label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 6px; }
.stat-card__value { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 4px; letter-spacing: -.02em; }
.stat-card__delta { font-size: .72rem; color: var(--text-muted); }

/* Card component */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-xs); }
.card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card__title  { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.card__action { font-size: .75rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.card__action:hover { color: var(--orange); }

/* Progress bar */
.progress { height: 6px; background: var(--grey-200); border-radius: 6px; overflow: hidden; }
.progress__fill { height: 100%; border-radius: 6px; background: var(--navy); transition: width .4s; }
.progress__fill--success { background: var(--success); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: .84rem; margin-bottom: 12px; line-height: 1.5; }
.alert--success { background: var(--success-bg); color: var(--success-text); border: 1px solid #a7f3d0; }
.alert--danger  { background: var(--danger-bg);  color: var(--danger-text);  border: 1px solid #fca5a5; }
.alert--warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid #fcd34d; }
.alert--info    { background: var(--info-bg);    color: var(--info-text);    border: 1px solid #c7d2fe; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius-md); font-size: .84rem; font-weight: 600; cursor: pointer; text-decoration: none; border: 1.5px solid transparent; transition: all .15s; font-family: var(--font); white-space: nowrap; }
.btn--primary  { background: var(--navy);   color: #fff; border-color: var(--navy); }
.btn--primary:hover  { background: var(--navy-light); color: #fff; }
.btn--orange   { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--orange:hover   { background: var(--orange-light); color: #fff; }
.btn--outline  { background: transparent; color: var(--text-primary); border-color: var(--border-md); }
.btn--outline:hover  { border-color: var(--navy); color: var(--navy); background: var(--navy-pale); }
.btn--sm  { padding: 6px 12px; font-size: .78rem; }
.btn--full { width: 100%; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.form-control {
  display: block; width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border-md); border-radius: var(--radius-md);
  font-size: .88rem; color: var(--text-primary);
  background: var(--white); font-family: var(--font);
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,47,110,.08); }
.form-hint { font-size: .7rem; color: var(--text-muted); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; cursor: pointer; }
.form-check input { width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; }
.form-check__label { font-size: .84rem; color: var(--text-secondary); }
.required { color: var(--danger); }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.badge-platinum  { background: var(--platinum-bg); color: var(--platinum-text); }
.badge-gold      { background: var(--gold-bg);     color: var(--gold-text); }
.badge-silver    { background: var(--silver-bg);   color: var(--silver-text); }
.badge-bronze    { background: var(--bronze-bg);   color: var(--bronze-text); }
.badge-registered{ background: var(--grey-100);    color: var(--grey-500); }
.badge-info      { background: var(--info-bg);     color: var(--info-text); }
.badge-success   { background: var(--success-bg);  color: var(--success-text); }
.badge-danger    { background: var(--danger-bg);   color: var(--danger-text); }
.badge-secondary { background: var(--grey-100);    color: var(--grey-500); }

/* Avatar */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; }
.avatar--sm { width: 32px; height: 32px; font-size: .72rem; }
.avatar--md { width: 44px; height: 44px; font-size: .88rem; }
.avatar--navy   { background: var(--navy-pale); color: var(--navy); }
.avatar--orange { background: var(--orange-pale); color: var(--orange); }
.avatar--green  { background: var(--success-bg); color: var(--success-text); }

/* Empty state */
.empty-state { padding: 32px; text-align: center; }
.empty-state__title { font-size: .9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.empty-state__text  { font-size: .8rem; color: var(--text-muted); }

/* Shadows */
:root {
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .job-detail-wrap { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .jobs-page { padding: 16px; }
  .job-detail-wrap { padding: 16px; }
}
