/* ═══════════════════════════════════════════════════════════
   PEZAJOB — Company Portal CSS
═══════════════════════════════════════════════════════════ */

:root {
  --primary:       #2C3E50;
  --primary-light: #34495e;
  --secondary:     #D1CF0A;
  --secondary-dark:#b8b608;
  --bg:            #f0f4f8;
  --bg-alt:        #e8eef4;
  --white:         #ffffff;
  --text:          #1a2332;
  --text-light:    #4a5568;
  --text-muted:    #8896a6;
  --border:        #dde3ea;
  --border-light:  #eef1f4;
  --shadow-sm:     0 1px 4px rgba(44,62,80,0.06);
  --shadow:        0 4px 20px rgba(44,62,80,0.10);
  --shadow-lg:     0 12px 48px rgba(44,62,80,0.16);
  --radius:        14px;
  --sidebar-w:     260px;
  --topbar-h:      64px;
  --font-main:     'Quicksand', sans-serif;
  --font-display:  'Quicksand', sans-serif;
  --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-main); }
input, select, textarea { font-family: var(--font-main); }

/* ── Layout ──────────────────────────────────────────────── */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

/* ═══════════════════════════════
   SIDEBAR
═══════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* Logo */
.s-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.s-logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--secondary);
  color: var(--primary); font-weight: 700; font-size: 1rem;
}
.s-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.s-logo-text {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.5px;
}
.s-logo-text span { color: var(--secondary); }

/* Company info */
.sidebar-company {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}
.s-company-ava {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: var(--primary);
  flex-shrink: 0;
}
.s-company-name { font-weight: 700; font-size: 0.88rem; color: #fff; }
.s-company-plan {
  font-size: 0.7rem; color: var(--secondary); font-weight: 600;
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
}

/* Nav */
.sidebar-nav { flex: 1; padding: 16px 12px; }
.nav-group-label {
  font-size: 0.66rem; font-weight: 700; color: rgba(255,255,255,0.3);
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 14px 10px 8px; display: block;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 0.86rem; font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: var(--transition); margin-bottom: 2px;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: rgba(209,207,10,0.12); color: var(--secondary); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 4px; background: var(--secondary);
}
.nav-item i { width: 18px; text-align: center; font-size: 0.9rem; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--secondary); color: var(--primary);
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
.nav-logout { color: rgba(255,80,80,0.7); margin-top: 8px; }
.nav-logout:hover { background: rgba(255,80,80,0.1); color: #ff6b6b; }

/* ═══════════════════════════════
   MAIN AREA
═══════════════════════════════ */
.dash-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
}

/* Topbar */
.dash-topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-toggle {
  display: none; background: none; border: none;
  color: var(--primary); font-size: 1.1rem; cursor: pointer;
  padding: 8px; border-radius: 8px; transition: var(--transition);
}
.topbar-toggle:hover { background: var(--bg); }
.topbar-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 8px 14px; min-width: 240px;
  transition: var(--transition);
}
.topbar-search:focus-within { border-color: var(--primary); background: var(--white); }
.topbar-search i { color: var(--text-muted); font-size: 0.85rem; }
.topbar-search input {
  border: none; background: none; outline: none;
  font-size: 0.87rem; color: var(--text); width: 100%;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-notif {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text-light); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: var(--transition);
}
.topbar-notif:hover { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; background: #e74c3c;
  border-radius: 50%; border: 1.5px solid var(--white);
}
.topbar-user {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px; border-radius: 10px;
  background: var(--bg); border: 1.5px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.topbar-user:hover { border-color: var(--primary); }
.topbar-user-ava {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--white);
}
.topbar-user-name { font-size: 0.82rem; font-weight: 700; color: var(--primary); }

/* ── Content area ──────────────────────────────────────────── */
.dash-content { flex: 1; padding: 32px 28px; }

/* Page header */
.page-heading {
  margin-bottom: 28px;
}
.page-heading h1 {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--primary); margin-bottom: 4px;
}
.page-heading p { font-size: 0.88rem; color: var(--text-muted); }

/* ── Cards & panels ────────────────────────────────────────── */
.panel {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.panel-header h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.panel-header h3 i { color: var(--secondary); }
.panel-header a { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.panel-header a:hover { color: var(--secondary); }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border); border-left: 4px solid transparent;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card:nth-child(1) { border-left-color: #3b82f6; }
.stat-card:nth-child(2) { border-left-color: #22c55e; }
.stat-card:nth-child(3) { border-left-color: var(--secondary); }
.stat-card:nth-child(4) { border-left-color: #ef4444; }
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.stat-card:nth-child(1) .stat-icon { background: rgba(59,130,246,.1); color: #3b82f6; }
.stat-card:nth-child(2) .stat-icon { background: rgba(34,197,94,.1); color: #22c55e; }
.stat-card:nth-child(3) .stat-icon { background: rgba(209,207,10,.15); color: var(--secondary-dark); }
.stat-card:nth-child(4) .stat-icon { background: rgba(239,68,68,.1); color: #ef4444; }
.stat-info .num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-info .lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.stat-info .change { font-size: 0.73rem; font-weight: 700; margin-top: 3px; display: flex; align-items: center; gap: 3px; }
.stat-info .change.up { color: #22c55e; }
.stat-info .change.down { color: #ef4444; }

/* Grid layouts */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-bottom: 22px; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.data-table th {
  background: var(--bg); color: var(--text-muted); font-size: 0.73rem;
  font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-light); color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(240,244,248,0.6); }

/* Badges */
.status-badge {
  padding: 4px 11px; border-radius: 20px; font-size: 0.72rem;
  font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
}
.status-new     { background: rgba(59,130,246,.1); color: #3b82f6; }
.status-review  { background: rgba(245,158,11,.1); color: #d97706; }
.status-short   { background: rgba(34,197,94,.1); color: #16a34a; }
.status-rejected{ background: rgba(239,68,68,.1); color: #dc2626; }
.status-active  { background: rgba(34,197,94,.1); color: #16a34a; }
.status-closed  { background: rgba(100,116,139,.1); color: #64748b; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 10px;
  font-size: 0.87rem; font-weight: 700; cursor: pointer;
  border: none; transition: var(--transition); font-family: var(--font-main);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: var(--primary); }
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-outline { background: none; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-danger { background: rgba(239,68,68,.1); color: #dc2626; border: 1px solid rgba(239,68,68,.2); }
.btn-danger:hover { background: #dc2626; color: #fff; }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--primary); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.87rem; color: var(--text); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(44,62,80,0.07); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Avatar/candidate row */
.candidate-row { display: flex; align-items: center; gap: 10px; }
.candidate-ava {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.candidate-name { font-weight: 700; font-size: 0.87rem; color: var(--primary); }
.candidate-role { font-size: 0.75rem; color: var(--text-muted); }

/* Message threads */
.thread-list { display: flex; flex-direction: column; }
.thread-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: var(--transition);
}
.thread-item:last-child { border-bottom: none; }
.thread-item:hover { background: var(--bg); margin: 0 -14px; padding: 14px; border-radius: 10px; }
.thread-item.unread .thread-name { font-weight: 700; }
.thread-item.unread::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--secondary); margin-left: auto; flex-shrink: 0; margin-top: 4px;
}
.thread-ava {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.thread-name { font-weight: 700; font-size: 0.87rem; color: var(--primary); margin-bottom: 3px; }
.thread-preview { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.thread-time { font-size: 0.72rem; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }

/* Welcome banner */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3050 100%);
  border-radius: 18px; padding: 30px 36px; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.welcome-banner::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(209,207,10,0.08);
}
.welcome-banner::after {
  content: ''; position: absolute; right: 80px; bottom: -80px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(209,207,10,0.05);
}
.welcome-banner h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.welcome-banner p { opacity: 0.65; font-size: 0.88rem; }
.welcome-banner .btn-post {
  background: var(--secondary); color: var(--primary);
  padding: 12px 24px; border-radius: 12px;
  font-weight: 700; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; position: relative; z-index: 1;
  flex-shrink: 0; transition: var(--transition);
}
.welcome-banner .btn-post:hover { background: var(--secondary-dark); transform: translateY(-1px); }

/* Dark mode */
[data-theme="dark"] body { background: #0e1117; color: #e2e8f0; }
[data-theme="dark"] .sidebar { background: #1a252f; }
[data-theme="dark"] .dash-topbar { background: #111827; border-color: #1f2937; }
[data-theme="dark"] .panel,
[data-theme="dark"] .stat-card { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .topbar-search { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .topbar-search input { color: #e2e8f0; }
[data-theme="dark"] .topbar-notif,
[data-theme="dark"] .topbar-user { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .topbar-user-name { color: #e2e8f0; }
[data-theme="dark"] .data-table th { background: #111827; color: #64748b; border-color: #2a3340; }
[data-theme="dark"] .data-table td { border-color: #1f2937; color: #e2e8f0; }
[data-theme="dark"] .data-table tr:hover td { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea { background: #1a2030; border-color: #2a3340; color: #e2e8f0; }
[data-theme="dark"] .stat-info .num,
[data-theme="dark"] .panel-header h3,
[data-theme="dark"] .page-heading h1,
[data-theme="dark"] .candidate-name { color: #e2e8f0; }
[data-theme="dark"] .btn-outline { border-color: #2a3340; color: #e2e8f0; }

/* ── Sidebar overlay (mobile) ───────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 190;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.visible { display: block; }

/* ── Sidebar close button (mobile only) ─────────────────── */
.sidebar-close {
  display: none;
  position: absolute; top: 18px; right: 14px;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: none;
  color: rgba(255,255,255,0.7); font-size: 0.85rem;
  cursor: pointer; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.sidebar-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .three-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  /* Sidebar slides off-screen */
  .sidebar {
    transform: translateX(-280px);
    width: 260px;
    position: fixed;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 200;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 40px rgba(0,0,0,0.35);
  }
  .sidebar-close { display: flex; }

  /* Main fills full width */
  .dash-main { margin-left: 0; width: 100%; }
  .dash-layout { display: block; }

  /* Topbar */
  .topbar-toggle { display: flex; }
  .topbar-search { display: none; }
  .dash-topbar { padding: 0 16px; }
  .topbar-user-name { display: none; }

  /* Content */
  .dash-content { padding: 18px 14px; }
  .two-col { grid-template-columns: 1fr; }
  .page-heading h1 { font-size: 1.25rem; }

  /* Tables scroll horizontally */
  .table-panel { overflow-x: auto; }
  .data-table { min-width: 600px; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .three-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .welcome-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; }
  .welcome-banner h2 { font-size: 1.15rem; }
  .dash-content { padding: 14px 12px; }
  .summary-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .analytics-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .sub-plans-row { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .role-tabs-portal { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .summary-strip { grid-template-columns: 1fr; }
  .stat-card { padding: 16px; }
  .stat-info .num { font-size: 1.4rem; }
  .filter-bar { flex-direction: column; }
  .search-inp { min-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   COMPANY & SEEKER PORTAL — Page-Specific Components
═══════════════════════════════════════════════════════════ */

/* ── Profile hero (company + seeker) ──────────────────────── */
.profile-hero {
  background: linear-gradient(160deg, var(--primary) 0%, #1a3050 100%);
  border-radius: 18px; overflow: visible; position: relative;
  margin-bottom: 60px;
}
.cover-wrap {
  height: 180px; border-radius: 18px 18px 0 0; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--primary), #1a3050);
}
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.logo-float, .avatar-float {
  position: absolute; bottom: -36px; left: 32px;
  width: 80px; height: 80px; border-radius: 18px;
  border: 4px solid var(--white); overflow: hidden;
  background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.logo-float img, .avatar-float img { width: 100%; height: 100%; object-fit: cover; }
.logo-hover-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; border-radius: 14px; cursor: pointer;
  color: #fff; font-size: 1rem;
}
.logo-float:hover .logo-hover-overlay,
.avatar-float:hover .logo-hover-overlay { opacity: 1; }

/* Profile tabs */
.profile-tabs {
  display: flex; gap: 0; padding: 0 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--white); border-radius: 0 0 18px 18px;
  flex-wrap: wrap;
}
.p-tab {
  padding: 14px 20px; font-size: 0.85rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer; border: none; background: none;
  border-bottom: 2.5px solid transparent; transition: var(--transition);
  font-family: var(--font-main); white-space: nowrap;
}
.p-tab:hover { color: var(--primary); }
.p-tab.active { color: var(--primary); border-bottom-color: var(--secondary); }

/* Section cards inside profile */
.section-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.section-card h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--primary); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px;
}
.section-card h3 i { color: var(--secondary); }

/* Input wrap with icon */
.input-wrap { position: relative; }
.input-wrap i.ic {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.85rem; pointer-events: none;
}
.input-wrap i.no-ic { display: none; }
.input-wrap input, .input-wrap select, .input-wrap textarea {
  padding-left: 38px;
}

/* Social icons */
.social-icon { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.si-linkedin i { color: #0a66c2; }
.si-twitter  i { color: #1da1f2; }
.si-facebook i { color: #1877f2; }
.si-web      i { color: var(--text-muted); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.gallery-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-add {
  aspect-ratio: 1; border-radius: 10px; border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: 1.3rem;
  transition: var(--transition); background: var(--bg);
}
.gallery-add:hover { border-color: var(--primary); color: var(--primary); background: rgba(44,62,80,0.03); }

/* Save bar */
.save-bar, .save-actions {
  position: sticky; bottom: 0; background: var(--white);
  border-top: 1px solid var(--border); padding: 14px 24px;
  display: flex; gap: 10px; justify-content: flex-end;
  z-index: 50; box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

/* ── Company Applications page ─────────────────────────────── */
.app-table-full { width: 100%; }
.cand-cell { display: flex; align-items: center; gap: 10px; }
.cand-av {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.72rem; color: #fff;
}
.cand-nm { font-weight: 700; font-size: 0.87rem; color: var(--primary); }
.cand-sub { font-size: 0.74rem; color: var(--text-muted); }
.badge-premium-sm {
  background: rgba(209,207,10,.2); color: #92400e;
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
.match-high { color: #16a34a; font-weight: 700; }
.match-mid  { color: #d97706; font-weight: 700; }
.match-low  { color: #64748b; font-weight: 600; }
.da-approve, .da-shortlist, .da-msg, .da-reject {
  padding: 7px 13px; border-radius: 8px; border: none;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-main); transition: var(--transition);
}
.da-approve  { background: rgba(34,197,94,.1); color: #16a34a; }
.da-shortlist{ background: rgba(59,130,246,.1); color: #3b82f6; }
.da-msg      { background: rgba(100,116,139,.1); color: #64748b; }
.da-reject   { background: rgba(239,68,68,.1); color: #dc2626; }
.da-approve:hover  { background: #16a34a; color: #fff; }
.da-shortlist:hover{ background: #3b82f6; color: #fff; }
.da-reject:hover   { background: #dc2626; color: #fff; }
/* Drawer (candidate detail panel) */
.drawer {
  position: fixed; right: -440px; top: 0; bottom: 0; width: 420px;
  background: var(--white); box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  z-index: 500; transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.open { right: 0; }
.drawer-ava {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: #fff;
}
.drawer-actions { display: flex; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--border-light); margin-top: auto; }

/* ── Company Dashboard charts ─────────────────────────────── */
.chart-area { height: 180px; display: flex; align-items: flex-end; gap: 6px; padding: 0 4px; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; height: 100%; }
.bar { flex: 1; border-radius: 6px 6px 0 0; min-width: 12px; background: var(--primary); transition: opacity 0.2s; }
.bar:hover { opacity: 0.75; }
.bar-lbl { font-size: 0.68rem; color: var(--text-muted); text-align: center; margin-top: 5px; }
.apps-count { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.apps-lbl { font-size: 0.74rem; color: var(--text-muted); }
/* Activity feed */
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.activity-item:last-child { border-bottom: none; }
.act-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.act-dot.act-green  { background: rgba(34,197,94,.12); color: #22c55e; }
.act-dot.act-blue   { background: rgba(59,130,246,.12); color: #3b82f6; }
.act-dot.act-yellow { background: rgba(209,207,10,.15); color: #d97706; }
.act-dot.act-red    { background: rgba(239,68,68,.12); color: #ef4444; }
.act-text { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.act-time { font-size: 0.73rem; color: var(--text-muted); margin-top: 2px; }

/* ── Messages / Chat (company + seeker) ───────────────────── */
.conv-list {
  width: 300px; flex-shrink: 0; border-right: 1px solid var(--border);
  overflow-y: auto; background: var(--white);
}
.conv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer; transition: background 0.18s;
  border-bottom: 1px solid var(--border-light); position: relative;
}
.conv-item:hover { background: var(--bg); }
.conv-item.active { background: rgba(209,207,10,0.08); border-left: 3px solid var(--secondary); }
.conv-ava {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: #fff;
}
.conv-name { font-weight: 700; font-size: 0.86rem; color: var(--primary); }
.conv-meta { font-size: 0.76rem; color: var(--text-muted); display: flex; justify-content: space-between; margin-top: 2px; }
.conv-badge {
  position: absolute; top: 10px; right: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* Chat body */
.chat-body { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.chat-header {
  padding: 14px 20px; background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.chat-name { font-weight: 700; font-size: 0.95rem; color: var(--primary); }
.chat-sub  { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.chat-ava  { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; color: #fff; }
.chat-actions { display: flex; gap: 8px; }
.ch-act { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--border); background: var(--white); color: var(--text-light); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem; transition: var(--transition); }
.ch-act:hover { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
/* Messages */
.bubble {
  max-width: 72%; padding: 11px 16px; border-radius: 16px;
  font-size: 0.87rem; line-height: 1.6; word-break: break-word;
}
.bubble.mine { background: var(--primary); color: #fff; border-radius: 16px 16px 4px 16px; margin-left: auto; }
.bubble.theirs { background: var(--white); color: var(--text); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; }
.bubble.left { margin-right: auto; }
/* Chat input */
.chat-input-area {
  padding: 14px 16px; background: var(--white); border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center; flex-shrink: 0;
}
.chat-input-area input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 24px;
  padding: 10px 18px; font-size: 0.87rem; outline: none; background: var(--bg);
  transition: var(--transition);
}
.chat-input-area input:focus { border-color: var(--primary); background: var(--white); }

/* ── Post Job form ─────────────────────────────────────────── */
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.rich-editor { min-height: 160px; border: 1.5px solid var(--border); border-radius: 0 0 10px 10px; padding: 14px; font-size: 0.88rem; outline: none; background: var(--white); color: var(--text); }
.rich-editor:focus { border-color: var(--primary); }
.rich-toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 12px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px 10px 0 0; border-bottom: none; }
.rich-content { min-height: 120px; }
.salary-range { display: flex; align-items: center; gap: 10px; }
.salary-range input { flex: 1; }
.salary-range span { color: var(--text-muted); font-weight: 700; }
.prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 700; pointer-events: none; }
.benefits-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.req { color: #dc2626; font-size: 0.75rem; margin-left: 2px; }
.deadline-info { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999; display: flex; align-items: center; justify-content: center; }
.modal-box { background: var(--white); border-radius: 20px; padding: 36px; max-width: 440px; width: 90%; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,0.2); }
.modal-icon { font-size: 2.5rem; margin-bottom: 16px; }
.submit-bar, .submit-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.user-ava { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; color: #fff; }
.user-meta { font-size: 0.79rem; color: var(--text-muted); }

/* ── Seeker Applications ────────────────────────────────────── */
.app-cards { display: flex; flex-direction: column; gap: 14px; }
.app-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ac-main { display: flex; align-items: flex-start; gap: 14px; }
.ac-logo { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #fff; }
.ac-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.ac-company { font-size: 0.83rem; color: var(--text-light); font-weight: 600; margin-bottom: 8px; }
.ac-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.ac-tag { font-size: 0.74rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.ac-tag i { color: var(--secondary); font-size: 0.66rem; }
.ac-date { font-size: 0.74rem; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }
.ac-actions { display: flex; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light); }
/* Pipeline / Kanban */
.pipeline { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.pipe-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; box-shadow: var(--shadow-sm); }
.pipe-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.pipe-lbl { font-size: 0.76rem; color: var(--text-muted); font-weight: 600; }
/* Timeline */
.app-timeline { display: flex; flex-direction: column; gap: 0; }
.tl-step { display: flex; gap: 12px; padding: 12px 0; position: relative; }
.tl-step::before { content: ''; position: absolute; left: 15px; top: 36px; bottom: -8px; width: 2px; background: var(--border-light); }
.tl-step:last-child::before { display: none; }

/* ── Seeker Dashboard ────────────────────────────────────────── */
.rec-job-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.rec-job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rjc-company { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.rjc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
/* Application timeline */
.app-timeline-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.app-timeline-item:last-child { border-bottom: none; }
.atl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.atl-dot.atl-green  { background: #22c55e; }
.atl-dot.atl-blue   { background: #3b82f6; }
.atl-dot.atl-yellow { background: #f59e0b; }
.atl-dot.atl-red    { background: #ef4444; }
.atl-title   { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.atl-company { font-size: 0.78rem; color: var(--text-light); }
.atl-time    { font-size: 0.73rem; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }
.atl-info    { flex: 1; min-width: 0; }
.pct { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.ats-review     { background: rgba(245,158,11,.1); color: #d97706; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.ats-interview  { background: rgba(59,130,246,.1); color: #3b82f6; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.ats-shortlisted{ background: rgba(34,197,94,.1); color: #16a34a; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.ats-rejected   { background: rgba(239,68,68,.1); color: #dc2626; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }

/* ── Seeker Profile ─────────────────────────────────────────── */
.skill-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 0.78rem; font-weight: 600; color: var(--text); }
.skill-chip button { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 0.7rem; padding: 0; display: flex; }
.skill-chip button:hover { color: #dc2626; }
.cv-upload-box { border: 2px dashed var(--border); border-radius: 14px; padding: 32px; text-align: center; cursor: pointer; transition: var(--transition); background: var(--bg); }
.cv-upload-box:hover { border-color: var(--primary); }
.cv-icon { font-size: 2rem; color: var(--text-muted); margin-bottom: 10px; }
.cv-current { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.cv-name { font-weight: 700; font-size: 0.87rem; color: var(--primary); }
.cv-meta { font-size: 0.75rem; color: var(--text-muted); }
.cv-actions-sm { display: flex; gap: 6px; margin-left: auto; }
.col-full { grid-column: 1 / -1; }

/* ── Dark mode extensions ────────────────────────────────────── */
[data-theme="dark"] .section-card,
[data-theme="dark"] .post-card,
[data-theme="dark"] .app-card,
[data-theme="dark"] .rec-job-card,
[data-theme="dark"] .pipe-card { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .profile-tabs { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .conv-list { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .conv-item:hover { background: #222d3a; }
[data-theme="dark"] .conv-item.active { background: rgba(209,207,10,0.07); }
[data-theme="dark"] .conv-name, [data-theme="dark"] .chat-name { color: #e2e8f0; }
[data-theme="dark"] .chat-header, [data-theme="dark"] .chat-input-area { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .chat-body { background: #111827; }
[data-theme="dark"] .bubble.theirs { background: #1a2030; border-color: #2a3340; color: #e2e8f0; }
[data-theme="dark"] .chat-input-area input { background: #222d3a; border-color: #2a3340; color: #e2e8f0; }
[data-theme="dark"] .save-bar, [data-theme="dark"] .save-actions { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .drawer { background: #1a2030; }
[data-theme="dark"] .modal-box { background: #1a2030; }
[data-theme="dark"] .rich-editor { background: #1a2030; border-color: #2a3340; color: #e2e8f0; }
[data-theme="dark"] .rich-toolbar { background: #111827; border-color: #2a3340; }
[data-theme="dark"] .cv-current, [data-theme="dark"] .cv-upload-box { background: #222d3a; border-color: #2a3340; }
[data-theme="dark"] .skill-chip { background: #222d3a; border-color: #2a3340; color: #e2e8f0; }
[data-theme="dark"] .gallery-add { background: #222d3a; border-color: #2a3340; }
[data-theme="dark"] .cover-wrap { background: #111827; }
[data-theme="dark"] .ac-main { color: #e2e8f0; }
[data-theme="dark"] .ac-title, [data-theme="dark"] .atl-title { color: #e2e8f0; }
[data-theme="dark"] .app-timeline-item { border-color: #2a3340; }
[data-theme="dark"] .rjc-footer { border-color: #2a3340; }
[data-theme="dark"] .p-tab { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .p-tab.active, [data-theme="dark"] .p-tab:hover { color: #e2e8f0; }

/* Responsive */
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .conv-list { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr 1fr; }
  .profile-tabs { padding: 0 12px; }
  .p-tab { padding: 12px 12px; font-size: 0.8rem; }
  .cover-wrap { height: 130px; }
}
