/* ═══════════════════════════════════════════════════════════════
   AI Recruiter — Main Stylesheet
   Clean, professional, mobile-friendly. No heavy frameworks.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --tib:     #1a73e8;
  --zg:      #34a853;
  --summit:  #7c3aed;
  --danger:  #dc2626;
  --warn:    #f59e0b;
  --success: #22c55e;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --white:   #ffffff;
  --radius:  8px;
  --shadow:  0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }

img { max-width: 100%; }

/* ─── Utilities ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-400); font-size: .875rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity .15s, transform .1s;
  text-align: center;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--tib); color: var(--white); }
.btn-white   { background: var(--white); color: var(--gray-800); }
.btn-outline { background: transparent; border-color: var(--gray-400); color: var(--gray-600); }
.btn-outline:hover { border-color: var(--gray-800); color: var(--gray-800); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger  { background: var(--danger); color: var(--white); }
.btn-sm  { padding: 6px 12px; font-size: .8rem; }
.btn-lg  { padding: 14px 28px; font-size: 1.05rem; }
.btn-full { width: 100%; display: block; }

/* ─── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 500;
}
.alert-error   { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ─── Badges & Status ───────────────────────────────────────── */
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
}
.score-hot  { background: #dcfce7; color: #166534; }
.score-warm { background: #fef3c7; color: #92400e; }
.score-cool { background: #dbeafe; color: #1e40af; }
.score-cold { background: var(--gray-100); color: var(--gray-600); }
.score-lg   { font-size: 1rem; padding: 6px 14px; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-new         { background: #dbeafe; color: #1e40af; }
.status-contacted   { background: #fef3c7; color: #92400e; }
.status-responded   { background: #d1fae5; color: #065f46; }
.status-applied     { background: #ede9fe; color: #4c1d95; }
.status-reviewing   { background: #fef3c7; color: #92400e; }
.status-interview_scheduled { background: #d1fae5; color: #065f46; }
.status-offer_made  { background: #dcfce7; color: #14532d; }
.status-hired       { background: #dcfce7; color: #14532d; }
.status-declined    { background: #fee2e2; color: #991b1b; }
.status-completed   { background: #d1fae5; color: #065f46; }
.status-failed      { background: #fee2e2; color: #991b1b; }
.status-running     { background: #fef3c7; color: #92400e; }

.hot-tag    { background: #fef2f2; color: var(--danger); padding: 2px 8px; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.hot-tag-lg { background: #fef2f2; color: var(--danger); padding: 4px 12px; border-radius: 20px; font-size: .9rem; font-weight: 700; margin-bottom: 8px; display: inline-block; }

.badge-hot { background: var(--danger); color: var(--white); padding: 2px 7px; border-radius: 10px; font-size: .7rem; font-weight: 700; margin-left: 4px; }

/* ─── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--gray-800);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  z-index: 9999;
  box-shadow: var(--shadow-md);
  transition: opacity .3s;
}
.toast.toast-success { background: #166534; }
.toast.toast-error   { background: var(--danger); }
.toast.hidden { display: none; }

/* ══════════════════════════════════════════════
   PUBLIC JOB PAGES
   ══════════════════════════════════════════════ */

.public-page { min-height: 100vh; display: flex; flex-direction: column; }

.site-header, .job-header {
  background: var(--tib);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.site-header h1, .job-header h1 { font-size: 2rem; margin-bottom: 8px; }
.site-header .tagline { font-size: 1.1rem; opacity: .85; }
.job-header .header-sub { font-size: 1rem; opacity: .85; margin-bottom: 24px; }
.company-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: 4px 16px; border-radius: 20px;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 12px;
}

/* Job index cards */
.job-cards { padding: 48px 0; }
.job-cards h2 { text-align: center; font-size: 1.5rem; margin-bottom: 32px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.job-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.job-card-icon { font-size: 2rem; margin-bottom: 12px; }
.job-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.company-name { color: var(--gray-600); font-size: .9rem; margin-bottom: 8px; }
.location { font-size: .875rem; margin-bottom: 4px; }
.salary { font-size: .875rem; font-weight: 600; margin-bottom: 12px; }
.description { font-size: .875rem; color: var(--gray-600); margin-bottom: 20px; }

.why-us { background: var(--white); padding: 48px 0; }
.why-us h2 { text-align: center; margin-bottom: 24px; font-size: 1.4rem; }
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.reason { background: var(--gray-50); padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; }

/* Job detail page */
.job-content { padding: 48px 0; flex: 1; }
.job-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.job-section { margin-bottom: 40px; }
.job-section h2 { font-size: 1.3rem; margin-bottom: 16px; border-bottom: 2px solid var(--gray-200); padding-bottom: 8px; }
.job-section p { color: var(--gray-600); margin-bottom: 12px; line-height: 1.7; }
.job-list { list-style: none; }
.job-list li { padding: 8px 0; padding-left: 24px; position: relative; border-bottom: 1px solid var(--gray-100); }
.job-list li::before { content: "→"; position: absolute; left: 0; color: var(--gray-400); }

.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.benefit-item {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.benefit-icon { font-size: 1.5rem; }
.benefit-item strong { font-size: .95rem; }
.benefit-item span { font-size: .825rem; color: var(--gray-600); }

.bonus-note { background: #fffbeb; border-left: 3px solid var(--warn); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .875rem; }
.seo-note { font-size: .75rem; color: var(--gray-400); }

/* Job sidebar */
.apply-box, .company-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.apply-box h3 { font-size: 1.2rem; margin-bottom: 8px; }
.apply-box p { color: var(--gray-600); margin-bottom: 16px; font-size: .875rem; }
.apply-box .btn { width: 100%; margin-bottom: 16px; }
.quick-facts { border-top: 1px solid var(--gray-200); padding-top: 16px; }
.fact { display: flex; justify-content: space-between; padding: 6px 0; font-size: .85rem; border-bottom: 1px solid var(--gray-100); }
.fact strong { color: var(--gray-600); }

.company-box h4 { margin-bottom: 8px; font-size: 1rem; }
.company-box p { font-size: .85rem; color: var(--gray-600); }

.cta-section { text-align: center; padding: 40px; border-radius: var(--radius); margin: 40px 0; }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: var(--gray-600); margin-bottom: 24px; }

/* ══════════════════════════════════════════════
   APPLICATION FORM
   ══════════════════════════════════════════════ */

.apply-header { padding: 32px 0; color: var(--white); }
.apply-header h1 { font-size: 1.8rem; margin-bottom: 4px; }
.apply-header .header-sub { font-size: .95rem; opacity: .85; }
.back-link { display: inline-block; font-size: .875rem; opacity: .8; margin-bottom: 12px; }

.apply-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding: 40px 0; align-items: start; }

.apply-form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-section { margin-bottom: 32px; }
.form-section h2 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-200); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-600); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: .95rem; color: var(--gray-800);
  transition: border-color .15s;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--tib);
}
.form-group small { font-size: .75rem; color: var(--gray-400); margin-top: 4px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: var(--danger); }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 8px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: .875rem; cursor: pointer; }
.checkbox-item input { width: auto; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .875rem; cursor: pointer; }
.checkbox-label input { width: auto; }

.form-submit { text-align: center; margin-top: 8px; }
.submit-note { font-size: .8rem; color: var(--gray-400); margin-top: 12px; }

.apply-sidebar { position: sticky; top: 24px; }
.position-box, .what-happens-box {
  background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.position-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.position-box p { font-size: .85rem; color: var(--gray-600); margin-bottom: 4px; }
.what-happens-box h4 { margin-bottom: 12px; }
.what-happens-box ol { padding-left: 20px; }
.what-happens-box li { font-size: .875rem; color: var(--gray-600); margin-bottom: 8px; }

/* Thank You page */
.thankyou-content { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 40px 0; }
.thankyou-card { background: var(--white); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow-md); max-width: 560px; text-align: center; }
.thankyou-icon { font-size: 3rem; margin-bottom: 16px; }
.thankyou-card h1 { margin-bottom: 12px; }
.thankyou-lead { font-size: 1.1rem; color: var(--gray-600); margin-bottom: 16px; }
.thankyou-card p { color: var(--gray-600); margin-bottom: 12px; }
.thankyou-next { text-align: left; background: var(--gray-50); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
.thankyou-next h3 { margin-bottom: 12px; font-size: 1rem; }
.thankyou-next ul { padding-left: 20px; }
.thankyou-next li { font-size: .875rem; color: var(--gray-600); margin-bottom: 6px; }

/* ══════════════════════════════════════════════
   STAFF LOGIN
   ══════════════════════════════════════════════ */

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--gray-100); }
.login-container { width: 100%; max-width: 380px; padding: 20px; }
.login-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); text-align: center; }
.login-logo { font-size: 2.5rem; margin-bottom: 12px; }
.login-card h1 { font-size: 1.4rem; margin-bottom: 4px; }
.login-sub { color: var(--gray-400); margin-bottom: 28px; font-size: .875rem; }
.login-form .form-group { text-align: left; }
.login-form .btn { margin-top: 8px; }

/* ══════════════════════════════════════════════
   STAFF DASHBOARD
   ══════════════════════════════════════════════ */

.dashboard-page { background: var(--gray-100); min-height: 100vh; }

.dashboard-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--gray-800); color: var(--white);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { padding: 24px 20px; font-size: 1rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 8px; }
.brand-icon { font-size: 1.3rem; }
.sidebar-nav { list-style: none; flex: 1; padding: 8px 0; }
.sidebar-nav li a {
  display: block; padding: 12px 20px; font-size: .9rem;
  color: rgba(255,255,255,.75); transition: background .15s;
  border-left: 3px solid transparent;
}
.sidebar-nav li a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.sidebar-nav li a.active { background: rgba(255,255,255,.12); color: var(--white); border-left-color: var(--tib); }
.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.logout-link { font-size: .85rem; color: rgba(255,255,255,.5); }
.logout-link:hover { color: var(--white); }

/* Main content */
.dashboard-main { flex: 1; min-width: 0; overflow-y: auto; }
.tab-content { padding: 32px; }
.tab-content h1 { font-size: 1.6rem; margin-bottom: 4px; }
.tab-sub { color: var(--gray-400); margin-bottom: 24px; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); text-align: center;
}
.stat-card-hot { border-top: 3px solid var(--danger); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--gray-800); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--gray-400); margin-top: 4px; }

/* Section card */
.section-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.section-card h2 { font-size: 1.1rem; margin-bottom: 16px; }

/* Hot apps */
.hot-apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.hot-app-card { background: var(--gray-50); border-radius: var(--radius); padding: 16px; border: 1px solid #fecaca; }
.hot-app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hot-app-card p { font-size: .85rem; color: var(--gray-600); margin-bottom: 4px; }
.hot-app-card .btn { margin-top: 12px; }

/* Quick actions */
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Data tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { background: var(--gray-50); padding: 10px 12px; text-align: left; font-weight: 600; font-size: .8rem; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.clickable-row { cursor: pointer; }

.sortable { cursor: pointer; user-select: none; }
.sortable:hover { background: var(--gray-100); }

/* Filter bar */
.filter-bar { margin-bottom: 20px; }
.filter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-form select { padding: 8px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .875rem; background: var(--white); color: var(--gray-800); cursor: pointer; }

/* Application cards */
.applications-list { display: flex; flex-direction: column; gap: 12px; }
.app-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  cursor: pointer; transition: box-shadow .15s;
}
.app-card:hover { box-shadow: var(--shadow-md); }
.app-card-hot { border-left: 3px solid var(--danger); }
.app-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.app-name-section { display: flex; align-items: center; gap: 8px; }
.app-card-body { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.app-meta { font-size: .8rem; color: var(--gray-600); }
.license-ok { color: var(--success); font-weight: 600; }
.app-card-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-date { font-size: .8rem; }
.app-quick-actions { margin-left: auto; }

/* Status selects */
.status-select { padding: 6px 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .8rem; background: var(--white); cursor: pointer; }
.status-select-lg { width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .95rem; margin-bottom: 12px; background: var(--white); }

/* Scraper cards */
.scrapers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 32px; }
.scraper-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.scraper-card h3 { margin-bottom: 4px; }
.scraper-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.run-scraper-btn { text-align: left; }
.scraper-result { margin-top: 12px; font-size: .85rem; color: var(--gray-600); min-height: 24px; }

/* Detail pages */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.6rem; margin: 8px 0; }
.detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-item label { font-size: .75rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; }
.detail-item span { font-size: .9rem; }
.license-number { font-family: monospace; color: var(--success); font-weight: 600; }

/* Outreach timeline */
.outreach-timeline { display: flex; flex-direction: column; gap: 16px; }
.outreach-item { background: var(--gray-50); border-radius: var(--radius); padding: 16px; }
.outreach-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.outreach-day { font-size: .8rem; font-weight: 600; background: var(--gray-200); padding: 2px 8px; border-radius: 20px; }
.outreach-message { font-size: .875rem; color: var(--gray-700); line-height: 1.5; }
.outreach-response { background: #d1fae5; border-radius: var(--radius); padding: 8px 12px; font-size: .85rem; margin-top: 8px; }

/* Status form */
.status-form { display: flex; flex-direction: column; gap: 8px; }
.status-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: .875rem; resize: vertical; }
.quick-status-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* Tags */
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--gray-100); color: var(--gray-600); padding: 4px 10px; border-radius: 20px; font-size: .8rem; }

/* Certs */
.cert-badge { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; margin-right: 4px; }

/* Application detail */
.why-great { background: var(--gray-50); border-left: 4px solid var(--tib); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--gray-700); line-height: 1.6; }
.score-detail { text-align: center; }
.score-big { font-size: 3rem; font-weight: 700; line-height: 1; }
.score-big span { font-size: 1rem; color: var(--gray-400); }
.score-note { font-size: .85rem; color: var(--gray-600); margin-top: 8px; }
.has-response { color: var(--success); font-size: .8rem; font-weight: 600; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 20px; color: var(--gray-400); }
.empty-state .btn { margin-top: 16px; }

/* Site footer */
.site-footer { background: var(--gray-800); color: var(--gray-400); padding: 24px 0; text-align: center; margin-top: auto; }
.site-footer p { font-size: .85rem; margin-bottom: 4px; }
.site-footer a { color: var(--gray-400); }
.site-footer a:hover { color: var(--white); }

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 900px) {
  .job-layout, .apply-layout, .detail-layout { grid-template-columns: 1fr; }
  .job-sidebar, .apply-sidebar { position: static; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; }
  .sidebar-nav { display: flex; flex-direction: row; overflow-x: auto; }
  .sidebar-nav li a { white-space: nowrap; }
  .sidebar-brand { padding: 16px; }
  .sidebar-footer { padding: 16px; }
}

@media (max-width: 600px) {
  .tab-content { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .filter-form { flex-direction: column; }
}

/* ══════════════════════════════════════════════
   HIREHARBOR DESIGN SYSTEM
   Navy #0a2540 | Teal #00b4d8 | White
   ══════════════════════════════════════════════ */

:root {
  --hh-navy:   #0a2540;
  --hh-teal:   #00b4d8;
  --hh-green:  #00c853;
  --hh-light:  #f0f6ff;
  --hh-border: #e8edf2;
}

/* HireHarbor page wrapper */
.hh-page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }

/* Teal button */
.hh-btn-teal {
  background: var(--hh-teal);
  color: #fff;
  border-color: var(--hh-teal);
}
.hh-btn-teal:hover { background: #009bbf; border-color: #009bbf; opacity: 1; }

.hh-btn-white {
  background: #fff;
  color: var(--hh-navy);
  border-color: #fff;
}
.hh-btn-white:hover { opacity: .9; }

.hh-btn-outline {
  background: transparent;
  color: var(--hh-teal);
  border: 2px solid var(--hh-teal);
}
.hh-btn-outline:hover { background: var(--hh-teal); color: #fff; opacity: 1; }

.hh-btn-full { display: block; width: 100%; text-align: center; }

/* ── NAV ── */
.hh-nav {
  background: var(--hh-navy);
  padding: 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hh-nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.hh-logo {
  font-size: 1.25rem; font-weight: 800;
  color: #fff; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.hh-logo span { color: var(--hh-teal); }
.hh-nav-links {
  list-style: none; display: flex; gap: 4px;
  margin-left: auto;
}
.hh-nav-links li a {
  color: rgba(255,255,255,.75); padding: 8px 14px;
  font-size: .9rem; border-radius: 6px;
  transition: color .15s, background .15s;
}
.hh-nav-links li a:hover,
.hh-nav-links li a.active { color: #fff; background: rgba(255,255,255,.1); }
.hh-nav-cta { margin-left: 8px; white-space: nowrap; font-size: .9rem; padding: 8px 18px; }
.hh-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; margin-left: 8px; }

/* ── HERO ── */
.hh-hero {
  position: relative;
  background: var(--hh-navy);
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hh-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,180,216,.15) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 80%, rgba(0,200,83,.08) 0%, transparent 60%);
}
.hh-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hh-hero-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: #fff;
  line-height: 1.1; margin-bottom: 20px;
}
.hh-hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.75);
  margin-bottom: 36px; line-height: 1.6;
}
.hh-search-bar {
  display: flex; gap: 0; max-width: 560px; margin: 0 auto;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.hh-search-input {
  flex: 1; padding: 16px 20px; border: none; outline: none;
  font-size: 1rem; color: var(--gray-800);
  background: #fff;
}
.hh-search-bar .btn { border-radius: 0; padding: 16px 24px; font-size: 1rem; }

/* ── STATS BAR ── */
.hh-stats-bar { background: #fff; border-bottom: 1px solid var(--hh-border); }
.hh-stats-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; padding: 0;
}
.hh-stat { padding: 20px 32px; text-align: center; }
.hh-stat-number { display: block; font-size: 1.5rem; font-weight: 800; color: var(--hh-navy); line-height: 1; }
.hh-stat-label { display: block; font-size: .8rem; color: var(--gray-400); margin-top: 4px; }
.hh-stat-divider { width: 1px; background: var(--hh-border); height: 40px; }

/* ── SECTIONS ── */
.hh-section { padding: 80px 0; }
.hh-section-alt { background: var(--hh-light); }
.hh-section-header { text-align: center; margin-bottom: 48px; }
.hh-section-header h2 { font-size: 2rem; font-weight: 800; color: var(--hh-navy); margin-bottom: 12px; }
.hh-section-header p { font-size: 1.05rem; color: var(--gray-600); max-width: 560px; margin: 0 auto; }

/* ── JOB CARDS (homepage grid) ── */
.hh-jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.hh-job-card {
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 12px; padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.hh-job-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.hh-job-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hh-company-badge {
  padding: 6px 12px; border-radius: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
}
.hh-job-tag { font-size: .75rem; color: var(--gray-400); background: var(--gray-100); padding: 4px 10px; border-radius: 20px; }
.hh-job-title { font-size: 1.2rem; font-weight: 700; color: var(--hh-navy); margin-bottom: 4px; }
.hh-job-company { font-size: .9rem; color: var(--gray-600); margin-bottom: 8px; }
.hh-job-location { font-size: .85rem; color: var(--gray-600); margin-bottom: 4px; }
.hh-job-pay { font-size: .9rem; font-weight: 700; color: var(--hh-navy); margin-bottom: 12px; }
.hh-job-desc { font-size: .875rem; color: var(--gray-600); margin-bottom: 16px; line-height: 1.5; flex: 1; }
.hh-job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.hh-tag {
  font-size: .75rem; background: var(--gray-100); color: var(--gray-600);
  padding: 3px 10px; border-radius: 20px;
}
.hh-tag-tib { background: #e8f0fe; color: #1a73e8; }
.hh-tag-zg  { background: #e6f4ea; color: #34a853; }
.hh-tag-summit { background: #f3e8ff; color: #7c3aed; }

.hh-all-jobs-link { text-align: center; margin-top: 40px; }

/* ── WHY CARDS ── */
.hh-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.hh-why-card {
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 12px; padding: 32px 24px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.hh-why-icon { font-size: 2.5rem; margin-bottom: 16px; }
.hh-why-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--hh-navy); margin-bottom: 8px; }
.hh-why-card p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.hh-steps {
  display: flex; align-items: flex-start; gap: 0;
  flex-wrap: wrap; justify-content: center;
}
.hh-step {
  flex: 1; min-width: 180px; max-width: 220px;
  text-align: center; padding: 0 16px;
}
.hh-step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--hh-navy); color: #fff;
  font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.hh-step h3 { font-size: .95rem; font-weight: 700; color: var(--hh-navy); margin-bottom: 8px; }
.hh-step p { font-size: .825rem; color: var(--gray-600); line-height: 1.5; }
.hh-step-arrow {
  font-size: 1.5rem; color: var(--hh-teal); padding: 0 4px;
  margin-top: 14px; flex-shrink: 0;
}

/* ── TESTIMONIALS ── */
.hh-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.hh-testimonial {
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 12px; padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.hh-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 12px; }
.hh-testimonial p { font-size: .9rem; color: var(--gray-700); font-style: italic; line-height: 1.6; margin-bottom: 16px; }
.hh-testimonial-author { font-size: .8rem; font-weight: 700; color: var(--gray-400); }

/* ── CTA BLOCK ── */
.hh-cta-block {
  background: var(--hh-navy); color: #fff;
  border-radius: 16px; padding: 60px 40px;
  text-align: center;
}
.hh-cta-block h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.hh-cta-block p { font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: 28px; }

/* ── FOOTER ── */
.hh-footer { background: var(--hh-navy); color: rgba(255,255,255,.7); margin-top: auto; }
.hh-footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; padding: 48px 0 32px; flex-wrap: wrap;
}
.hh-footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.hh-footer-brand p { font-size: .85rem; max-width: 280px; line-height: 1.5; }
.hh-footer-links {
  display: flex; flex-direction: column; gap: 8px;
}
.hh-footer-links a {
  font-size: .875rem; color: rgba(255,255,255,.6);
  transition: color .15s;
}
.hh-footer-links a:hover { color: #fff; }
.hh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0; font-size: .8rem; text-align: center;
  color: rgba(255,255,255,.4);
}

/* ── PAGE HEADER (jobs listing, apply) ── */
.hh-page-header {
  background: var(--hh-navy);
  color: #fff; padding: 48px 0;
}
.hh-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.hh-page-header p { font-size: 1rem; color: rgba(255,255,255,.7); }
.hh-breadcrumb { display: inline-block; font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.hh-breadcrumb:hover { color: rgba(255,255,255,.8); }

/* ── FILTER TABS ── */
.hh-filter-tabs { background: #fff; border-bottom: 1px solid var(--hh-border); }
.hh-filter-tabs .container { display: flex; gap: 4px; padding-top: 0; padding-bottom: 0; }
.hh-tab {
  padding: 16px 20px; background: none; border: none;
  font-size: .9rem; font-weight: 600; color: var(--gray-600);
  cursor: pointer; border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.hh-tab:hover { color: var(--hh-navy); }
.hh-tab.active { color: var(--hh-teal); border-bottom-color: var(--hh-teal); }

/* ── JOB LIST CARDS ── */
.hh-job-list { display: flex; flex-direction: column; gap: 16px; }
.hh-job-list-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: box-shadow .2s;
}
.hh-job-list-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.hh-company-initials {
  width: 52px; height: 52px; border-radius: 10px;
  color: #fff; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hh-job-list-body { flex: 1; min-width: 0; }
.hh-job-list-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.hh-job-list-title { font-size: 1.1rem; font-weight: 700; color: var(--hh-navy); }
.hh-job-list-company { font-size: .875rem; color: var(--gray-600); margin-bottom: 4px; }
.hh-job-list-location { font-size: .85rem; color: var(--gray-600); margin-bottom: 10px; }
.hh-job-list-desc { font-size: .875rem; color: var(--gray-600); margin-bottom: 12px; line-height: 1.5; }
.hh-job-list-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hh-job-list-pay { font-size: .95rem; font-weight: 700; color: var(--hh-navy); white-space: nowrap; flex-shrink: 0; }
.hh-job-list-action { flex-shrink: 0; padding-top: 4px; }

.hh-jobs-general-cta {
  margin-top: 40px; text-align: center;
  padding: 24px; background: var(--hh-light);
  border-radius: 12px; border: 1px solid var(--hh-border);
}
.hh-jobs-general-cta p { font-size: .95rem; color: var(--gray-600); }
.hh-jobs-general-cta a { color: var(--hh-teal); font-weight: 600; }

/* ── JOB DETAIL HEADER ── */
.hh-job-detail-header { padding: 48px 0; color: #fff; }
.hh-job-detail-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.hh-job-detail-sub { font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: 24px; }
.hh-job-detail-company-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: 4px 16px; border-radius: 20px;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 12px;
}
.hh-breadcrumb-nav {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.hh-breadcrumb-link { color: rgba(255,255,255,.6); }
.hh-breadcrumb-link:hover { color: #fff; }

/* ── APPLY PAGE ── */
.hh-apply-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hh-nav-links { display: none; }
  .hh-nav.open .hh-nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--hh-navy); padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 99;
  }
  .hh-nav-toggle { display: block; }
  .hh-nav { position: relative; }
  .hh-step-arrow { display: none; }
  .hh-job-list-card { flex-direction: column; }
  .hh-job-list-header { flex-direction: column; }
  .hh-job-list-action { width: 100%; }
  .hh-job-list-action .btn { display: block; text-align: center; }
  .hh-apply-layout { grid-template-columns: 1fr; }
  .hh-stats-inner { gap: 0; }
  .hh-stat { padding: 16px 20px; }
  .hh-stat-divider { display: none; }
  .hh-footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 600px) {
  .hh-hero { padding: 60px 0 48px; }
  .hh-search-bar { flex-direction: column; border-radius: 10px; }
  .hh-search-input { border-radius: 10px 10px 0 0; }
  .hh-search-bar .btn { border-radius: 0 0 10px 10px; }
  .hh-steps { gap: 24px; }
  .hh-step { min-width: 100%; max-width: 100%; }
  .hh-cta-block { padding: 40px 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   HireHarbor Employer Platform — Additional Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Shared form controls (used in employer flows) ─────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .92rem;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
select.form-control { cursor: pointer; }

/* ─── HireHarbor teal button (employer actions) ─────────────── */
.hh-btn-teal {
  background: #0d9488;
  color: #fff;
  border-color: #0d9488;
}
.hh-btn-teal:hover { background: #0f766e; border-color: #0f766e; opacity: 1; }

/* ─── Score badges (from score-badge classes) ────────────────── */
.score-hot  { background: #dcfce7; color: #166534; }
.score-warm { background: #fef3c7; color: #92400e; }
.score-cool { background: #dbeafe; color: #1e40af; }
