/* ===== Q8Jobs ===== */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfcfe;          /* inputs, subtle fills */
  --subtle: #f1f3f8;             /* icon tiles, chips */
  --ink: #0b1b3a;                /* main text */
  --ink-2: #3b4a68;
  --muted: #6b7690;
  --line: #e5e8f0;
  --header-bg: rgba(255, 255, 255, .82);
  --navy: #0b1b3a;               /* always-dark surfaces: hero, footer */
  --navy-text: #c7d0e3;
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-soft: #d1fae5;
  --primary-ink: #065f46;
  --accent: #6366f1;
  --amber-soft: #fef3c7;  --amber-ink: #92400e;
  --red-soft: #fee2e2;    --red-ink: #991b1b;
  --indigo-soft: #e0e7ff; --indigo-ink: #3730a3;
  --gray-soft: #f1f5f9;   --gray-ink: #64748b;
  --featured-bg: #fffbeb;
  --featured-line: #fcd34d;
  --danger: #ef4444;
  --wa: #25d366;
  --tg: #229ed9;
  --bar-views: #10b981;
  --bar-applies: #6366f1;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 27, 58, .04), 0 8px 24px rgba(11, 27, 58, .06);
  --shadow-lg: 0 20px 50px rgba(11, 27, 58, .14);
}

/* Dark tokens: used when the visitor's device prefers dark (unless they chose light),
   or when they pick dark with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1020;
    --surface: #111a2e;
    --surface-2: #0d1526;
    --subtle: #1a2540;
    --ink: #e8edf7;
    --ink-2: #b4bfd6;
    --muted: #8591ad;
    --line: #22304d;
    --header-bg: rgba(10, 16, 32, .82);
    --navy: #070c19;
    --primary-soft: rgba(16, 185, 129, .16);
    --primary-ink: #6ee7b7;
    --amber-soft: rgba(245, 158, 11, .16);  --amber-ink: #fcd34d;
    --red-soft: rgba(239, 68, 68, .16);     --red-ink: #fca5a5;
    --indigo-soft: rgba(99, 102, 241, .2);  --indigo-ink: #c7d2fe;
    --gray-soft: rgba(148, 163, 184, .14);  --gray-ink: #a3b0c7;
    --featured-bg: rgba(245, 158, 11, .08);
    --featured-line: rgba(252, 211, 77, .45);
    --bar-views: #34d399;
    --bar-applies: #818cf8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1020;
  --surface: #111a2e;
  --surface-2: #0d1526;
  --subtle: #1a2540;
  --ink: #e8edf7;
  --ink-2: #b4bfd6;
  --muted: #8591ad;
  --line: #22304d;
  --header-bg: rgba(10, 16, 32, .82);
  --navy: #070c19;
  --primary-soft: rgba(16, 185, 129, .16);
  --primary-ink: #6ee7b7;
  --amber-soft: rgba(245, 158, 11, .16);  --amber-ink: #fcd34d;
  --red-soft: rgba(239, 68, 68, .16);     --red-ink: #fca5a5;
  --indigo-soft: rgba(99, 102, 241, .2);  --indigo-ink: #c7d2fe;
  --gray-soft: rgba(148, 163, 184, .14);  --gray-ink: #a3b0c7;
  --featured-bg: rgba(245, 158, 11, .08);
  --featured-line: rgba(252, 211, 77, .45);
  --bar-views: #34d399;
  --bar-applies: #818cf8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
code { background: var(--subtle); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow-wrap { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  background: var(--surface); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(16, 185, 129, .35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--ink); color: var(--surface); }
.btn-outline { border-color: var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn-telegram { background: var(--tg); color: #fff; box-shadow: 0 6px 18px rgba(34, 158, 217, .3); }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #0ea5e9); color: #fff; font-size: .95rem; letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(16, 185, 129, .35);
}
.brand .dot { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav-links > a:not(.btn):hover { color: var(--ink); }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 90px 0 100px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(16, 185, 129, .35), transparent 60%),
    radial-gradient(500px 400px at 85% 10%, rgba(99, 102, 241, .35), transparent 60%),
    radial-gradient(700px 400px at 60% 110%, rgba(14, 165, 233, .25), transparent 60%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; margin: 22px 0 16px; letter-spacing: -.035em; }
.grad { background: linear-gradient(90deg, #34d399, #38bdf8, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.15rem; color: var(--navy-text); max-width: 560px; margin: 0 auto 36px; }
.hero-channels { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; color: var(--navy-text); font-size: .92rem; }
.hero-ch {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); transition: background .15s;
}
.hero-ch.ch-whatsapp_channel:hover { background: var(--wa); border-color: var(--wa); }
.hero-ch.ch-telegram:hover { background: var(--tg); border-color: var(--tg); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.pill-glow { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #d1fae5; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.search-box {
  display: flex; gap: 8px; max-width: 760px; margin: 0 auto; padding: 8px;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); color: var(--ink);
}
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted); border-radius: 12px; }
.search-field.grow { flex: 1; }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field input, .search-field select {
  border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
  font: inherit; color: var(--ink); width: 100%; padding: 12px 0; font-size: 1rem;
}
.search-field select { cursor: pointer; min-width: 150px; }

/* ----- Sections ----- */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0 72px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: 1.75rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.count-badge { font-size: .9rem; background: var(--primary-soft); color: var(--primary-ink); padding: 2px 10px; border-radius: 999px; }
.section-gap { margin-top: 22px; }

/* ----- Categories ----- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: all .2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.cat-icon { font-size: 1.6rem; width: 48px; height: 48px; display: grid; place-items: center; background: var(--subtle); border-radius: 12px; margin-bottom: 8px; }
.cat-name { font-weight: 700; }
.cat-count { color: var(--muted); font-size: .88rem; }

/* ----- Filters ----- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select { width: auto; cursor: pointer; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 22px; }
.chip { background: var(--ink); color: var(--surface); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.chip span { opacity: .7; margin-left: 4px; }
.clear-link { font-size: .85rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.clear-link:hover { color: var(--ink); }

/* ----- Job cards ----- */
.job-list { display: grid; gap: 14px; }
.job-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .2s ease; position: relative;
}
.section-alt .job-card { background: var(--bg); }
.job-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); background: var(--surface); }
.job-card.featured, .section-alt .job-card.featured { border-color: var(--featured-line); background: linear-gradient(90deg, var(--featured-bg), var(--surface) 45%); }
.job-logo {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--primary));
}
.job-logo-lg { width: 76px; height: 76px; font-size: 1.5rem; border-radius: 18px; }
.job-main { flex: 1; min-width: 0; }
.job-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-top h3 { font-size: 1.12rem; margin: 0; }
.job-company { color: var(--ink-2); font-weight: 500; margin: 2px 0 8px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: var(--muted); font-size: .85rem; }
.job-arrow {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--subtle); color: var(--ink); font-weight: 700; transition: all .2s ease;
}
.job-card:hover .job-arrow { background: var(--primary); color: #fff; transform: translateX(3px); }

.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--subtle); color: var(--ink-2); }
.tag-featured { background: var(--amber-soft); color: var(--amber-ink); }
.tag-new { background: var(--primary-soft); color: var(--primary-ink); }
.tag-closed { background: var(--red-soft); color: var(--red-ink); }

/* ----- Empty / notices ----- */
.empty { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 2.6rem; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }
.notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.notice ul { margin: 0; padding-left: 18px; }
.notice-success { background: var(--primary-soft); color: var(--primary-ink); }
.notice-error { background: var(--red-soft); color: var(--red-ink); }
.notice-warn { background: var(--amber-soft); color: var(--amber-ink); }
.notice-muted { background: var(--subtle); color: var(--ink-2); }

/* ----- Pagination ----- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pagination a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; }
.pagination a.active, .pagination a:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ----- Steps ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--surface); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* ----- Channel call-to-action ----- */
.section-cta { padding: 56px 0 0; }
.section-alt + .section-cta { padding-top: 56px; }
.cta-card {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 38px 40px; border-radius: 22px; color: #fff;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(37, 211, 102, .35), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(99, 102, 241, .35), transparent 60%),
    var(--navy);
}
.cta-text { max-width: 560px; }
.cta-eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; color: #a7f3d0; margin-bottom: 10px; }
.cta-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 8px; }
.cta-card p { color: var(--navy-text); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----- Ads ----- */
.ad-wrap { margin-top: 28px; }
.ad-slot { display: block; text-align: center; position: relative; overflow: hidden; }
.ad-slot img { display: block; margin: 0 auto; border-radius: 12px; }
.ad-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ad-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 22px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .9rem;
  transition: border-color .15s, color .15s;
}
.ad-empty strong { color: var(--ink-2); font-size: 1rem; }
.ad-empty:hover { border-color: var(--primary); color: var(--ink-2); }
.ad-job { margin-top: 16px; }

/* ----- Job detail ----- */
.job-hero, .page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0 36px; }
.page-hero { padding: 48px 0 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.page-hero p { margin: 6px 0 0; }
.back-link { display: inline-block; color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 22px; }
.back-link:hover { color: var(--ink); }
.job-hero-inner { display: flex; align-items: center; gap: 22px; }
.job-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0 2px; }
.job-hero .job-company { font-size: 1.1rem; margin: 0; }
.job-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.job-aside { position: sticky; top: 88px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.job-body, .page-body { padding: 34px; }
.job-body h2, .page-body h2 { font-size: 1.2rem; margin-top: 30px; }
.job-body h2:first-child, .page-body h2:first-child { margin-top: 0; }
.lead { font-size: 1.12rem; color: var(--ink-2); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.prose { color: var(--ink-2); }
.prose h2 { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.prose li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.sticky { padding: 24px; }
.facts { margin: 0 0 22px; display: grid; gap: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.apply-buttons { display: grid; gap: 10px; }
.copy-btn { background: none; border: 0; font: inherit; color: var(--muted); font-size: .82rem; cursor: pointer; padding: 4px; word-break: break-all; }
.copy-btn:hover { color: var(--ink); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
.share span { color: var(--muted); margin-right: 4px; }
.share a, .share button {
  padding: 6px 12px; border-radius: 999px; background: var(--subtle); font: inherit; font-weight: 600; font-size: .82rem; border: 0; cursor: pointer; color: var(--ink-2);
}
.share a:hover, .share button:hover { background: var(--ink); color: var(--surface); }
.side-channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-top: 16px; transition: border-color .15s; }
.side-channel:hover { border-color: var(--wa); }
.side-channel strong { display: block; font-size: .95rem; }
.side-channel small { color: var(--muted); font-weight: 600; }

/* ----- Contact page ----- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.contact-card { display: flex; flex-direction: column; gap: 2px; padding: 22px; transition: all .2s ease; word-break: break-word; }
.contact-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.contact-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--subtle); color: var(--ink); margin-bottom: 10px; }
.side-channel .contact-icon { margin: 0; }
.contact-icon.wa, .contact-icon.ch-whatsapp_channel { background: var(--wa); color: #fff; }
.contact-icon.ch-telegram { background: var(--tg); color: #fff; }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #fff; padding: 56px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand p { max-width: 320px; }
.muted-light { color: #8e9ab5; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: .93rem; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8e9ab5; margin-bottom: 6px; }
.footer-col a { color: var(--navy-text); word-break: break-word; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; transition: background .15s; }
.social a:hover { background: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; }

/* ----- Toast ----- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .9rem;
  transition: all .25s ease; z-index: 100; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Forms (admin) ===== */
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
label small { font-weight: 500; color: var(--muted); }
input:not([type=checkbox]), select, textarea {
  font: inherit; font-size: .95rem; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); background: var(--surface); }
textarea { resize: vertical; line-height: 1.55; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.check-inline { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; align-self: end; padding-bottom: 12px; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ===== Admin ===== */
.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--navy); position: relative; padding: 20px; }
.login-card { position: relative; width: 100%; max-width: 400px; padding: 36px; display: grid; gap: 16px; }
.login-card h1 { font-size: 1.5rem; margin: 8px 0 0; }

.admin-header { background: var(--navy); border-bottom: 0; color: #fff; }
.admin-header .brand { color: #fff; }
.admin-header .theme-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: var(--navy-text); }
.admin-header-right { display: flex; align-items: center; gap: 10px; }
.admin-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a, .admin-nav .link-btn { padding: 7px 14px; border-radius: 9px; color: var(--navy-text); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.admin-nav a:hover, .admin-nav .link-btn:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.admin-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav form { margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 20px 22px; display: grid; gap: 2px; align-content: start; }
.stat span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.stat strong { font-size: 1.9rem; line-height: 1.25; }
.stat small { font-size: .78rem; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 12px; border: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.tabs a.active { background: var(--ink); color: var(--surface); }
.admin-search input { min-width: 240px; background: var(--surface); }
.table-wrap { overflow-x: auto; }
.table-title { font-size: 1.05rem; padding: 20px 18px 6px; margin: 0; }
.table-empty { padding: 0 18px 20px; margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: var(--surface-2); }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-title { font-weight: 700; }
a.row-title:hover { color: var(--primary); }
.actions { white-space: nowrap; text-align: right; }
.actions a, .actions .link-btn { margin-left: 12px; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.actions a:hover { color: var(--ink); text-decoration: underline; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-active { background: var(--primary-soft); color: var(--primary-ink); }
.status-draft { background: var(--indigo-soft); color: var(--indigo-ink); }
.status-closed, .status-expired { background: var(--gray-soft); color: var(--gray-ink); }

.edit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.edit-head h1 { margin: 0; font-size: 1.7rem; }
.edit-head-actions { display: flex; gap: 10px; }
.edit-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.edit-main, .edit-side { display: grid; gap: 22px; }
.edit-side { position: sticky; top: 130px; }
.settings-form { display: grid; gap: 22px; max-width: 820px; }
.settings-form > .btn { justify-self: start; }
.form-card { padding: 26px; display: grid; gap: 16px; }
.form-card h2 { font-size: 1.05rem; margin: 0; }
.form-card.narrow { max-width: 460px; }
.form-card h1 { font-size: 1.4rem; margin: 0; }
.form-card .edit-head { margin-bottom: 0; }
.hint { margin: -8px 0 0; color: var(--muted); font-size: .86rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ----- Statistics charts ----- */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.chart-card { padding: 22px 24px; }
.chart-card h2 { font-size: 1.05rem; margin-bottom: 18px; }
.chart { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 180px auto; column-gap: 10px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: .75rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.chart-bars {
  display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 50%; background-position: 0 0;
}
.chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; outline: none; cursor: default; }
.chart-bar { display: block; width: 100%; max-width: 22px; margin: 0 auto; border-radius: 4px 4px 0 0; transition: opacity .15s; }
.bar-views { background: var(--bar-views); }
.bar-applies { background: var(--bar-applies); }
.chart-bars:hover .chart-bar { opacity: .45; }
.chart-col:hover .chart-bar, .chart-col:focus .chart-bar { opacity: 1; }
.chart-col::before { content: ''; position: absolute; inset: 0; border-radius: 4px; }
.chart-col:hover::before, .chart-col:focus::before { background: var(--subtle); z-index: -1; }
.chart-col:hover::after, .chart-col:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--surface); font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  white-space: nowrap; pointer-events: none; z-index: 5; box-shadow: var(--shadow);
}
.chart-col:first-child:hover::after, .chart-col:first-child:focus::after { left: 0; transform: none; }
.chart-col:last-child:hover::after, .chart-col:last-child:focus::after { left: auto; right: 0; transform: none; }
.chart-x { grid-column: 2; display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); padding-top: 6px; }
.hbars { display: grid; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 120px 1fr 90px; align-items: center; gap: 14px; font-size: .92rem; }
.hbar-label { font-weight: 600; }
.hbar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hbar-track { display: block; height: 10px; background: var(--subtle); border-radius: 999px; overflow: hidden; min-width: 80px; }
.hbar-fill { display: block; height: 100%; background: var(--bar-views); border-radius: 999px; }
.bar-cell { width: 30%; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .job-layout, .edit-grid { grid-template-columns: 1fr; }
  .job-aside, .edit-side { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
}
@media (max-width: 680px) {
  .hero { padding: 60px 0 70px; }
  .search-box { flex-direction: column; padding: 10px; }
  .search-field { border: 1px solid var(--line); }
  .search-field + .search-field { border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-card { padding: 28px 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .job-card { padding: 16px; gap: 14px; align-items: flex-start; }
  .job-logo { width: 46px; height: 46px; font-size: .95rem; border-radius: 12px; }
  .job-side { display: none; }
  .job-body, .page-body { padding: 22px; }
  .job-hero-inner { align-items: flex-start; }
  .job-logo-lg { width: 58px; height: 58px; font-size: 1.15rem; }
  .nav-links { gap: 10px; font-size: .9rem; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .check-inline { padding-bottom: 0; }
  .admin-table:not(.data-table) thead { display: none; }
  .admin-table:not(.data-table) tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .admin-table:not(.data-table) td { border: 0; padding: 4px 12px; }
  .admin-table:not(.data-table) td:first-child { grid-column: 1 / -1; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .actions a, .actions .link-btn { margin: 0 12px 0 0; }
  .actions { text-align: left; white-space: normal; }
  .admin-search input { min-width: 0; width: 100%; }
  .admin-search { width: 100%; }
  .hbar-row { grid-template-columns: 90px 1fr 70px; gap: 10px; }
  .chart { grid-template-rows: 150px auto; }
}
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .brand { font-size: 1.15rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ----- Admin job preview ----- */
.preview-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 18px; border-radius: 12px;
  background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--featured-line);
}
.preview-bar strong { display: block; }
.preview-bar span { font-size: .9rem; }
.preview-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.preview-card { margin-bottom: 22px; pointer-events: none; }

/* ----- Expiry ----- */
.expiry-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.pick { font: inherit; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.pick:hover { border-color: var(--primary); color: var(--ink); }
.expiry-note:empty { display: none; }
.exp { font-size: .85rem; font-weight: 600; }
.exp-ok { color: var(--ink-2); }
.exp-soon { color: var(--amber-ink); }
.exp-past { color: var(--red-ink); }
.link-btn.relist { color: var(--primary-dark); }
