/* ==========================================================================
   keenshake.com — design system
   Light, airy, navy ink with blue→violet accents.
   ========================================================================== */

:root {
  --ink: #0B1437;
  --ink-2: #2A3358;
  --muted: #646B8C;
  --muted-2: #8C92AE;
  --line: #E6E8F2;
  --line-2: #EEF0F7;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FD;
  --lav: #F1F0FF;
  --lav-2: #E8E9FF;
  --sky-soft: #EAF5FF;

  --brand: #4F46E5;
  --brand-600: #4338CA;
  --blue: #3B5BFD;
  --violet: #7C3AED;
  --sky: #0EA5E9;
  --grad: linear-gradient(135deg, #3B5BFD 0%, #6A4CF6 52%, #8B3DF0 100%);
  --grad-soft: linear-gradient(135deg, #EEF2FF 0%, #F3EEFF 100%);

  --green: #059669; --green-bg: #E7F8F1;
  --teal: #0F8F86;  --teal-bg: #E4F7F5;
  --amber: #B45309; --amber-bg: #FEF4E2;
  --red: #DC2626;   --red-bg: #FDECEC;
  --purple: #7C3AED; --purple-bg: #F2EBFF;
  --blue-t: #2F4FE0; --blue-bg: #ECF0FF;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 64, .05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 64, .04), 0 2px 8px rgba(16, 24, 64, .05);
  --shadow: 0 2px 4px rgba(16, 24, 64, .04), 0 12px 32px -8px rgba(30, 40, 110, .14);
  --shadow-lg: 0 4px 10px rgba(16, 24, 64, .05), 0 28px 60px -16px rgba(40, 46, 140, .25);
  --ring: 0 0 0 4px rgba(79, 70, 229, .16);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
[hidden] { display: none !important; }
.ico { flex-shrink: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 860px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.text-center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mb-8{margin-bottom:32px}
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.w-full { width: 100%; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
.inline-form { display: inline; margin: 0; }
.divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }

/* ----------------------------------------------------------------- Buttons */
.btn {
  --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h);
  padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: .94rem;
  white-space: nowrap; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s;
  background: #fff; color: var(--ink); line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(79, 70, 229, .55), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(79, 70, 229, .7), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #18224d; }
.btn-outline { border-color: var(--line); background: #fff; box-shadow: var(--shadow-xs); }
.btn-outline:hover { border-color: #CDD1E6; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); transform: none; }
.btn-soft { background: var(--lav); color: var(--brand); }
.btn-soft:hover { background: var(--lav-2); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -10px rgba(0,0,0,.35); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-glass:hover { background: rgba(255,255,255,.2); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: #FAD9D9; }
.btn-success { background: var(--green-bg); color: var(--green); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: .86rem; border-radius: 10px; }
.btn-xs { --h: 30px; padding: 0 10px; font-size: .8rem; border-radius: 8px; gap: 6px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink-2); transition: background .15s;
}
.icon-btn:hover { background: var(--bg-soft); }
.dot-count {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: #EF4444; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: .92rem; }
.link-arrow .ico { transition: transform .2s var(--ease); }
a.link-arrow:hover .ico, .company-card:hover .link-arrow .ico { transform: translateX(3px); }
.text-link { color: var(--brand); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: .76rem; font-weight: 600; white-space: nowrap; background: var(--bg-soft); color: var(--ink-2);
}
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-gray { background: #F1F2F7; color: #4B5275; }
.badge-blue { background: var(--blue-bg); color: var(--blue-t); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-teal { background: var(--teal-bg); color: var(--teal); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gradient { background: var(--grad); color: #fff; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: .78rem; font-weight: 500; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* -------------------------------------------------------------------- Forms */
.field { margin-bottom: 18px; }
.label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.optional { font-weight: 500; color: var(--muted-2); font-size: .78rem; margin-left: 4px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-size: .95rem; transition: border-color .15s, box-shadow .15s; outline: none; color: var(--ink);
}
.input::placeholder { color: var(--muted-2); }
.input:hover { border-color: #D3D7EA; }
.input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.input.is-invalid { border-color: #F2A3A3; background: #FFFBFB; }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.input-wrap { position: relative; }
.input-wrap .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input.has-icon { padding-left: 42px; }
.select-wrap { position: relative; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.select-caret { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.help { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: .8rem; color: var(--red); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .span-2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); cursor: pointer; padding: 5px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex-shrink: 0; }
.check .count { margin-left: auto; color: var(--muted-2); font-size: .8rem; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row span strong { display: block; font-weight: 600; font-size: .95rem; }
.toggle-row span small { color: var(--muted); font-size: .84rem; }
.toggle { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 99px; background: #D9DCEA; position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; margin: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.toggle:checked { background: var(--brand); }
.toggle:checked::after { transform: translateX(18px); }
.file-drop {
  display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed #CBD0E8; border-radius: var(--r);
  background: var(--bg-soft); cursor: pointer; transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: var(--brand); background: var(--lav); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop .file-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-xs); }
.file-drop strong { display: block; font-size: .92rem; }
.file-drop small { color: var(--muted); }

.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: text; }
.tag-input:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 11px; border-radius: 8px; background: var(--lav); color: var(--brand-600); font-size: .84rem; font-weight: 600; }
.tag button { border: 0; background: transparent; color: inherit; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; padding: 0; }
.tag button:hover { background: rgba(79,70,229,.14); }
.tag-input-field { flex: 1; min-width: 140px; border: 0; outline: none; height: 30px; padding: 0 6px; background: transparent; }

/* ------------------------------------------------------------------- Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.card-pad { padding: 24px; }
.card-pad-lg { padding: 32px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.05rem; }
.card-body { padding: 24px; }
.card + .card { margin-top: 20px; }

.logo-box { display: inline-grid; place-items: center; flex-shrink: 0; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-mono { background: color-mix(in srgb, var(--mono) 12%, white); color: var(--mono); border-color: color-mix(in srgb, var(--mono) 18%, white); font-family: var(--font-display); font-weight: 800; }
.logo-sm { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }
.logo-md { width: 48px; height: 48px; border-radius: 13px; font-size: .95rem; }
.logo-lg { width: 60px; height: 60px; border-radius: 16px; font-size: 1.1rem; }
.logo-xl { width: 80px; height: 80px; border-radius: 20px; font-size: 1.5rem; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-mono { background: color-mix(in srgb, var(--mono) 14%, white); color: var(--mono); font-weight: 700; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-md { width: 44px; height: 44px; font-size: .9rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar-xl { width: 104px; height: 104px; font-size: 2rem; border: 4px solid #fff; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- Alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r); font-size: .92rem; margin-bottom: 18px; border: 1px solid; }
.alert .ico { margin-top: 2px; }
.alert-success { background: var(--green-bg); color: #065F46; border-color: #BFEBD8; }
.alert-error { background: var(--red-bg); color: #991B1B; border-color: #F6C9C9; }
.alert-warning { background: var(--amber-bg); color: #8A4508; border-color: #F7DDAE; }
.alert-info { background: var(--blue-bg); color: #2B3FAE; border-color: #D3DBFF; }
.flash-stack { position: fixed; top: 84px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.flash {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 14px 16px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: .92rem; animation: flashIn .35s var(--ease);
}
.flash .ico { margin-top: 2px; }
.flash-success .ico:first-child { color: var(--green); }
.flash-error .ico:first-child { color: var(--red); }
.flash-info .ico:first-child, .flash-warning .ico:first-child { color: var(--brand); }
.flash span { flex: 1; }
.flash-close { border: 0; background: none; color: var(--muted-2); padding: 2px; border-radius: 6px; }
.flash.is-leaving { opacity: 0; transform: translateX(16px); transition: .3s var(--ease); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } }
.verify-bar { background: var(--lav); border-bottom: 1px solid var(--lav-2); font-size: .86rem; color: var(--brand-600); }
.verify-bar .container { display: flex; align-items: center; gap: 8px; min-height: 42px; flex-wrap: wrap; }
.verify-bar button { border: 0; background: none; color: var(--brand); font-weight: 700; text-decoration: underline; padding: 0; }

/* ---------------------------------------------------------------- Navbar */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(16,24,64,.18); }
.nav-inner { display: flex; align-items: center; height: 70px; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); }
.logo-light { color: #fff; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: .94rem; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--brand); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 5px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; }
.user-chip:hover { border-color: #CDD1E6; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease); z-index: 120;
}
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: .92rem; color: var(--ink-2); border: 0; background: none; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-soft); color: var(--ink); }
.dropdown-menu form { margin: 0; border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 6px; }
.dropdown-head { padding: 8px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dropdown-head strong { display: block; font-size: .94rem; }
.dropdown-head small { color: var(--muted); font-size: .8rem; }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 8px 0 20px; box-shadow: 0 20px 30px -20px rgba(16,24,64,.2); }
.mobile-menu a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.mobile-menu-cta { display: grid; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(79,70,229,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(79,70,229,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; background: #C7D2FE; top: -180px; right: -60px; }
.blob-2 { width: 420px; height: 420px; background: #E9D5FF; top: 120px; right: 260px; opacity: .45; }
.blob-3 { width: 380px; height: 380px; background: #BAE6FD; bottom: -200px; left: -120px; opacity: .4; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-xs); margin-bottom: 24px;
}
.hero-pill b { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.35rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.search-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); max-width: 620px;
}
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; height: 52px; border-radius: 14px; transition: background .15s; }
.search-field:focus-within { background: var(--bg-soft); }
.search-field .ico { color: var(--brand); }
.search-field input { border: 0; outline: none; background: transparent; width: 100%; font-size: .98rem; min-width: 0; }
.search-field input::placeholder { color: var(--muted-2); }
.search-divider { width: 1px; height: 30px; background: var(--line); }
.search-bar .btn { height: 52px; border-radius: 14px; padding: 0 24px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: .86rem; color: var(--muted); }
.hero-tags a { padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.75); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; transition: border-color .15s, color .15s; }
.hero-tags a:hover { border-color: var(--brand); color: var(--brand); }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hero-stat span { color: var(--muted); font-size: .88rem; }
.hero-stat-note { font-size: .75rem; color: var(--muted-2); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }

.hero-visual { position: relative; height: 500px; }
.hero-orb { position: absolute; inset: 40px 20px; border-radius: 40px; background: var(--grad-soft); border: 1px solid rgba(255,255,255,.8); }
.hero-orb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 70% 20%, rgba(124,58,237,.18), transparent 50%), radial-gradient(circle at 20% 80%, rgba(14,165,233,.16), transparent 50%); }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg);
  width: 270px; animation: float 7s ease-in-out infinite;
}
.float-card .fc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.float-card .fc-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.float-card h4 { margin: 0; font-size: 1rem; }
.float-card .fc-sub { font-size: .8rem; color: var(--muted); }
.float-card .chips { margin-bottom: 14px; }
.float-card .fc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line-2); }
.float-card .fc-salary { font-weight: 700; font-size: .95rem; }
.fc-1 { top: 30px; left: 0; }
.fc-2 { top: 190px; right: 0; animation-delay: -2.3s; }
.fc-3 { bottom: 10px; left: 50px; animation-delay: -4.6s; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 14px; box-shadow: var(--shadow); font-size: .82rem; animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: .86rem; }
.float-chip small { color: var(--muted); }
.chip-match { top: 0; right: 30px; animation-delay: -1s; }
.chip-status { bottom: 70px; right: 6px; animation-delay: -3s; }
.ring { --p: 87; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--lav-2) 0); font-size: .72rem; font-weight: 800; color: var(--brand); position: relative; }
.ring::before { content: ''; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }
.ring span { position: relative; }
.status-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--green-bg); color: var(--green); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* -------------------------------------------------------------- Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 30%, white); }
.cat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 11%, white); transition: transform .25s var(--ease); }
.cat-card:hover .cat-icon { transform: scale(1.06) rotate(-4deg); }
.cat-card h3 { margin: 0 0 2px; font-size: 1.02rem; }
.cat-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.cat-card .cat-arrow { position: absolute; top: 22px; right: 20px; color: var(--muted-2); opacity: 0; transform: translate(-4px, 4px); transition: .25s var(--ease); }
.cat-card:hover .cat-arrow { opacity: 1; transform: none; color: var(--c); }

/* ---------------------------------------------------------------- Job card */
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.job-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.job-card {
  position: relative; display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; min-width: 0;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D8DBF0; }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.job-card-flags { display: flex; align-items: center; gap: 6px; position: relative; z-index: 2; }
.job-title { font-size: 1.08rem; margin: 0 0 4px; line-height: 1.3; }
.job-title a:hover { color: var(--brand); }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.job-co { font-weight: 600; color: var(--ink-2); font-size: .9rem; margin: 0 0 8px; }
.job-loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .86rem; margin: 0 0 14px; flex-wrap: wrap; }
.job-loc .sep { color: var(--muted-2); }
.job-card .chips { margin-bottom: 18px; }
.job-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.job-salary { font-weight: 700; font-size: .95rem; margin: 0 0 2px; }
.muted-salary { color: var(--muted-2); font-weight: 500; font-size: .86rem; }
.job-time { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--muted-2); font-size: .78rem; }
.job-cta .ico { transition: transform .2s var(--ease); }
.job-card:hover .job-cta { background: var(--brand); color: #fff; }
.job-card:hover .job-cta .ico { transform: translateX(3px); }
.save-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); transition: .2s var(--ease); }
.save-btn:hover { color: var(--brand); border-color: #C9CEF5; }
.save-btn.is-saved { color: #fff; background: var(--brand); border-color: var(--brand); }
.save-btn.is-saved .ico { fill: currentColor; }
.save-btn.pop { animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.18); } }

/* ------------------------------------------------------------ How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.step { position: relative; padding: 32px 28px; background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { position: absolute; top: 26px; right: 28px; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -.04em; color: var(--lav-2); line-height: 1; }
.step-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(79,70,229,.6); margin-bottom: 24px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }
.step-visual { margin-top: 22px; padding: 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line-2); font-size: .8rem; }
.progress { height: 8px; border-radius: 99px; background: var(--lav-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .6s var(--ease); }

/* ----------------------------------------------------------- Employer CTA */
.emp-cta { position: relative; overflow: hidden; border-radius: 32px; background: #0B1437; color: #fff; padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; isolation: isolate; }
.emp-cta::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.55), transparent 65%); top: -280px; right: -160px; z-index: -1; }
.emp-cta::after { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(59,91,253,.45), transparent 65%); bottom: -300px; left: -120px; z-index: -1; }
.emp-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.emp-cta .eyebrow { color: #A5B4FC; }
.emp-cta p { color: #C3C8E4; font-size: 1.08rem; }
.emp-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.emp-list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.emp-list .tick { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(165,180,252,.16); color: #A5B4FC; }
.emp-cta-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.emp-cta-actions .link-arrow { color: #C7D2FE; }
.pipeline-mock { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 20px; backdrop-filter: blur(8px); }
.pm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pm-head strong { font-family: var(--font-display); }
.pm-head small { color: #A3A9CC; }
.pm-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pm-col { background: rgba(255,255,255,.05); border-radius: 14px; padding: 10px; }
.pm-col-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #A3A9CC; margin-bottom: 10px; display: flex; justify-content: space-between; }
.pm-person { display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border-radius: 10px; padding: 8px; margin-bottom: 8px; font-size: .74rem; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.pm-person b { display: block; font-size: .78rem; }
.pm-person small { color: var(--muted); font-size: .68rem; }
.pm-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 700; color: #fff; flex-shrink: 0; }

/* -------------------------------------------------------------------- Trust */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-tile { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.stat-tile strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-tile span { color: var(--muted); font-size: .9rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.value { display: flex; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: linear-gradient(180deg, #fff, var(--bg-soft)); border: 1px solid var(--line); }
.value-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--lav); color: var(--brand); flex-shrink: 0; }
.value h3 { font-size: 1rem; margin-bottom: 4px; }
.value p { color: var(--muted); font-size: .9rem; margin: 0; }
.placeholder-note { margin-top: 16px; font-size: .78rem; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------- Final CTA */
.final-cta { position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 80px 32px; background: var(--grad); color: #fff; isolation: isolate; }
.final-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
.final-cta h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 760px; margin: 0 auto 16px; }
.final-cta p { color: rgba(255,255,255,.86); font-size: 1.12rem; margin-bottom: 32px; }
.final-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------- Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: #fff; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 280px; margin: 16px 0; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 16px; font-family: var(--font); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: .92rem; transition: color .15s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.no-footer-gap .footer { margin-top: 0; }

/* --------------------------------------------------------------- Page hero */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 40px; background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line-2); }
.page-hero::after { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: #E0E7FF; filter: blur(80px); opacity: .6; top: -260px; right: -120px; z-index: 0; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p.lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
.page-hero .search-bar { max-width: 860px; box-shadow: var(--shadow); }
.breadcrumbs { display: flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- Jobs page */
.jobs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding-top: 32px; align-items: start; }
.filters { position: sticky; top: 90px; }
.filters-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 20px 20px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group > h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; font-family: var(--font); font-weight: 600; }
.filter-group .field { margin-bottom: 0; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 6px; }
.filters-head h3 { margin: 0; font-size: 1rem; }
.filters-head a, .filters-head button { font-size: .85rem; color: var(--brand); font-weight: 600; background: none; border: 0; padding: 0; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-head h2 { font-size: 1.1rem; margin: 0; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.results-head h2 strong { font-family: var(--font-display); }
.results-tools { display: flex; gap: 10px; align-items: center; }
.results-tools .select { height: 40px; font-size: .88rem; width: auto; min-width: 150px; }
.filter-open { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 99px; background: var(--lav); color: var(--brand-600); font-size: .82rem; font-weight: 600; }
.results { transition: opacity .2s; }
.results.is-loading { opacity: .45; pointer-events: none; }
.skeleton { background: linear-gradient(90deg, #F1F2F8 25%, #E8EAF4 37%, #F1F2F8 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-card { height: 236px; border-radius: var(--r-lg); }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(11,20,55,.45); z-index: 200; opacity: 0; transition: opacity .25s; }
.drawer-backdrop.is-open { opacity: 1; }

/* ------------------------------------------------------------- Job details */
.job-hero { padding: 40px 0 32px; background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line-2); }
.job-hero-main { display: flex; gap: 22px; align-items: flex-start; }
.job-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 6px; }
.job-hero .company-link { font-weight: 600; color: var(--ink-2); font-size: 1.05rem; }
.job-hero .company-link:hover { color: var(--brand); }
.job-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.job-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.job-hero-salary { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-top: 14px; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 40px; align-items: start; }
.job-section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line-2); }
.job-section:last-child { border-bottom: 0; }
.job-section h2 { font-size: 1.25rem; margin-bottom: 14px; }
.prose { color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1em; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); }
.job-aside { position: sticky; top: 90px; display: grid; gap: 16px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: center; }
.facts .fi { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-soft); display: grid; place-items: center; color: var(--brand); flex-shrink: 0; }
.facts small { display: block; color: var(--muted); font-size: .76rem; }
.facts strong { font-size: .92rem; font-weight: 600; }
.match-card { padding: 22px; border-radius: var(--r-lg); background: linear-gradient(160deg, #F4F3FF, #fff 60%); border: 1px solid #E3E1FF; }
.match-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.match-ring { --p: 50; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), #E4E3FB 0); position: relative; flex-shrink: 0; }
.match-ring::before { content: ''; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.match-ring span { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.match-card h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 8px; font-family: var(--font); }
.match-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.match-list li { display: flex; gap: 8px; align-items: flex-start; }
.match-list .ok { color: var(--green); }
.match-list .todo { color: var(--brand); }
.company-mini { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.mobile-apply { display: none; }

/* ----------------------------------------------------------- Companies */
.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.company-card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.company-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.company-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.company-card-head h3 { margin: 0 0 2px; font-size: 1.05rem; }
.company-card-head p { margin: 0; }
.company-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.company-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-2); }
.company-banner { height: 160px; background: var(--grad); border-radius: 0 0 32px 32px; position: relative; overflow: hidden; }
.company-banner::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1px); background-size: 20px 20px; }
.company-head { display: flex; gap: 22px; align-items: flex-end; margin-top: -48px; position: relative; z-index: 1; flex-wrap: wrap; }
.company-head .logo-box { box-shadow: var(--shadow); border: 4px solid #fff; }

/* ------------------------------------------------------------------- Auth */
.auth-body { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px; background: #0B1437; color: #fff; isolation: isolate; }
.auth-art::before { content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(106,76,246,.6), transparent 65%); top: -200px; right: -300px; z-index: -1; }
.auth-art::after { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(59,91,253,.45), transparent 65%); bottom: -320px; left: -200px; z-index: -1; }
.auth-art-copy h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); max-width: 460px; }
.auth-art-copy p { color: #C3C8E4; font-size: 1.05rem; max-width: 420px; }
.auth-art-cards { margin-top: 40px; display: grid; gap: 14px; max-width: 360px; }
.mini-card { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(6px); animation: float 7s ease-in-out infinite; }
.mini-card.offset { margin-left: 48px; animation-delay: -3s; }
.mini-card strong { display: block; font-size: .92rem; }
.mini-card small { color: #A3A9CC; }
.mini-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(52,211,153,.2); flex-shrink: 0; }
.mini-ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#A5B4FC 87%, rgba(255,255,255,.15) 0); font-size: .72rem; font-weight: 800; position: relative; flex-shrink: 0; }
.mini-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #1A2350; }
.mini-ring > * , .mini-ring { isolation: isolate; }
.auth-art-foot { color: #8C92B8; font-size: .85rem; margin: 0; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 88px); }
.auth-form { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-form.wide { max-width: 620px; }
.auth-form h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-form .lead { color: var(--muted); margin-bottom: 28px; }
.auth-foot { margin-top: 24px; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-mobile-logo { display: none; margin-bottom: 32px; }
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.role-option { position: relative; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; }
.role-option .ro-card { display: block; padding: 18px; border: 1.5px solid var(--line); border-radius: 16px; transition: .2s var(--ease); height: 100%; }
.role-option .ro-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); margin-bottom: 12px; transition: .2s; }
.role-option strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.role-option small { color: var(--muted); font-size: .82rem; }
.role-option input:checked + .ro-card { border-color: var(--brand); background: var(--lav); box-shadow: var(--ring); }
.role-option input:checked + .ro-card .ro-icon { background: var(--grad); color: #fff; }
.role-option input:focus-visible + .ro-card { box-shadow: var(--ring); }
.form-section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 24px 0 14px; font-family: var(--font); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pw-row { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 20px; font-size: .88rem; }

/* -------------------------------------------------------------- Dashboard */
.dash-body { background: var(--bg-soft); }
.dash { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.dash-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; overflow-y: auto; }
.dash-side-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 18px; }
.dash-close { display: none; }
.dash-role { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; padding: 0 12px; margin: 6px 0 8px; }
.dash-nav { display: grid; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 500; font-size: .93rem; transition: background .15s, color .15s; }
.dash-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.dash-nav a.active { background: var(--lav); color: var(--brand-600); font-weight: 600; }
.dash-nav a.active .ico { color: var(--brand); }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; border-radius: 99px; padding: 0 6px; display: grid; place-items: center; background: #EF4444; color: #fff; font-size: .72rem; font-weight: 700; }
.dash-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }
.dash-user { display: flex; gap: 10px; align-items: center; padding: 8px; min-width: 0; }
.dash-user div { min-width: 0; }
.dash-user strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user small { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-logout { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: .9rem; }
.dash-logout:hover { background: var(--red-bg); color: var(--red); }
.dash-topbar { display: none; }
.dash-overlay { display: none; }
.dash-content { padding: 36px 40px 64px; max-width: 1280px; width: 100%; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 4px; }
.dash-head p { color: var(--muted); margin: 0; }
.dash-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lav); color: var(--brand); }
.kpi-icon.green { background: var(--green-bg); color: var(--green); }
.kpi-icon.amber { background: var(--amber-bg); color: var(--amber); }
.kpi-icon.teal { background: var(--teal-bg); color: var(--teal); }
.kpi-icon.purple { background: var(--purple-bg); color: var(--purple); }
.kpi-icon.red { background: var(--red-bg); color: var(--red); }
.kpi strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .88rem; }
.kpi a.stretched-kpi::after { content: ''; position: absolute; inset: 0; }
.kpi:has(a.stretched-kpi):hover { border-color: #CFD3EC; box-shadow: var(--shadow-sm); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-grid > * { min-width: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #FAFBFE; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FBFBFE; }
.table .cell-main { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.table .cell-main strong { display: block; font-weight: 600; }
.table .cell-main small { color: var(--muted); font-size: .8rem; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table .num { font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.toolbar .input { height: 40px; font-size: .9rem; }
.toolbar .search-input { max-width: 300px; }
.toolbar .select { width: auto; min-width: 150px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: #EEF0F7; border-radius: 12px; width: fit-content; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.tabs a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.tabs a .cnt { margin-left: 6px; color: var(--muted-2); font-weight: 500; }

.profile-preview { overflow: hidden; }
.pp-cover { height: 96px; background: var(--grad); position: relative; }
.pp-cover::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1px); background-size: 18px 18px; }
.pp-body { padding: 0 24px 24px; }
.pp-body .avatar-xl { margin-top: -52px; position: relative; }
.pp-body h2 { margin: 12px 0 2px; font-size: 1.35rem; }
.pp-headline { color: var(--ink-2); font-weight: 500; margin: 0 0 6px; }
.pp-loc { color: var(--muted); font-size: .88rem; display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.completion { display: flex; align-items: center; gap: 18px; }
.completion-ring { --p: 0; width: 88px; height: 88px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--lav-2) 0); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.completion-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.completion-ring span { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.todo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.todo-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .9rem; color: var(--ink-2); }
.todo-list a:hover { background: var(--bg-soft); }
.todo-list .todo-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed #BFC4DE; flex-shrink: 0; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row small { color: var(--muted); font-size: .82rem; }
.timeline-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--brand); flex-shrink: 0; }
.timeline-item h4 { margin: 0 0 2px; font-size: .98rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .88rem; }
.timeline-item .grow { flex: 1; min-width: 0; }
.resume-box { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-soft); flex-wrap: wrap; }
.resume-box .file-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #FEE2E2; color: #DC2626; font-size: .7rem; font-weight: 800; flex-shrink: 0; }
.resume-box .grow { flex: 1; min-width: 160px; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-cloud .chip { height: 30px; font-size: .84rem; }
.status-track { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.status-track span { height: 5px; flex: 1; border-radius: 99px; background: var(--line); }
.status-track span.on { background: var(--grad); }
.status-track.rejected span.on { background: #F3A9A9; }

/* Applicant pipeline */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.pipe-step { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); position: relative; transition: border-color .15s, box-shadow .15s; }
.pipe-step:hover { border-color: #CFD3EC; }
.pipe-step.active { border-color: var(--brand); box-shadow: var(--ring); }
.pipe-step strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.pipe-step span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.pipe-step::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: var(--pc, var(--brand)); }
.applicant { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line-2); align-items: center; }
.applicant:last-child { border-bottom: 0; }
.applicant-main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.applicant-main h3 { margin: 0; font-size: 1rem; }
.applicant-main .meta { color: var(--muted); font-size: .85rem; display: flex; gap: 6px 14px; flex-wrap: wrap; margin: 2px 0 8px; }
.applicant-main .meta span { display: inline-flex; align-items: center; gap: 4px; }
.applicant-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.applicant-actions .select { height: 36px; font-size: .85rem; min-width: 140px; }
.cover-msg { margin-top: 8px; padding: 12px 14px; background: var(--bg-soft); border-radius: 12px; font-size: .88rem; color: var(--ink-2); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; }
.form-card-head { padding: 20px 24px; border-bottom: 1px solid var(--line-2); display: flex; gap: 14px; align-items: center; }
.form-card-head .step-badge { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--lav); color: var(--brand); font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.form-card-head h2 { font-size: 1.05rem; margin: 0; }
.form-card-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.form-card-body { padding: 24px; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(247,248,253,.92); backdrop-filter: blur(8px); padding: 16px 0; display: flex; gap: 12px; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 8px; z-index: 5; }
.item-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.item-row:last-child { border-bottom: 0; }
.item-row .grow { flex: 1; min-width: 0; }
.item-row h4 { margin: 0 0 2px; font-size: .98rem; }
.item-row p { margin: 0; color: var(--muted); font-size: .88rem; }
details.add-item { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 0 16px; margin-top: 12px; }
details.add-item[open] { border-style: solid; padding-bottom: 16px; }
details.add-item summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 8px; }
details.add-item summary::-webkit-details-marker { display: none; }
.notice-card { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); margin-bottom: 20px; border: 1px solid #F7DDAE; background: var(--amber-bg); color: #8A4508; }
.notice-card.info { border-color: #D3DBFF; background: var(--blue-bg); color: #2B3FAE; }
.notice-card strong { display: block; }
.notice-card p { margin: 2px 0 0; font-size: .9rem; }
.bar-list { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 40px; gap: 12px; align-items: center; font-size: .88rem; }
.bar-row .bar { height: 10px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.bar-row .bar span { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.bar-row .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- Empty/err */
.empty { text-align: center; padding: 56px 24px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); border: 1px solid var(--lav-2); }
.empty h3 { font-size: 1.15rem; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto 22px; }
.error-page { padding: 96px 0 40px; }
.error-card { max-width: 560px; margin: 0 auto; text-align: center; position: relative; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; letter-spacing: -.06em; background: linear-gradient(180deg, #E0E4FF, #F6F5FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: -36px auto 22px; background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(79,70,229,.6); position: relative; }
.error-card p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------- Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 11px; display: grid; place-items: center; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); background: #fff; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { opacity: .4; }
.pagination .gap { border: 0; background: none; min-width: 20px; }
.card .pagination { margin: 0; padding: 18px; border-top: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 250; background: rgba(11,20,55,.5); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.modal { width: 100%; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); overflow-y: auto; animation: modalIn .28s var(--ease); }
.modal-sm { max-width: 420px; } .modal-md { max-width: 560px; } .modal-lg { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 24px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
body.no-scroll { overflow: hidden; }

/* -------------------------------------------------------------- Toasts */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transition: .3s var(--ease); z-index: 400; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.toast.is-show { opacity: 1; transform: translateX(-50%); }
.toast.error { background: #B91C1C; }

/* ------------------------------------------------------------ Static pages */
.static-page .prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.static-page .prose { max-width: 760px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.feature .value-icon { margin-bottom: 16px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }
.notif { display: flex; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--line-2); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: #FAFAFF; }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 8px; flex-shrink: 0; }
.notif .dot.read { background: transparent; }
.notif h4 { margin: 0 0 2px; font-size: .95rem; }
.notif p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ============================================================ Responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 440px; max-width: 620px; width: 100%; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emp-cta { grid-template-columns: 1fr; padding: 48px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
  .hide-sm { display: none !important; }
  .jobs-layout { grid-template-columns: 1fr; }
  .filter-open { display: inline-flex; }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); z-index: 210; background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform .3s var(--ease); padding: 8px 4px 90px; }
  .filters.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .filters-card { border: 0; padding-top: 0; }
  .filters-apply { position: fixed; bottom: 0; left: 0; width: min(360px, 88vw); padding: 14px 20px; background: #fff; border-top: 1px solid var(--line); }
  .job-layout { grid-template-columns: 1fr; gap: 24px; }
  .job-aside { position: static; }
  .mobile-apply { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); gap: 10px; }
  .mobile-apply .btn-primary { flex: 1; }
  .has-mobile-apply .footer { padding-bottom: 100px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-mobile-logo { display: block; }
  .auth-main { justify-content: flex-start; padding-top: 32px; }

  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; z-index: 220; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: none; }
  .dash-side.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .dash-close { display: inline-grid; }
  .dash-overlay.is-open { display: block; position: fixed; inset: 0; background: rgba(11,20,55,.45); z-index: 210; }
  .dash-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 50; height: 60px; padding: 0 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .dash-topbar .logo { font-size: 1.05rem; }
  .dash-content { padding: 24px 16px 56px; }
  .flash-stack { top: 72px; right: 16px; left: 16px; max-width: none; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .hero { padding: 36px 0 56px; }
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero-pill { font-size: .78rem; margin-bottom: 18px; }
  .search-bar { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 18px; gap: 4px; }
  .search-divider { width: auto; height: 1px; margin: 0 12px; }
  .search-bar .btn { width: 100%; }
  .hero-stats { gap: 22px; margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-stat strong { font-size: 1.4rem; }
  .hero-stat span { font-size: .78rem; }
  .hero-visual { height: 360px; }
  .float-card { width: 230px; padding: 14px; border-radius: 16px; }
  .fc-1 { left: 0; top: 20px; } .fc-2 { right: 0; top: 150px; } .fc-3 { left: 20px; bottom: 0; }
  .chip-match { right: 0; top: -6px; } .chip-status { display: none; }
  .hero-orb { inset: 30px 0; border-radius: 28px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-card { padding: 16px; gap: 14px; }
  .cat-icon { width: 42px; height: 42px; }
  .cat-card h3 { font-size: .94rem; }
  .job-grid, .job-grid.two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .emp-cta { padding: 36px 22px; border-radius: 24px; gap: 32px; }
  .pm-cols { grid-template-columns: repeat(2, 1fr); }
  .pm-col:last-child { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-tile { padding: 18px; }
  .stat-tile strong { font-size: 1.7rem; }
  .values-grid, .feature-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 56px 22px; border-radius: 24px; }
  .footer { padding-top: 48px; margin-top: 64px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .company-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .role-picker { grid-template-columns: 1fr; }
  .job-hero-main { flex-direction: column; gap: 14px; }
  .kpis { gap: 10px; }
  .kpi { padding: 16px; }
  .kpi strong { font-size: 1.5rem; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .applicant { grid-template-columns: 1fr; padding: 18px; }
  .applicant-actions { justify-content: flex-start; }
  .card-pad, .card-body, .form-card-body { padding: 18px; }
  .card-head, .form-card-head { padding: 16px 18px; }
  .list-row { padding: 14px 18px; }
  .section-head { margin-bottom: 28px; }
  .bar-row { grid-template-columns: 96px 1fr 32px; }

  /* Tables become cards on phones */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .table-cards td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .table-cards td::before { content: attr(data-label); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
  .table-cards td.cell-first { display: block; padding-bottom: 8px; }
  .table-cards td.cell-first::before { display: none; }
  .table-cards .cell-main { min-width: 0; }
  .table-cards .actions { justify-content: flex-start; padding-top: 6px; }
  .table-cards td.actions-cell { display: block; }
  .table-cards td.actions-cell::before { display: none; }
  .sticky-actions { flex-direction: column-reverse; }
  .sticky-actions .btn { width: 100%; }
  .toolbar .search-input { max-width: none; flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .float-card { width: 210px; }
  .hero-stats { gap: 12px; }
}

@media print {
  .nav, .footer, .dash-side, .dash-topbar, .mobile-apply { display: none !important; }
}

/* Wide save button on job details */
.save-btn-wide.is-saved { background: var(--lav); border-color: #C9CEF5; color: var(--brand); }
.save-btn-wide.is-saved .ico { fill: currentColor; }
.text-right { text-align: right; }
@media (min-width: 961px) { .filters-apply { display: none; } }
@media (max-width: 720px) {
  .hero-visual { height: 330px; }
  .fc-3 { display: none; }
  .fc-2 { top: 160px; }
}
.job-salary { white-space: nowrap; }
.job-card-foot { flex-wrap: wrap; }
/* AI match loading state */
.match-card.is-pending .match-ring { opacity: .85; }
.ai-loading { display: flex; align-items: center; gap: 8px; }
.ai-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--lav-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* AI match section (homepage) */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ai-lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 28px; }
.ai-points { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.ai-points li { display: flex; gap: 14px; }
.ai-points strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.ai-points p { margin: 0; color: var(--muted); font-size: .88rem; }
.ai-demo { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.ai-demo::before { content: ''; position: absolute; inset: -30px; border-radius: 40px; background: radial-gradient(circle at 70% 30%, rgba(124,58,237,.18), transparent 60%), radial-gradient(circle at 20% 80%, rgba(59,91,253,.15), transparent 55%); z-index: 0; }
.ai-demo > * { position: relative; z-index: 1; }
.ai-demo .match-card { background: #fff; box-shadow: var(--shadow-lg); border-color: var(--line); }
.ai-demo-job { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 0 0 -10px 28px; box-shadow: var(--shadow); width: fit-content; animation: float 7s ease-in-out infinite; }
.ai-demo-job .fc-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ai-demo-job strong { display: block; font-size: .95rem; }
.ai-demo-job small { color: var(--muted); }
@media (max-width: 1100px) { .ai-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 720px) { .ai-points { grid-template-columns: 1fr; } .ai-demo-job { margin-left: 0; } }
.values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .values-grid { grid-template-columns: 1fr; } }

/* ===================================================== keenshake.com additions */
/* Language switch (EN | FR) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); flex-shrink: 0; }
.lang-switch a { min-width: 34px; padding: 4px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-align: center; line-height: 1.4; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: var(--grad); color: #fff; box-shadow: 0 2px 8px rgba(79, 70, 229, .3); }
.footer-lang { margin-top: 4px; }
.mobile-lang, .side-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.mobile-lang { padding: 6px 0 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.side-lang { padding: 0 4px 12px; }
.auth-lang { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.dash-topbar .lang-switch { margin-left: auto; }
.verify-bar-link { font-weight: 700; text-decoration: underline; color: var(--brand); }

/* Footer newsletter */
.footer-news { margin-top: 18px; max-width: 360px; }
.footer-news-label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.footer-news-row { display: flex; gap: 8px; }
.footer-news-row .input { min-width: 0; flex: 1; height: 42px; }
.footer-news-row .btn { flex-shrink: 0; height: 42px; }

/* Email code */
.verify-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--lav); color: var(--brand); margin-bottom: 18px; }
.code-input { font-size: 1.7rem; letter-spacing: .5em; text-align: center; font-weight: 800; font-family: ui-monospace, Menlo, Consolas, monospace; height: 62px; padding-left: .5em; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Plans */
.credit-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.credit-box { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.credit-box strong { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.credit-box span:not(.kpi-icon) { font-size: .82rem; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 20px; border-radius: var(--r-xl); background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(input:checked) { border-color: var(--brand); box-shadow: var(--ring), var(--shadow-sm); }
.plan-card.popular { background: linear-gradient(180deg, #F6F5FF 0%, #fff 60%); }
.plan-flag { position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; }
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.03em; line-height: 1.1; }
.plan-desc { color: var(--muted); font-size: .88rem; }
.plan-feats { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; gap: 7px; font-size: .88rem; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; }
.plan-feats .ico { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.plan-pick { margin-top: auto; padding-top: 10px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.plan-pick-on { display: none; align-items: center; gap: 6px; color: var(--brand); }
.plan-card:has(input:checked) .plan-pick-on { display: inline-flex; }
.plan-card:has(input:checked) .plan-pick-off { display: none; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); margin-bottom: 10px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--lav); }
.pay-option input { accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.pay-option .po-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--brand); flex-shrink: 0; }
.pay-option strong { display: block; font-size: .95rem; }
.pay-option small { color: var(--muted); font-size: .82rem; }
.notice-card.success { border-color: #BFEBD8; background: var(--green-bg); color: #05603F; }
.notice-card.danger { border-color: #F6C9C9; background: var(--red-bg); color: #991B1B; }

/* Crypto payment */
.crypto-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.crypto-grid .form-card { margin-bottom: 0; }
.wallet-wrap { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.qr-box { width: 184px; height: 184px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.qr-box img, .qr-box canvas { width: 100% !important; height: auto !important; display: block; }
.wallet-amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin: 2px 0 14px; }
.wallet-box { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); margin-top: 6px; }
.wallet-box code { flex: 1; min-width: 0; word-break: break-all; font-size: .86rem; }
.pay-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0; }
.pay-facts dt { font-size: .76rem; color: var(--muted); }
.pay-facts dd { margin: 2px 0 0; font-weight: 600; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.block { display: block; }
.proof-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.input-xs { height: 30px; font-size: .8rem; padding: 4px 8px; width: 170px; }
.reject-form { display: inline-flex; gap: 6px; align-items: center; }

/* Bulk email */
.progress-bar { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--grad); transition: width .3s; }

@media (max-width: 860px) {
  .crypto-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wallet-wrap { flex-direction: column; align-items: stretch; }
  .qr-box { margin: 0 auto; }
  .footer-news-row { flex-direction: column; }
  .credit-box { flex: 1; min-width: 140px; }
  .reject-form { flex-wrap: wrap; }
}
.mobile-menu .lang-switch a { display: inline-block; padding: 4px 10px; border: 0; font-size: .74rem; justify-content: center; min-height: 0; }
.table .mono { white-space: nowrap; }

/* ===== Career Stories blog ===== */
.ks-kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.ks-crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.ks-crumbs a { color: var(--ink-2); }
.ks-crumbs span { margin: 0 8px; color: var(--muted-2); }
.ks-post-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 820px; }
.ks-readtime { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.ks-post { padding-top: 40px; padding-bottom: 72px; }
.ks-prose { max-width: 760px; font-size: 1.04rem; }
.ks-prose .ks-lede { font-size: 1.18rem; line-height: 1.7; color: var(--ink); padding: 18px 22px; background: var(--lav); border-radius: 14px; margin-bottom: 26px; }
.ks-prose h2 { font-size: 1.45rem; margin-top: 2em; }
.ks-prose a:not(.btn) { color: var(--brand); font-weight: 600; }
.ks-skill { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: #fff; border-radius: 12px; padding: 14px 18px; margin: 6px 0 22px; box-shadow: var(--shadow-xs); }
.ks-skill span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.ks-skill p { margin: 0; color: var(--ink-2); }
.ks-table-wrap { overflow-x: auto; margin: 4px 0 26px; }
table.ks-facts { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; font-size: .95rem; }
.ks-facts caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); padding: 0 0 10px; }
.ks-facts th { text-align: left; width: 34%; background: var(--bg-soft); color: var(--ink); font-weight: 600; padding: 11px 16px; border-top: 1px solid var(--line-2); vertical-align: top; }
.ks-facts td { padding: 11px 16px; border-top: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.ks-facts tr:first-child th, .ks-facts tr:first-child td { border-top: 0; }
.ks-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.ks-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.ks-faq details p { margin: 10px 0 0; }
.ks-disclosure { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; font-style: italic; color: var(--muted); }
.ks-more { max-width: 760px; margin-top: 44px; }
.ks-more h2 { font-size: 1.25rem; }
.ks-more-card, .ks-list-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s; }
.ks-more-card:hover, .ks-list-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.ks-more-card strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 4px; }
.ks-more-card small { color: var(--muted); font-size: .9rem; }
.ks-list-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.ks-list-card h2 a { color: var(--ink); }
.ks-list-card h2 a:hover { color: var(--brand); }
.ks-list-card p { color: var(--ink-2); margin-bottom: 12px; }
.ks-list-foot { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 12px; }
@media (max-width: 640px) {
  .ks-prose { font-size: 1rem; }
  .ks-prose .ks-lede { font-size: 1.06rem; padding: 14px 16px; }
  .ks-facts th { width: 40%; }
}
