/* PostJob — design system + components (mobile-first). Breakpoints in responsive.css. */
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0b1a33;
  --ink-2: #3c4a62;
  --muted: #6b7890;
  --line: #e2e8f0;
  --line-2: #cfd8e3;
  --navy: #0b1a33;
  --navy-2: #12305f;
  --blue: #1a6ef5;
  --blue-dark: #0f56cc;
  --blue-soft: #eaf1ff;
  --green: #0f9d58;
  --green-dark: #0b7a44;
  --green-soft: #e4f6ec;
  --orange: #f57c00;
  --orange-soft: #fff3e6;
  --red: #d93025;
  --red-soft: #fdecea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(11, 26, 51, .05);
  --shadow: 0 1px 2px rgba(11, 26, 51, .04), 0 6px 18px rgba(11, 26, 51, .06);
  --shadow-lg: 0 12px 40px rgba(11, 26, 51, .14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.55; color: var(--ink);
  background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(26, 110, 245, .4); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.section { padding-block: 32px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; }
.brand-text small { font-size: .68rem; color: var(--muted); font-weight: 600; }
.brand-text small b { color: var(--blue); font-weight: 800; }
.main-nav { display: none; gap: 2px; margin-left: auto; align-items: center; }
.main-nav a { color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.header-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }

/* Mobile bottom nav */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(11,26,51,.05);
}
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; font-size: .7rem; font-weight: 700; color: var(--muted); }
.mobile-nav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mobile-nav a[aria-current="page"] { color: var(--blue); }
.mobile-nav a:hover { text-decoration: none; }
body.has-mobile-nav { padding-bottom: 64px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c4cfe0; margin-top: 48px; padding: 40px 0 22px; font-size: .9rem; }
.site-footer a { color: #c4cfe0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 26px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: #8394b0; margin-bottom: 4px; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .brand-text small { color: #8394b0; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #8394b0; font-size: .8rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent;
  border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer;
  text-decoration: none !important; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; min-height: 44px;
  white-space: nowrap; position: relative;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(26,110,245,.3), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover:not([disabled]) { background: var(--blue-dark); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(15,157,88,.3); }
.btn-green:hover:not([disabled]) { background: var(--green-dark); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: var(--blue-soft); color: var(--blue); }
.btn-ghost:hover { background: #dbe7ff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-danger { background: var(--surface); border-color: #f3c2bd; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 6px 12px; font-size: .84rem; min-height: 36px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; min-height: 52px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.loading { pointer-events: none; }
.btn.loading[disabled] { opacity: .9; }
.btn.loading::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-success { background: var(--green); color: #fff; opacity: 1 !important; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); font-weight: 700; cursor: pointer; }
.link-btn[disabled] { color: var(--muted); cursor: default; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-hiring { background: var(--blue-soft); color: var(--blue); }
.badge-work { background: var(--green-soft); color: var(--green-dark); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
a.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.chip-x { cursor: pointer; background: var(--blue-soft); border-color: #cfe0ff; color: var(--blue); }
.chip-x:hover { background: #dbe7ff; text-decoration: none; }
.chip-x b { font-size: 1rem; line-height: 1; }
.status { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }
.status-ACTIVE { background: var(--green-soft); color: var(--green-dark); }
.status-EXPIRED { background: #eef1f5; color: var(--muted); }
.status-CLOSED, .status-FILLED { background: var(--blue-soft); color: var(--blue); }
.status-REPORTED, .status-REMOVED { background: var(--red-soft); color: var(--red); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); padding: 18px; }
.grid { display: grid; gap: 14px; }

.listing-card { display: flex; flex-direction: column; gap: 12px; transition: box-shadow .18s, border-color .18s, transform .18s; position: relative; }
.listing-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-1px); }
.lc-head { display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; flex: none; letter-spacing: .02em; }
.avatar-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.15rem; }
.lc-title { margin: 0; font-size: 1.04rem; line-height: 1.3; }
.lc-title a { color: var(--ink); }
.lc-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.lc-title a:hover { text-decoration: none; color: var(--blue); }
.lc-poster { display: flex; align-items: center; gap: 5px; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.verified-ico { width: 15px; height: 15px; color: var(--green); flex: none; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: .86rem; }
.lc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lc-meta .ico { color: var(--muted); width: 15px; height: 15px; }
.lc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-salary { font-weight: 800; font-size: .98rem; color: var(--ink); }
.lc-salary small { font-weight: 600; color: var(--muted); }
.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.expiry { color: var(--orange); font-weight: 700; }
.expiry.soon { color: var(--red); }

/* Shimmer skeletons */
.sk { position: relative; overflow: hidden; background: #e9eef5; border-radius: 8px; }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { display: flex; flex-direction: column; gap: 12px; }
.sk-row { display: flex; gap: 12px; align-items: center; }
.sk-avatar { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.sk-line { height: 12px; }
.sk-line.lg { height: 16px; }
.w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-90 { width: 90%; }

.empty { text-align: center; padding: 40px 18px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-2); grid-column: 1 / -1; }
.empty h3 { margin-bottom: 6px; }
.empty-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin: 0 auto 12px; }
.empty-ico .ico { width: 24px; height: 24px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; }
.notice-warn { background: var(--orange-soft); color: #8a4500; }
.notice-info { background: var(--blue-soft); color: #0b3f99; }
.notice-error { background: var(--red-soft); color: #9e1c13; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.field label, .field-label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.field .req { color: var(--red); }
.hint { font-size: .8rem; color: var(--muted); margin: 0; }
input[type="text"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: #9aa6b8; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7890' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 110, 245, .12); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217, 48, 37, .08); }
.form-row { display: grid; gap: 0 14px; }
.form-error { color: #9e1c13; background: var(--red-soft); padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; margin: 0 0 12px; }
.char-count { font-size: .76rem; color: var(--muted); align-self: flex-end; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.form-section { padding: 18px 0; border-top: 1px solid var(--line); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; margin: 0 0 14px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; display: grid; place-items: center; flex: none; }

.phone-input { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.phone-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 110, 245, .12); }
.phone-prefix { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--surface-2); font-weight: 700; color: var(--ink-2); border-right: 1.5px solid var(--line); }
.phone-input input { border: 0; box-shadow: none !important; font-size: 1.15rem; letter-spacing: .06em; font-weight: 600; }
.otp-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 800; padding-left: .5em !important; }

/* Searchable select */
.combo-native { position: absolute !important; opacity: 0; pointer-events: none; height: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.combo { position: relative; }
.combo-input { padding-right: 36px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7890' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.combo-clear { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--muted); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.combo-list { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.combo-group { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 4px; }
.combo-opt { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .92rem; display: flex; justify-content: space-between; gap: 10px; }
.combo-opt small { color: var(--muted); font-size: .76rem; }
.combo-opt:hover, .combo-opt.active { background: var(--blue-soft); }
.combo-opt[aria-selected="true"] { font-weight: 700; color: var(--blue); }
.combo-empty { padding: 12px; color: var(--muted); font-size: .9rem; }

/* Type picker */
.type-picker { display: grid; gap: 12px; }
.type-option { position: relative; display: block; cursor: pointer; }
.type-option input { position: absolute; opacity: 0; }
.type-option .type-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.type-option:hover .type-card { border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.type-option .type-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.type-option .type-ico .ico { width: 22px; height: 22px; }
.type-option strong { display: block; font-size: 1.02rem; }
.type-option span.muted { font-size: .86rem; }
.type-option input:checked + .type-card { border-color: var(--blue); background: var(--blue-soft); }
.type-option.work input:checked + .type-card { border-color: var(--green); background: var(--green-soft); }
.type-option input:focus-visible + .type-card { outline: 3px solid rgba(26, 110, 245, .45); }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 36px 0 30px; background: radial-gradient(1200px 500px at 85% -20%, #2a5bd7 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 30%, transparent); pointer-events: none; }
.hero .container { position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #dbe6ff; margin-bottom: 14px; }
.hero-badge b { color: #fff; }
.hero h1 { font-size: 2rem; margin-bottom: 10px; color: #fff; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7fb0ff, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #c6d3ea; font-size: 1.02rem; max-width: 580px; }
.search-console { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; display: grid; gap: 10px; margin-top: 18px; }
.search-console .field { margin: 0; }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button, .seg a { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: 8px; color: var(--ink-2); cursor: pointer; text-decoration: none !important; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--surface); color: var(--blue); box-shadow: var(--shadow-xs); }
.cta-pair { display: grid; gap: 12px; margin-top: 18px; }
.cta-big { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; color: #fff; text-decoration: none !important; transition: transform .15s, box-shadow .15s; border: 1px solid rgba(255,255,255,.14); }
.cta-big:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cta-big strong { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; }
.cta-big span { font-size: .85rem; opacity: .9; }
.cta-big .arrow { margin-left: auto; font-size: 1.3rem; }
.cta-hire { background: var(--blue); }
.cta-work { background: var(--green); }
.cta-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.cta-ico .ico { width: 22px; height: 22px; }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin-top: 22px; }
.trust div { display: flex; gap: 10px; align-items: center; font-size: .86rem; color: #c6d3ea; }
.trust .ico { width: 18px; height: 18px; color: #6ee7b7; }
.trust b { color: #fff; }

.stats-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat-item { padding: 16px 8px; text-align: center; border-right: 1px solid var(--line); }
.stat-item:nth-child(2n) { border-right: 0; }
.stat-item b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.stat-item span { font-size: .8rem; color: var(--muted); font-weight: 600; }

.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--ink); font-weight: 700; font-size: .9rem; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-xs); text-decoration: none; color: var(--blue); }
.cat-tile .avatar { width: 34px; height: 34px; border-radius: 9px; font-size: .78rem; }
.group-list { display: grid; gap: 8px; }
.group-list a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.group-list a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.steps { display: grid; gap: 14px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 18px 18px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 800; display: grid; place-items: center; }
.step strong { display: block; margin-bottom: 2px; }
.free-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #dbe6ff; border-radius: 18px; padding: 26px; }
.free-band h2 { color: #fff; font-size: 1.45rem; }
.free-grid { display: grid; gap: 12px; margin: 16px 0 20px; }
.free-grid div { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.free-grid .ico { color: #6ee7b7; width: 20px; height: 20px; margin-top: 1px; }
.free-grid b { color: #fff; display: block; }
.powered { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: #9fb3d6; }
.powered b { color: #fff; }

/* ---------- Ads ---------- */
.ad-card { position: relative; display: grid; gap: 10px; background: linear-gradient(180deg, #fff, #fffaf3); border: 1px solid #f6d3a8; border-radius: var(--radius); padding: 30px 18px 18px; }
.ad-label { position: absolute; top: 10px; left: 18px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.ad-title { font-size: 1rem; }
.ad-body p { margin: 4px 0 0; color: var(--ink-2); font-size: .88rem; }
.ad-card .btn { justify-self: start; }
.ad-img { border-radius: 10px; max-height: 120px; object-fit: cover; }

/* ---------- Page header band ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0 16px; }
.page-head h1 { margin: 0; font-size: 1.45rem; }
.page-head p { margin: 4px 0 0; }
.page-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.crumbs { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.crumbs a { color: var(--ink-2); }

/* ---------- Search page ---------- */
.search-layout { display: grid; gap: 16px; padding-top: 18px; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary .count { background: var(--blue); color: #fff; border-radius: 999px; font-size: .72rem; padding: 2px 8px; margin-left: 6px; }
.filters summary::after { content: "▾"; color: var(--muted); }
.filters[open] summary, .filters details[open] summary { margin-bottom: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.results-count { font-weight: 700; color: var(--ink-2); margin: 0; font-size: .92rem; }
.results-count b { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.sort select { width: auto; min-height: 38px; padding: 6px 32px 6px 10px; font-size: .88rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 6px; }
.page-btn { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink-2); font-size: .9rem; }
.page-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.page-btn.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-gap { color: var(--muted); padding: 0 2px; }
.page-info { width: 100%; text-align: center; font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- Detail page ---------- */
.detail-layout { display: grid; gap: 16px; padding-top: 18px; }
.detail-head { display: flex; gap: 14px; align-items: flex-start; }
.detail-head h1 { font-size: 1.45rem; margin: 6px 0 4px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 18px 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { background: var(--surface-2); padding: 12px 14px; }
.facts dt { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 3px 0 0; font-weight: 700; }
.description { white-space: pre-wrap; word-wrap: break-word; color: var(--ink-2); }
.contact-card h2 { font-size: 1.02rem; }
.poster-box { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.poster-box small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.poster-box strong { font-size: 1rem; }
.verified { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 700; font-size: .84rem; }
.phone-reveal { font-size: 1.5rem; font-weight: 800; letter-spacing: .03em; margin: 6px 0 12px; }
.contact-actions { display: grid; gap: 8px; }
.safety { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

dialog { border: 0; border-radius: 16px; padding: 0; width: min(460px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(11, 26, 51, .5); backdrop-filter: blur(2px); }
.dialog-body { padding: 22px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.radio-list { display: grid; gap: 6px; margin-bottom: 12px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.radio-list label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.radio-list input { accent-color: var(--blue); width: 18px; height: 18px; }

/* ---------- Login ---------- */
.auth-wrap { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 32px 0; }
.auth-card { width: 100%; max-width: 420px; padding: 26px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.auth-ico .ico { width: 24px; height: 24px; }

/* ---------- Dashboard ---------- */
.dash-list { display: grid; gap: 12px; }
.dash-item { display: grid; gap: 12px; }
.dash-item .row1 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-item h3 { margin: 0; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; margin: 16px 0; scrollbar-width: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: .84rem; color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Admin ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td .btn { margin: 2px 4px 2px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat b { display: block; font-size: 1.5rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; }

/* ---------- Legal / prose ---------- */
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.prose h2 { margin-top: 1.6em; font-size: 1.12rem; }
.prose h2:first-of-type { margin-top: .4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: .85rem; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 16px 0; font-size: .9rem; }
.toc ol { margin: 6px 0 0; }

/* ---------- Toasts ---------- */
#toast-box { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; }
.toast-success { background: var(--green-dark); }
.toast-error { background: var(--red); }
.toast.hide { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
