/* ================================================
   CHOZEN RESOURCES INC. — Main Stylesheet
   ================================================ */

:root {
  /* Brand colors */
  --blue:      #1a4fd6;
  --blue-dk:   #1340b0;
  --blue-lt:   #eaf0fd;
  --blue-mid:  #2563eb;

  --green:     #0d7a50;
  --green-dk:  #0a5f3e;
  --green-lt:  #e8f5ee;

  --gold:      #c47f0a;
  --gold-lt:   #fef6e4;

  --red:       #c0392b;

  /* Neutrals */
  --ink:       #0f1724;
  --sub:       #334155;
  --muted:     #64748b;
  --line:      #e2e8f0;
  --paper:     #f8fafc;
  --white:     #ffffff;
  --bg:        #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 18px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.11);

  --radius:    12px;
  --radius-lg: 20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  animation: pageFadeIn .4s ease both;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ── Typography ── */
h1,h2,h3,h4 { color: var(--ink); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p  { color: var(--sub); }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ── Layout ── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
main { padding-bottom: 64px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  border: 2px solid transparent; transition: all .18s ease; cursor: pointer;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary  { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 14px rgba(26,86,219,.28); }
.btn.primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); }
.btn.ghost   { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn.ghost:hover { background: var(--blue-lt); }
.btn.full    { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.sm { padding: 9px 18px; font-size: .84rem; }

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center;
  padding: 0 20px 0 16px; height: 64px; width: 100%;
  gap: 12px;
}

/* Logo — flush left */
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; color: var(--ink);
  flex-shrink: 0; margin-right: auto;
  padding: 10px 0;
}
.brand:hover { opacity: .85; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }
.brand-name  { font-size: .9rem; line-height: 1.2; }
.brand-name small { display: block; font-size: .65rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }

/* Search bar — center-right */
.header-search {
  display: flex; align-items: center; flex-shrink: 0;
}
.header-search-form {
  display: flex; align-items: center;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 9px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.header-search-form:focus-within {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.header-search-input {
  border: 0 !important; background: transparent !important;
  padding: 8px 12px !important; font-size: .86rem !important;
  width: 200px; min-height: unset !important; box-shadow: none !important;
  outline: none !important; border-radius: 0 !important;
}
.header-search-btn {
  border: 0; background: transparent; padding: 8px 12px;
  color: var(--muted); cursor: pointer; font-size: .95rem;
  transition: color .15s; flex-shrink: 0;
}
.header-search-btn:hover { color: var(--blue); }

/* Nav links — right side */
.site-nav {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
}
.site-nav a {
  padding: 8px 13px; border-radius: 8px; font-weight: 700; font-size: .86rem;
  color: var(--sub); transition: all .15s ease; white-space: nowrap;
}
.site-nav a:hover { color: var(--blue); background: var(--blue-lt); }
.site-nav a.active { color: var(--blue); background: var(--blue-lt); }
.site-nav a[data-auth-link] {
  background: var(--blue); color: #fff !important; padding: 8px 16px;
  border-radius: 8px; box-shadow: 0 2px 8px rgba(26,86,219,.22); margin-left: 4px;
}
.site-nav a[data-auth-link]:hover { background: var(--blue-dk); }

.nav-toggle {
  display: none; border: 0; background: transparent; font-size: 22px;
  width: 40px; height: 40px; border-radius: 8px; color: var(--ink); flex-shrink: 0;
}
.nav-toggle:hover { background: var(--paper); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0f2d6b 0%, #1a56db 55%, #0a7c4e 100%);
  background-size: 200% 200%;
  color: #fff;
  padding: 90px 24px 80px;
  position: relative;
  overflow: hidden;
  animation: heroGradientShift 8s ease infinite;
}
.hero-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.22); }

.hero-stats {
  display: grid; gap: 14px;
}
.stat-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 22px 24px; backdrop-filter: blur(8px);
}
.stat-card .num { display: block; font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-card .label { display: block; color: rgba(255,255,255,.75); font-size: .88rem; margin-top: 6px; }

/* ── Section base ── */
.section { padding: 72px 24px; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-hd { max-width: 560px; margin-bottom: 40px; }
.section-hd h2 { margin-bottom: 10px; }
.section-hd p { color: var(--muted); }
.section.bg-white { background: #fff; }
.section.bg-paper { background: var(--paper); }

/* ── Feature / Info Cards ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c7d4f5; }

.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.feature-icon.blue  { background: var(--blue-lt); color: var(--blue); }
.feature-icon.green { background: var(--green-lt); color: var(--green); }
.feature-icon.gold  { background: var(--gold-lt); color: var(--gold); }
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p  { color: var(--muted); font-size: .93rem; line-height: 1.75; }

/* ── Steps ── */
.steps-list { display: grid; gap: 16px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 900; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.step-body strong { display: block; font-size: .97rem; margin-bottom: 3px; }
.step-body span   { color: var(--muted); font-size: .88rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #0a7c4e 100%);
  border-radius: var(--radius-lg); padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.8); margin-top: 8px; }
.cta-banner .btn.ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.45); }
.cta-banner .btn.ghost:hover { background: rgba(255,255,255,.25); }

/* ── Page Banner ── */
.page-banner {
  background: linear-gradient(135deg, #0f2d6b 0%, #1a56db 100%);
  padding: 64px 24px; text-align: center;
}
.page-banner .container { max-width: 720px; }
.page-banner h1 { color: #fff; margin-bottom: 12px; }
.page-banner p  { color: rgba(255,255,255,.78); font-size: 1.02rem; }

/* ── Jobs Page ── */
.jobs-toolbar-wrap { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; }
.jobs-toolbar {
  max-width: 1160px; margin: 0 auto;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.jobs-toolbar input  { flex: 1 1 240px; }
.jobs-toolbar select { flex: 0 0 200px; }

input, select, textarea {
  width: 100%; padding: 11px 16px; border: 1.5px solid var(--line);
  border-radius: 10px; font: inherit; font-size: .92rem; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
input::placeholder, textarea::placeholder { color: #aab0bc; }
textarea { resize: vertical; min-height: 110px; }

.job-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.job-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: all .2s ease;
}
.job-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.job-card-top { display: flex; align-items: center; justify-content: space-between; }
.job-card h2 { font-size: 1.07rem; margin: 0; }
.job-card p  { color: var(--muted); font-size: .9rem; line-height: 1.65; flex: 1; }
.job-card strong { color: var(--green); font-size: .97rem; }
.pill { padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--blue-lt); color: var(--blue); }
.pill.contract { background: var(--gold-lt); color: var(--gold); }
.pill.part-time { background: var(--green-lt); color: var(--green); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tag-list span { padding: 4px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .77rem; color: var(--sub); font-weight: 600; }
.location-tag { font-size: .83rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* ── Auth Modal ── */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(17,24,39,.55); backdrop-filter: blur(4px);
}
.modal.show { display: flex; }
.modal-box {
  width: min(480px, 100%); background: #fff; border-radius: var(--radius-lg);
  padding: 32px; box-shadow: 0 24px 64px rgba(0,0,0,.18);
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.modal-header h2 { font-size: 1.25rem; }
.modal-close {
  border: 0; background: var(--paper); width: 32px; height: 32px; border-radius: 8px;
  color: var(--muted); font-size: 1.1rem; font-weight: 700; transition: background .15s;
}
.modal-close:hover { background: var(--line); }
.form-note { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 22px; }
.tab-btn {
  padding: 10px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 700; font-size: .9rem; background: var(--paper); color: var(--sub);
  transition: all .15s;
}
.tab-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tab-btn:hover:not(.active) { border-color: var(--blue); color: var(--blue); }

/* ── Auth Pages ── */
.auth-page { min-height: calc(100vh - 68px); display: flex; align-items: center; background: var(--paper); }
.auth-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; }
.auth-side { padding: 40px; background: linear-gradient(140deg, #0f2d6b, #1a56db 50%, #0a7c4e); border-radius: var(--radius-lg); color: #fff; }
.auth-side h1 { color: #fff; font-size: 1.8rem; margin: 16px 0 14px; }
.auth-side p  { color: rgba(255,255,255,.8); font-size: .95rem; }
.auth-side ul { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.auth-side ul li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: .9rem; }
.auth-side ul li::before { content: "✓"; background: rgba(255,255,255,.2); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .8rem; font-weight: 900; }
.auth-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.auth-box h2 { font-size: 1.4rem; margin-bottom: 6px; }

/* ── Forms ── */
.form-group { display: grid; gap: 6px; }
.form-group label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { margin-top: 8px; }
.switch-link { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 16px; }
.switch-link a { color: var(--blue); font-weight: 700; }
.switch-link a:hover { text-decoration: underline; }
.message { font-size: .88rem; font-weight: 700; min-height: 20px; margin-top: 4px; }
.message.success { color: var(--green); }
.message.error   { color: var(--red); }
.hidden { display: none !important; }

/* ── Apply Page ── */
.apply-page { min-height: calc(100vh - 68px); background: var(--paper); padding: 48px 24px; }
.apply-inner { max-width: 840px; margin: 0 auto; }
.apply-header { margin-bottom: 28px; }
.apply-header h1 { font-size: 1.8rem; margin-bottom: 6px; }
.apply-header .meta { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apply-header .meta span { background: var(--blue-lt); color: var(--blue); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.apply-back { font-size: .88rem; color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 20px; }
.apply-back:hover { text-decoration: underline; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.form-section h3 { font-size: 1rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; }
.form-grid { display: grid; gap: 18px; }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  border-top: 3px solid var(--blue-mid);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 0.8fr 0.8fr;
  gap: 32px;
  padding: 48px 32px 36px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand-col {}
.footer-logo-row {
  display: flex; align-items: center; gap: 11px; margin-bottom: 14px;
}
.footer-logo-row img {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15);
}
.footer-logo-row strong {
  color: #fff; font-size: 1rem; font-weight: 900; line-height: 1.25;
}
.footer-logo-row small {
  display: block; font-size: .67rem; color: rgba(255,255,255,.45);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px;
}
.footer-tagline {
  font-size: .85rem; color: rgba(255,255,255,.5);
  line-height: 1.65; max-width: 280px; margin-bottom: 16px;
}

/* Contact info — compact grouped layout */
.footer-contact { display: grid; gap: 12px; }
.footer-contact-row {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,.65); font-size: .82rem; line-height: 1.6;
}
.fc-icon {
  flex-shrink: 0;
  width: 15px; height: 15px;
  margin-top: 3px;
  color: rgba(255,255,255,.5);
  stroke: rgba(255,255,255,.5);
}
.footer-contact-row a {
  color: rgba(255,255,255,.65); transition: color .15s;
  text-decoration: none;
}
.footer-contact-row a:hover { color: #fff; }
.footer-contact-row .sep { color: rgba(255,255,255,.2); margin: 0 4px; }
.footer-col h4 {
  color: #fff; font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,.55); font-size: .88rem; font-weight: 500;
  transition: color .15s; display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a::before {
  content: "›"; color: var(--blue-mid); font-weight: 900; font-size: 1rem;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-copy { color: rgba(255,255,255,.35); font-size: .8rem; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  padding: 4px 12px; border-radius: 999px; font-size: .73rem; font-weight: 700;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.1);
}
.footer-badge.active {
  background: rgba(26,79,214,.25); color: #7ea9f7;
  border-color: rgba(26,79,214,.4);
}

/* ── About Page Specifics ── */
.about-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mission-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.mission-card .icon { font-size: 2rem; margin-bottom: 12px; }
.mission-card h3 { margin-bottom: 10px; }
.objectives-list { display: grid; gap: 12px; margin-top: 4px; }
.obj-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.obj-check { flex-shrink: 0; width: 28px; height: 28px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 900; margin-top: 2px; }
.obj-item strong { display: block; font-size: .95rem; margin-bottom: 3px; }
.obj-item p { font-size: .88rem; color: var(--muted); margin: 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.benefit-item { display: flex; gap: 12px; align-items: center; background: var(--green-lt); border: 1px solid #b7e1cc; padding: 16px 18px; border-radius: var(--radius); font-size: .92rem; color: var(--ink); font-weight: 600; }
.benefit-item::before { content: "✓"; background: var(--green); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .78rem; font-weight: 900; }
.clients-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.client-pill { padding: 8px 18px; background: var(--blue-lt); border: 1px solid #bdd0f5; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--blue); transition: all .15s; }
.client-pill:hover { background: var(--blue); color: #fff; }

/* ── Org Chart ── */
.org-wrap { overflow-x: auto; padding: 32px 0 8px; }
.org-tree {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  min-width: 900px;
}

.org-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

/* vertical connector between single nodes */
.org-connector-v {
  width: 2px;
  height: 36px;
  background: var(--line);
  flex-shrink: 0;
}

/* base node */
.org-node {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
  min-width: 160px;
  max-width: 185px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  display: flex; flex-direction: column; align-items: center;
}
.org-node:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.org-node img {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--line); margin: 0 auto 10px;
}
.org-node strong { display: block; font-size: .85rem; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.org-node small  { display: block; font-size: .76rem; color: var(--muted); line-height: 1.4; }

/* CEO node */
.org-node.ceo {
  border-color: var(--blue);
  background: linear-gradient(135deg, #eef3ff, #fff);
  min-width: 210px;
  box-shadow: 0 4px 20px rgba(26,79,214,.15);
}
.org-node.ceo img { width: 90px; height: 90px; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,79,214,.12); }
.org-node.ceo strong { font-size: .95rem; color: var(--blue); }

/* Manager nodes */
.org-node.org-node-manager {
  border-color: var(--green);
  background: linear-gradient(135deg, #edf7f2, #fff);
  min-width: 195px;
  box-shadow: 0 4px 16px rgba(13,122,80,.12);
}
.org-node.org-node-manager img { border-color: var(--green); }
.org-node.org-node-manager strong { color: var(--green-dk); }

/* Vacant nodes */
.org-node.org-node-vacant {
  border-style: dashed;
  border-color: #cbd5e1;
  background: var(--paper);
  opacity: .8;
}
.org-vacant-icon {
  width: 60px; height: 60px; font-size: 1.5rem;
  border-radius: 50%; background: #dde3ec;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; flex-shrink: 0;
}

/* ── Staff row connector system ── */
.org-staff-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* horizontal bridge line */
.org-staff-hline {
  width: 860px;
  height: 2px;
  background: var(--line);
  flex-shrink: 0;
}

/* the actual row of cards */
.org-row-staff {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

/* Staff nodes — exact same fixed size */
.org-node-staff {
  min-width: 170px !important;
  max-width: 170px !important;
  width: 170px !important;
  height: 230px !important;
  min-height: 230px !important;
  max-height: 230px !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 20px 12px 16px !important;
  position: relative;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.06) !important;
  transition: all .2s ease !important;
  text-align: center !important;
}
.org-node-staff:hover {
  border-color: var(--blue) !important;
  box-shadow: 0 8px 24px rgba(26,79,214,.13) !important;
  transform: translateY(-4px) !important;
}
/* vertical drop line */
.org-node-staff::before {
  content: "";
  position: absolute;
  top: -36px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 36px;
  background: var(--line);
}
/* photo ring */
.org-node-staff img {
  display: block !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #e0e7ff !important;
  box-shadow: 0 0 0 3px rgba(26,79,214,.08) !important;
  margin: 0 auto 12px !important;
  flex-shrink: 0 !important;
}
.org-node-staff strong {
  display: block !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  line-height: 1.25 !important;
  width: 100% !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}
.org-node-staff small {
  display: block !important;
  font-size: .73rem !important;
  color: var(--muted) !important;
  margin-top: auto !important;
  padding-top: 6px !important;
  width: 100% !important;
  font-weight: 500 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}
/* vacant card style */
.org-node-staff.org-node-vacant {
  background: #f8fafc !important;
  border: 1.5px dashed #cbd5e1 !important;
  opacity: .75 !important;
}
.org-node-staff .org-vacant-icon {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  background: #e8edf5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.8rem !important;
  margin: 0 auto 12px !important;
  flex-shrink: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .job-grid { grid-template-columns: repeat(2,1fr); }
  .auth-wrap { grid-template-columns: 1fr; max-width: 460px; }
  .auth-side { display: none; }
  .about-mission { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .header-inner { padding: 0 12px; }
  .brand { margin-right: auto; }
  .header-search { display: none; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 12px; box-shadow: var(--shadow); gap: 3px; z-index: 99; }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 8px; padding: 10px 14px; }
  .site-nav a[data-auth-link] { border-radius: 8px; margin-left: 0; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 36px 20px 28px; }
  .footer-bottom-inner { padding: 14px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding: 56px 20px 50px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-2, .job-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .section { padding: 48px 20px; }
  .page-banner { padding: 48px 20px; }
  .cta-banner { padding: 36px 24px; flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .apply-page { padding: 32px 16px; }
  .form-section { padding: 22px; }
  .jobs-toolbar { flex-direction: column; }
  .jobs-toolbar select { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ── How-it-works inline grid responsive fix ── */
@media (max-width: 680px) {
  .section-inner > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .about-mission { grid-template-columns: 1fr !important; }
}

/* ── Dashboard & Admin shared ── */
.dash-page { min-height:calc(100vh - 64px); background:var(--bg); padding:40px 24px; }
.dash-inner { max-width:1100px; margin:0 auto; }
.dash-header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:32px; }
.dash-header h1 { font-size:1.7rem; margin:0; }
.dash-header p  { color:var(--muted); margin:0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:32px; }
.stat-box { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; }
.stat-box .stat-num  { display:block; font-size:2rem; font-weight:900; color:var(--blue); line-height:1; }
.stat-box .stat-label{ display:block; font-size:.83rem; color:var(--muted); margin-top:6px; font-weight:600; }
.stat-box.green .stat-num { color:var(--green); }
.stat-box.gold  .stat-num { color:var(--gold); }
.stat-box.red   .stat-num { color:var(--red); }

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab-btn {
  padding: 10px 18px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.admin-tab-btn:hover { color: var(--blue); background: var(--blue-lt); border-radius: 8px 8px 0 0; }
.admin-tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); background: transparent; }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* Admin table */
.admin-table { width:100%; border-collapse:collapse; font-size:.88rem; }
.admin-table th { background:var(--paper); font-weight:800; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:10px 14px; text-align:left; border-bottom:1px solid var(--line); }
.admin-table td { padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
.admin-table tr:last-child td { border-bottom:0; }
.admin-table tr:hover td { background:var(--paper); }
.status-select { padding:5px 8px; border-radius:8px; font-size:.82rem; font-weight:700; border:1.5px solid var(--line); cursor:pointer; }

/* Applicant dashboard */
.app-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); margin-bottom:10px; }
.app-row-info strong { display:block; font-size:.95rem; }
.app-row-info span   { font-size:.82rem; color:var(--muted); }
.app-status { font-weight:800; font-size:.88rem; white-space:nowrap; }
.dash-section { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px; margin-bottom:24px; }
.dash-section h2 { font-size:1.1rem; margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid var(--line); }

/* Job detail page */
.job-detail-page { min-height:calc(100vh-64px); background:var(--bg); padding:40px 24px; }
.job-detail-inner { max-width:860px; margin:0 auto; }
.job-detail-header { background:linear-gradient(135deg,#0f2d6b,#1a56db); color:#fff; border-radius:var(--radius-lg); padding:36px; margin-bottom:24px; }
.job-detail-header h1 { color:#fff; margin:12px 0 8px; }
.job-detail-body {}

/* Toolbar extras */
.toolbar-actions { display:flex; gap:10px; align-items:center; margin-bottom:18px; flex-wrap:wrap; }
.toolbar-actions input { flex:1 1 240px; }

/* View/Edit modals */
.modal-lg .modal-box { width:min(700px,100%); max-height:85vh; overflow-y:auto; }

@media (max-width:960px) { .stats-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:680px) {
  .stats-grid { grid-template-columns:1fr 1fr; }
  .admin-table { font-size:.8rem; }
  .admin-table th, .admin-table td { padding:8px; }
  .dash-page { padding:24px 16px; }
}

/* ── Shared utility ── */
.pw-hint { font-size:.78rem; color:var(--muted); margin-top:4px; display:block; }
.pw-strength { height:4px; border-radius:4px; margin-top:6px; background:var(--line); overflow:hidden; }
.pw-strength-bar { height:100%; width:0; border-radius:4px; transition:width .3s, background .3s; }

/* File input */
input[type="file"] { cursor:pointer; }
input[type="file"]::-webkit-file-upload-button { 
  background:var(--blue); color:#fff; border:0; padding:8px 16px; 
  border-radius:8px; font-weight:700; cursor:pointer; margin-right:12px; font-size:.85rem;
}

/* ================================================
   ANIMATIONS & TRANSITIONS
   ================================================ */

/* ── Page load fade-in ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll reveal — fade up ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Hero text slide-in ── */
.hero-copy {
  animation: heroSlideIn .7s cubic-bezier(.22,.68,0,1.2) both;
}
.hero-stats {
  animation: heroSlideIn .7s cubic-bezier(.22,.68,0,1.2) .18s both;
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stat cards pop-in ── */
.stat-card {
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
.stat-card:nth-child(1) { animation-delay: .15s; }
.stat-card:nth-child(2) { animation-delay: .28s; }
.stat-card:nth-child(3) { animation-delay: .41s; }
@keyframes popIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Cards hover lift (enhanced) ── */
.card, .job-card, .step, .mission-card, .obj-item, .dash-section, .stat-box {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
.card:hover, .job-card:hover, .mission-card:hover, .stat-box:hover {
  transform: translateY(-5px) !important;
}

/* ── Button press feedback ── */
.btn {
  transition: all .18s ease, transform .12s ease !important;
}
.btn:active {
  transform: scale(.96) translateY(1px) !important;
}

/* ── Nav links underline slide ── */
.site-nav a {
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width .2s ease, left .2s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after {
  width: 60%; left: 20%;
}
.site-nav a[data-auth-link]::after { display: none; }

/* ── Header scroll shadow ── */
.site-header {
  transition: box-shadow .25s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.10) !important;
}

/* ── Input focus animation ── */
input:focus, select:focus, textarea:focus {
  transform: translateY(-1px);
}

/* ── Auth box slide up ── */
.auth-box {
  animation: slideUpFade .5s cubic-bezier(.22,.68,0,1.1) both;
}
.auth-side {
  animation: slideUpFade .5s cubic-bezier(.22,.68,0,1.1) .1s both;
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Modal entrance ── */
.modal-box {
  animation: modalPop .25s cubic-bezier(.34,1.56,.64,1) both !important;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Forgot password panel slide ── */
#forgotPanel {
  animation: slideUpFade .3s ease both;
}

/* ── Footer fade in ── */
.site-footer {
  animation: pageFadeIn .6s ease .2s both;
}

/* ── Org chart nodes stagger ── */
.org-node {
  animation: popIn .45s cubic-bezier(.34,1.56,.64,1) both;
}
.org-node.ceo          { animation-delay: .05s; }
.org-node-manager:nth-of-type(1) { animation-delay: .15s; }
.org-node-manager:nth-of-type(2) { animation-delay: .25s; }

/* ── Job cards stagger on load ── */
.job-card {
  animation: fadeSlideUp .5s ease both;
}
.job-card:nth-child(1) { animation-delay: .05s; }
.job-card:nth-child(2) { animation-delay: .12s; }
.job-card:nth-child(3) { animation-delay: .19s; }
.job-card:nth-child(4) { animation-delay: .26s; }
.job-card:nth-child(5) { animation-delay: .33s; }
.job-card:nth-child(6) { animation-delay: .40s; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo spin on hover ── */
.brand:hover .brand-logo {
  animation: none;
  transform: rotate(8deg) scale(1.08);
}

/* ── Page banner text reveal ── */
.page-banner h1 {
  animation: heroSlideIn .6s ease both;
}
.page-banner p {
  animation: heroSlideIn .6s ease .15s both;
}
.page-banner .eyebrow {
  animation: heroSlideIn .6s ease .05s both;
}

/* ================================================
   CONTINUOUS / LOOPING ANIMATIONS
   ================================================ */

/* ── Hero gradient shift ── */
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Floating stat cards ── */
.stat-card:nth-child(1) { animation: floatA 4s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: floatB 4.5s ease-in-out infinite; }
.stat-card:nth-child(3) { animation: floatC 5s ease-in-out infinite; }
@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
@keyframes floatC {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ── Primary button pulse glow ── */
.btn.primary {
  animation: btnPulse 2.5s ease-in-out infinite;
}
.btn.primary:hover {
  animation: none;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(26,86,219,.28); }
  50%       { box-shadow: 0 4px 28px rgba(26,86,219,.55), 0 0 0 6px rgba(26,86,219,.08); }
}

/* ── Logo slow spin glow ── */
.brand-logo {
  animation: logoGlow 3s ease-in-out infinite;
}
.brand:hover .brand-logo {
  animation: none;
  transform: rotate(8deg) scale(1.08);
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,86,219,0); }
  50%       { box-shadow: 0 0 0 4px rgba(26,86,219,.15); }
}

/* ── Section eyebrow shimmer ── */
.eyebrow {
  background: linear-gradient(90deg, var(--gold) 0%, #f5a623 40%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite;
}
@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── CTA banner continuous glow ── */
.cta-banner {
  animation: ctaBreathe 4s ease-in-out infinite;
}
@keyframes ctaBreathe {
  0%, 100% { box-shadow: 0 8px 32px rgba(26,79,214,.18); }
  50%       { box-shadow: 0 16px 56px rgba(10,124,78,.30); }
}

/* ── Floating particles in hero ── */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  pointer-events: none;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .6; }
  100% { transform: translateY(-120px) scale(1); opacity: 0; }
}

/* ── Scroll down bounce indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: .55;
  animation: scrollBounce 1.8s ease-in-out infinite;
  cursor: pointer;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.scroll-indicator svg {
  width: 22px; height: 22px;
  stroke: #fff; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .55; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: .9; }
}

/* ── Nav active link pulse ── */
.site-nav a.active {
  animation: navActivePulse 3s ease-in-out infinite;
}
@keyframes navActivePulse {
  0%, 100% { background: var(--blue-lt); }
  50%       { background: #d4e2fd; }
}

/* ── Feature icons rotate on hover ── */
.feature-icon {
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  animation: iconFloat 3s ease-in-out infinite;
}
.feature-icon:nth-child(1) { animation-delay: 0s; }
.feature-icon:nth-child(2) { animation-delay: .5s; }
.feature-icon:nth-child(3) { animation-delay: 1s; }
.card:hover .feature-icon {
  transform: rotate(12deg) scale(1.15);
  animation: none;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ── Step number pulse ── */
.step-num {
  animation: stepPulse 2.5s ease-in-out infinite;
}
.step:nth-child(1) .step-num { animation-delay: 0s; }
.step:nth-child(2) .step-num { animation-delay: .4s; }
.step:nth-child(3) .step-num { animation-delay: .8s; }
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,86,219,0); }
  50%       { box-shadow: 0 0 0 6px rgba(26,86,219,.18); }
}

/* ── Footer badges shimmer ── */
.footer-badge.active {
  animation: badgeShimmer 3s ease-in-out infinite;
}
.footer-badge.active:nth-child(2) { animation-delay: .8s; }
@keyframes badgeShimmer {
  0%, 100% { background: rgba(26,79,214,.25); color: #7ea9f7; }
  50%       { background: rgba(26,79,214,.42); color: #a8c4fb; }
}

/* ── Page banner gradient ── */
.page-banner {
  background-size: 200% 200%;
  animation: heroGradientShift 10s ease infinite;
}

/* ── Org CEO node pulse ── */
.org-node.ceo {
  animation: ceoPulse 3s ease-in-out infinite;
}
@keyframes ceoPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(26,79,214,.15); }
  50%       { box-shadow: 0 8px 36px rgba(26,79,214,.30); }
}

/* ── Reduced motion accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================
   UI ENHANCEMENTS
   ================================================ */

/* ── Loading spinner ── */
.jobs-loading {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 64px 20px;
  color: var(--muted); font-size: .92rem;
}
.jobs-loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Empty state ── */
.jobs-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 64px 20px;
}
.jobs-empty-icon {
  font-size: 3.5rem; margin-bottom: 16px;
}
.jobs-empty h3 { font-size: 1.2rem; margin-bottom: 8px; }
.jobs-empty p  { color: var(--muted); font-size: .92rem; }

/* ── Job count badge ── */
#jobCount {
  background: var(--blue-lt);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
}

/* ── Job detail enhanced layout ── */
.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}
.job-detail-sidebar {
  position: sticky;
  top: 84px;
}
.job-sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.job-sidebar-card h4 {
  font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.job-meta-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--sub); margin-bottom: 10px;
}
.job-meta-item:last-child { margin-bottom: 0; }
.job-meta-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--blue-lt); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.job-meta-icon.green { background: var(--green-lt); color: var(--green); }
.job-meta-icon.gold  { background: var(--gold-lt); color: var(--gold); }

@media (max-width: 860px) {
  .job-detail-layout { grid-template-columns: 1fr; }
  .job-detail-sidebar { position: static; }
}

/* ── Dashboard applicant stats ── */
.applicant-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.applicant-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.applicant-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.applicant-stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.applicant-stat-icon.blue  { background: var(--blue-lt); }
.applicant-stat-icon.green { background: var(--green-lt); }
.applicant-stat-icon.gold  { background: var(--gold-lt); }
.applicant-stat-num   { display: block; font-size: 1.7rem; font-weight: 900; color: var(--ink); line-height: 1; }
.applicant-stat-label { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ── App row status badge ── */
.app-status-badge {
  padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 800;
  display: inline-flex; align-items: center; gap: 5px;
}
.app-status-badge.pending    { background: var(--gold-lt);  color: var(--gold); }
.app-status-badge.interview  { background: var(--blue-lt);  color: var(--blue); }
.app-status-badge.hired      { background: var(--green-lt); color: var(--green); }
.app-status-badge.rejected   { background: #fde8e8; color: var(--red); }

/* ── Back to top button ── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 4px 16px rgba(26,79,214,.3);
  opacity: 0; transform: translateY(16px);
  transition: all .25s ease; cursor: pointer;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.back-to-top:hover {
  background: var(--blue-dk); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,79,214,.4);
}

/* ── Sticky apply bar (job detail mobile) ── */
.sticky-apply-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.sticky-apply-bar .sticky-job-title {
  font-weight: 800; font-size: .92rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sticky-apply-bar .sticky-salary {
  font-size: .82rem; color: var(--green); font-weight: 700;
}
@media (max-width: 860px) {
  .sticky-apply-bar { display: flex; }
  /* push body up so bar doesn't overlap footer */
  .job-detail-page { padding-bottom: 80px; }
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
  opacity: 0; transition: all .3s ease;
  pointer-events: none; z-index: 300;
  white-space: nowrap;
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ── Quick access floating action (mobile) ── */
@media (max-width: 680px) {
  .applicant-stats {
    grid-template-columns: 1fr !important;
  }
}

/* ── Clickable stat boxes ── */
.stat-box[onclick] {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.stat-box[onclick]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.stat-box[onclick]:hover::after {
  content: "Click to filter →";
  position: absolute;
  bottom: 6px; right: 10px;
  font-size: .68rem;
  color: var(--blue);
  font-weight: 700;
  opacity: .7;
}
.stat-box.green[onclick]:hover { border-color: var(--green); }
.stat-box.green[onclick]:hover::after { color: var(--green); }
.stat-box.gold[onclick]:hover { border-color: var(--gold); }
.stat-box.gold[onclick]:hover::after { color: var(--gold); }
.stat-box.red[onclick]:hover { border-color: var(--red); }
.stat-box.red[onclick]:hover::after { color: var(--red); }

/* ================================================
   CHATBOT
   ================================================ */
.chatbot-toggle {
  position: fixed; bottom: 80px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #1a4fd6, #0a7c4e);
  color: #fff; border: 0; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 24px rgba(26,79,214,.4);
  transition: transform .2s, box-shadow .2s;
  animation: btnPulse 2.5s ease-in-out infinite;
}
.chatbot-toggle:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(26,79,214,.55); animation: none; }
.chatbot-toggle .chat-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--red); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .7rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.chatbot-window {
  position: fixed; bottom: 152px; right: 24px; z-index: 200;
  width: 360px; max-height: 520px;
  background: #fff; border-radius: 22px;
  box-shadow: 0 24px 72px rgba(0,0,0,.18), 0 4px 24px rgba(0,0,0,.08);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: scale(0.85) translateY(24px);
  opacity: 0; pointer-events: none;
  transform-origin: bottom right;
  transition: all .28s cubic-bezier(.34,1.56,.64,1);
}
.chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: all;
}

.chatbot-header {
  background: linear-gradient(135deg, #1340b0 0%, #0a7c4e 100%);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
.chatbot-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
}
.chatbot-header-info strong { color: #fff; font-size: .92rem; display: block; font-weight: 800; }
.chatbot-header-info small { color: rgba(255,255,255,.7); font-size: .74rem; display: flex; align-items: center; gap: 4px; }
.chatbot-header-info small::before { content: "●"; color: #4ade80; font-size: .6rem; }
.chatbot-close {
  margin-left: auto; border: 0; background: rgba(255,255,255,.12);
  color: #fff; width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: .95rem; display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.chatbot-close:hover { background: rgba(255,255,255,.25); }

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 12px;
  background: #f8fafc;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}

.chat-msg { max-width: 88%; animation: fadeSlideUp .22s ease both; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.chat-msg .bubble {
  padding: 10px 14px; border-radius: 18px;
  font-size: .86rem; line-height: 1.6;
  word-break: break-word;
}
.chat-msg.bot .bubble {
  background: #fff; color: var(--ink);
  border-bottom-left-radius: 5px;
  border: 1px solid #e8eef5;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.chat-msg.user .bubble {
  background: linear-gradient(135deg, #1a4fd6, #1e63f5);
  color: #fff; border-bottom-right-radius: 5px;
  box-shadow: 0 2px 8px rgba(26,79,214,.3);
}

.chat-quick-replies {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.chat-qr-btn {
  background: #fff; border: 1.5px solid #c7d4f5;
  color: var(--blue); padding: 5px 12px;
  border-radius: 999px; font-size: .77rem;
  font-weight: 700; cursor: pointer;
  transition: all .15s; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.chat-qr-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-1px); }

.chatbot-input {
  padding: 10px 12px; border-top: 1px solid #e8eef5;
  display: flex; gap: 8px; align-items: center;
  background: #fff;
}
.chatbot-input input {
  flex: 1; border: 1.5px solid #e2e8f0; border-radius: 999px;
  padding: 9px 16px; font-size: .86rem; outline: none;
  background: #f8fafc;
  transition: border-color .15s, background .15s;
  width: auto; min-height: unset; box-shadow: none;
}
.chatbot-input input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(26,79,214,.08); }
.chatbot-input button {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #1e63f5);
  color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(26,79,214,.3);
}
.chatbot-input button:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(26,79,214,.4); }

@media (max-width: 400px) {
  .chatbot-window { width: calc(100vw - 24px); right: 12px; }
  .chatbot-toggle { right: 16px; bottom: 72px; }
}
