/* ==========================================================================
   TurnMyJob — Job Aggregator UI
   Framework-free design system. Every block below maps 1:1 to a future
   Blade component (resources/views/components/*.blade.php).
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --c-primary: #047857;
  --c-primary-600: #065f46;
  --c-primary-700: #065f46;
  --c-primary-50: #ecfdf5;
  --c-primary-100: #d1fae5;

  --c-bg: #f6f7fb;
  --c-surface: #ffffff;
  --c-surface-2: #f9fafb;
  --c-border: #e5e7eb;
  --c-border-strong: #d1d5db;

  --c-text: #111827;
  --c-text-2: #374151;
  --c-muted: #6b7280;
  --c-subtle: #9ca3af;

  --c-success: #047857;
  --c-success-bg: #ecfdf5;
  --c-warning: #b45309;
  --c-warning-bg: #fffbeb;
  --c-danger: #b91c1c;
  --c-danger-bg: #fef2f2;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, .06), 0 1px 2px rgba(17, 24, 39, .04);
  --shadow-md: 0 6px 16px -4px rgba(17, 24, 39, .08), 0 2px 4px rgba(17, 24, 39, .04);
  --shadow-lg: 0 20px 40px -12px rgba(17, 24, 39, .18);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --header-h: 64px;
  --bottom-nav-h: 64px;
  --focus: 0 0 0 3px rgba(4, 120, 87, .35);

  /* Brand gradient (emerald -> teal). Both ends keep white text at WCAG AA. */
  --grad: linear-gradient(135deg, #047857 0%, #0e7490 100%);
  --grad-hover: linear-gradient(135deg, #065f46 0%, #155e75 100%);
  --grad-soft: linear-gradient(135deg, #ecfdf5 0%, #ecfeff 100%);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-700); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; color: var(--c-text); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--c-text); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head p { color: var(--c-muted); margin-top: 6px; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.muted { color: var(--c-muted); }
.text-sm { font-size: 13.5px; }
.text-xs { font-size: 12.5px; }
main { min-height: calc(100vh - var(--header-h) - 200px); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
  text-decoration: none; background: none;
}
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--c-primary-600); color: #fff; }
.btn-secondary { background: var(--c-surface); color: var(--c-text-2); border-color: var(--c-border-strong); }
.btn-secondary:hover { background: var(--c-surface-2); color: var(--c-text); border-color: #c4c8cf; }
.btn-ghost { color: var(--c-text-2); }
.btn-ghost:hover { background: #f1f2f6; color: var(--c-text); }
.btn-soft { background: var(--c-primary-50); color: var(--c-primary-700); }
.btn-soft:hover { background: var(--c-primary-100); color: var(--c-primary-700); }
.btn-danger-soft { background: var(--c-danger-bg); color: var(--c-danger); }
.btn-danger-soft:hover { background: #fee2e2; color: var(--c-danger); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Bookmark toggle */
.save-btn { color: var(--c-muted); border: 1px solid var(--c-border); background: var(--c-surface); }
.save-btn:hover { color: var(--c-primary); border-color: var(--c-primary-100); background: var(--c-primary-50); }
.save-btn[aria-pressed="true"] { color: var(--c-primary); background: var(--c-primary-50); border-color: var(--c-primary-100); }
.save-btn[aria-pressed="true"] .icon { fill: currentColor; }

/* ---------- 5. Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13.5px; font-weight: 600; color: var(--c-text-2); }
.input, .select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--c-border-strong); background: var(--c-surface);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--c-subtle); }
.input:focus, .select:focus { border-color: var(--c-primary); box-shadow: var(--focus); }
.select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--c-subtle); pointer-events: none; }
.input-icon > .input, .input-icon > .select { padding-left: 40px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14px; color: var(--c-text-2); }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--c-primary); cursor: pointer; flex: none; }
.check .count { margin-left: auto; font-size: 12.5px; color: var(--c-subtle); }
.hint { font-size: 12.5px; color: var(--c-muted); }

/* Toggle switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--c-text-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--c-border-strong); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform .15s; }
.switch input:checked + .track { background: var(--c-primary); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; color: var(--c-text); letter-spacing: -.02em; }
.logo:hover { color: var(--c-text); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--c-primary); color: #fff; display: grid; place-items: center; }
.logo-mark .icon { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--c-text-2); font-weight: 550; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover { background: #f1f2f6; color: var(--c-text); }
.nav a[aria-current="page"] { color: var(--c-primary); background: var(--c-primary-50); }
.nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-primary); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-badge[hidden] { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-mobile { display: none; margin-left: auto; align-items: center; gap: 4px; }

/* Drawer (mobile nav + mobile filters share this) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 100; width: min(360px, 88vw);
  background: var(--c-surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .22s ease; visibility: hidden;
}
.drawer.drawer-left { right: auto; left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer.is-open + .drawer-backdrop, .drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--c-border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--c-border); display: flex; gap: 10px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; color: var(--c-text-2); font-weight: 550; }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { background: var(--c-primary-50); color: var(--c-primary-700); }
body.no-scroll { overflow: hidden; }

/* Bottom nav (mobile only) */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; height: var(--bottom-nav-h);
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; }
.bottom-nav a { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--c-muted); position: relative; }
.bottom-nav a[aria-current="page"] { color: var(--c-primary); }
.bottom-nav .nav-badge { position: absolute; top: 6px; left: calc(50% + 6px); height: 17px; min-width: 17px; font-size: 10.5px; padding: 0 4px; }

/* ---------- 7. Hero & search ---------- */
.hero { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 56px 0 44px; }
.hero-inner { max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--c-primary-700); background: var(--c-primary-50); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { margin-bottom: 12px; }
.hero .lead { font-size: 17px; color: var(--c-muted); margin-bottom: 28px; max-width: 560px; }

.search-bar {
  display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1.1fr) minmax(170px,.9fr) auto; gap: 0;
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 6px;
}
.search-bar .seg { position: relative; display: flex; align-items: center; }
.search-bar .seg + .seg::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--c-border); }
.search-bar .seg > .icon { position: absolute; left: 14px; color: var(--c-subtle); pointer-events: none; }
.search-bar .input, .search-bar .select { border: 0; height: 48px; padding-left: 42px; background-color: transparent; border-radius: 10px; box-shadow: none; }
.search-bar .input:focus, .search-bar .select:focus { box-shadow: var(--focus); }
.search-bar .btn { height: 48px; margin-left: 6px; padding: 0 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: 13.5px; color: var(--c-muted); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-border);
  font-size: 13.5px; font-weight: 550; color: var(--c-text-2);
}
.chip:hover { border-color: var(--c-primary-100); background: var(--c-primary-50); color: var(--c-primary-700); }
.chip-removable button { border: 0; background: none; padding: 0; display: grid; place-items: center; color: var(--c-muted); border-radius: 50%; }
.chip-removable button:hover { color: var(--c-danger); }
.hero .chips { margin-top: 20px; }

.hero-stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats div { font-size: 13.5px; color: var(--c-muted); }
.hero-stats strong { display: block; font-size: 20px; color: var(--c-text); font-weight: 700; letter-spacing: -.02em; }

/* ---------- 8. Cards ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-pad { padding: 22px; }
.card-link { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: #a7f3d0; box-shadow: var(--shadow-md); }

/* Company avatar (monogram fallback; swap to <img> when companyLogo exists) */
.avatar {
  width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; letter-spacing: -.02em; color: #fff; overflow: hidden;
}
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.avatar.has-logo { box-shadow: inset 0 0 0 1px var(--c-border); }
.avatar-initials { line-height: 1; }
.avatar-sm { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
.avatar-lg { width: 72px; height: 72px; border-radius: 16px; font-size: 24px; }

/* ---- Job card: the core component ---- */
.job-card { position: relative; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.job-card-top { display: flex; gap: 14px; align-items: flex-start; }
.job-card-main { flex: 1; min-width: 0; }
.job-title { font-size: 16.5px; font-weight: 650; line-height: 1.3; }
.job-title a { color: var(--c-text); }
.job-title a:hover { color: var(--c-primary); }
/* Stretched link: whole card clickable while keeping buttons interactive */
.job-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.job-card :is(button, .btn, .tag-link) { position: relative; z-index: 1; }
.job-company { font-size: 14px; color: var(--c-text-2); font-weight: 550; margin-top: 3px; }
.job-company a { color: inherit; position: relative; z-index: 1; }
.job-company a:hover { color: var(--c-primary); text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--c-muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { width: 15px; height: 15px; color: var(--c-subtle); }
.salary { color: var(--c-text); font-weight: 650; }

/* Closing date ("Apply by 30 Oct" / "Closes in 2 days" / "Closed on 3 Oct") */
.deadline { display: inline-flex; align-items: center; gap: 6px; }
.meta .deadline-soon, .deadline.deadline-soon { color: #b45309; font-weight: 600; }
.meta .deadline-soon .icon { color: #d97706; }
.meta .deadline-closed, .deadline.deadline-closed { color: var(--c-danger); font-weight: 600; }
.meta .deadline-closed .icon { color: var(--c-danger); }
.apply-deadline { display: flex; align-items: center; gap: 8px; margin: 12px 0 0 !important; color: var(--c-text-2) !important; }
.apply-deadline .icon { color: var(--c-muted); }
.apply-deadline.deadline-soon { color: #b45309 !important; }
.apply-deadline.deadline-closed { color: var(--c-danger) !important; }
.job-desc { font-size: 14px; color: var(--c-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #f0f1f4; }
.job-card-foot .left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.job-card-foot .right { display: flex; gap: 8px; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: #f3f4f6; color: var(--c-text-2); font-size: 12.5px; font-weight: 550; }
.job-card.compact { padding: 18px; gap: 12px; }
.job-card.compact .job-desc { display: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge .icon { width: 13px; height: 13px; }
.badge-remote { background: #ecfeff; color: #0e7490; }
.badge-hybrid { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-onsite { background: #f1f5f9; color: #475569; }
.badge-new { background: var(--c-primary-50); color: var(--c-primary-700); }
.badge-neutral { background: #f3f4f6; color: var(--c-text-2); }

/* Source badges — neutral text + subtle tint; never imitate the source's logo */
.source { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
.source-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.source-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text-2); }
.source-badge .icon { width: 13px; height: 13px; }

/* Category / location cards */
.cat-card { padding: 18px; display: flex; align-items: center; gap: 14px; color: var(--c-text); }
.cat-card:hover { color: var(--c-text); }
.cat-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary); flex: none; }
.cat-card h3 { font-size: 15px; }
.cat-card p { font-size: 13px; color: var(--c-muted); margin-top: 2px; }
.cat-card .arrow { margin-left: auto; color: var(--c-subtle); transition: transform .15s, color .15s; }
.cat-card:hover .arrow { transform: translateX(3px); color: var(--c-primary); }

.loc-card { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; color: var(--c-text); }
.loc-card:hover { color: var(--c-text); }
.loc-card .name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.loc-card .name .icon { color: var(--c-primary); }
.loc-card .count { font-size: 13px; color: var(--c-muted); }

.feature-card { padding: 24px; }
.feature-card .cat-icon { margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--c-muted); }

.cta-band { background: var(--c-text); color: #fff; border-radius: var(--radius-xl); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7cad1; margin-top: 8px; }
.cta-band .btn-primary { background: #fff; color: var(--c-text); }
.cta-band .btn-primary:hover { background: var(--c-primary-50); color: var(--c-text); }

/* Aggregator notice */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--c-primary-50); border: 1px solid var(--c-primary-100); color: var(--c-primary-700); font-size: 13.5px; }
.notice .icon { margin-top: 1px; }
.notice-neutral { background: var(--c-surface-2); border-color: var(--c-border); color: var(--c-text-2); }

/* ---------- 9. Listing page ---------- */
.page-head { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 24px 0; }
.page-head h1 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); }
.page-head p { color: var(--c-muted); margin-top: 6px; }
.listing-search { position: sticky; top: var(--header-h); z-index: 40; background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 14px 0; }
.listing-search .search-bar { box-shadow: none; border-radius: 12px; padding: 4px; }
.listing-search .search-bar .input, .listing-search .search-bar .select { height: 42px; }
.listing-search .search-bar .btn { height: 42px; }

.listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 0 64px; }
.filters { position: sticky; top: calc(var(--header-h) + 90px); max-height: calc(100vh - var(--header-h) - 110px); overflow-y: auto; padding: 4px 4px 4px 0; scrollbar-width: thin; }
.filters-card { padding: 6px 20px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.filter-head h2 { font-size: 15px; }
.link-btn { border: 0; background: none; padding: 4px 6px; margin: -4px -6px; font-size: 13.5px; font-weight: 600; color: var(--c-primary); border-radius: 6px; }
.link-btn:hover { color: var(--c-primary-700); text-decoration: underline; }
.filter-group { border-bottom: 1px solid var(--c-border); padding: 16px 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group > legend, .filter-group-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); margin-bottom: 8px; padding: 0; }
fieldset.filter-group { margin: 0; border-left: 0; border-right: 0; border-top: 0; min-width: 0; }
.filter-group .field + .field { margin-top: 10px; }
.filter-group .input { height: 40px; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head h2 { font-size: 18px; }
.results-head h2 span { color: var(--c-muted); font-weight: 500; }
.results-tools { display: flex; align-items: center; gap: 10px; }
.results-tools .select { height: 38px; width: auto; font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.results { display: flex; flex-direction: column; gap: 14px; }
.filter-toggle { display: none; }

.filters-mobile { display: none; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination button { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-border); background: var(--c-surface); font-weight: 600; font-size: 14px; color: var(--c-text-2); display: inline-flex; align-items: center; gap: 6px; }
.pagination button:hover:not([disabled]) { border-color: var(--c-border-strong); background: var(--c-surface-2); }
.pagination button[aria-current="page"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 10. Job details ---------- */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--c-muted); flex-wrap: wrap; list-style: none; margin-bottom: 18px; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .icon { width: 14px; height: 14px; color: var(--c-subtle); }
.detail-head { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 28px 0 30px; }
.detail-head-row { display: flex; gap: 20px; align-items: flex-start; }
.detail-head h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.detail-head .company-line { font-size: 16px; color: var(--c-text-2); font-weight: 550; margin-top: 6px; }
.detail-head .meta { margin-top: 14px; font-size: 14px; gap: 8px 18px; }
.detail-head .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.detail-actions .redirect-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 28px 0 64px; align-items: start; }
.prose { padding: 28px 30px; }
.prose section + section { margin-top: 30px; padding-top: 26px; border-top: 1px solid #f0f1f4; }
.prose h2 { font-size: 18px; margin-bottom: 12px; }
.prose p { color: var(--c-text-2); line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; color: var(--c-text-2); line-height: 1.6; }
.prose li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); opacity: .7; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.info-list { list-style: none; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.info-list .icon { color: var(--c-subtle); margin-top: 2px; }
.info-list dt, .info-list .k { font-size: 12.5px; color: var(--c-muted); }
.info-list .v { color: var(--c-text); font-weight: 550; word-break: break-word; }
.side h2 { font-size: 15px; margin-bottom: 16px; }
.apply-card { padding: 20px; }
.apply-card p { font-size: 13.5px; color: var(--c-muted); margin: 10px 0 14px; }

/* Mobile sticky apply bar */
.apply-bar { display: none; }

/* ---------- 11. Company pages ---------- */
.company-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.company-card h3 a { color: var(--c-text); }
.company-card h3 a::after { content: ""; position: absolute; inset: 0; }
.company-card h3 a:hover { color: var(--c-primary); }
.company-card .desc { font-size: 14px; color: var(--c-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.company-card .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #f0f1f4; font-size: 13.5px; }
.company-card .open { font-weight: 650; color: var(--c-primary); }
.company-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 32px 0; }
.company-hero-row { display: flex; gap: 22px; align-items: center; }
.company-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.fact { padding: 14px 16px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface-2); }
.fact .k { font-size: 12.5px; color: var(--c-muted); display: flex; align-items: center; gap: 6px; }
.fact .v { font-weight: 650; margin-top: 4px; font-size: 14.5px; word-break: break-word; }

/* ---------- 12. Saved jobs ---------- */
.saved-card { padding: 18px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.saved-card .actions { display: flex; gap: 8px; }
.saved-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- 13. Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--c-text); color: #e5e7eb; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 26px; max-width: 420px; }
.auth-side ul { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; color: #d1d5db; font-size: 14.5px; }
.auth-side li .icon { color: #6ee7b7; margin-top: 2px; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; background: var(--c-surface); }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 26px; }
.auth-form .sub { color: var(--c-muted); margin: 8px 0 28px; }
.auth-form form { display: grid; gap: 16px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--c-subtle); font-size: 13px; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--c-muted); border-radius: 8px; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--c-text); }
.form-error { font-size: 12.5px; color: var(--c-danger); display: none; }
.field.has-error .input { border-color: var(--c-danger); }
.field.has-error .form-error { display: block; }
.google-mark { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 10px; font-weight: 800; }

/* ---------- 14. States: empty / error / skeleton ---------- */
.state { text-align: center; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; }
.state-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--c-primary-50); color: var(--c-primary); display: grid; place-items: center; margin-bottom: 18px; }
.state-icon.error { background: var(--c-danger-bg); color: var(--c-danger); }
.state h3 { font-size: 18px; margin-bottom: 6px; }
.state p { color: var(--c-muted); max-width: 380px; margin-bottom: 20px; }
.state .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.skeleton { background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 37%, #eef0f3 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }
.sk-line { height: 12px; }
.sk-title { height: 16px; width: 55%; }
.sk-avatar { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.sk-btn { height: 34px; width: 90px; border-radius: 8px; }

/* ---------- 15. Toast ---------- */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--c-text); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toast-in .2s ease; pointer-events: auto; }
.toast .icon { color: #6ee7b7; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding: 44px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--c-text-2); font-size: 14px; }
.site-footer a:hover { color: var(--c-primary); }
.footer-about p { color: var(--c-muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--c-border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }

/* UI-states showcase page */
.demo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin-bottom: 10px; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1080px) {
  .listing { grid-template-columns: minmax(0, 1fr); }
  /* The same filter form becomes an off-canvas drawer (one form, no duplicate IDs) */
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(360px, 88vw); max-height: none;
    background: var(--c-surface); box-shadow: var(--shadow-lg); padding: 0; display: flex; flex-direction: column;
    transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility .22s;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters .filters-card { border: 0; box-shadow: none; border-radius: 0; flex: 1; overflow-y: auto; }
  .filters .filters-mobile { display: flex; }
  .filters .filter-head .link-btn.desktop-only { display: none; }
  .filter-toggle { display: inline-flex; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: 8px 9px; }
}

@media (max-width: 900px) {
  .nav, .header-actions { display: none; }
  .header-mobile { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 15px; padding-bottom: var(--bottom-nav-h); }
  body.has-apply-bar { padding-bottom: calc(var(--bottom-nav-h) + 76px); }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .bottom-nav { display: block; }
  .hero { padding: 32px 0 28px; }
  .hero .lead { font-size: 15.5px; margin-bottom: 20px; }
  .hero-stats { gap: 20px; margin-top: 24px; }

  .search-bar { grid-template-columns: 1fr; padding: 8px; gap: 6px; }
  .search-bar .seg + .seg::before { display: none; }
  .search-bar .seg .input, .search-bar .seg .select { background-color: var(--c-surface-2); border: 1px solid var(--c-border); }
  .search-bar .btn { margin-left: 0; width: 100%; }

  /* Listing: compact sticky search row */
  .listing-search { padding: 10px 0; }
  .listing-search .search-bar { grid-template-columns: 1fr auto; border: 0; padding: 0; gap: 8px; }
  .listing-search .search-bar .seg-location, .listing-search .search-bar .seg-mode { display: none; }
  .listing-search .search-bar .btn { width: auto; padding: 0 14px; }
  .listing-search .search-bar .btn .btn-text { display: none; }
  .listing { padding-top: 18px; }
  .results-head h2 { font-size: 16px; }

  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .job-card { padding: 16px; gap: 12px; }
  .job-card .avatar { width: 40px; height: 40px; font-size: 14px; border-radius: 10px; }
  .job-title { font-size: 15.5px; }
  .job-card-foot { flex-wrap: wrap; }
  .job-card-foot .right .btn-view { display: none; }
  .meta { gap: 4px 12px; font-size: 13px; }

  .cat-card { padding: 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .cat-card .arrow { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }

  .detail-head-row { flex-direction: column; gap: 14px; }
  .detail-head .avatar-lg { width: 56px; height: 56px; font-size: 19px; }
  .detail-actions .btn-apply-desktop { display: none; }
  .prose { padding: 20px; }
  .apply-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: var(--bottom-nav-h); z-index: 55;
    background: var(--c-surface); border-top: 1px solid var(--c-border); padding: 12px 16px;
    box-shadow: 0 -6px 16px -8px rgba(17, 24, 39, .12);
  }
  .apply-bar .btn-primary { flex: 1; }

  .company-hero-row { flex-direction: column; align-items: flex-start; }
  .saved-card { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .saved-card .actions { grid-column: 1 / -1; }
  .saved-card .actions .btn { flex: 1; }
  .toast-region { bottom: calc(var(--bottom-nav-h) + 16px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 400px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .job-card-foot .right .btn-text { display: none; }
}

.job-title a.no-stretch::after { display: none; }

/* ---------- 18. Refinements ---------- */
ol { margin: 0; padding: 0; }
.chips > .chips { display: contents; }
.hero .chips-label { width: auto; }
fieldset.filter-group > legend { float: left; width: 100%; }
fieldset.filter-group > legend + * { clear: both; }
@media (max-width: 1080px) { .filters .filter-head { display: none; } }
@media (max-width: 720px) { .saved-card { align-items: start; } }

/* ---------- 19. Gradient theme ---------- */
.btn-primary { background: var(--grad); border: 0; }
.btn-primary:hover { background: var(--grad-hover); }
.logo-mark { background: var(--grad); }
.nav-badge { background: var(--grad); }
.pagination button[aria-current="page"] { background: var(--grad); border-color: transparent; }
.switch input:checked + .track { background: var(--grad); }
.cat-icon, .state-icon:not(.error), .eyebrow { background: var(--grad-soft); }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero { background: radial-gradient(900px 320px at 85% -10%, #d1fae5 0%, transparent 60%), radial-gradient(700px 300px at 0% 110%, #cffafe 0%, transparent 55%), var(--c-surface); }
.cta-band { background: var(--grad); }
.cta-band p { color: #d1fae5; }
.cta-band .btn-primary { background: #fff; color: #065f46; }
.cta-band .btn-primary:hover { background: #ecfdf5; color: #065f46; }
.auth-side { background: linear-gradient(160deg, #064e3b 0%, #134e4a 55%, #164e63 100%); }

/* ---------- 20. Glazing shine on "opportunity" ---------- */
.text-grad {
  background-image:
    linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .85) 48%, rgba(255, 255, 255, .85) 52%, transparent 65%),
    var(--grad);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 150% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glaze 3.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(4, 120, 87, .18));
}
@keyframes glaze {
  0%, 35% { background-position: 150% 0, 0 0; }
  75%, 100% { background-position: -60% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) { .text-grad { animation: none; } }

/* ==========================================================================
   21. Violet gradient + glass theme
   Overrides the tokens above; delete this section to go back to emerald.
   ========================================================================== */
:root {
  --c-primary: #6d28d9;
  --c-primary-600: #5b21b6;
  --c-primary-700: #5b21b6;
  --c-primary-50: #f5f3ff;
  --c-primary-100: #ede9fe;
  --focus: 0 0 0 3px rgba(124, 58, 237, .35);

  /* violet -> fuchsia; white text stays WCAG AA at both ends */
  --grad: linear-gradient(135deg, #6d28d9 0%, #7c3aed 45%, #a21caf 100%);
  --grad-hover: linear-gradient(135deg, #5b21b6 0%, #6d28d9 45%, #86198f 100%);
  --grad-soft: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);

  /* glass surfaces */
  --glass-bg: rgba(255, 255, 255, .66);
  --glass-bg-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .7);
  --glass-shadow: 0 8px 32px -8px rgba(76, 29, 149, .18), inset 0 1px 0 rgba(255, 255, 255, .6);
  --glass-blur: saturate(160%) blur(16px);
}

/* Soft violet mesh behind everything so glass panels have something to frost */
body {
  background:
    radial-gradient(1100px 600px at 100% 0%, rgba(196, 181, 253, .45) 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(240, 171, 252, .28) 0%, transparent 60%),
    radial-gradient(900px 700px at 70% 100%, rgba(165, 180, 252, .30) 0%, transparent 60%),
    #f7f5fe;
  background-attachment: fixed;
}

/* Glass surfaces */
.card,
.site-header,
.listing-search,
.page-head,
.detail-head,
.company-hero,
.site-footer,
.bottom-nav {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.card { border-color: var(--glass-border); box-shadow: var(--glass-shadow); }
.card-link:hover { border-color: rgba(167, 139, 250, .7); box-shadow: 0 14px 40px -10px rgba(76, 29, 149, .28), inset 0 1px 0 rgba(255, 255, 255, .7); }
.site-header, .listing-search, .page-head, .detail-head, .company-hero, .site-footer, .bottom-nav { border-color: rgba(255, 255, 255, .6); }
.site-header { background: rgba(255, 255, 255, .6); }
.drawer, .filters.is-open { background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.fact { background: rgba(255, 255, 255, .55); border-color: var(--glass-border); }
.tag { background: rgba(237, 233, 254, .7); color: #4c1d95; }
.job-card-foot, .company-card .foot, .prose section + section { border-color: rgba(139, 92, 246, .14); }
.input, .select { background-color: rgba(255, 255, 255, .8); }
.btn-secondary, .save-btn, .chip, .pagination button { background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Hero: vivid violet glow + frosted search */
.hero {
  background:
    radial-gradient(700px 380px at 88% -5%, rgba(167, 139, 250, .55) 0%, transparent 65%),
    radial-gradient(520px 320px at 60% 110%, rgba(232, 121, 249, .35) 0%, transparent 65%),
    radial-gradient(600px 360px at -5% 20%, rgba(196, 181, 253, .45) 0%, transparent 60%),
    rgba(255, 255, 255, .35);
  border-bottom-color: rgba(255, 255, 255, .6);
}
.search-bar {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 16px 40px -12px rgba(76, 29, 149, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.listing-search .search-bar { box-shadow: 0 6px 20px -10px rgba(76, 29, 149, .25); }
.eyebrow { background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cat-icon, .state-icon:not(.error) { background: linear-gradient(135deg, rgba(237, 233, 254, .9), rgba(250, 232, 255, .9)); }

/* Buttons: gradient with a subtle glass sheen */
.btn-primary { box-shadow: 0 6px 18px -6px rgba(109, 40, 217, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }

/* Headline word: violet glaze */
.text-grad { filter: drop-shadow(0 2px 12px rgba(124, 58, 237, .25)); }

/* CTA band + auth panel */
.cta-band {
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(255, 255, 255, .22) 0%, transparent 70%),
    var(--grad);
  box-shadow: 0 20px 50px -18px rgba(109, 40, 217, .55);
  border: 1px solid rgba(255, 255, 255, .25);
}
.cta-band p { color: #ede9fe; }
.cta-band .btn-primary { background: rgba(255, 255, 255, .92); color: #5b21b6; box-shadow: none; }
.cta-band .btn-primary:hover { background: #fff; color: #4c1d95; }
.auth-side { background: radial-gradient(500px 300px at 100% 0%, rgba(232, 121, 249, .35), transparent 70%), linear-gradient(160deg, #2e1065 0%, #4c1d95 55%, #701a75 100%); }
.auth-side li .icon { color: #d8b4fe; }
.auth-main { background: transparent; }
.toast { background: rgba(30, 27, 75, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toast .icon { color: #c4b5fd; }

/* Browsers without backdrop-filter: fall back to near-solid surfaces for readability */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .site-header, .listing-search, .page-head, .detail-head, .company-hero, .site-footer, .bottom-nav, .search-bar, .drawer { background: rgba(255, 255, 255, .95); }
}

/* ---------- 22. Hero light pattern (dot grid + faint lines, faded at the edges) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(rgba(109, 40, 217, .22) 1.2px, transparent 1.3px),
    linear-gradient(rgba(109, 40, 217, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, .06) 1px, transparent 1px);
  background-size: 22px 22px, 88px 88px, 88px 88px;
  background-position: 0 0, -1px -1px, -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 70% 35%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 85% at 70% 35%, #000 25%, transparent 80%);
}
.hero > .container { position: relative; }
