﻿/* ============================================================
   Design System
   ============================================================ */
:root {
  --primary:       #4F46E5;
  --primary-dark:  #4338CA;
  --primary-light: #EEF2FF;
  --secondary:     #7C3AED;
  --text:          #0F172A;
  --text-muted:    #64748B;
  --border:        #E2E8F0;
  --bg:            #F8FAFC;
  --card:          #FFFFFF;
  --success:       #059669;
  --success-light: #D1FAE5;
  --warning:       #D97706;
  --warning-light: #FEF3C7;
  --danger:        #DC2626;
  --danger-light:  #FEE2E2;
  --surface:       #FFFFFF;
  --bg-alt:        #F8FAFC;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 25px -5px rgba(0,0,0,.12), 0 4px 10px -3px rgba(0,0,0,.06);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.navbar-brand:hover { text-decoration: none; }
.navbar-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
}
.navbar-menu a {
  padding: .4rem .75rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 500;
  font-size: .875rem;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.navbar-menu a:hover, .navbar-menu a.active {
  color: var(--primary);
  background: var(--primary-light);
  text-decoration: none;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.nav-user-info {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Photo avatar helpers */
.avatar-img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.avatar-upload-wrap { position:relative; display:inline-block; cursor:pointer; }
.avatar-upload-wrap input[type=file] { display:none; }
.avatar-upload-overlay { position:absolute; inset:0; border-radius:50%; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .18s; pointer-events:none; }
.avatar-upload-wrap:hover .avatar-upload-overlay { opacity:1; }
.avatar-upload-overlay svg { color:#fff; }

.nav-name {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-profile-link {
  text-decoration: none;
  border-radius: 6px;
  padding: .2rem .35rem;
  transition: background .15s;
  cursor: pointer;
}
.nav-profile-link:hover,
.nav-profile-link:focus {
  background: rgba(79,70,229,.07);
  text-decoration: none;
  outline: none;
}
.nav-profile-link:hover .nav-avatar {
  box-shadow: 0 0 0 2px var(--primary-light), 0 0 0 3px var(--primary);
}
.nav-profile-link:hover .nav-name {
  color: var(--primary);
}

/* ── Notification bell ── */
.nav-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-notif-btn:hover {
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
}
.nav-notif-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border: 1.5px solid #fff;
  pointer-events: none;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .575rem 1.125rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline   { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost     { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-success   { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-white     { background: #fff; color: var(--primary); border-color: #fff; font-weight: 700; }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost-white { background: transparent; color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-primary-light { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.btn-applied  { background: #E5E7EB; color: #6B7280; border-color: #E5E7EB; cursor: not-allowed; pointer-events: none; }
.btn-applied:hover { background: #E5E7EB; color: #6B7280; border-color: #E5E7EB; }
.btn-sm  { padding: .35rem .75rem; font-size: .8125rem; }
.btn-lg  { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.125rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .375rem;
}
.required { color: var(--danger); }
.form-control {
  width: 100%;
  padding: .625rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-control::placeholder { color: #94A3B8; }
textarea.form-control { resize: vertical; min-height: 96px; }
.form-select {
  width: 100%;
  padding: .625rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.form-select:focus { border-color: var(--primary); }
.form-hint { font-size: .8125rem; color: var(--text-muted); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-section-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.card-title { font-size: 1rem; font-weight: 700; margin: 0; }

/* ── Badges & Tags ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .625rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
}
.badge-primary  { background: var(--primary-light); color: var(--primary); }
.badge-success  { background: var(--success-light); color: var(--success); }
.badge-warning  { background: var(--warning-light); color: var(--warning); }
.badge-danger   { background: var(--danger-light); color: var(--danger); }
.badge-gray     { background: #F1F5F9; color: var(--text-muted); }

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .2rem .6rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
}
.skill-tag.verified   { background: var(--success-light); color: var(--success); }
.skill-tag.unverified { background: #F1F5F9; color: var(--text-muted); }
.skill-tag.added      { background: var(--primary-light); color: var(--primary); }

.app-status {
  display: inline-flex;
  align-items: center;
  padding: .25rem .625rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.status-applied     { background: #DBEAFE; color: #1D4ED8; }
.status-reviewing   { background: #FFF7ED; color: #C2410C; }
.status-shortlisted { background: #DCFCE7; color: #15803D; }
.status-rejected    { background: #FEE2E2; color: #991B1B; }

/* ── Application Status Cards (candidate dashboard) ── */
.asc-list { display: flex; flex-direction: column; gap: .625rem; }
.asc-card {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.asc-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(99,91,255,.08); }
.asc-mark {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.0625rem;
}
.asc-info { flex: 1; min-width: 0; }
.asc-job-title { font-weight: 700; font-size: .9375rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asc-company { font-size: .8125rem; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: .3rem; }
.asc-dates { font-size: .75rem; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; }
.asc-right { flex-shrink: 0; }

/* ── Flash messages ───────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 76px;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 400px;
  transition: opacity .4s;
}
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn .2s ease;
}
.flash-success { background: var(--success-light); color: #065F46; border: 1px solid #A7F3D0; }
.flash-error   { background: var(--danger-light);  color: #991B1B; border: 1px solid #FECACA; }
.flash-warning { background: var(--warning-light); color: #92400E; border: 1px solid #FDE68A; }
.flash-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; opacity: .6; color: inherit; line-height: 1;
}
.flash-close:hover { opacity: 1; }
@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0D0B2A 0%, #1E1B5E 45%, #13111F 100%);
  padding: 5rem 0 4.5rem;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 50%, rgba(79,70,229,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-content { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  background: rgba(99,102,241,.2);
  border: 1px solid rgba(99,102,241,.4);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: #A5B4FC;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero-accent { color: #A5B4FC; }
.hero > .container .hero-inner .hero-content p,
.hero p {
  font-size: 1.0625rem;
  color: #CBD5E1;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-search {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.hero-search-field {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 160px;
  padding: .25rem .25rem .25rem .5rem;
  color: #94A3B8;
}
.hero-search-field input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: .9375rem;
  font-family: inherit;
  outline: none;
}
.hero-search-field input::placeholder { color: #64748B; }
.hero-search-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}
.hero-cta { display: flex; gap: .875rem; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  position: relative;
}
.preview-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
}
.preview-card-main { padding: 1.5rem; }
.preview-match { font-size: .75rem; font-weight: 800; color: #34D399; margin-bottom: .5rem; letter-spacing: .02em; }
.preview-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .3rem; color: #fff; }
.preview-card > p { font-size: .8125rem; color: #94A3B8; margin: 0 0 1rem; }
.preview-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: 1rem; }
.preview-tag {
  padding: .2rem .55rem;
  background: rgba(79,70,229,.3);
  color: #A5B4FC;
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 500;
}
.preview-tag.verified { background: rgba(5,150,105,.25); color: #34D399; }
.preview-card-sm { padding: 1rem 1.25rem; }
.preview-badge-row { display: flex; align-items: center; justify-content: space-between; }
.preview-verified-badge {
  font-size: .8rem;
  font-weight: 700;
  color: #34D399;
}
.preview-score { font-size: .75rem; color: #64748B; }
.preview-sub { font-size: .8rem; color: #64748B; margin: .25rem 0 0; }
.preview-sub-label { font-size: .75rem; color: #64748B; margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .04em; }
.preview-candidate-row { display: flex; align-items: center; gap: .75rem; }
.preview-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(79,70,229,.4);
  color: #A5B4FC;
  font-weight: 700; font-size: .8125rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.preview-candidate-row strong { font-size: .9rem; color: #fff; display: block; }
.preview-candidate-row p { font-size: .75rem; color: #64748B; margin: 0; }

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 0 1.5rem; }
.stat-number {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin: 0 0 .75rem; letter-spacing: -.01em; }
.section-header p { font-size: 1.0625rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.how-section { background: #fff; }

.section-mini-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .625rem;
}

/* ── Job Cards ────────────────────────────────────────────── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.125rem;
}
.job-card-link { text-decoration: none; color: inherit; display: block; }
.job-card-link:hover { text-decoration: none; }
.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  height: 100%;
}
.job-card-link:hover .job-card {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.company-logo {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.company-logo-sm { width: 36px; height: 36px; font-size: .9rem; }
.company-logo-lg { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 12px; }
.job-card-info h3 { font-size: .9375rem; font-weight: 700; margin: 0 0 .2rem; color: var(--text); }
.job-card-info p  { font-size: .8125rem; color: var(--text-muted); margin: 0; }
.job-description-preview { font-size: .8375rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.job-skills { display: flex; flex-wrap: wrap; gap: .375rem; }
.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .875rem;
  border-top: 1px solid var(--border);
}
.job-salary { font-weight: 700; color: var(--success); font-size: .875rem; }
.job-date   { font-size: .8rem; color: var(--text-muted); }

/* ── How it works ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-number {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.125rem; color: #fff;
  margin: 0 auto 1.125rem;
}
.step-card h3 { font-size: .9375rem; font-weight: 700; margin: 0 0 .5rem; }
.step-card p  { font-size: .875rem; color: var(--text-muted); margin: 0; }

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #6D28D9 100%);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { font-size: 2.25rem; font-weight: 800; margin: 0 0 .75rem; letter-spacing: -.01em; }
.cta-section p { font-size: 1.0625rem; margin: 0 0 2.25rem; opacity: .85; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: #0A0A1A; color: #64748B; padding: 3.5rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
}
.footer-logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.1rem; color: #fff;
  margin-bottom: .75rem;
}
.footer-brand p { font-size: .875rem; line-height: 1.6; color: #475569; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-links h4 { font-size: .8125rem; font-weight: 700; color: #fff; margin: 0 0 .875rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-links a { display: block; color: #475569; font-size: .875rem; margin-bottom: .5rem; transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 0;
}
.footer-bottom p { margin: 0; font-size: .8125rem; text-align: center; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #EEF2FF 0%, #FAF5FF 100%);
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-brand-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.25rem; color: var(--text);
  text-decoration: none;
}
.auth-role-badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .875rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.auth-title {
  font-size: 1.625rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}
.auth-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2rem; font-size: .9375rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--text-muted); }
.auth-divider { position: relative; text-align: center; margin: 1.25rem 0; }
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 .75rem;
  font-size: .8125rem;
  color: var(--text-muted);
}

/* ── Page headers ─────────────────────────────────────────── */
.page-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.page-header h1 { font-size: 1.625rem; font-weight: 800; margin: 0 0 .25rem; letter-spacing: -.01em; }
.page-header p  { color: var(--text-muted); margin: 0; font-size: .9375rem; }
.page-header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.dashboard-main { display: flex; flex-direction: column; gap: 1.5rem; }

.profile-header { display: flex; align-items: center; gap: .875rem; margin-bottom: .875rem; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }
.profile-meta-item { font-size: .8375rem; color: var(--text-muted); margin-bottom: .25rem; }

.sidebar-stat { text-align: center; padding: .625rem 0; }
.sidebar-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.sidebar-stat-label { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; font-weight: 500; }
.sidebar-divider { height: 1px; background: var(--border); margin: .375rem 0; }

/* Recommended */
.recommended-list { display: flex; flex-direction: column; gap: 0; }
.recommended-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
}
.recommended-item:last-child { border-bottom: none; }
.recommended-info { flex: 1; min-width: 0; }
.recommended-title {
  font-weight: 600; font-size: .9375rem;
  color: var(--text); display: block; margin-bottom: .125rem;
}
.recommended-title:hover { color: var(--primary); text-decoration: none; }
.recommended-meta { font-size: .8125rem; color: var(--text-muted); }
.match-badge {
  background: var(--success-light);
  color: var(--success);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Skills chips on dashboard */
.skills-chips { display: flex; flex-wrap: wrap; gap: .625rem; }
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: .8375rem;
  font-weight: 500;
  border: 1px solid rgba(79,70,229,.2);
}
.skill-chip-verified {
  background: var(--success-light);
  color: var(--success);
  border-color: rgba(5,150,105,.2);
}
.verified-icon { font-weight: 700; }
.skill-score {
  background: rgba(0,0,0,.06);
  padding: .05rem .35rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
}
.verify-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  opacity: .7;
  text-decoration: underline;
  cursor: pointer;
}
.remove-skill-btn {
  background: none; border: none;
  cursor: pointer; color: inherit;
  opacity: .4; font-size: 1rem;
  padding: 0; line-height: 1;
  display: flex; align-items: center;
}
.remove-skill-btn:hover { opacity: .8; }

/* ── Stats grid ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
  text-align: center;
}
.stat-card-highlight {
  border-color: var(--primary);
  background: var(--primary-light);
}
.stat-card-highlight .number { color: var(--primary); }
.stat-card .number { font-size: 2.25rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -.02em; }
.stat-card .label  { font-size: .8rem; color: var(--text-muted); margin-top: .375rem; font-weight: 500; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .75rem 1rem;
  border-bottom: 2px solid var(--border);
  background: #FAFAFA;
  white-space: nowrap;
}
td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFC; }
.apps-count { color: var(--primary); font-weight: 600; font-size: .875rem; }
.recruiter-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* ── Search form ──────────────────────────────────────────── */
.search-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.search-form .form-group { margin: 0; }

/* ── Jobs page ────────────────────────────────────────────── */
.jobs-page { padding: 2rem 1.5rem; }
.job-meta {
  display: flex; flex-wrap: wrap; gap: .5rem;
  align-items: center;
}

/* ── Job Detail ───────────────────────────────────────────── */
.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.back-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.back-link:hover { color: var(--primary); text-decoration: none; }
.job-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.job-detail-meta {
  display: flex; flex-wrap: wrap; gap: .625rem;
  align-items: center; margin-top: .375rem;
  font-size: .875rem; color: var(--text-muted);
}
.job-section { margin-top: 1.5rem; }
.job-body { font-size: .9375rem; line-height: 1.75; color: #334155; }
.apply-card { position: sticky; top: 80px; }
.apply-card-details { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.apply-detail-row {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
}
.apply-detail-row:last-child { border-bottom: none; }
.apply-detail-row span { color: var(--text-muted); }
.apply-job-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

/* ── Skills page ──────────────────────────────────────────── */
.skills-legend {
  display: flex; gap: 1.5rem; align-items: center;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.skill-legend-item { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-muted); }
.skill-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-verified { background: var(--success); }
.dot-added    { background: var(--primary); }
.dot-default  { background: #CBD5E1; }

.skills-category { margin-bottom: 3rem; }
.skills-category-title {
  display: flex; align-items: center; gap: .625rem;
  font-size: 1.0625rem; font-weight: 700;
  margin: 0 0 1.25rem;
}
.cat-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }
.cat-count { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .875rem;
}
.skill-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.125rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .15s, box-shadow .15s;
}
.skill-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.skill-card.verified-skill { border-color: var(--success); background: #F0FDF9; }
.skill-card.added-skill { border-color: var(--primary); background: var(--primary-light); }
.skill-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.skill-card h4 { margin: 0; font-size: .9375rem; font-weight: 700; }
.skill-desc { margin: 0; font-size: .8125rem; color: var(--text-muted); line-height: 1.45; }
.skill-card-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .375rem; flex-wrap: wrap; }

/* ── Candidates page ──────────────────────────────────────── */
.candidates-page { padding: 2rem 1.5rem; }
.candidates-grid { display: flex; flex-direction: column; gap: 1rem; }
.candidate-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  transition: border-color .15s;
}
.candidate-card:hover { border-color: var(--primary); }
.candidate-info { flex: 1; min-width: 0; }
.candidate-info h3 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 700; }
.candidate-info .headline { color: var(--text-muted); font-size: .875rem; margin-bottom: .25rem; }
.candidate-info .location { font-size: .8125rem; color: var(--text-muted); margin-bottom: .5rem; }
.candidate-skills { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.more-skills { font-size: .75rem; color: var(--text-muted); align-self: center; }
.verified-count { font-size: .8rem; font-weight: 600; color: var(--success); margin-bottom: .25rem; }
.candidate-actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; flex-shrink: 0; }
.verified-filter-label {
  display: flex; align-items: center; gap: .375rem;
  font-size: .875rem; font-weight: 500; cursor: pointer;
  white-space: nowrap;
}

/* ── Job Applications page ────────────────────────────────── */
.applications-list { display: flex; flex-direction: column; gap: 1.25rem; }
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.app-card-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1rem;
}
.app-candidate-info { flex: 1; }
.app-candidate-info h3 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 700; }
.app-meta { font-size: .8375rem; color: var(--text-muted); margin-bottom: .5rem; }
.app-skills { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }
.app-actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; flex-shrink: 0; min-width: 120px; }
.cover-letter {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.cover-letter-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .5rem; }
.cover-letter p { font-size: .9rem; color: #334155; line-height: 1.65; white-space: pre-wrap; }
.app-status-form {
  display: flex; align-items: center; gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.status-label { font-size: .8125rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

/* ── Post Job page ────────────────────────────────────────── */
.skill-select-group { margin-bottom: 1.25rem; }
.skill-select-category {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: .625rem;
}
.skill-checkboxes { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-checkbox-label {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .35rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .8375rem; font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  background: #fff;
  user-select: none;
}
.skill-checkbox-label:hover { border-color: var(--primary); color: var(--primary); }
.skill-checkbox-label input { accent-color: var(--primary); }
.skill-checkbox-label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* ── Verify skill (quiz) ──────────────────────────────────── */
.quiz-page { padding: 2.5rem 0; min-height: calc(100vh - 65px); background: var(--bg); }
.quiz-container { max-width: 660px; margin: 0 auto; padding: 0 1.5rem; }
.quiz-header { margin: 1.25rem 0 1.5rem; }
.quiz-question {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.quiz-q-number { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); margin-bottom: .625rem; }
.quiz-question h3 { font-size: 1rem; font-weight: 600; margin: 0 0 1.125rem; color: var(--text); }
.quiz-options { display: flex; flex-direction: column; gap: .5rem; }
.quiz-option {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  background: #fff;
  font-size: .9rem;
}
.quiz-option:hover { border-color: var(--primary); background: var(--primary-light); }
.quiz-option input[type="radio"] { accent-color: var(--primary); flex-shrink: 0; width: 16px; height: 16px; }
.progress-bar {
  height: 6px; background: var(--border);
  border-radius: 999px; overflow: hidden;
  margin-bottom: 2rem;
}
.progress-fill {
  height: 100%; background: var(--primary);
  border-radius: 999px; transition: width .3s ease;
}

/* ── Empty states ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 1rem; }
.empty-icon { font-size: 2.5rem; margin-bottom: .875rem; opacity: .5; }
.empty-state h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 .5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .job-detail-layout { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .navbar-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: .875rem 1.5rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
    z-index: 199;
  }
  .navbar-toggle { display: flex; }
  .nav-name { display: none; }
  .hero h1 { font-size: 2.25rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; align-items: stretch; }
  .jobs-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { gap: 0; }
  .stat-item { padding: 0 1rem; }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .cta-section h2 { font-size: 1.625rem; }
  .hero h1 { font-size: 1.875rem; }
}

/* ============================================================
   Landing Page — Home Redesign  (lp-* prefix)
   ============================================================ */

/* ── Navbar additions ─────────────────────────────────────── */
.btn-login {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: .375rem .875rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ── Footer overrides ─────────────────────────────────────── */
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #64748B; transition: all .15s; text-decoration: none;
}
.footer-social-icon:hover { background: rgba(255,255,255,.12); color: #fff; }
.footer-links-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-links-4 h4 {
  font-size: .8125rem; font-weight: 700; color: #fff;
  margin: 0 0 .875rem; text-transform: uppercase; letter-spacing: .04em;
}
.footer-links-4 a {
  display: block; color: #475569; font-size: .875rem;
  margin-bottom: .5rem; transition: color .15s; text-decoration: none;
}
.footer-links-4 a:hover { color: #CBD5E1; text-decoration: none; }
.footer-bottom-row {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}
.footer-bottom-row p { margin: 0; }
.soc2-badge {
  display: flex; align-items: center; gap: .375rem;
  font-size: .75rem; font-weight: 600; color: #475569;
}

/* ── LP Hero ──────────────────────────────────────────────── */
.lp-hero {
  background: #ffffff;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid #F1F5F9;
}
.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.lp-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .875rem;
  background: #EFF6FF; border: 1px solid #BFDBFE;
  border-radius: 999px;
  font-size: .75rem; font-weight: 700; color: #1D4ED8;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.lp-pill-dot { width: 8px; height: 8px; background: #2563EB; border-radius: 50%; flex-shrink: 0; }
.lp-headline {
  font-size: 3.625rem; font-weight: 800; line-height: 1.1;
  letter-spacing: -.03em; color: #0F172A; margin: 0 0 1.375rem;
}
.lp-accent { color: #2563EB; font-style: italic; }
.lp-hero-sub {
  font-size: 1.0625rem; color: #475569; line-height: 1.75;
  max-width: 500px; margin: 0 0 2.25rem;
}
.lp-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Profile Demo Card ────────────────────────────────────── */
.pdc-wrap { position: relative; }
.pdc-card {
  background: #fff; border: 1px solid #E2E8F0;
  border-radius: 18px; padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.1), 0 4px 16px rgba(0,0,0,.06);
}
.pdc-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem; margin-bottom: 1.125rem;
}
.pdc-profile-row { display: flex; align-items: center; gap: .75rem; }
.pdc-av {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pdc-meta { flex: 1; }
.pdc-name { font-weight: 700; font-size: .9375rem; color: #0F172A; }
.pdc-sub  { font-size: .8125rem; color: #64748B; margin-top: .1rem; }
.pdc-badge-verified {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .625rem; background: #D1FAE5; color: #059669;
  border-radius: 999px; font-size: .75rem; font-weight: 700;
  white-space: nowrap; margin-bottom: .375rem;
}
.pdc-match-box { text-align: right; }
.pdc-match-lbl { font-size: .75rem; color: #64748B; }
.pdc-match-val { font-size: 2rem; font-weight: 800; color: #059669; line-height: 1.1; }

.pdc-chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: 1.25rem; }
.pdc-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .625rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; color: #fff;
}
.chip-green  { background: #059669; }
.chip-blue   { background: #2563EB; }
.chip-orange { background: #D97706; }
.chip-teal   { background: #0D9488; }

.pdc-bars { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
.pdc-bar-item { display: flex; align-items: center; gap: .75rem; }
.pdc-bar-lbl { font-size: .8125rem; color: #374151; font-weight: 500; width: 95px; flex-shrink: 0; }
.pdc-bar-track { flex: 1; height: 8px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.pdc-bar-fill  { height: 100%; border-radius: 999px; }
.bg-green { background: #059669; }
.bg-blue  { background: #2563EB; }
.bg-amber { background: #D97706; }
.pdc-bar-num { font-size: .8125rem; font-weight: 700; color: #374151; width: 22px; text-align: right; flex-shrink: 0; }

.pdc-notif {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1rem; background: #F8FAFC;
  border: 1px solid #E2E8F0; border-radius: var(--radius);
}
.pdc-notif-icon {
  width: 36px; height: 36px; background: #EEF2FF; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pdc-notif-lbl   { font-size: .75rem; color: #64748B; }
.pdc-notif-title { font-size: .875rem; font-weight: 500; color: #0F172A; }

/* ── Recruitment Process ──────────────────────────────────── */
.lp-process { background: #F8FAFC; padding: 5.5rem 0; }
.lp-section-eyebrow {
  text-align: center; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #2563EB; margin: 0 0 .75rem;
}
.lp-section-heading {
  font-size: 2.25rem; font-weight: 800; text-align: center;
  color: #0F172A; letter-spacing: -.02em; margin: 0 0 .75rem;
}
.lp-section-desc { text-align: center; color: #64748B; font-size: 1.0625rem; margin: 0 0 3.5rem; }
.lp-process-row { display: flex; align-items: stretch; gap: 0; margin-bottom: 1.5rem; }
.lp-pstep {
  flex: 1; background: #fff; border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg); padding: 1.375rem 1.125rem 1.25rem;
  position: relative; text-align: center; padding-top: 1.75rem;
}
.lp-pstep-num {
  width: 30px; height: 30px; background: #2563EB; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: .8125rem;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  border: 2px solid #F8FAFC;
}
.lp-pstep-icon {
  width: 48px; height: 48px; background: #EFF6FF; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: .5rem auto .875rem; color: #2563EB;
}
.lp-pstep h4 { font-size: .875rem; font-weight: 700; color: #0F172A; margin: 0 0 .375rem; line-height: 1.3; }
.lp-pstep p  { font-size: .78rem; color: #64748B; margin: 0; line-height: 1.55; }
.lp-arrow {
  flex-shrink: 0; width: 2.5rem;
  display: flex; align-items: center; justify-content: center;
}
.lp-process-connector {
  display: flex; justify-content: flex-end;
  padding-right: calc(25% + 0.75rem); margin: 0 0 .5rem;
}

/* ── How It Works ─────────────────────────────────────────── */
.lp-hiw { background: #fff; padding: 5.5rem 0; }
.lp-hiw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 3rem; }
.lp-hiw-col-label {
  font-size: .8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 2rem;
  display: flex; align-items: center; gap: .5rem;
}
.lp-hiw-col-label.blue { color: #2563EB; }
.lp-hiw-col-label.teal { color: #0D9488; }
.lp-hiw-step { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.lp-hiw-step:last-child { margin-bottom: 0; }
.lp-hiw-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .875rem; flex-shrink: 0; color: #fff;
}
.lp-hiw-num.blue { background: #2563EB; }
.lp-hiw-num.teal { background: #0D9488; }
.lp-hiw-step-body h4 { font-size: .9375rem; font-weight: 700; color: #0F172A; margin: .375rem 0 .375rem; }
.lp-hiw-step-body p  { font-size: .875rem; color: #64748B; margin: 0; line-height: 1.65; }

/* ── CTA ──────────────────────────────────────────────────── */
.lp-cta {
  background: linear-gradient(135deg, #1D4ED8 0%, #4338CA 55%, #6D28D9 100%);
  padding: 5.5rem 0; text-align: center; color: #fff;
}
.lp-cta h2 { font-size: 2.5rem; font-weight: 800; margin: 0 0 .875rem; letter-spacing: -.02em; }
.lp-cta p  { font-size: 1.0625rem; color: rgba(255,255,255,.8); margin: 0 0 2.5rem; }
.lp-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── LP Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .lp-headline { font-size: 3rem; }
  .lp-hiw-grid { gap: 3rem; }
}
@media (max-width: 900px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .lp-headline { font-size: 2.625rem; }
  .pdc-card { max-width: 520px; margin: 0 auto; }
  .lp-process-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .lp-arrow { display: none; }
  .lp-process-connector { display: none; }
}
@media (max-width: 768px) {
  .lp-hero { padding: 3.5rem 0 3rem; }
  .lp-headline { font-size: 2.125rem; }
  .lp-hiw-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lp-section-heading { font-size: 1.75rem; }
  .lp-cta h2 { font-size: 1.875rem; }
  .footer-links-4 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .lp-headline { font-size: 1.875rem; }
  .lp-process-row { grid-template-columns: 1fr; }
  .lp-cta h2 { font-size: 1.5rem; }
  .footer-links-4 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   Jobs Page  (jb- prefix)
══════════════════════════════════════════ */

/* Hero */
.jb-hero {
  background: linear-gradient(135deg,#EFF6FF 0%,#F0FFFE 55%,#ECFDF5 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.jb-hero-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.jb-hero-title { font-size: 2.5rem; font-weight: 800; color: var(--text); margin: 0 0 .5rem; line-height: 1.15; }
.jb-hero-accent { color: var(--primary); }
.jb-hero-sub { color: var(--text-muted); font-size: 1.0625rem; margin: 0 0 2rem; }

/* Search Card */
.jb-search-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(0,0,0,.1);
  padding: 1.25rem 1.375rem;
}
.jb-search-row { display: flex; gap: .625rem; align-items: stretch; flex-wrap: wrap; }
.jb-search-field {
  flex: 1; min-width: 160px; display: flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: .625rem 1rem;
  color: var(--text-muted); transition: border-color .15s;
}
.jb-search-field:focus-within { border-color: var(--primary); color: var(--primary); }
.jb-search-field input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: .9375rem; color: var(--text); font-family: inherit;
}
.jb-search-field input::placeholder { color: var(--text-muted); }
.jb-loc-field { position: relative; }
.jb-search-btn { white-space: nowrap; padding: 0 1.75rem; flex-shrink: 0; align-self: stretch; border-radius: 10px; min-height: 44px; }

/* Autocomplete */
.jb-autocomplete {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 100; display: none;
}
.jb-autocomplete.open { display: block; }
.jb-ac-item {
  padding: .625rem 1rem; cursor: pointer; font-size: .9375rem; color: var(--text);
}
.jb-ac-item:hover, .jb-ac-item.active { background: var(--bg); color: var(--primary); }
.jb-ac-item:first-child { border-radius: 10px 10px 0 0; }
.jb-ac-item:last-child  { border-radius: 0 0 10px 10px; }

/* Hero chips row */
.jb-chips-row {
  display: flex; align-items: center; gap: .75rem;
  margin-top: 1rem; flex-wrap: wrap;
}
.jb-chips-label { font-size: .8125rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.jb-chips { display: flex; gap: .4rem; flex-wrap: wrap; flex: 1; }
.jb-chip {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 20px; padding: .25rem .8rem;
  font-size: .8125rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.jb-chip:hover { border-color: var(--primary); color: var(--primary); }
.jb-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Verified toggle */
.jb-vtoggle { display: flex; align-items: center; gap: .4rem; cursor: pointer; font-size: .875rem; color: var(--text-muted); white-space: nowrap; }
.jb-vtoggle input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

/* ── Two-column layout ── */
.jb-layout {
  display: grid; grid-template-columns: 268px 1fr;
  gap: 1.5rem; padding-top: 1.75rem; padding-bottom: 3rem; align-items: start;
}

/* ── Sidebar ── */
.jb-sidebar {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 1.375rem; position: sticky; top: 80px;
}
.jb-sidebar-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.125rem;
}
.jb-sidebar-head > span { font-size: .9375rem; font-weight: 700; color: var(--text); }
.jb-reset { background: none; border: none; color: var(--text-muted); font-size: .8125rem; cursor: pointer; padding: 0; }
.jb-reset:hover { color: var(--primary); }

.jb-fg { margin-bottom: 1.125rem; padding-bottom: 1.125rem; border-bottom: 1px solid var(--border); }
.jb-fg-title {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: .625rem;
}

/* Switch */
.jb-switch-row { display: flex; justify-content: space-between; align-items: center; }
.jb-switch-row > span { font-size: .875rem; color: var(--text); }
.jb-sw { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.jb-sw input { opacity: 0; width: 0; height: 0; }
.jb-sw-track {
  position: absolute; inset: 0; background: #D1D5DB;
  border-radius: 20px; cursor: pointer; transition: background .2s;
}
.jb-sw-track::after {
  content: ''; position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; background: #fff; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.jb-sw input:checked + .jb-sw-track { background: var(--primary); }
.jb-sw input:checked + .jb-sw-track::after { transform: translateX(16px); }

/* Checkboxes */
.jb-skill-list { display: flex; flex-direction: column; gap: .4rem; max-height: 196px; overflow-y: auto; }
#typeCheckList { display: flex; flex-direction: column; gap: .4rem; }
.jb-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .875rem; color: var(--text); }
.jb-check input { accent-color: var(--primary); width: 15px; height: 15px; flex-shrink: 0; }

/* Range slider */
.jb-range-vals {
  font-size: .8125rem; color: var(--text-muted); margin-bottom: .5rem;
  font-family: 'JetBrains Mono', monospace;
}
.jb-track {
  position: relative; height: 4px; background: #E5E7EB;
  border-radius: 4px; margin: 14px 8px;
}
.jb-fill { position: absolute; height: 4px; background: var(--primary); border-radius: 4px; }
.jb-thumb {
  position: absolute; top: 50%; width: 18px; height: 18px;
  transform: translate(-50%,-50%);
  background: #fff; border: 2px solid var(--primary);
  border-radius: 50%; cursor: pointer; z-index: 2;
  transition: box-shadow .15s;
}
.jb-thumb:hover, .jb-thumb:active { box-shadow: 0 0 0 4px rgba(37,99,235,.15); }

/* ── Salary slider — enhanced ── */
.jb-sal-display {
  font-size: .875rem; font-weight: 700; color: var(--text);
  margin-bottom: .625rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -.01em;
}
.jb-sal-wrap { padding: 0 4px; }
.jb-sal-track {
  position: relative; height: 6px;
  background: #E5E7EB; border-radius: 99px;
  margin: 22px 8px 12px;
}
.jb-sal-fill {
  position: absolute; height: 6px;
  background: linear-gradient(90deg, #6356FF 0%, #818CF8 100%);
  border-radius: 99px;
  pointer-events: none;
}
.jb-sal-thumb {
  position: absolute; top: 50%;
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2.5px solid var(--primary);
  border-radius: 50%;
  cursor: grab; z-index: 2;
  box-shadow: 0 1px 5px rgba(0,0,0,.14), 0 0 0 0 rgba(99,86,255,.2);
  transition: box-shadow .18s;
}
.jb-sal-thumb:hover,
.jb-sal-thumb.jb-sal-dragging {
  cursor: grabbing;
  box-shadow: 0 1px 5px rgba(0,0,0,.14), 0 0 0 8px rgba(99,86,255,.18);
}
.jb-sal-tip {
  position: absolute;
  bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: #1e293b; color: #fff;
  font-size: .6875rem; font-weight: 700;
  padding: 3px 8px; border-radius: 5px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s;
  font-family: 'JetBrains Mono', monospace;
}
.jb-sal-tip::after {
  content: ''; position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1e293b;
}
.jb-sal-thumb:hover .jb-sal-tip,
.jb-sal-thumb.jb-sal-dragging .jb-sal-tip { opacity: 1; }
.jb-sal-bounds {
  display: flex; justify-content: space-between;
  font-size: .6875rem; color: var(--text-muted);
  padding: 0 6px; margin-top: 2px;
}

/* ── Skill chips filter ── */
.jb-sk-chips {
  display: flex; flex-wrap: wrap; gap: .3rem;
  margin-bottom: .45rem; min-height: 0;
}
.jb-sk-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: 3px 4px 3px 9px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 99px; font-size: .75rem; font-weight: 600;
  line-height: 1.3; max-width: 100%;
}
.jb-sk-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-sk-chip-rm {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  border: none; background: var(--primary); color: #fff;
  font-size: .625rem; font-weight: 700; cursor: pointer; padding: 0; line-height: 1;
  transition: background .12s, transform .12s;
}
.jb-sk-chip-rm:hover { background: #4338CA; transform: scale(1.1); }
.jb-sk-input-wrap { position: relative; }
.jb-sk-input {
  width: 100%; padding: .4rem .65rem;
  font-size: .8375rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit; box-sizing: border-box;
}
.jb-sk-input::placeholder { color: var(--text-muted); }
.jb-sk-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,86,255,.1);
}
.jb-sk-drop {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 300;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  overflow: hidden; display: none;
}
.jb-sk-drop.open { display: block; }
.jb-sk-drop-item {
  padding: .475rem .75rem;
  font-size: .8375rem; color: var(--text);
  cursor: pointer; transition: background .1s, color .1s;
  display: flex; align-items: center; gap: .45rem;
  user-select: none;
}
.jb-sk-drop-item:hover,
.jb-sk-drop-item.sk-active { background: var(--primary-light); color: var(--primary); }
.jb-sk-drop-item-add {
  color: var(--primary); font-weight: 600;
  border-top: 1px solid var(--border);
}
.jb-sk-drop-item-add:first-child { border-top: none; }
mark { background: none; color: inherit; font-weight: 700; }

/* ── Results ── */
.jb-results { min-width: 0; }
.jb-results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.125rem; flex-wrap: wrap; gap: .625rem;
}
.jb-results-left { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.jb-count { font-size: .9375rem; font-weight: 700; color: var(--text); }
.jb-active-tags { display: flex; gap: .375rem; flex-wrap: wrap; }
.jb-active-tag {
  background: #EFF6FF; color: var(--primary);
  border-radius: 20px; padding: .2rem .625rem;
  font-size: .8125rem; display: flex; align-items: center; gap: .3rem;
}
.jb-active-tag button { background: none; border: none; color: inherit; cursor: pointer; padding: 0; line-height: 1; font-size: .875rem; }
.jb-results-right { display: flex; align-items: center; gap: .625rem; }
.jb-filter-btn {
  display: none; align-items: center; gap: .375rem;
  background: #fff; border: 1.5px solid var(--border); border-radius: 8px;
  padding: .5rem .875rem; font-size: .875rem; font-weight: 500; cursor: pointer; color: var(--text); font-family: inherit;
}
.jb-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.jb-sort {
  background: #fff; border: 1.5px solid var(--border); border-radius: 8px;
  padding: .5rem .875rem; font-size: .875rem; color: var(--text);
  cursor: pointer; outline: none; font-family: inherit;
}

/* ── Job Cards ── */
.jb-jobs-list { display: flex; flex-direction: column; gap: .875rem; }
.jb-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 1.25rem; transition: box-shadow .15s, border-color .15s;
}
.jb-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); border-color: #CBD5E1; }
.jb-card-top { display: flex; gap: .875rem; align-items: flex-start; margin-bottom: .875rem; }
.jb-company-mark {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; font-weight: 800;
}
.jb-card-main { flex: 1; min-width: 0; }
.jb-card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.jb-card-title {
  font-size: 1.0625rem; font-weight: 700; color: var(--text); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jb-bookmark {
  background: none; border: none; cursor: pointer; padding: .25rem;
  color: #9CA3AF; border-radius: 6px; transition: color .15s; flex-shrink: 0;
}
.jb-bookmark:hover, .jb-bookmark.saved { color: var(--primary); }
.jb-card-meta { font-size: .875rem; color: var(--text-muted); margin-top: .2rem; }
.jb-type-badge {
  font-size: .75rem; font-weight: 600; background: #EFF6FF; color: var(--primary);
  padding: .1rem .5rem; border-radius: 20px;
}
.jb-card-meta2 {
  font-size: .8rem; color: var(--text-muted); margin-top: .15rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Match ring */
.jb-ring-wrap {
  position: relative; width: 54px; height: 54px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.jb-ring { width: 54px; height: 54px; transform: rotate(-90deg); }
.jb-ring-pct {
  position: absolute; font-size: .6875rem; font-weight: 700;
  font-family: 'JetBrains Mono', monospace; text-align: center; line-height: 1;
}

/* Signals */
.jb-signals { display: flex; gap: .375rem; flex-wrap: wrap; margin-bottom: .625rem; }
.jb-signal { font-size: .75rem; font-weight: 600; padding: .2rem .625rem; border-radius: 20px; }

/* Skill tags */
.jb-skills-row { display: flex; gap: .375rem; flex-wrap: wrap; margin-bottom: .875rem; }
.jb-skill-v {
  font-size: .75rem; font-weight: 600; background: #DCFCE7; color: #166534;
  padding: .2rem .625rem; border-radius: 20px;
}
.jb-skill-m {
  font-size: .75rem; font-weight: 600; background: #FEFCE8; color: #854D0E;
  border: 1.5px dashed #FDE047; padding: .2rem .625rem; border-radius: 20px;
}

/* Card footer */
.jb-card-foot { display: flex; justify-content: space-between; align-items: center; }
.jb-posted { font-size: .8125rem; color: var(--text-muted); }
.jb-card-actions { display: flex; gap: .5rem; }

/* Empty state */
.jb-empty { text-align: center; padding: 4rem 2rem; }
.jb-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.jb-empty h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.jb-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Detail Panel ── */
.jb-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.jb-overlay.open { opacity: 1; pointer-events: all; }
.jb-detail {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 440px; max-width: 92vw; background: #fff;
  z-index: 201; transform: translateX(102%);
  transition: transform .3s cubic-bezier(.22,.8,.42,1);
  overflow-y: auto; box-shadow: -4px 0 32px rgba(0,0,0,.12);
}
.jb-detail.open { transform: translateX(0); }
.jb-detail-close {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: .4rem .5rem; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.jb-detail-close:hover { background: #F1F5F9; }
.jb-detail-body { padding: .75rem 1.375rem 2.5rem; }

.jb-dp-hero { display: flex; gap: .875rem; align-items: flex-start; margin-bottom: 1.125rem; }
.jb-dp-mark {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800;
}
.jb-dp-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 .25rem; }
.jb-dp-meta { font-size: .9375rem; color: var(--text-muted); }
.jb-dp-meta2 { font-size: .8125rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-top: .2rem; }
.jb-dp-signals { display: flex; gap: .375rem; flex-wrap: wrap; margin-bottom: 1.125rem; }

.jb-dp-section { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.jb-dp-section:last-of-type { border-bottom: none; }
.jb-dp-section h4 {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: .625rem;
}
.jb-dp-section p { color: var(--text); line-height: 1.65; margin: 0; }
.jb-dp-list { padding-left: 1.25rem; margin: 0; }
.jb-dp-list li { color: var(--text); line-height: 1.65; margin-bottom: .25rem; }
.jb-dp-skills { display: flex; gap: .375rem; flex-wrap: wrap; }
.jb-dp-perks { display: flex; gap: .375rem; flex-wrap: wrap; }
.jb-perk {
  background: #F0F9FF; color: #0369A1; font-size: .8125rem;
  font-weight: 500; padding: .25rem .75rem; border-radius: 20px;
}
.jb-dp-actions {
  display: flex; gap: .75rem; align-items: center;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.jb-bookmark-lg {
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  padding: .7rem 1rem; cursor: pointer; color: var(--text-muted);
  font-size: .875rem; font-weight: 500; display: flex; align-items: center; gap: .375rem;
  transition: all .15s; font-family: inherit; white-space: nowrap; flex-shrink: 0;
}
.jb-bookmark-lg:hover, .jb-bookmark-lg.saved { border-color: var(--primary); color: var(--primary); }

/* ── Apply Modal ── */
.jb-modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.jb-modal-back.open { opacity: 1; pointer-events: all; }
.jb-modal {
  background: #fff; border-radius: 16px;
  width: 520px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: scale(.96); transition: transform .2s;
}
.jb-modal-back.open .jb-modal { transform: scale(1); }

.jb-modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.375rem 1.375rem 0; }
.jb-modal-job { display: flex; gap: .75rem; align-items: center; }
.jb-md-mark { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; }
.jb-md-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.jb-md-company { font-size: .875rem; color: var(--text-muted); }
.jb-close-modal { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: .25rem; border-radius: 6px; display: flex; }
.jb-close-modal:hover { color: var(--text); background: var(--bg); }

.jb-modal-body { padding: 1.125rem 1.375rem 1.375rem; }
.jb-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.jb-mf label { display: block; font-size: .8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; }
.jb-optional { font-weight: 400; color: #9CA3AF; }
.jb-modal-skills { display: flex; gap: .375rem; flex-wrap: wrap; padding: .5rem 0; }
.jb-no-skills { font-size: .8125rem; color: var(--text-muted); }
.jb-missing-note { font-size: .75rem; color: #854D0E; background: #FEFCE8; padding: .2rem .625rem; border-radius: 20px; }

/* Skill exam nudge in apply modal */
.jb-exam-nudge {
  margin-top: .5rem; padding: .625rem .75rem;
  border-radius: 10px; background: #F8FAFF;
  border: 1.5px solid #C7D2FE;
}
.jb-exam-nudge.jb-exam-mandatory {
  background: #FFFBEB; border-color: #FCD34D;
}
.jb-exam-nudge-label {
  font-size: .75rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: .45rem;
  display: flex; align-items: center; gap: .375rem;
}
.jb-exam-mandatory .jb-exam-nudge-label {
  color: #92400E;
}
.jb-exam-skill-links {
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.jb-exam-skill-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: 4px 10px; border-radius: 99px;
  font-size: .75rem; font-weight: 600;
  background: var(--primary-light); color: var(--primary);
  text-decoration: none; border: 1px solid #C7D2FE;
  transition: background .13s, border-color .13s, transform .1s;
  white-space: nowrap;
}
.jb-exam-skill-link:hover {
  background: #E0E7FF; border-color: var(--primary);
  text-decoration: none; transform: translateY(-1px);
}
.jb-exam-skill-link svg { flex-shrink: 0; }
.jb-exam-skill-plain {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 99px;
  font-size: .75rem; font-weight: 500;
  background: #FEF9C3; color: #854D0E;
  border: 1px solid #FDE68A;
}

.jb-submit-blocked {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1.25rem; padding: .6rem .875rem;
  background: #FEF3C7; border: 1px solid #FCD34D; border-radius: 8px;
  font-size: .8rem; font-weight: 500; color: #92400E;
}

.jb-upload-zone {
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 1.25rem; text-align: center; cursor: pointer; transition: all .15s;
}
.jb-upload-zone:hover { border-color: var(--primary); background: #F0F9FF; }
.jb-upload-text { display: block; font-size: .875rem; font-weight: 500; color: var(--text); margin-top: .5rem; }
.jb-upload-hint { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.jb-upload-chosen { display: block; font-size: .8125rem; color: var(--primary); font-weight: 500; margin-top: .375rem; min-height: 1em; }

/* Resume on-file row */
.jb-resume-onfile {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 1rem;
  border: 1.5px solid #D1FAE5; border-radius: 10px;
  background: #F0FDF4;
}
.jb-resume-onfile-left { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.jb-resume-onfile-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #DCFCE7; color: #16A34A;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.jb-resume-onfile-name {
  font-size: .8125rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.jb-resume-onfile-status { font-size: .72rem; color: #16A34A; margin-top: 2px; font-weight: 500; }
.jb-resume-replace-btn {
  font-size: .75rem; font-weight: 600; color: var(--primary);
  border: 1px solid var(--border); border-radius: 6px;
  padding: .3rem .7rem; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  background: #fff; transition: border-color .15s, background .15s;
}
.jb-resume-replace-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.jb-upload-chosen-replace { font-size: .78rem; color: var(--primary); font-weight: 500; margin-top: .35rem; display: none; }

.jb-apply-success { text-align: center; padding: 3rem 2rem; }
.jb-success-icon {
  width: 64px; height: 64px; background: #10B981; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
}
.jb-apply-success h3 { font-size: 1.375rem; font-weight: 800; margin-bottom: .5rem; }
.jb-apply-success p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Toast ── */
.jb-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: #1F2937; color: #fff;
  padding: .75rem 1.125rem; border-radius: 10px;
  font-size: .9rem; font-weight: 500;
  display: flex; align-items: center; gap: .5rem;
  z-index: 400; opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.jb-toast.show { opacity: 1; transform: translateY(0); }

/* ── Mobile Filter Drawer ── */
.jb-drawer-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 250; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.jb-drawer-back.open { opacity: 1; pointer-events: all; }
.jb-drawer {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 300px; max-width: 88vw; background: #fff;
  z-index: 251; transform: translateX(-102%);
  transition: transform .3s; overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
}
.jb-drawer.open { transform: translateX(0); }
.jb-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.375rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1;
}
.jb-drawer-head > span { font-size: 1rem; font-weight: 700; }
.jb-drawer-head button { background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; }
.jb-drawer-body { padding: 1.25rem 1.375rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .jb-layout { grid-template-columns: 1fr; }
  .jb-sidebar { display: none; }
  .jb-filter-btn { display: flex !important; }
}
@media (max-width: 760px) {
  .jb-search-btn { flex: 1 0 100%; align-self: auto; }
}
@media (max-width: 640px) {
  .jb-hero { padding: 2.5rem 0 2rem; }
  .jb-hero-title { font-size: 1.875rem; }
  .jb-search-row { flex-direction: column; }
  .jb-search-btn { width: 100%; justify-content: center; }
  .jb-chips-row { flex-direction: column; align-items: flex-start; }
  .jb-vtoggle { order: -1; }
  .jb-card-top { flex-wrap: wrap; }
  .jb-modal-grid { grid-template-columns: 1fr; }
  .jb-detail { width: 100vw; max-width: 100vw; }
  .jb-dp-hero { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════
   Exam Pages — Shared standalone header
══════════════════════════════════════════ */
.ei-body, .ec-body, .ea-body, .er-body {
  font-family: 'Inter', sans-serif;
  background: #F1F5F9;
  margin: 0; padding: 0; min-height: 100vh;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}

/* Shared header */
.ei-header, .er-header {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.ei-logo, .er-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: #0F172A; font-weight: 700; font-size: .9375rem;
}
.ei-logo-icon, .er-logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #2563EB;
  display: flex; align-items: center; justify-content: center;
}
.ei-header-label, .er-header-label {
  font-size: .8125rem; color: #64748B; font-weight: 500;
}

/* ── Exam Instructions Page (ei-) ── */
.ei-main { padding: 2.5rem 1rem 4rem; }
.ei-content { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }

.ei-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 2rem 2.25rem;
}

/* Overview row */
.ei-overview-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.75rem; flex-wrap: wrap;
}
.ei-title { font-size: 1.5rem; font-weight: 800; color: #0F172A; margin: 0 0 .25rem; }
.ei-subtitle { font-size: .875rem; color: #64748B; margin: 0 0 .625rem; }
.ei-prev-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; padding: .3rem .75rem;
  border-radius: 20px;
}
.ei-prev-pass { background: #DCFCE7; color: #166534; }
.ei-prev-fail { background: #FEE2E2; color: #991B1B; }
.ei-duration-pill {
  display: flex; align-items: center; gap: .4rem;
  background: #EFF6FF; color: #1D4ED8; font-size: .8125rem; font-weight: 600;
  padding: .5rem 1rem; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}

/* Meta boxes */
.ei-meta-row {
  display: flex; gap: .75rem; flex-wrap: wrap;
  background: #F8FAFC; border: 1px solid #E2E8F0;
  border-radius: 14px; padding: .875rem 1rem;
}
.ei-meta-box {
  flex: 1; min-width: 130px;
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem;
}
.ei-meta-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ei-mi-blue   { background: #EFF6FF; color: #2563EB; }
.ei-mi-green  { background: #DCFCE7; color: #16A34A; }
.ei-mi-purple { background: #EDE9FE; color: #7C3AED; }
.ei-mi-amber  { background: #FEF3C7; color: #D97706; }
.ei-mi-indigo { background: #E0E7FF; color: #4338CA; }
.ei-meta-label { font-size: .8rem; font-weight: 500; color: #64748B; }
.ei-meta-val   { font-size: .9375rem; font-weight: 700; color: #0F172A; margin-top: .2rem; }

/* Card title */
.ei-card-title {
  font-size: 1rem; font-weight: 700; color: #0F172A;
  margin: 0 0 1.25rem; display: flex; align-items: center; gap: .5rem;
}

/* Instruction list */
.ei-instr-list { display: flex; flex-direction: column; gap: .875rem; }
.ei-instr-item { display: flex; align-items: flex-start; gap: .875rem; font-size: .9rem; color: #334155; line-height: 1.55; }
.ei-instr-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #EFF6FF; color: #2563EB;
  font-size: .75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: .1rem;
}

/* Proctor alert */
.ei-proctor-alert {
  background: #FFFBEB; border: 1px solid #FDE68A;
  border-radius: 10px; padding: .875rem 1.125rem;
  font-size: .875rem; color: #92400E; font-weight: 500;
  display: flex; align-items: flex-start; gap: .625rem;
  margin-bottom: 1.25rem; line-height: 1.5;
}
.ei-proctor-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.ei-proctor-row { display: flex; align-items: flex-start; gap: 1rem; }
.ei-proctor-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #EFF6FF; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ei-proctor-name { font-size: .9rem; font-weight: 700; color: #0F172A; margin-bottom: .2rem; }
.ei-proctor-desc { font-size: .84rem; color: #64748B; line-height: 1.5; }

/* Prohibited */
.ei-prohibited {
  background: #FFF5F5; border: 1px solid #FECACA;
  border-radius: 10px; padding: 1rem 1.25rem;
}
.ei-prohibited-title { font-size: .875rem; font-weight: 700; color: #991B1B; margin-bottom: .625rem; }
.ei-prohibited-list { margin: 0; padding-left: 1.25rem; color: #B91C1C; font-size: .875rem; line-height: 1.8; }

/* Consent checkboxes */
.ei-consents { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 1.5rem; }
.ei-consent-row {
  display: flex; align-items: flex-start; gap: .875rem;
  cursor: pointer; padding: .875rem 1rem;
  border: 1px solid #E2E8F0; border-radius: 10px;
  font-size: .9rem; color: #334155; line-height: 1.5;
  transition: border-color .15s, background .15s;
}
.ei-consent-row:hover { border-color: #93C5FD; background: #F8FBFF; }
.ei-cb-wrap { position: relative; flex-shrink: 0; margin-top: .15rem; }
.ei-cb-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }
.ei-cb {
  display: block; width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid #CBD5E1; background: #fff;
  transition: border-color .15s, background .15s;
}
.ei-cb-wrap input:checked ~ .ei-cb { background: #2563EB; border-color: #2563EB; }
.ei-cb-wrap input:checked ~ .ei-cb::after {
  content: ''; display: block;
  width: 4px; height: 8px; border: 2px solid #fff;
  border-top: none; border-left: none;
  margin: 2px auto 0; transform: rotate(45deg);
}

/* Start button */
.ei-start-wrap { display: flex; justify-content: center; margin-bottom: 1rem; }
.ei-start-btn {
  padding: .875rem 2.5rem; border-radius: 10px; border: none; cursor: pointer;
  font-size: .9375rem; font-weight: 700; font-family: 'Inter', sans-serif;
  transition: background .2s, transform .1s, box-shadow .2s;
  background: #CBD5E1; color: #94A3B8;
}
.ei-start-btn:not(:disabled) {
  background: #2563EB; color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.ei-start-btn:not(:disabled):hover { background: #1D4ED8; transform: translateY(-1px); }
.ei-note { text-align: center; font-size: .8125rem; color: #94A3B8; }
.ei-back-link { font-size: .875rem; color: #64748B; text-decoration: none; }
.ei-back-link:hover { color: #2563EB; text-decoration: underline; }

/* ── Environment Check (ec-) ── */
.ec-overlay {
  position: fixed; inset: 0; background: #F1F5F9; z-index: 200;
  display: flex; flex-direction: column; overflow-y: auto;
}
.ec-header {
  background: #fff; border-bottom: 1px solid #E2E8F0;
  padding: 0 2rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.ec-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #0F172A; font-weight: 700; font-size: .9375rem; }
.ec-logo-icon { width: 32px; height: 32px; border-radius: 8px; background: #2563EB; display: flex; align-items: center; justify-content: center; }
.ec-header-label { font-size: .8125rem; color: #64748B; font-weight: 500; }

.ec-main { padding: 2.5rem 1rem 4rem; flex: 1; }
.ec-content { max-width: 720px; margin: 0 auto; }

.ec-card {
  background: #fff; border-radius: 16px; border: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 1.75rem 2rem; margin-bottom: 1.25rem;
}

/* Camera box */
.ec-cam-box {
  background: #0F172A; border-radius: 12px;
  aspect-ratio: 16/9; width: 100%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; overflow: hidden; position: relative;
}
.ec-cam-box video { width: 100%; height: 100%; object-fit: cover; }
.ec-cam-placeholder { color: #475569; font-size: .875rem; text-align: center; padding: 1rem; }

/* Check items */
.ec-check-item { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: #334155; }

.ec-upload-zone {
  border: 2px dashed #CBD5E1; border-radius: 10px;
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ec-upload-zone:hover { border-color: #93C5FD; background: #F8FBFF; }
.ec-upload-text { font-size: .875rem; color: #64748B; }

/* ── Active Exam (ea-) ── */
.ea-body { background: #F1F5F9; }

.ea-header {
  background: #fff; border-bottom: 1px solid #E2E8F0;
  padding: 0 1.75rem; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: sticky; top: 0; z-index: 100;
}
/* Left group: big icon + title/counter */
.ea-header-left { display: flex; align-items: center; gap: .875rem; }
.ea-logo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: #2563EB; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ea-exam-name { font-size: .9375rem; font-weight: 700; color: #0F172A; line-height: 1.2; }
.ea-q-counter { font-size: .8125rem; color: #64748B; margin-top: .15rem; }

/* Right group: timer + submit */
.ea-header-right { display: flex; align-items: center; gap: .875rem; }

.ea-timer-pill {
  display: flex; align-items: center; gap: .45rem;
  background: #F1F5F9; color: #2563EB; font-weight: 700; font-size: .9375rem;
  padding: .5rem 1rem; border-radius: 20px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  border: 1px solid #E2E8F0;
}
.ea-timer-pill.warning { background: #FEF3C7; color: #D97706; border-color: #FDE68A; }
.ea-timer-pill.danger  { background: #FEE2E2; color: #DC2626; border-color: #FECACA; animation: ea-pulse .7s ease-in-out infinite; }
@keyframes ea-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* Big blue rounded Submit button */
.ea-submit-hdr-btn, .ea-submit-btn {
  padding: .65rem 1.5rem; background: #2563EB; color: #fff; border: none;
  border-radius: 10px; font-size: .9rem; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
  transition: background .15s, box-shadow .15s;
}
.ea-submit-hdr-btn:hover, .ea-submit-btn:hover { background: #1D4ED8; box-shadow: 0 4px 14px rgba(37,99,235,.4); }

/* Layout */
.ea-layout { display: flex; gap: 1.25rem; padding: 1.25rem 1.5rem; max-width: 1200px; margin: 0 auto; align-items: flex-start; }
.ea-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.ea-panel { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem; }

/* Question card */
.ea-question-card {
  background: #fff; border-radius: 16px; border: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 2rem 2.25rem;
}
.ea-q-type-badge { background: #EFF6FF; color: #1D4ED8; font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: 20px; }
.ea-flag-btn {
  display: flex; align-items: center; gap: .35rem;
  font-size: .8125rem; color: #64748B; background: #F8FAFC; border: 1px solid #E2E8F0;
  border-radius: 7px; padding: .35rem .75rem; cursor: pointer; font-family: 'Inter', sans-serif;
}
.ea-flag-btn:hover { border-color: #F59E0B; color: #F59E0B; background: #FFFBEB; }
.ea-q-text { font-size: 1rem; font-weight: 600; color: #0F172A; line-height: 1.6; margin-bottom: 1.5rem; }

/* Options */
.ea-options { display: flex; flex-direction: column; gap: .75rem; }
.ea-option {
  display: flex; align-items: flex-start; gap: .875rem;
  padding: .9rem 1.125rem; border-radius: 10px;
  border: 2px solid #E2E8F0; cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: .9rem; color: #334155; line-height: 1.5;
}
.ea-option:hover { border-color: #93C5FD; background: #F8FBFF; }
.ea-option.selected { border-color: #2563EB; background: #EFF6FF; }

/* Bottom nav */
.ea-nav-bar {
  background: #fff; border-radius: 14px; border: 1px solid #E2E8F0;
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ea-nav-pos { font-size: .875rem; color: #64748B; font-weight: 500; }

/* Right panel */
.ea-dot-green { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: ea-blink 2s ease-in-out infinite; }
@keyframes ea-blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.ea-dot-gray  { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }

/* Webcam box in panel */
.ea-webcam-box {
  background: #0F172A; border-radius: 10px;
  aspect-ratio: 4/3; overflow: hidden;
  display: flex; align-items: center; justify-content: center; margin-bottom: .5rem;
}
.ea-webcam-box video { width: 100%; height: 100%; object-fit: cover; }

/* (palette/progress/legend styles moved to panel-section block above) */

/* Modal */
.ea-modal-backdrop,
.ea-modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 500;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.ea-modal-backdrop.open,
.ea-modal-back.ea-modal-open { display: flex; }
.ea-modal {
  background: #fff; border-radius: 18px; padding: 2rem;
  max-width: 420px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.ea-modal h3 { font-size: 1.0625rem; font-weight: 800; color: #0F172A; text-align: center; margin: 0 0 .5rem; }
.ea-modal p  { font-size: .875rem; color: #64748B; text-align: center; margin: 0 0 1.5rem; line-height: 1.55; }
.ea-modal-btns { display: flex; gap: .75rem; }
.ea-modal-btns button { flex: 1; padding: .75rem; border-radius: 9px; font-size: .9rem; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; border: none; }
.ea-mbtn-cancel, .ea-modal-cancel { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0 !important; }
.ea-mbtn-confirm, .ea-modal-submit { background: #2563EB; color: #fff; }
.ea-modal-submit:hover, .ea-mbtn-confirm:hover { background: #1D4ED8; }
.ea-modal-warn-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: #FEF3C7; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.ea-modal-red-icon { background: #FEE2E2; }
.ea-modal-stats {
  background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 9px;
  padding: .625rem 1rem; font-size: .875rem; color: #166534; font-weight: 600;
  margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .3rem;
}
.ea-modal-danger .ea-modal h3, .ea-modal.ea-modal-danger h3 { color: #991B1B; }

/* ── Exam Result (er-) ── */
.er-main { padding: 2.5rem 1rem 4rem; }
.er-content { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }

.er-card {
  background: #fff; border-radius: 16px; border: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 2rem 2.25rem;
}
.er-card-pass { border-top: 4px solid #10B981; text-align: center; }
.er-card-fail { border-top: 4px solid #EF4444; text-align: center; }

/* Verdict ring */
.er-verdict-ring {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
}
.er-ring-pass { background: #10B981; box-shadow: 0 0 0 12px #DCFCE7; }
.er-ring-fail { background: #EF4444; box-shadow: 0 0 0 12px #FEE2E2; }

.er-verdict-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 .5rem; }
.er-pass-text { color: #065F46; }
.er-fail-text { color: #991B1B; }
.er-verdict-sub { font-size: .9rem; color: #64748B; margin: 0 0 1.25rem; line-height: 1.55; }

.er-status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 700; padding: .4rem 1rem; border-radius: 20px;
}
.er-pill-pass { background: #DCFCE7; color: #166534; }
.er-pill-fail { background: #FEE2E2; color: #991B1B; }

.er-card-title { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0 0 1.5rem; }

/* Score row */
.er-score-row {
  display: flex; align-items: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.er-donut-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.er-donut-svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.er-donut-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.er-donut-score { font-size: 1.375rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.er-score-pass { color: #10B981; }
.er-score-fail { color: #EF4444; }
.er-donut-label { font-size: .7rem; color: #94A3B8; font-weight: 500; margin-top: .1rem; }

/* Stat boxes */
.er-stat-boxes { flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.er-stat-box { display: flex; align-items: center; gap: .875rem; padding: .875rem 1rem; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; }
.er-stat-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.er-si-green  { background: #DCFCE7; color: #16A34A; }
.er-si-red    { background: #FEE2E2; color: #DC2626; }
.er-si-blue   { background: #DBEAFE; color: #2563EB; }
.er-si-purple { background: #EDE9FE; color: #7C3AED; }
.er-stat-val { font-size: 1.0625rem; font-weight: 800; color: #0F172A; }
.er-stat-lbl { font-size: .75rem; color: #64748B; margin-top: .1rem; }

/* Performance banner */
.er-perf-banner {
  border-radius: 10px; padding: .875rem 1.125rem;
  font-size: .875rem; font-weight: 600;
  display: flex; align-items: center; gap: .625rem; line-height: 1.5;
}
.er-perf-pass { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.er-perf-fail { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* Next steps */
.er-next-steps { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.er-next-item { display: flex; align-items: flex-start; gap: .875rem; }
.er-next-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem;
}
.er-ni-green { background: #DCFCE7; color: #16A34A; }
.er-next-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: #EFF6FF; color: #2563EB;
  font-size: .8125rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem;
}
.er-next-title { font-size: .9375rem; font-weight: 700; color: #0F172A; margin-bottom: .25rem; }
.er-next-desc  { font-size: .875rem; color: #64748B; line-height: 1.55; }

/* Action buttons */
.er-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.er-btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.75rem; background: #2563EB; color: #fff;
  border-radius: 9px; font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: background .2s; white-space: nowrap;
}
.er-btn-primary:hover { background: #1D4ED8; }
.er-btn-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.75rem; background: #fff; color: #475569;
  border: 1px solid #E2E8F0; border-radius: 9px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: background .15s; white-space: nowrap;
}
.er-btn-outline:hover { background: #F8FAFC; border-color: #CBD5E1; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ea-layout { flex-direction: column; padding: 1rem; }
  .ea-panel { width: 100%; }
  .ea-header { padding: 0 1rem; height: 60px; }
  .ea-logo-icon { width: 36px; height: 36px; }
  .ea-submit-hdr-btn, .ea-submit-btn { padding: .55rem 1rem; font-size: .8125rem; }
  .ei-meta-row { gap: .375rem; padding: .625rem .75rem; }
  .ei-meta-box { min-width: 110px; padding: .5rem .5rem; }
}
@media (max-width: 600px) {
  .ei-card, .er-card { padding: 1.5rem 1.25rem; }
  .er-score-row { flex-direction: column; align-items: flex-start; }
  .er-actions { flex-direction: column; }
  .er-btn-primary, .er-btn-outline { justify-content: center; }
  .ei-overview-row { flex-direction: column; }
}

/* ── Active Exam: missing panel classes ── */

/* Panel section wrapper */
.ea-panel-section {
  background: #fff; border-radius: 14px; border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); padding: 1.125rem 1.25rem;
  margin-bottom: 1rem;
}
.ea-panel-title {
  font-size: .875rem; font-weight: 700; color: #0F172A;
  margin: 0 0 .875rem; display: flex; align-items: center; gap: .4rem;
}

/* Proctoring list */
.ea-proctor-list { display: flex; flex-direction: column; gap: .625rem; margin-bottom: .875rem; }
.ea-proctor-row  { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: #374151; }
.ea-proctor-row span:nth-child(2) { flex: 1; }
.ea-cam-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .375rem; color: #6B7280; font-size: .75rem; padding: .5rem;
}

/* Progress rows */
.ea-progress-rows { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .875rem; }
.ea-prog-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .875rem; color: #374151;
}
.ea-prog-num {
  font-size: .9375rem; font-weight: 800;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #0F172A;
}
.ea-prog-green { color: #16A34A; }
.ea-prog-amber { color: #D97706; }

/* Progress bar */
.ea-prog-bar-wrap {
  height: 6px; background: #E2E8F0; border-radius: 99px; overflow: hidden;
}
.ea-prog-bar-fill {
  height: 100%; background: #2563EB; border-radius: 99px;
  transition: width .4s ease;
}

/* Question Palette — 5 columns, large rounded buttons */
.ea-palette {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem;
  margin-bottom: 1rem;
}
.ea-pq {
  aspect-ratio: 1; width: 100%; border-radius: 10px;
  border: 2px solid #E2E8F0; background: #F8FAFC;
  font-size: .875rem; font-weight: 700; cursor: pointer;
  font-family: 'JetBrains Mono', 'Courier New', monospace; color: #475569;
  transition: border-color .15s, background .15s, color .15s;
  display: flex; align-items: center; justify-content: center;
}
.ea-pq:hover         { border-color: #93C5FD; background: #EFF6FF; color: #1D4ED8; }
.ea-pq.ea-pq-ans     { background: #DCFCE7; border-color: #86EFAC; color: #166534; }
.ea-pq.ea-pq-flag    { background: #FEF3C7; border-color: #FDE68A; color: #D97706; }
.ea-pq.ea-pq-current {
  background: #fff; border-color: #2563EB; border-width: 3px; color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Legend — vertical list */
.ea-legend { display: flex; flex-direction: column; gap: .5rem; }
.ea-lg-item { display: flex; align-items: center; gap: .625rem; font-size: .8125rem; color: #374151; }
.ea-lg {
  width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0;
}
.ea-lg-ans     { background: #DCFCE7; border: 1.5px solid #86EFAC; }
.ea-lg-un      { background: #F1F5F9; border: 1.5px solid #E2E8F0; }
.ea-lg-current { background: #fff; border: 2.5px solid #2563EB; }
.ea-lg-flag    { background: #FEF3C7; border: 1.5px solid #FDE68A; }

/* Nav buttons (ea-nav-prev / ea-nav-next) */
.ea-nav-prev, .ea-nav-next {
  display: flex; align-items: center; gap: .4rem;
  padding: .625rem 1.25rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
  border: 1px solid #E2E8F0; background: #fff; color: #475569;
  transition: background .15s, border-color .15s;
}
.ea-nav-prev:hover:not(:disabled), .ea-nav-next:hover:not(:disabled) { background: #F1F5F9; border-color: #CBD5E1; }
.ea-nav-prev:disabled, .ea-nav-next:disabled { opacity: .4; cursor: default; }
.ea-nav-next { background: #2563EB; color: #fff; border-color: #2563EB; }
.ea-nav-next:hover:not(:disabled) { background: #1D4ED8; }
.ea-nav-pos { font-size: .875rem; color: #64748B; font-weight: 500; }

/* Option styles (ea-opt-radio / ea-opt-text) */
.ea-opt-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CBD5E1;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem;
  transition: border-color .15s; position: relative;
}
.ea-option input[type="radio"] { display: none; }
.ea-option input[type="radio"]:checked ~ .ea-opt-radio { border-color: #2563EB; }
.ea-option input[type="radio"]:checked ~ .ea-opt-radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #2563EB; display: block;
}
.ea-opt-text { font-size: .9rem; color: #334155; line-height: 1.5; }
.ea-option { display: flex; align-items: flex-start; gap: .875rem; padding: .9rem 1.125rem; border-radius: 10px; border: 2px solid #E2E8F0; cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: .75rem; }
.ea-option:hover { border-color: #93C5FD; background: #F8FBFF; }
.ea-option:has(input:checked) { border-color: #2563EB; background: #EFF6FF; }

/* Flag button */
.ea-flag-btn-wrap { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.ea-flag-btn-inner {
  display: flex; align-items: center; gap: .35rem;
  font-size: .8125rem; color: #64748B; background: #F8FAFC; border: 1px solid #E2E8F0;
  border-radius: 7px; padding: .35rem .75rem; cursor: pointer; font-family: 'Inter', sans-serif;
}
.ea-flag-btn-inner:hover { border-color: #F59E0B; color: #F59E0B; background: #FFFBEB; }
.ea-flag-active { border-color: #F59E0B !important; color: #D97706 !important; background: #FFFBEB !important; }

/* ── Device Blocked Overlay (db-) ── */
.db-overlay {
  position: fixed; inset: 0; background: #F1F5F9; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  font-family: 'Inter', sans-serif;
}
.db-card {
  background: #fff; border-radius: 20px; border: 1px solid #E2E8F0;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  padding: 3rem 2.5rem; max-width: 480px; width: 100%; text-align: center;
}
.db-icon {
  width: 76px; height: 76px; border-radius: 20px;
  background: #FEF3C7; margin: 0 auto 1.75rem;
  display: flex; align-items: center; justify-content: center;
}
.db-title { font-size: 1.5rem; font-weight: 800; color: #0F172A; margin: 0 0 1rem; }
.db-desc { font-size: .9375rem; color: #475569; margin: 0 0 .5rem; line-height: 1.65; }
.db-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2rem; padding: .875rem 2.25rem;
  background: #2563EB; color: #fff; border-radius: 10px;
  font-size: .9375rem; font-weight: 700; text-decoration: none;
  transition: background .15s; box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.db-btn:hover { background: #1D4ED8; }
.db-note {
  font-size: .8125rem; color: #94A3B8; margin: 1.5rem 0 0; line-height: 1.6;
}
.db-divider { border: none; border-top: 1px solid #F1F5F9; margin: 1.75rem 0 0; }

/* ── Security Warning Toast (sec-toast) ── */
.sec-toast {
  position: fixed; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 9100; min-width: 340px; max-width: 540px;
  border-radius: 12px; padding: .875rem 1.25rem;
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .875rem; font-weight: 500; line-height: 1.5;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  opacity: 0; pointer-events: none; font-family: 'Inter', sans-serif;
}
.sec-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: auto;
}
.sec-toast-mild  { background: #1C2128; color: #E2E8F0; border: 1px solid #30363D; }
.sec-toast-strong{ background: #2D0000; color: #FCA5A5; border: 1px solid #7C1D1D; }
.sec-toast-icon  { flex-shrink: 0; margin-top: .1rem; }
.sec-toast-close {
  margin-left: auto; flex-shrink: 0; background: none; border: none;
  color: inherit; opacity: .6; cursor: pointer; font-size: 1rem; padding: 0;
}

/* ── Environment Check missing classes ── */
.ec-title { font-size: 1.375rem; font-weight: 800; color: #0F172A; margin: 0 0 .375rem; }
.ec-subtitle { font-size: .9rem; color: #64748B; margin: 0 0 1.75rem; }
.ec-section-title { font-size: .9375rem; font-weight: 700; color: #0F172A; margin: 0 0 1.125rem; }

/* Check rows inside ec-card */
.ec-check-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 0; border-bottom: 1px solid #F1F5F9; font-size: .875rem; color: #334155;
}
.ec-check-item:last-child { border-bottom: none; }
.ec-check-status {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #E2E8F0; color: #94A3B8;
}
.ec-check-status.ec-ok      { background: #DCFCE7; color: #16A34A; }
.ec-check-status.ec-fail    { background: #DC2626; color: #fff; }
.ec-check-status.ec-pending { background: #DBEAFE; color: #2563EB; }
.ec-check-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #F1F5F9; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #64748B;
}
.ec-check-name { font-size: .875rem; font-weight: 600; color: #0F172A; }
.ec-check-desc { font-size: .8rem; color: #64748B; margin-top: .1rem; }

/* Identity choice */
.ec-id-choice {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: #334155;
  cursor: pointer; margin-bottom: 1rem;
}
.ec-id-choice input { accent-color: #2563EB; }

/* Upload enhancements */
.ec-choose-btn {
  margin-top: .75rem; padding: .4rem 1rem;
  border: 1px solid #E2E8F0; border-radius: 7px;
  background: #fff; color: #475569; font-size: .8125rem; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.ec-choose-btn:hover { background: #F1F5F9; }
.ec-upload-hint { font-size: .75rem; color: #94A3B8; margin-top: .5rem; }
.ec-upload-chosen { font-size: .8125rem; color: #2563EB; font-weight: 600; margin-top: .375rem; min-height: .875rem; }

/* Important notice — full-width yellow card */
.ec-important {
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .875rem; color: #92400E; line-height: 1.55;
}

/* Actions — centered, large pill buttons */
.ec-actions {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding-bottom: 1rem; flex-wrap: wrap;
}
.ec-cancel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .875rem 2.25rem; border-radius: 50px;
  background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0;
  font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background .15s;
  min-width: 140px;
}
.ec-cancel-btn:hover { background: #E2E8F0; }
.ec-proceed-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .875rem 2.25rem; border-radius: 50px; border: none;
  background: #CBD5E1; color: #94A3B8;
  font-size: .9375rem; font-weight: 700; cursor: not-allowed;
  font-family: 'Inter', sans-serif; transition: background .2s, color .2s, box-shadow .2s;
  min-width: 200px;
}
.ec-proceed-btn:not(:disabled) {
  background: #2563EB; color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.ec-proceed-btn:not(:disabled):hover { background: #1D4ED8; }

/* ── Full-Screen Status Badge ── */
.ea-fs-badge {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .01em;
  color: #16A34A; background: #DCFCE7; border: 1px solid #86EFAC;
  padding: .3rem .875rem; border-radius: 20px; white-space: nowrap;
}
.ea-fs-badge.ea-fs-badge-off {
  color: #DC2626; background: #FEE2E2; border-color: #FECACA;
}

/* ── Exam Locked Blur State (fullscreen exited) ── */
.ea-exam-locked .ea-layout {
  filter: blur(8px) brightness(.7);
  pointer-events: none; user-select: none;
}
.ea-exam-locked .ea-header {
  filter: blur(4px) brightness(.7);
  pointer-events: none;
}

/* ── Full-Screen Blocking Modal ── */
.ea-modal-fs .ea-modal-fs-icon {
  background: #DBEAFE;
}
.ea-fs-warn-banner {
  background: #FEF3C7; border: 1px solid #FDE68A; border-radius: 9px;
  padding: .75rem 1rem; font-size: .8125rem; font-weight: 600; color: #92400E;
  margin-bottom: 1.25rem; text-align: center; line-height: 1.5;
}
.ea-fs-critical-banner {
  background: #FEE2E2; border: 1px solid #FECACA; border-radius: 9px;
  padding: .75rem 1rem; font-size: .8125rem; font-weight: 600; color: #991B1B;
  margin-bottom: 1.25rem; text-align: center; line-height: 1.5;
}
.ea-fs-return-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem !important;
}
.ea-fs-modal-note {
  font-size: .7rem; color: #94A3B8; text-align: center; margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Dark mode overrides for fullscreen elements */
body.dark-exam .ea-fs-badge        { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.4); color: #4ADE80; }
body.dark-exam .ea-fs-badge-off    { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4); color: #F87171; }
body.dark-exam .ea-modal-fs .ea-modal-fs-icon { background: #0D2044; }
body.dark-exam .ea-fs-warn-banner  { background: #2D1F00; border-color: #7C4B00; color: #E3B341; }
body.dark-exam .ea-fs-critical-banner { background: #2D0000; border-color: #7C1D1D; color: #FCA5A5; }
body.dark-exam .ea-fs-modal-note   { color: #4B5563; }

/* ══════════════════════════════════════════════════
   ACTIVE EXAM — DARK MODE  (body.dark-exam)
   Activated automatically when candidate starts exam.
   Result page stays light; Instructions stay light.
══════════════════════════════════════════════════ */

/* ── Page & layout ── */
body.dark-exam {
  background: #0D1117;
  color: #E2E8F0;
}

/* ── Header ── */
body.dark-exam .ea-header {
  background: #161B22;
  border-bottom-color: #21262D;
  box-shadow: 0 1px 0 #21262D;
}
body.dark-exam .ea-exam-name { color: #F1F5F9; }
body.dark-exam .ea-q-counter { color: #8B949E; }

body.dark-exam .ea-timer-pill {
  background: #1C2128;
  border-color: #30363D;
  color: #58A6FF;
}
body.dark-exam .ea-timer-pill.warning { background: #2D1F00; border-color: #7C4B00; color: #E3B341; }
body.dark-exam .ea-timer-pill.danger  { background: #3D0000; border-color: #7C1D1D; color: #FF7B72; }

/* ── Layout container ── */
body.dark-exam .ea-layout {
  background: #0D1117;
}

/* ── Question card ── */
body.dark-exam .ea-question-card {
  background: #161B22;
  border-color: #21262D;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
body.dark-exam .ea-q-card-top { border-bottom-color: #21262D; }
.ea-q-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
body.dark-exam .ea-q-type-badge {
  background: #1C2850;
  color: #58A6FF;
}
body.dark-exam .ea-flag-btn {
  background: #1C2128;
  border-color: #30363D;
  color: #8B949E;
}
body.dark-exam .ea-flag-btn:hover,
body.dark-exam .ea-flag-btn.ea-flag-active {
  background: #2D1F00;
  border-color: #7C4B00;
  color: #E3B341;
}
body.dark-exam .ea-q-text { color: #F1F5F9; }

/* ── Answer options ── */
body.dark-exam .ea-option {
  background: #1C2128;
  border-color: #30363D;
  color: #C9D1D9;
}
body.dark-exam .ea-option:hover {
  background: #21262D;
  border-color: #388BFD;
}
body.dark-exam .ea-option:has(input:checked) {
  background: #0D2044;
  border-color: #388BFD;
}
body.dark-exam .ea-opt-radio {
  border-color: #4B5563;
}
body.dark-exam .ea-option:has(input:checked) .ea-opt-radio {
  border-color: #388BFD;
}
body.dark-exam .ea-option:has(input:checked) .ea-opt-radio::after {
  background: #388BFD;
}
body.dark-exam .ea-opt-text { color: #C9D1D9; }

/* ── Bottom nav bar ── */
body.dark-exam .ea-nav-bar {
  background: #161B22;
  border-color: #21262D;
  box-shadow: 0 -1px 0 #21262D;
}
body.dark-exam .ea-nav-prev {
  background: #1C2128;
  border-color: #30363D;
  color: #C9D1D9;
}
body.dark-exam .ea-nav-prev:hover:not(:disabled) {
  background: #21262D;
  border-color: #4B5563;
}
body.dark-exam .ea-nav-prev:disabled { opacity: .3; }
body.dark-exam .ea-nav-next {
  background: #1F6FEB;
  border-color: #1F6FEB;
  color: #fff;
}
body.dark-exam .ea-nav-next:hover:not(:disabled) { background: #388BFD; border-color: #388BFD; }
body.dark-exam .ea-nav-pos { color: #8B949E; }

/* ── Right panel sections ── */
body.dark-exam .ea-panel-section {
  background: #161B22;
  border-color: #21262D;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
body.dark-exam .ea-panel-title { color: #F1F5F9; }

/* Proctoring rows */
body.dark-exam .ea-proctor-row { color: #8B949E; }
body.dark-exam .ea-proctor-row span { color: #C9D1D9; }

/* Webcam box stays dark by default — no override needed */

/* ── Progress ── */
body.dark-exam .ea-prog-row > span:first-child { color: #8B949E; }
body.dark-exam .ea-prog-num { color: #E2E8F0; }
body.dark-exam .ea-prog-green { color: #3FB950; }
body.dark-exam .ea-prog-amber { color: #E3B341; }
body.dark-exam .ea-prog-bar-wrap { background: #21262D; }
body.dark-exam .ea-prog-bar-fill { background: #1F6FEB; }

/* ── Question palette ── */
body.dark-exam .ea-pq {
  background: #1C2128;
  border-color: #30363D;
  color: #8B949E;
}
body.dark-exam .ea-pq:hover { background: #21262D; border-color: #58A6FF; color: #58A6FF; }
body.dark-exam .ea-pq.ea-pq-ans {
  background: #122D1F;
  border-color: #2EA043;
  color: #3FB950;
}
body.dark-exam .ea-pq.ea-pq-flag {
  background: #2D1F00;
  border-color: #9E6A03;
  color: #E3B341;
}
body.dark-exam .ea-pq.ea-pq-current {
  background: #0D2044;
  border-color: #388BFD;
  border-width: 3px;
  color: #58A6FF;
  box-shadow: 0 0 0 3px rgba(56,139,253,.2);
}

/* ── Legend ── */
body.dark-exam .ea-lg-item { color: #8B949E; }
body.dark-exam .ea-lg-ans     { background: #122D1F; border-color: #2EA043; }
body.dark-exam .ea-lg-un      { background: #1C2128; border-color: #30363D; }
body.dark-exam .ea-lg-current { background: #0D2044; border-color: #388BFD; }
body.dark-exam .ea-lg-flag    { background: #2D1F00; border-color: #9E6A03; }

/* ── Submit confirmation modal (inside dark exam) ── */
body.dark-exam .ea-modal-back,
body.dark-exam .ea-modal-backdrop {
  background: rgba(0,0,0,.7);
}
body.dark-exam .ea-modal {
  background: #161B22;
  border: 1px solid #30363D;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
body.dark-exam .ea-modal h3 { color: #F1F5F9; }
body.dark-exam .ea-modal p  { color: #8B949E; }
body.dark-exam .ea-modal-warn-icon { background: #2D1F00; }
body.dark-exam .ea-modal-stats {
  background: #122D1F;
  border-color: #2EA043;
  color: #3FB950;
}
body.dark-exam .ea-modal-cancel,
body.dark-exam .ea-mbtn-cancel {
  background: #21262D;
  color: #C9D1D9;
  border-color: #30363D !important;
}
body.dark-exam .ea-modal-cancel:hover { background: #2D333B; }
body.dark-exam .ea-modal-submit,
body.dark-exam .ea-mbtn-confirm { background: #1F6FEB; color: #fff; }
body.dark-exam .ea-modal-submit:hover { background: #388BFD; }

/* ── Auto-submit modal ── */
body.dark-exam .ea-modal-danger { border-color: #7C1D1D; }
body.dark-exam .ea-modal-red-icon { background: #3D0000; }

/* ── Scrollbar (dark) ── */
body.dark-exam ::-webkit-scrollbar { width: 6px; }
body.dark-exam ::-webkit-scrollbar-track { background: #0D1117; }
body.dark-exam ::-webkit-scrollbar-thumb { background: #30363D; border-radius: 3px; }

/* End of exam-page styles */

/* ══════════════════════════════════════════════════════════════════
   ee-  Exam Ended page
   ══════════════════════════════════════════════════════════════════ */

.ee-body {
  margin: 0;
  background: #F1F5F9;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* ── Header ── */
.ee-header {
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.ee-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #F8FAFC;
  font-weight: 700;
  font-size: .95rem;
}
.ee-logo-icon {
  width: 32px;
  height: 32px;
  background: #2563EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ee-header-label {
  font-size: .75rem;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ── Main ── */
.ee-main { padding: 2.5rem 1rem 4rem; }
.ee-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Cards ── */
.ee-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.ee-card-ended {
  text-align: center;
  border-top: 4px solid #DC2626;
}
.ee-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Verdict ring ── */
.ee-verdict-ring {
  width: 72px;
  height: 72px;
  background: #DC2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.ee-verdict-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #DC2626;
  margin: 0 0 .5rem;
}
.ee-verdict-sub {
  font-size: .9rem;
  color: #64748B;
  margin: 0 0 1.25rem;
}

/* ── Status pill ── */
.ee-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
}

/* ── Reason box ── */
.ee-reason-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.ee-reason-text {
  font-size: .875rem;
  color: #7F1D1D;
  margin: 0 0 1rem;
  line-height: 1.6;
}
.ee-violation-stat {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border-radius: 8px;
  padding: .75rem 1rem;
  border: 1px solid #FECACA;
}
.ee-vs-icon {
  width: 36px;
  height: 36px;
  background: #FEE2E2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ee-vs-label { font-size: .75rem; color: #64748B; font-weight: 500; }
.ee-vs-count { font-size: 1.1rem; font-weight: 800; color: #DC2626; }

/* ── Rules box ── */
.ee-rules-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.ee-rules-title {
  font-size: .8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ee-rules-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ee-rules-list li {
  font-size: .825rem;
  color: #64748B;
  line-height: 1.5;
}

/* ── Next steps ── */
.ee-next-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ee-next-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.ee-next-num {
  width: 28px;
  height: 28px;
  background: #DBEAFE;
  color: #1D4ED8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ee-next-title {
  font-size: .875rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: .2rem;
}
.ee-next-desc {
  font-size: .8rem;
  color: #64748B;
  line-height: 1.5;
}

/* ── Action buttons ── */
.ee-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.ee-btn-primary {
  background: #2563EB;
  color: #fff;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.ee-btn-primary:hover { background: #1D4ED8; }
.ee-btn-outline {
  background: transparent;
  color: #475569;
  border: 1.5px solid #CBD5E1;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.ee-btn-outline:hover { border-color: #94A3B8; color: #1E293B; }

/* ══════════════════════════════════════════════════════════════════
   Profile Link Utilities  (used across all pages)
   ══════════════════════════════════════════════════════════════════ */
.profile-name-link {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.profile-name-link:hover,
.profile-name-link:focus { color: var(--primary); text-decoration: underline; outline: none; }

.profile-link-avatar {
  display: inline-flex;
  text-decoration: none;
  border-radius: 50%;
  transition: opacity .15s, box-shadow .15s;
  cursor: pointer;
}
.profile-link-avatar:hover,
.profile-link-avatar:focus {
  opacity: .85;
  box-shadow: 0 0 0 3px var(--primary-light);
  text-decoration: none;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.profile-link-avatar.square { border-radius: var(--radius); }
.profile-link-avatar.square:hover { border-radius: var(--radius); }

/* ══════════════════════════════════════════════════════════════════
   cd-  Candidate Detail Page
   ══════════════════════════════════════════════════════════════════ */
.cd-page { padding: 2rem 0 4rem; }

.cd-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.cd-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.cd-breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.cd-breadcrumb strong { color: var(--text); font-weight: 600; }
.cd-sep { opacity: .5; }

.cd-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Left: Profile card ── */
.cd-profile-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 80px;
}
.cd-avatar {
  width: 80px; height: 80px;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  flex-shrink: 0;
}
.cd-name { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 0 0 .3rem; line-height: 1.3; }
.cd-headline { font-size: .85rem; color: var(--text-muted); margin-bottom: .625rem; line-height: 1.4; }

.cd-status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--success-light);
  color: var(--success);
  border-radius: 20px;
  padding: .25rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cd-stat-row {
  display: flex;
  justify-content: space-around;
  padding: .875rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: .875rem 0 1.25rem;
  gap: .25rem;
}
.cd-stat-item { text-align: center; }
.cd-stat-num { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.cd-stat-lbl { font-size: .68rem; color: var(--text-muted); margin-top: .1rem; }

.cd-meta-list { list-style: none; padding: 0; margin: 0 0 1.25rem; text-align: left; }
.cd-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .83rem;
  color: var(--text-muted);
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.cd-meta-list li:last-child { border-bottom: none; }
.cd-meta-list .mi-icon { flex-shrink: 0; margin-top: .05rem; }
.cd-meta-list a { color: var(--primary); word-break: break-all; }
.cd-meta-list a:hover { text-decoration: underline; }

.cd-divider { border: none; border-top: 1px solid var(--border); margin: 1.1rem 0; }
.cd-actions { display: flex; flex-direction: column; gap: .5rem; }
.cd-joined { font-size: .75rem; color: var(--text-muted); margin-top: .5rem; }

/* ── Right: Main cards ── */
.cd-main { display: flex; flex-direction: column; gap: 1.25rem; }
.cd-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.625rem 1.75rem;
}
.cd-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.125rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.cd-bio { font-size: .875rem; color: var(--text-muted); line-height: 1.75; margin: 0; }

.cd-skills-section + .cd-skills-section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.cd-skills-sublabel {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .7rem;
}
.cd-skills-flex { display: flex; flex-wrap: wrap; gap: .45rem; }
.cd-skill-v {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #A7F3D0;
  border-radius: 20px;
  padding: .3rem .75rem;
  font-size: .8rem;
  font-weight: 600;
}
.cd-skill-score {
  background: rgba(5,150,105,.12);
  padding: .1rem .35rem;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 700;
}
.cd-skill-p {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #F1F5F9;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .3rem .75rem;
  font-size: .8rem;
  font-weight: 500;
  cursor: help;
}
.cd-empty { font-size: .85rem; color: var(--text-muted); font-style: italic; }

/* Timeline (shared: candidate_profile + candidate_detail) */
.tl { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: none; padding-bottom: 0; }
.tl-left { display: flex; flex-direction: column; align-items: center; }
.tl-logo { width: 44px; height: 44px; border-radius: var(--radius-xs); background: var(--page-bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.tl-line { width: 2px; flex: 1; background: var(--border); margin-top: .375rem; }
.tl-meta { display: flex; flex-wrap: wrap; gap: .625rem; margin-bottom: .25rem; }
.tl-meta span { display: flex; align-items: center; gap: .25rem; font-size: .75rem; color: var(--text-muted); }
.tl-meta span svg { flex-shrink: 0; width: 12px; height: 12px; }

.cd-actions-card .cd-card-title svg { color: var(--primary); opacity: 1; }
.cd-action-btn-row { display: flex; flex-wrap: wrap; gap: .65rem; }

/* Not found */
.cd-not-found { text-align: center; padding: 5rem 2rem; }
.cd-not-found-icon { font-size: 3rem; margin-bottom: 1rem; }
.cd-not-found h2 { font-size: 1.5rem; color: var(--text); margin: 0 0 .5rem; }
.cd-not-found p { color: var(--text-muted); margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .cd-layout { grid-template-columns: 1fr; }
  .cd-profile-card { position: static; }
}

/* ══════════════════════════════════════════════════════════════════
   rd-  Recruiter Detail Page
   ══════════════════════════════════════════════════════════════════ */
.rd-page { padding: 2rem 0 4rem; }

.rd-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.rd-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.rd-breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.rd-breadcrumb strong { color: var(--text); font-weight: 600; }
.rd-sep { opacity: .5; }

.rd-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Left: Profile card ── */
.rd-profile-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 80px;
}
.rd-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.rd-company-name { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 0 0 .2rem; }
.rd-recruiter-sub { font-size: .85rem; color: var(--text-muted); margin-bottom: .625rem; }

.rd-hiring-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #DBEAFE;
  color: #1D4ED8;
  border-radius: 20px;
  padding: .25rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.rd-stat-row {
  display: flex;
  justify-content: space-around;
  padding: .875rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: .875rem 0 1.25rem;
}
.rd-stat-item { text-align: center; }
.rd-stat-num { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.rd-stat-lbl { font-size: .68rem; color: var(--text-muted); margin-top: .1rem; }

.rd-meta-list { list-style: none; padding: 0; margin: 0 0 1.25rem; text-align: left; }
.rd-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .83rem;
  color: var(--text-muted);
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.rd-meta-list li:last-child { border-bottom: none; }
.rd-meta-list .mi-icon { flex-shrink: 0; margin-top: .05rem; }
.rd-meta-list a { color: var(--primary); word-break: break-all; }
.rd-meta-list a:hover { text-decoration: underline; }

.rd-divider { border: none; border-top: 1px solid var(--border); margin: 1.1rem 0; }
.rd-actions { display: flex; flex-direction: column; gap: .5rem; }
.rd-joined { font-size: .75rem; color: var(--text-muted); margin-top: .5rem; }

/* ── Right: Main cards ── */
.rd-main { display: flex; flex-direction: column; gap: 1.25rem; }
.rd-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.625rem 1.75rem;
}
.rd-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.rd-card-count {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  padding: .15rem .6rem;
  font-size: .75rem;
  font-weight: 700;
}

.rd-about { font-size: .875rem; color: var(--text-muted); line-height: 1.75; margin: 0 0 .875rem; }
.rd-website-btn { display: inline-flex; align-items: center; gap: .4rem; }

/* Job cards inside recruiter detail */
.rd-job-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  transition: border-color .15s, box-shadow .15s;
}
.rd-job-card + .rd-job-card { margin-top: .75rem; }
.rd-job-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(79,70,229,.1); }
.rd-job-title { font-size: .9375rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.rd-job-meta {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .75rem;
  margin-bottom: .65rem;
}
.rd-job-meta-dot { opacity: .35; }
.rd-job-skills { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .875rem; }
.rd-job-skill-tag {
  background: #F1F5F9;
  color: var(--text-muted);
  border-radius: 12px;
  padding: .2rem .6rem;
  font-size: .75rem;
  font-weight: 500;
}
.rd-job-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.rd-job-salary { font-size: .8375rem; color: var(--success); font-weight: 600; }
.rd-job-posted { font-size: .75rem; color: var(--text-muted); }
.rd-job-actions { display: flex; gap: .5rem; }

.rd-empty { font-size: .875rem; color: var(--text-muted); text-align: center; padding: 2rem 0; font-style: italic; }

/* Stats activity row */
.rd-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.rd-activity-box {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.rd-activity-val { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.rd-activity-lbl { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }

/* Not found */
.rd-not-found { text-align: center; padding: 5rem 2rem; }
.rd-not-found-icon { font-size: 3rem; margin-bottom: 1rem; }
.rd-not-found h2 { font-size: 1.5rem; color: var(--text); margin: 0 0 .5rem; }
.rd-not-found p { color: var(--text-muted); margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .rd-layout { grid-template-columns: 1fr; }
  .rd-profile-card { position: static; }
}

/* ============================================================
   Registration type selection page
   ============================================================ */
.reg-type-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: var(--bg-alt);
}
.reg-type-wrap {
  width: 100%;
  max-width: 680px;
}
.reg-type-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  justify-content: center;
  margin-bottom: 2rem;
}
.reg-type-heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .5rem;
}
.reg-type-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.reg-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.reg-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
}
.reg-type-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.08);
  transform: translateY(-2px);
}
.reg-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.reg-type-icon.blue { background: #EEF2FF; }
.reg-type-icon.purple { background: #F5F3FF; }
.reg-type-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .375rem;
}
.reg-type-card p {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.reg-type-card .reg-type-arrow {
  margin-top: auto;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
}
.reg-type-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.reg-type-footer a { color: var(--primary); font-weight: 500; }
@media (max-width: 560px) {
  .reg-type-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Wide auth card (for extended signup forms)
   ============================================================ */
.auth-card-lg {
  max-width: 680px !important;
}

/* Form section heading */
.reg-section {
  margin: 1.75rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   Password validation UI
   ============================================================ */
.pw-wrap {
  position: relative;
}
.pw-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  display: flex;
  align-items: center;
}
.pw-toggle:hover { color: var(--text); }

.pw-strength-row {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-top: .375rem;
}
.pw-bars {
  display: flex;
  gap: 3px;
  flex: 1;
}
.pw-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background .2s;
}
.pw-strength-label {
  font-size: .75rem;
  font-weight: 600;
  min-width: 48px;
  color: var(--text-muted);
}
.pw-bar.weak   { background: #ef4444; }
.pw-bar.medium { background: #f59e0b; }
.pw-bar.strong { background: #22c55e; }
.pw-strength-label.weak   { color: #ef4444; }
.pw-strength-label.medium { color: #f59e0b; }
.pw-strength-label.strong { color: #22c55e; }

.pw-rules {
  margin: .625rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem .75rem;
}
.pw-rule {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .375rem;
}
.pw-rule::before {
  content: '○';
  font-size: .65rem;
  flex-shrink: 0;
}
.pw-rule.ok { color: #22c55e; }
.pw-rule.ok::before { content: '✓'; }
.pw-rule.fail { color: #ef4444; }
.pw-rule.fail::before { content: '✗'; }

.form-control.input-ok    { border-color: #22c55e; }
.form-control.input-error { border-color: #ef4444; }
.field-error {
  font-size: .75rem;
  color: #ef4444;
  margin-top: .25rem;
}

/* ============================================================
   Skills picker (signup)
   ============================================================ */
.skills-picker {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.skill-opt {
  display: none;
}
.skill-opt-label {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3125rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .14s;
  user-select: none;
}
.skill-opt:checked + .skill-opt-label {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.skill-opt-label:hover { border-color: var(--primary); color: var(--primary); }
.skills-picker-search {
  width: 100%;
  margin-bottom: .5rem;
}

/* ============================================================
   Resume upload zone
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-zone-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.upload-zone-text { font-size: .875rem; color: var(--text-muted); }
.upload-zone-hint { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }
.upload-zone-filename {
  margin-top: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================================
   Email sent / verification page
   ============================================================ */
.email-sent-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: var(--bg-alt);
}
.email-sent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.email-sent-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ECFDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}
.email-sent-card h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .5rem;
}
.email-sent-card p {
  color: var(--text-muted);
  font-size: .9375rem;
  margin: 0 0 .75rem;
  line-height: 1.6;
}
.email-sent-address {
  font-weight: 700;
  color: var(--text);
}
.email-sent-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}
.email-sent-spam {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ============================================================
   Signup role toggle (Candidate / Recruiter switcher)
   ============================================================ */
.signup-role-toggle {
  display: flex;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.75rem;
  gap: 4px;
}
.signup-role-toggle a {
  flex: 1;
  text-align: center;
  padding: .5rem .75rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.signup-role-toggle a:hover {
  color: var(--text);
  background: var(--surface);
}
.signup-role-toggle a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.signup-role-toggle a.active:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ── Disabled button ── */
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ── Popup / modal ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 0 .25rem;
}
.modal-close:hover { color: #0F172A; }
.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: .875rem;
  color: #475569;
  line-height: 1.75;
}
.modal-body h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: #0F172A;
  margin: 1.25rem 0 .375rem;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin: 0 0 .75rem; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-footer {
  padding: .875rem 1.5rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ── Skills picker hint ── */
.skills-hint {
  font-size: .8125rem;
  color: var(--text-muted);
  padding: .375rem 0;
}

/* ============================================================
   Verification status badges
   ============================================================ */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .625rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  white-space: nowrap;
}
.badge-unverified {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .625rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
  white-space: nowrap;
}
.badge-email-pending {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .625rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  white-space: nowrap;
}

/* ============================================================
   Verification warning banner
   ============================================================ */
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #FFF7ED;
  border: 1.5px solid #FED7AA;
  border-radius: var(--radius);
  padding: .875rem 1.25rem;
  margin-bottom: 1.5rem;
}
.verify-banner-content {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.verify-banner-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: .05rem;
}
.verify-banner-title {
  font-weight: 700;
  font-size: .9375rem;
  color: #9A3412;
  margin-bottom: .2rem;
}
.verify-banner-msg {
  font-size: .8125rem;
  color: #C2410C;
  line-height: 1.5;
}
.verify-banner-btn {
  background: #EA580C !important;
  color: #fff !important;
  border-color: #EA580C !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.verify-banner-btn:hover {
  background: #C2410C !important;
  border-color: #C2410C !important;
}
@media (max-width: 640px) {
  .verify-banner { flex-direction: column; align-items: flex-start; }
}
.verify-banner-body { flex: 1; min-width: 0; }
.verify-banner-global { margin: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; }
.btn-amber {
  background: #EA580C !important;
  color: #fff !important;
  border-color: #EA580C !important;
}
.btn-amber:hover {
  background: #C2410C !important;
  border-color: #C2410C !important;
}

/* Account status info row in profile cards */
.acct-status-row {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--text-muted);
  padding: .75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: .875rem 0;
}
.acct-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.acct-status-label { font-weight: 500; }

/* ============================================================
   Blocked access card (unverified recruiter on candidate profile)
   ============================================================ */
.blocked-access-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.blocked-access-card {
  background: var(--surface);
  border: 1.5px solid #FED7AA;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.blocked-access-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFF7ED;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}
.blocked-access-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .625rem;
}
.blocked-access-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.blocked-access-btns {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

/* ============================================================
   Redesigned single-column signup card
   ============================================================ */
.signup-card {
  max-width: 520px !important;
  padding: 2.25rem 2rem !important;
}

/* Required field asterisk */
.req-star {
  color: #ef4444;
  margin-left: .1rem;
}

/* Hint text below inputs */
.field-hint {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .3rem;
  line-height: 1.4;
}

/* ── Modern Signup Phone Field (spf) ────────────────────────── */
.spf-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  height: 48px;
}
.spf-wrap:focus-within:not(.spf-valid):not(.spf-invalid) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.spf-wrap.spf-valid {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,.09);
}
.spf-wrap.spf-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,.09);
}
.spf-cc-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px 0 12px;
  height: 100%;
  background: #FAFAFA;
  border: none;
  border-right: 1.5px solid #E5E7EB;
  border-radius: 9px 0 0 9px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
  white-space: nowrap;
  min-width: 0;
}
.spf-cc-btn:hover { background: #EEF2FF; }
.spf-flag { font-size: 19px; line-height: 1; flex-shrink: 0; }
.spf-cname {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spf-dial {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.spf-arr {
  color: #94A3B8;
  flex-shrink: 0;
  transition: transform .2s;
}
.spf-wrap.spf-dd-open .spf-arr { transform: rotate(180deg); }
.spf-ph-icon {
  flex-shrink: 0;
  margin-left: 10px;
  color: #94A3B8;
}
.spf-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
  padding: 0 4px 0 8px;
}
.spf-input::placeholder { color: #B0B8C5; font-weight: 400; }
.spf-status {
  width: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Country dropdown */
.spf-dd {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  width: min(300px, 100%);
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.spf-dd.spf-dd-open {
  display: flex;
  animation: spfDdIn .15s cubic-bezier(.16,1,.3,1) both;
}
@keyframes spfDdIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.spf-dd-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid #F1F5F9;
  background: #FAFAFA;
}
.spf-dd-search {
  flex: 1;
  border: none;
  outline: none;
  font-size: .875rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.spf-dd-search::placeholder { color: #94A3B8; }
.spf-dd-list {
  max-height: 224px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.spf-dd-list::-webkit-scrollbar { width: 4px; }
.spf-dd-list::-webkit-scrollbar-track { background: transparent; }
.spf-dd-list::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 2px; }
.spf-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background .1s;
  font-size: .875rem;
}
.spf-dd-item:hover { background: #F8FAFC; }
.spf-dd-item.spf-sel { background: #EEF2FF; }
.spf-dd-item-flag { font-size: 18px; flex-shrink: 0; }
.spf-dd-item-name {
  flex: 1;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spf-dd-item-dial {
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.spf-dd-empty {
  padding: 1.5rem;
  text-align: center;
  font-size: .875rem;
  color: var(--text-muted);
}
/* Validation messages */
.spf-msgs { margin-top: .375rem; min-height: 1.1rem; }
.spf-err {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: .8125rem;
  color: var(--danger);
  font-weight: 500;
}
.spf-err.show { display: flex; }
.spf-hint {
  display: none;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.spf-hint.show { display: block; }

/* Terms checkbox row */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin: 1.375rem 0 1.125rem;
}
.terms-row input[type=checkbox] {
  margin-top: .2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.terms-row label {
  font-size: .875rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.terms-row label a {
  color: var(--primary);
  font-weight: 500;
}
.terms-row label a:hover { text-decoration: underline; }

/* Submit button */
.signup-submit-btn {
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: .875rem 1rem !important;
  border-radius: 8px !important;
  letter-spacing: .01em;
}

/* Divider line between form sections on signup */
.signup-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

@media (max-width: 560px) {
  .signup-card { padding: 1.75rem 1.25rem !important; }
  .spf-cname { display: none; }
  .spf-dd { width: calc(100vw - 3rem); }
}

/* ============================================================
   Signup form field style (matches Naukri-style reference)
   ============================================================ */
.signup-label {
  font-size: .9375rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: .5rem !important;
  letter-spacing: -.01em;
}
.signup-input {
  border-radius: 10px !important;
  padding: .8rem 1rem !important;
  font-size: .9375rem !important;
  border: 1.5px solid #D1D5DB !important;
  background: #FAFAFA !important;
  color: var(--text) !important;
}
.signup-input::placeholder {
  color: #B0B8C5 !important;
  font-weight: 400;
}
.signup-input:focus {
  border-color: var(--primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.1) !important;
}

/* ============================================================
   Work Status card selector (candidate signup)
   ============================================================ */
.work-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
  margin-top: .375rem;
}
.work-status-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .875rem 1rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  background: #fff;
  user-select: none;
  text-align: center;
}
.work-status-card input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.work-status-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.work-status-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.work-status-title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
}
.work-status-card.selected .work-status-title {
  color: var(--primary);
}
@media (max-width: 480px) {
  .work-status-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Profile Photo Upload Component (puc-*)
   ============================================================ */
.puc-root{display:flex;flex-direction:column;align-items:center}
.puc-col{display:flex;flex-direction:column;align-items:center;gap:.625rem}
.puc-drop{position:relative;border-radius:50%;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.puc-drop:focus-visible{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--primary)}
.puc-circle{border-radius:50%;overflow:hidden;position:relative;background:linear-gradient(135deg,var(--primary),#7C3AED);border:3px solid #fff;box-shadow:0 0 0 3px var(--primary),0 8px 24px rgba(79,70,229,.22);transition:box-shadow .2s,transform .2s;flex-shrink:0}
.puc-drop:hover .puc-circle{box-shadow:0 0 0 3px var(--primary),0 14px 32px rgba(79,70,229,.38);transform:scale(1.04)}
.puc-inner{border-radius:50%;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}
.puc-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.puc-init{color:#fff;font-weight:800;letter-spacing:-.02em;user-select:none;line-height:1}
.puc-overlay{position:absolute;inset:0;border-radius:50%;background:rgba(0,0,0,.52);backdrop-filter:blur(2px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;color:#fff;opacity:0;transition:opacity .2s;pointer-events:none}
.puc-overlay svg{width:22px;height:22px}
.puc-overlay span{font-size:.625rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.puc-drop:hover .puc-overlay{opacity:1}
.puc-drag-ring{position:absolute;inset:-5px;border-radius:50%;border:2.5px dashed var(--primary);opacity:0;pointer-events:none;transition:opacity .15s}
.puc-drag-ring--on{opacity:1;animation:puc-pulse 1.1s ease-in-out infinite}
@keyframes puc-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.puc-file-hidden{display:none}
.puc-btns{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center;margin-top:.25rem}
.puc-btn{display:inline-flex;align-items:center;gap:.375rem;padding:.4375rem .9rem;border-radius:9px;font-size:.8125rem;font-weight:600;line-height:1;border:none;cursor:pointer;white-space:nowrap;user-select:none;transition:background .15s,box-shadow .15s,transform .12s,border-color .15s,color .15s}
.puc-btn svg{width:13px;height:13px;flex-shrink:0}
.puc-btn:disabled{opacity:.55;cursor:not-allowed;transform:none!important}
.puc-btn--primary{background:var(--primary);color:#fff;box-shadow:0 1px 4px rgba(79,70,229,.3)}
.puc-btn--primary:not(:disabled):hover{background:var(--primary-dark);box-shadow:0 4px 14px rgba(79,70,229,.4);transform:translateY(-1px)}
.puc-btn--primary:not(:disabled):active{transform:translateY(0)}
.puc-btn--ghost{background:transparent;color:var(--text-muted);border:1.5px solid var(--border)}
.puc-btn--ghost:not(:disabled):hover{background:#fef2f2;color:#dc2626;border-color:#fca5a5}
.puc-btn--save{min-width:116px;justify-content:center}
.puc-hint{font-size:.7375rem;color:var(--text-muted);text-align:center;margin:0;line-height:1.45;max-width:220px}
.puc-backdrop{position:fixed;inset:0;z-index:2000;background:rgba(15,23,42,.65);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:1rem;opacity:0;transition:opacity .25s ease}
.puc-backdrop--open{opacity:1}
.puc-modal{background:#fff;border-radius:20px;width:100%;max-width:500px;box-shadow:0 32px 80px rgba(0,0,0,.28),0 0 0 1px rgba(0,0,0,.06);display:flex;flex-direction:column;overflow:hidden;transform:translateY(18px) scale(.97);transition:transform .32s cubic-bezier(.34,1.4,.64,1)}
.puc-backdrop--open .puc-modal{transform:translateY(0) scale(1)}
.puc-modal__handle{display:none}
.puc-modal__hd{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem .875rem;border-bottom:1px solid #f1f5f9}
.puc-modal__title{display:flex;align-items:center;gap:.5rem;font-size:.9375rem;font-weight:700;color:#0f172a}
.puc-modal__title svg{width:17px;height:17px;color:var(--primary)}
.puc-modal__x{width:32px;height:32px;border-radius:8px;border:none;cursor:pointer;background:#f1f5f9;color:#64748b;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}
.puc-modal__x svg{width:15px;height:15px}
.puc-modal__x:hover{background:#e2e8f0;color:#0f172a}
.puc-crop-zone{width:100%;height:340px;background:#0f172a;overflow:hidden}
.puc-crop-zone img{display:block;max-width:100%}
.puc-toolbar{display:flex;align-items:center;justify-content:center;gap:.2rem;padding:.5rem 1rem;background:#fafbfc;border-bottom:1px solid #f1f5f9}
.puc-tool{width:36px;height:36px;border-radius:8px;border:none;cursor:pointer;background:transparent;color:#64748b;display:flex;align-items:center;justify-content:center;transition:background .14s,color .14s}
.puc-tool svg{width:15px;height:15px}
.puc-tool:hover{background:#f1f5f9;color:var(--primary)}
.puc-tool:active{background:#e8edf5}
.puc-tsep{width:1px;height:20px;background:#e2e8f0;margin:0 .2rem;flex-shrink:0}
.puc-modal__ft{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;padding:.875rem 1.25rem}
.puc-spinning{width:15px;height:15px;animation:puc-spin .7s linear infinite}
@keyframes puc-spin{to{transform:rotate(360deg)}}
#puc-toasts{position:fixed;top:1.125rem;right:1.125rem;z-index:3000;display:flex;flex-direction:column;gap:.5rem;pointer-events:none}
.puc-toast{display:flex;align-items:center;gap:.625rem;padding:.6875rem .9375rem;border-radius:12px;background:#fff;box-shadow:0 8px 30px rgba(0,0,0,.14),0 0 0 1px rgba(0,0,0,.06);font-size:.8125rem;font-weight:500;color:#0f172a;max-width:300px;pointer-events:auto;transform:translateX(110%);opacity:0;transition:transform .3s cubic-bezier(.34,1.4,.64,1),opacity .3s}
.puc-toast--show{transform:translateX(0);opacity:1}
.puc-toast__ico{width:28px;height:28px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.puc-toast__ico svg{width:14px;height:14px}
.puc-toast--success .puc-toast__ico{background:#dcfce7;color:#16a34a}
.puc-toast--error .puc-toast__ico{background:#fee2e2;color:#dc2626}
/* Compact mode: hide buttons/hint when avatar ≤ 50px (recruiter sidebar) */
#puc-recruiter .puc-btns,
#puc-recruiter .puc-hint { display:none; }
#puc-recruiter .puc-col  { gap:0; }

@media(max-width:640px){
  .puc-backdrop{align-items:flex-end;padding:0}
  .puc-modal{border-radius:20px 20px 0 0;max-width:100%;transform:translateY(100%);transition:transform .36s cubic-bezier(.32,.72,0,1);padding-bottom:env(safe-area-inset-bottom)}
  .puc-backdrop--open .puc-modal{transform:translateY(0)}
  .puc-modal__handle{display:block;width:40px;height:4px;border-radius:2px;background:#e2e8f0;margin:.75rem auto .25rem}
  .puc-crop-zone{height:56vw;min-height:220px}
  .puc-modal__ft{flex-direction:row;padding:.875rem 1rem calc(.875rem + env(safe-area-inset-bottom))}
  .puc-modal__ft .puc-btn{flex:1;justify-content:center;font-size:.875rem;padding:.625rem}
  #puc-toasts{top:auto;bottom:1rem;left:1rem;right:1rem;align-items:stretch}
  .puc-toast{max-width:100%;transform:translateY(110%)}
  .puc-toast--show{transform:translateY(0)}
}
