  :root {
    --navy: #0D1B2A;
    --navy-mid: #1B2E42;
    --navy-light: #253D56;
    --amber: #F5A623;
    --amber-light: #FBC45A;
    --amber-pale: #FEF3DC;
    --slate: #4A6080;
    --slate-light: #8AA4BE;
    --cream: #F8F5F0;
    --white: #FFFFFF;
    --text-dark: #0D1B2A;
    --text-mid: #3D5166;
    --text-muted: #7A93AA;
    --success: #2A9D8F;
    --danger: #E63946;
    --border: rgba(13,27,42,0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(13,27,42,0.08);
    --shadow-lg: 0 8px 32px rgba(13,27,42,0.14);
    --agent: #0E5C4D;
    --agent-light: #147A67;
    --agent-pale: #E2F0EE;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text-dark); min-height: 100vh; }
  .serif { font-family: 'Playfair Display', serif; }

  /* NAV */
  nav { background: var(--navy); padding: 0 2.5rem; display: flex; align-items: center; justify-content: space-between; height: 60px; position: sticky; top: 0; z-index: 100; }
  .nav-logo { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.35rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 11px; letter-spacing: 0; }
  .nav-logo .logo-wordmark { display: flex; align-items: baseline; }
  .nav-logo .logo-e { color: var(--amber); }
  .nav-logo img { flex-shrink: 0; }
  .nav-links { display: flex; gap: 1rem; align-items: center; }
  .nav-btn { border: none; background: none; color: var(--slate-light); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; cursor: pointer; padding: 6px 12px; border-radius: 6px; transition: all 0.2s; }
  .nav-btn:hover { background: rgba(255,255,255,0.08); color: var(--white); }
  .nav-btn.active { color: var(--amber); }
  .nav-cta { background: var(--amber); color: var(--navy); border: none; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.85rem; padding: 7px 16px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
  .nav-cta:hover { background: var(--amber-light); }
  .nav-profile-btn { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 5px 10px 5px 5px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.12); transition: all 0.2s; position: relative; margin-left: 4px; }
  .nav-profile-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(245,166,35,0.4); }
  .nav-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
  .nav-profile-info { display: flex; flex-direction: column; }
  .nav-profile-name { color: var(--white); font-size: 0.83rem; font-weight: 600; line-height: 1.2; }
  .nav-profile-role { color: var(--slate-light); font-size: 0.72rem; line-height: 1.2; }
  .nav-profile-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

  /* VIEWS */
  .view { display: none; }
  .view.active { display: block; }

  /* LANDING */
  .hero { background: var(--navy); padding: 6rem 2.5rem 5rem; text-align: center; position: relative; overflow: hidden; }
  .hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(245,166,35,0.08) 0%, transparent 70%); }
  .hero-mark { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); opacity: 0.08; pointer-events: none; user-select: none; }
  .hero-badge { display: inline-block; background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.3); color: var(--amber); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 1.5rem; }
  .hero h1 { font-family: 'Playfair Display', serif; color: var(--white); font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.15; margin-bottom: 1.25rem; max-width: 700px; margin-left: auto; margin-right: auto; }
  .hero h1 em { color: var(--amber); font-style: normal; }
  .hero p { color: var(--slate-light); font-size: 1.05rem; max-width: 480px; margin: 0 auto 3rem; line-height: 1.7; }
  .hero-cards { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; position: relative; z-index: 1; }
  .portal-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem 2rem; width: 280px; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; text-align: left; position: relative; }
  .portal-card:hover { transform: translateY(-4px); border-color: var(--amber); box-shadow: var(--shadow-lg); }
  .portal-card.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; filter: grayscale(0.6); }
  .portal-card.disabled::after { content: 'Not Available'; position: absolute; top: 12px; right: 12px; background: var(--slate); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
  .portal-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }
  .portal-icon.candidate { background: var(--amber-pale); }
  .portal-icon.employer { background: #E8F4FD; }
  .portal-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
  .portal-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.5rem; }
  .portal-link { color: var(--amber); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
  .portal-link svg { transition: transform 0.2s; }
  .portal-card:hover .portal-link svg { transform: translateX(4px); }
  .stats-bar { background: var(--navy-mid); padding: 1.5rem 2.5rem; display: flex; justify-content: center; gap: 4rem; }
  .stat { text-align: center; }
  .stat-num { color: var(--amber); font-size: 1.5rem; font-weight: 700; font-family: 'Playfair Display', serif; }
  .stat-label { color: var(--slate-light); font-size: 0.78rem; margin-top: 2px; }

  /* SHARED LAYOUT */
  .page-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 2rem 4rem; }
  .page-header { margin-bottom: 2rem; }
  .page-header h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; margin-bottom: 0.4rem; }
  .page-header p { color: var(--text-muted); font-size: 0.9rem; }
  .breadcrumb { display: flex; gap: 6px; align-items: center; color: var(--text-muted); font-size: 0.82rem; margin-bottom: 1.5rem; }
  .breadcrumb span { cursor: pointer; }
  .breadcrumb span:hover { color: var(--amber); }
  .breadcrumb .sep { color: var(--border); }

  /* SEARCH BAR */
  .search-bar { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: center; box-shadow: var(--shadow); margin-bottom: 2rem; border: 1px solid var(--border); }
  .search-input-wrap { flex: 1; display: flex; align-items: center; gap: 10px; }
  .search-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
  .search-input-wrap input { border: none; outline: none; width: 100%; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text-dark); background: none; }
  .search-divider { width: 1px; height: 28px; background: var(--border); }
  .search-select { border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--text-mid); background: none; cursor: pointer; }
  .btn-search { background: var(--amber); color: var(--navy); border: none; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.9rem; padding: 10px 22px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
  .btn-search:hover { background: var(--amber-light); }

  /* FILTERS */
  .content-grid { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; }
  .filter-panel { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid var(--border); height: fit-content; position: sticky; top: 76px; }
  .filter-title { font-weight: 600; font-size: 0.88rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
  .filter-section { margin-bottom: 1.5rem; }
  .filter-section h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; }
  .filter-option { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
  .filter-option input { accent-color: var(--amber); }
  .filter-option label { font-size: 0.88rem; color: var(--text-mid); cursor: pointer; }
  .filter-option label span { color: var(--text-muted); font-size: 0.78rem; }

  /* JOB CARDS */
  .jobs-list { display: flex; flex-direction: column; gap: 1rem; }
  .job-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
  .job-card:hover { border-color: var(--amber); box-shadow: var(--shadow); transform: translateY(-1px); }
  .job-card-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
  .company-logo { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
  .job-card-info { flex: 1; }
  .job-card-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 3px; }
  .job-card-info .company { color: var(--text-muted); font-size: 0.85rem; }
  .job-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 0.75rem; }
  .tag { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 500; }
  .tag.type { background: #EAF3DE; color: #27500A; }
  .tag.remote { background: #E8F4FD; color: #0C447C; }
  .tag.salary { background: var(--amber-pale); color: #633806; }
  .tag.new { background: #FCEBEB; color: #791F1F; }
  .tag.hot { background: #FAEEDA; color: #633806; }
  .tag.ai-indexed { background: #E2F0EE; color: #0D4F43; }
  .cv-hash-badge { display: inline-flex; align-items: center; gap: 3px; background: #E2F0EE; color: #0D4F43; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; vertical-align: middle; }
  .job-card-desc { color: var(--text-muted); font-size: 0.87rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .job-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
  .job-meta { color: var(--text-muted); font-size: 0.8rem; display: flex; gap: 1rem; }
  .match-badge { background: #EAF3DE; color: #3B6D11; font-size: 0.82rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }

  /* JOB DETAIL */
  .detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
  .detail-main { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); }
  .detail-header { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
  .detail-company-logo { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; flex-shrink: 0; }
  .detail-title h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 4px; }
  .detail-title .company-name { color: var(--text-muted); font-size: 0.95rem; }
  .detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 1rem 0; }
  .section-title { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: var(--text-dark); }
  .detail-main p, .detail-main li { color: var(--text-mid); font-size: 0.92rem; line-height: 1.8; }
  .detail-main ul { padding-left: 1.2rem; }
  .detail-main li { margin-bottom: 4px; }
  .detail-sidebar { display: flex; flex-direction: column; gap: 1rem; }
  .sidebar-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--border); }
  .sidebar-card h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
  .action-btn { width: 100%; border: none; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; font-weight: 600; padding: 11px 16px; border-radius: 8px; cursor: pointer; margin-bottom: 8px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .action-btn.primary { background: var(--navy); color: var(--white); }
  .action-btn.primary:hover { background: var(--navy-mid); }
  .action-btn.secondary { background: var(--cream); color: var(--text-dark); border: 1px solid var(--border); }
  .action-btn.secondary:hover { border-color: var(--navy); }
  .action-btn.amber { background: var(--amber); color: var(--navy); }
  .action-btn.amber:hover { background: var(--amber-light); }
  .info-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
  .info-row:last-child { border-bottom: none; }
  .info-row .label { color: var(--text-muted); }
  .info-row .value { font-weight: 500; }

  /* AI MATCH */
  .ai-match-section { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); border-radius: var(--radius-lg); padding: 2rem; color: var(--white); }
  .ai-match-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
  .ai-match-subtitle { color: var(--slate-light); font-size: 0.87rem; margin-bottom: 1.5rem; }
  .score-ring { width: 100px; height: 100px; margin: 0 auto 1.5rem; position: relative; }
  .score-ring svg { transform: rotate(-90deg); }
  .score-ring .score-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .score-ring .score-num { font-size: 1.6rem; font-weight: 700; color: var(--amber); }
  .score-ring .score-pct { font-size: 0.7rem; color: var(--slate-light); }
  .match-bars { display: flex; flex-direction: column; gap: 10px; }
  .match-bar-item { display: flex; align-items: center; gap: 10px; }
  .match-bar-label { font-size: 0.8rem; color: var(--slate-light); width: 90px; flex-shrink: 0; }
  .match-bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
  .match-bar-fill { height: 100%; border-radius: 3px; background: var(--amber); }
  .match-bar-pct { font-size: 0.78rem; color: var(--amber); width: 32px; text-align: right; }
  .upload-zone { border: 2px dashed rgba(245,166,35,0.3); border-radius: 10px; padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s; margin-top: 1rem; }
  .upload-zone:hover { border-color: var(--amber); background: rgba(245,166,35,0.05); }
  .upload-zone p { color: var(--slate-light); font-size: 0.85rem; margin-top: 6px; }
  .upload-zone strong { color: var(--amber); }

  /* RESUME SERVICE */
  .service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
  .service-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; border: 2px solid var(--border); text-align: center; cursor: pointer; transition: all 0.25s; position: relative; }
  .service-card:hover { border-color: var(--amber); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
  .service-card.featured { border-color: var(--amber); }
  .service-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--navy); font-size: 0.72rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
  .service-icon { font-size: 2rem; margin-bottom: 0.75rem; }
  .service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.4rem; }
  .service-card .service-sub { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 1.25rem; }
  .service-price { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 1.25rem; }
  .service-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
  .service-features { list-style: none; text-align: left; margin-bottom: 1.5rem; }
  .service-features li { font-size: 0.85rem; color: var(--text-mid); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
  .check { color: var(--success); font-weight: 700; }
  .service-btn { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--navy); background: none; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
  .service-btn.featured-btn { background: var(--navy); color: var(--white); }
  .service-btn:hover { background: var(--navy); color: var(--white); }

  /* EMPLOYER */
  .employer-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 2rem; gap: 0; }
  .emp-tab { padding: 10px 20px; border: none; background: none; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; }
  .emp-tab.active { color: var(--navy); border-bottom-color: var(--amber); }
  .emp-tab:hover { color: var(--navy); }
  .form-section { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .form-group { margin-bottom: 1rem; }
  .form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-mid); margin-bottom: 5px; }
  .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none; color: var(--text-dark); background: var(--cream); transition: border-color 0.2s; }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--amber); background: var(--white); }
  .form-group textarea { resize: vertical; min-height: 100px; }

  /* AI CANDIDATE SEARCH */
  .ai-search-panel { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--radius-lg); padding: 2rem; color: var(--white); margin-bottom: 1.5rem; }
  .ai-search-panel h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 0.4rem; }
  .ai-search-panel p { color: var(--slate-light); font-size: 0.87rem; margin-bottom: 1.25rem; }
  .ai-textarea { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none; resize: vertical; min-height: 80px; }
  .ai-textarea::placeholder { color: var(--slate-light); }
  .ai-textarea:focus { border-color: var(--amber); }
  .match-threshold { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
  .match-threshold label { font-size: 0.85rem; color: var(--slate-light); white-space: nowrap; }
  .match-threshold input[type=range] { flex: 1; accent-color: var(--amber); }
  .match-threshold .pct { font-size: 0.9rem; font-weight: 700; color: var(--amber); min-width: 40px; }

  /* CANDIDATE CARDS */
  .candidate-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; border: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: all 0.2s; margin-bottom: 0.75rem; }
  .candidate-card:hover { border-color: var(--amber); box-shadow: var(--shadow); }
  .candidate-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
  .candidate-info { flex: 1; }
  .candidate-info h4 { font-size: 0.97rem; font-weight: 600; margin-bottom: 2px; }
  .candidate-info .role { color: var(--text-muted); font-size: 0.84rem; }
  .candidate-tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
  .candidate-actions { display: flex; gap: 8px; align-items: center; }
  .c-match-badge { font-size: 0.82rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
  .btn-rfa { background: var(--navy); color: var(--white); border: none; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border-radius: 7px; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
  .btn-rfa:hover { background: var(--amber); color: var(--navy); }

  /* DM MODAL */
  .modal-overlay { position: fixed; inset: 0; background: rgba(13,27,42,0.6); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; width: 480px; max-width: 95vw; }
  .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
  .modal-header h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; }
  .modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); line-height: 1; }
  .modal textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; min-height: 120px; outline: none; resize: vertical; margin-bottom: 1rem; }
  .modal textarea:focus { border-color: var(--amber); }
  .toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; z-index: 300; transform: translateY(100px); opacity: 0; transition: all 0.3s; display: flex; align-items: center; gap: 10px; }
  .toast.show { transform: translateY(0); opacity: 1; }
  .toast .t-icon { color: var(--amber); font-size: 1.1rem; }

  /* EMPLOYER NAV TABS */
  .emp-nav { background: var(--navy-mid); padding: 0 2.5rem; display: flex; gap: 0; }
  .emp-nav-btn { padding: 12px 18px; border: none; background: none; color: rgba(255,255,255,0.65); font-family: 'DM Sans', sans-serif; font-size: 0.87rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: 0; transition: all 0.2s; }
  .emp-nav-btn.active { color: var(--amber); border-bottom-color: var(--amber); }
  .emp-nav-btn:hover { color: var(--white); }

  /* APPLICATION FORM */
  .apply-modal { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; width: 560px; max-width: 95vw; max-height: 85vh; overflow-y: auto; }
  .apply-modal h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 1.5rem; }
  .apply-upload { border: 2px dashed var(--border); border-radius: 8px; padding: 1.5rem; text-align: center; cursor: pointer; margin-bottom: 1rem; }
  .apply-upload:hover { border-color: var(--amber); }
  .apply-upload p { color: var(--text-muted); font-size: 0.87rem; margin-top: 5px; }
  /* Toggle switch — visual spans must not intercept clicks or the label fires change twice */
  .tog, .tog-dot { pointer-events: none; }

  /* RFA TOAST */
  .rfa-modal { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; width: 480px; max-width: 95vw; }
  .rfa-modal h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 0.5rem; }
  .rfa-modal p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.5rem; }
  .rfa-preview { background: var(--cream); border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; border-left: 3px solid var(--amber); }
  .rfa-preview p { color: var(--text-mid); font-size: 0.87rem; font-style: italic; }

  /* CHAR SLIDERS */
  .char-slider-row { display:flex; align-items:center; gap:12px; padding:6px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
  .char-slider-row:last-child { border-bottom:none; }
  .char-slider-label { font-size:0.82rem; color:var(--slate-light); width:130px; flex-shrink:0; }
  .char-slider { flex:1; accent-color:var(--amber); height:4px; }
  .char-slider-val { font-size:0.82rem; font-weight:700; color:var(--amber); width:36px; text-align:right; }

  /* DASH METRIC CARDS */
  .dash-metric-card { background:var(--white); border-radius:var(--radius-lg); border:1.5px solid var(--border); padding:1.25rem; position:relative; overflow:hidden; cursor:pointer; transition:all 0.18s; user-select:none; }
  .dash-metric-card:hover { border-color:var(--amber); transform:translateY(-2px); box-shadow:var(--shadow); }
  .dash-metric-card.active { border-color:var(--amber); background:var(--amber-pale); }
  .dmc-label { font-size:0.75rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:0.4rem; }
  .dmc-num { font-size:2rem; font-weight:700; font-family:'Playfair Display',serif; color:var(--navy); line-height:1; }
  .dmc-sub { font-size:0.78rem; margin-top:5px; color:var(--text-muted); }
  .dmc-arrow { position:absolute; top:10px; right:12px; font-size:1rem; color:var(--amber); opacity:0; transition:opacity 0.15s; }
  .dash-metric-card:hover .dmc-arrow, .dash-metric-card.active .dmc-arrow { opacity:1; }
  .dmc-ring { position:absolute; bottom:-10px; right:-10px; width:60px; height:60px; border-radius:50%; }

  /* PROMPT CHIPS */
  .prompt-chip { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:20px; border:1.5px solid var(--border); font-size:0.84rem; font-family:'DM Sans',sans-serif; cursor:pointer; transition:all 0.15s; background:var(--white); color:var(--text-mid); margin:4px; }
  .prompt-chip:hover { border-color:var(--amber); color:var(--navy); }
  .prompt-chip.selected { background:var(--navy); color:var(--white); border-color:var(--navy); }
  .prompt-chip.selected::before { content:'✓ '; font-size:0.8rem; }

  /* SURVEY FORM */
  .survey-radio-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
  .survey-radio { display:none; }
  .survey-radio-label { padding:6px 14px; border-radius:20px; border:1.5px solid var(--border); font-size:0.84rem; cursor:pointer; transition:all 0.15s; color:var(--text-mid); }
  .survey-radio:checked + .survey-radio-label { background:var(--navy); color:var(--white); border-color:var(--navy); }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

  /* CANDIDATE DASHBOARD */
  .dash-job-row { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:9px; border:1px solid var(--border); cursor:pointer; transition:all 0.15s; background:var(--white); }
  .dash-job-row:hover { border-color:var(--amber); background:var(--amber-pale); }
  .dash-job-logo { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.8rem; flex-shrink:0; }
  .dash-job-info { flex:1; min-width:0; }
  .dash-job-title { font-size:0.88rem; font-weight:600; color:var(--text-dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .dash-job-meta { font-size:0.72rem; color:var(--text-muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .dash-unsave-btn { background:none; border:1px solid var(--border); border-radius:5px; width:24px; height:24px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:0.7rem; color:var(--text-muted); flex-shrink:0; transition:all 0.15s; }
  .dash-unsave-btn:hover { border-color:var(--danger); color:var(--danger); }
  .app-track-row { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
  .app-track-row:last-child { border-bottom:none; }
  .app-progress-bar-wrap { display:flex; align-items:center; margin-top:8px; }
  .app-stage { font-size:0.65rem; font-weight:600; color:var(--text-muted); white-space:nowrap; padding:2px 6px; border-radius:10px; border:1.5px solid var(--border); background:var(--white); transition:all 0.2s; }
  .app-stage[data-done="1"] { background:var(--success); color:var(--white); border-color:var(--success); }
  .app-stage[data-active="1"] { background:var(--amber); color:var(--navy); border-color:var(--amber); }
  .app-stage-line { flex:1; height:2px; background:var(--border); margin:0 2px; }
  .app-stage-line[data-done="1"] { background:var(--success); }
  .app-stage-line[data-active="1"] { background:linear-gradient(90deg, var(--success), var(--amber)); }

  /* APPLICANT FILTER BUTTONS */
  .appl-filter-btn { padding:5px 14px; border-radius:20px; border:1.5px solid var(--border); font-family:'DM Sans',sans-serif; font-size:0.8rem; cursor:pointer; background:var(--white); color:var(--text-mid); transition:all 0.15s; }
  .appl-filter-btn:hover { border-color:var(--amber); color:var(--navy); }
  .appl-filter-btn.active { background:var(--navy); color:var(--white); border-color:var(--navy); }

  /* CANDIDATE STAT CARDS */
  .cand-stat-card { background:var(--white); border-radius:var(--radius-lg); border:1.5px solid var(--border); padding:1.1rem; text-align:center; cursor:pointer; transition:all 0.18s; position:relative; user-select:none; }
  .cand-stat-card:hover { border-color:var(--amber); transform:translateY(-2px); box-shadow:var(--shadow); }
  .cand-stat-card.active { border-color:var(--amber); background:var(--amber-pale); }
  .csc-arrow { position:absolute; top:8px; right:10px; font-size:0.9rem; color:var(--amber); opacity:0; transition:opacity 0.15s; }
  .cand-stat-card:hover .csc-arrow, .cand-stat-card.active .csc-arrow { opacity:1; }

  /* PROFILE PAGE */
  .profile-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
  .profile-sidebar { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; position: sticky; top: 76px; }
  .profile-avatar-block { background: var(--navy); padding: 2rem 1.5rem; text-align: center; }
  .profile-avatar-big { width: 72px; height: 72px; border-radius: 50%; background: var(--amber); color: var(--navy); font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; border: 3px solid rgba(245,166,35,0.3); }
  .profile-name { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 3px; }
  .profile-title { color: var(--slate-light); font-size: 0.8rem; }
  .profile-complete { margin-top: 1rem; }
  .profile-complete-bar { height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; margin: 6px 0 4px; }
  .profile-complete-fill { height: 100%; background: var(--amber); border-radius: 2px; width: 72%; }
  .profile-complete-txt { font-size: 0.72rem; color: var(--slate-light); }
  .profile-nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; border-left: 3px solid transparent; transition: all 0.15s; font-size: 0.88rem; color: var(--text-mid); }
  .profile-nav-item:hover { background: var(--cream); color: var(--navy); }
  .profile-nav-item.active { border-left-color: var(--amber); background: var(--amber-pale); color: var(--navy); font-weight: 600; }
  .profile-nav-item .pni-icon { font-size: 1rem; width: 20px; text-align: center; }
  .profile-panel { display: none; }
  .profile-panel.active { display: block; }
  .panel-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.75rem; margin-bottom: 1.25rem; }
  .panel-card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.25rem; }
  .panel-card-sub { color: var(--text-muted); font-size: 0.84rem; margin-bottom: 1.5rem; }
  .pref-chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .pref-chip { padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border); font-size: 0.83rem; cursor: pointer; transition: all 0.15s; color: var(--text-mid); background: var(--white); font-family: 'DM Sans', sans-serif; }
  .pref-chip:hover { border-color: var(--amber); color: var(--navy); }
  .pref-chip.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .resume-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--border); margin-bottom: 10px; transition: all 0.15s; }
  .resume-item:hover { border-color: var(--amber); }
  .resume-item.default-resume { border-color: var(--amber); background: var(--amber-pale); }
  .resume-thumb { width: 44px; height: 52px; background: var(--cream); border-radius: 6px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
  .resume-meta { flex: 1; }
  .resume-meta h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; }
  .resume-meta p { font-size: 0.78rem; color: var(--text-muted); }
  .resume-actions { display: flex; gap: 6px; }
  .resume-action-btn { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border); background: none; font-family: 'DM Sans', sans-serif; font-size: 0.78rem; cursor: pointer; transition: all 0.15s; color: var(--text-mid); }
  .resume-action-btn:hover { border-color: var(--navy); color: var(--navy); }
  .resume-action-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
  .upload-resume-zone { border: 2px dashed var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s; }
  .upload-resume-zone:hover { border-color: var(--amber); background: var(--amber-pale); }
  .sub-plan { border-radius: var(--radius-lg); border: 1.5px solid var(--border); padding: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
  .sub-plan.active-plan { border-color: var(--amber); background: var(--amber-pale); }
  .sub-plan-icon { font-size: 1.8rem; flex-shrink: 0; }
  .sub-plan-info { flex: 1; }
  .sub-plan-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
  .sub-plan-desc { font-size: 0.82rem; color: var(--text-muted); }
  .sub-plan-price { font-size: 1rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
  .sub-history-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.87rem; }
  .sub-history-row:last-child { border-bottom: none; }

  /* Animations */
  /* DM CONVERSATION */
  .conv-bubble-wrap { display:flex; flex-direction:column; margin-bottom:.75rem; }
  .conv-bubble-wrap.sent { align-items:flex-end; }
  .conv-bubble-wrap.recv { align-items:flex-start; }
  .conv-bubble { max-width:72%; padding:.75rem 1rem; border-radius:16px; font-size:.88rem; line-height:1.6; word-wrap:break-word; }
  .conv-bubble.sent { background:var(--navy); color:var(--white); border-radius:16px 4px 16px 16px; }
  .conv-bubble.recv { background:var(--white); color:var(--text-dark); border-radius:4px 16px 16px 16px; box-shadow:var(--shadow); }
  .conv-time { font-size:.68rem; color:var(--text-muted); margin-top:3px; }
  .conv-date-sep { text-align:center; font-size:.72rem; color:var(--text-muted); padding:.5rem 0; position:relative; }
  .conv-date-sep::before { content:''; position:absolute; left:0; right:0; top:50%; height:1px; background:var(--border); z-index:0; }
  .conv-date-sep span { background:var(--cream); padding:0 .75rem; position:relative; z-index:1; }
  .conv-compose { background:var(--white); border-top:1px solid var(--border); padding:1rem 1.5rem; display:flex; gap:.75rem; align-items:flex-end; flex-shrink:0; }
  .conv-compose textarea { flex:1; border:1.5px solid var(--border); border-radius:12px; padding:.625rem .875rem; font-family:'DM Sans',sans-serif; font-size:.88rem; resize:none; outline:none; min-height:42px; max-height:120px; line-height:1.5; transition:border-color .2s; }
  .conv-compose textarea:focus { border-color:var(--amber); }
  .conv-send-btn { background:var(--navy); color:var(--white); border:none; border-radius:10px; padding:.625rem 1.25rem; font-family:'DM Sans',sans-serif; font-size:.85rem; font-weight:600; cursor:pointer; transition:background .2s; flex-shrink:0; }
  .conv-send-btn:hover { background:var(--amber); color:var(--navy); }

  /* AUTO APPLY CARDS */
  .apply-mode-card { border:2px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem; cursor:pointer; transition:all .2s; position:relative; }
  .apply-mode-card:hover { border-color:var(--amber); }
  .apply-mode-card.selected { border-color:var(--navy); background:var(--cream); }
  .apply-mode-card .amc-check { position:absolute; top:1rem; right:1rem; width:22px; height:22px; border-radius:50%; border:2px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:700; color:var(--white); transition:all .2s; }
  .apply-mode-card.selected .amc-check { background:var(--navy); border-color:var(--navy); }
  .apply-mode-card h4 { font-family:'Playfair Display',serif; font-size:1rem; margin-bottom:.35rem; }
  .apply-mode-card p { font-size:.83rem; color:var(--text-muted); line-height:1.6; margin-bottom:.875rem; }
  .amc-features { list-style:none; }
  .amc-features li { font-size:.82rem; color:var(--text-mid); padding:3px 0; display:flex; align-items:center; gap:7px; }

  /* RFA SETTINGS */
  .rfa-mode-card { border:2px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem; cursor:pointer; transition:all .2s; display:flex; align-items:flex-start; gap:1rem; }
  .rfa-mode-card:hover { border-color:var(--amber); }
  .rfa-mode-card.selected { border-color:var(--navy); background:var(--cream); }
  .rfa-mode-radio { width:20px; height:20px; border-radius:50%; border:2px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px; transition:all .2s; }
  .rfa-mode-radio::after { content:''; width:8px; height:8px; border-radius:50%; background:transparent; transition:all .2s; }
  .rfa-mode-card.selected .rfa-mode-radio { border-color:var(--navy); }
  .rfa-mode-card.selected .rfa-mode-radio::after { background:var(--navy); }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  .fade-up { animation: fadeUp 0.4s ease forwards; }
  .delay-1 { animation-delay: 0.1s; opacity: 0; }
  .delay-2 { animation-delay: 0.2s; opacity: 0; }
  .delay-3 { animation-delay: 0.3s; opacity: 0; }

  /* Agent Portal */
  .agent-hero { background: linear-gradient(135deg, #0D4F43 0%, #146F5E 50%, #1A7F6B 100%); }
  .agent-nav-sub { background: #0D4F43; padding: 0 2.5rem; display: flex; gap: 0; }
  .agent-nav-btn { padding: 12px 18px; border: none; background: none; color: rgba(255,255,255,0.6); font-family: 'DM Sans', sans-serif; font-size: 0.87rem; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; }
  .agent-nav-btn.active { color: #5ECFBE; border-bottom-color: #5ECFBE; }
  .agent-nav-btn:hover { color: var(--white); }
  .alert-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; border: 1px solid var(--border); transition: all 0.2s; margin-bottom: 0.75rem; }
  .alert-card:hover { border-color: #0E5C4D; box-shadow: var(--shadow); transform: translateY(-1px); }
  .alert-card.unread { border-left: 3px solid #0E5C4D; background: #F4FAFA; }
  .alert-type-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.73rem; font-weight: 600; }
  .alert-type-badge.employer { background: #E8F4FD; color: #0C447C; }
  .alert-type-badge.candidate { background: var(--amber-pale); color: #633806; }
  .alert-type-badge.self { background: #E2F0EE; color: #0D4F43; }
  .alert-filter-btn { padding: 6px 16px; border-radius: 20px; border: 1.5px solid var(--border); font-family: 'DM Sans', sans-serif; font-size: 0.82rem; cursor: pointer; background: var(--white); color: var(--text-mid); transition: all 0.15s; }
  .alert-filter-btn:hover { border-color: #0E5C4D; color: #0E5C4D; }
  .alert-filter-btn.active { background: #0E5C4D; color: var(--white); border-color: #0E5C4D; }
  .agent-stat-card { background: rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; border: 1px solid rgba(255,255,255,0.15); }
  .agent-stat-num { font-size: 1.8rem; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--white); }
  .agent-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 3px; }
  .agent-stat-delta { font-size: 0.72rem; color: #5ECFBE; margin-top: 4px; font-weight: 600; }
  .match-ring-sm { position: relative; width: 46px; height: 46px; }
  .pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin: 2px 2px 0 0; font-weight: 500; }
  .pill-green { background: #EAF3DE; color: #3B6D11; }
  .pill-amber { background: #FAEEDA; color: #854F0B; }
  .pill-red   { background: #FCEBEB; color: #A32D2D; }

/* Chat bubble styles */
.chat-bubble { max-width: 82%; padding: .625rem .875rem; border-radius: 16px; font-size: .85rem; line-height: 1.55; word-wrap: break-word; }
.chat-bubble.bot { background: var(--white); color: var(--text-dark); border-radius: 4px 16px 16px 16px; box-shadow: 0 1px 4px rgba(13,27,42,.08); align-self: flex-start; }
.chat-bubble.user { background: var(--navy); color: var(--white); border-radius: 16px 4px 16px 16px; align-self: flex-end; }
.chat-bubble.typing { background: var(--white); align-self: flex-start; padding: .75rem 1rem; }
.typing-dots { display: flex; gap: 4px; align-items: center; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typingDot 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,60%,100% { opacity:.3; transform:scale(.8); } 30% { opacity:1; transform:scale(1); } }
.chat-timestamp { font-size: .65rem; color: var(--text-muted); margin-top: 2px; }
.chat-row { display: flex; flex-direction: column; }
.chat-row.user { align-items: flex-end; }
.chat-row.bot { align-items: flex-start; }
.quick-reply { display: inline-flex; padding: 5px 12px; border-radius: 16px; border: 1.5px solid var(--border); font-size: .78rem; cursor: pointer; background: var(--white); color: var(--text-mid); font-family: 'DM Sans', sans-serif; transition: all .15s; margin: 2px; }
.quick-reply:hover { border-color: var(--navy); color: var(--navy); background: var(--cream); }
.human-agent-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: none; background: var(--amber); color: var(--navy); font-size: .82rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; margin-top: .375rem; transition: background .15s; }
.human-agent-btn:hover { background: var(--amber-light); }
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
