:root {
  --bg: #faf9fc;
  --surface: #ffffff;
  --text: #1c1530;
  --muted: #6b6580;
  --border: #e8e4f0;
  --primary: #6d28d9;
  --primary-dark: #5b21b6;
  --primary-soft: #f1ebfd;
  --accent: #f59e0b;
  --success: #15803d;
  --success-soft: #e8f7ee;
  --error: #b91c1c;
  --error-soft: #fdecec;
  --info-soft: #eef4ff;
  --info: #1d4ed8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 21, 48, .04), 0 4px 16px rgba(28, 21, 48, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55; font-size: 16px;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; margin-top: 1.2em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.left { text-align: left; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xsmall { font-size: .75rem; }
.upper { text-transform: uppercase; letter-spacing: .06em; }
.prewrap { white-space: pre-wrap; }
.mt { margin-top: 16px; }
.pad-lg { padding: 32px !important; }
.pad-xl { padding: 64px 0; }
.inline { display: inline; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Nav */
.nav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); box-shadow: inset 0 0 0 5px var(--primary), inset 0 0 0 9px #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links > a, .link-btn { color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav-links > a:hover, .link-btn:hover { background: var(--primary-soft); text-decoration: none; }
.nav-links > a.active { color: var(--primary); background: var(--primary-soft); }
.nav-links > a.btn { color: #fff; margin-left: 4px; }
.link-btn { background: none; border: 0; cursor: pointer; font: inherit; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links > a.btn { margin: 4px 0 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; border: 1px solid var(--primary);
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; font-family: inherit;
  cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: #f4f2f8; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row, .head-actions, .form-actions, .hero-ctas { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Cards & layout */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
a.card { display: block; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-2px); }
.grid { display: grid; gap: 16px; }
.grid > .card { margin-bottom: 0; }
.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)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.center-head { justify-content: center; text-align: center; }
.section { margin: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; }
.back { display: inline-block; margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: 8px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0; }
.callout-accent { border-color: var(--primary); background: linear-gradient(0deg, var(--primary-soft), var(--surface)); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px 0 16px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.lead { font-size: 1.15rem; }
.hero-stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; }
.hero-card { transform: rotate(1.5deg); }
@media (max-width: 820px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-card { transform: none; } }
.steps { padding-left: 20px; margin: 0; }
.steps li { margin-bottom: 8px; }

/* Plans */
.plan { position: relative; display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; }
.plan-featured { border: 2px solid var(--primary); }
.plan-ribbon { position: absolute; top: -12px; right: 16px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 2rem; font-weight: 800; margin: 4px 0 8px; }
.price-inline { font-size: 1.3rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: .95rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form h3 { margin: 10px 0 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
textarea { resize: vertical; }
label.check { flex-direction: row; align-items: center; font-weight: 500; }
label.check input { width: auto; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; flex-direction: row; align-items: center; }
.inline-form input { flex: 1; min-width: 180px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; }
.filters input, .filters select { flex: 1 1 160px; width: auto; }
.auth { max-width: 440px; margin: 24px auto; padding: 32px; }
.auth.wide { max-width: 560px; }
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-option { position: relative; flex-direction: row; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; }
.role-option span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 2px solid var(--border); border-radius: 12px; width: 100%; font-weight: 500; }
.role-option input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.role-option input:focus-visible + span { outline: 2px solid var(--primary); }
[hidden] { display: none !important; }

/* Alerts & badges */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid transparent; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #c7ebd4; }
.alert-error { background: var(--error-soft); color: var(--error); border-color: #f6caca; }
.alert-info { background: var(--info-soft); color: var(--info); border-color: #d4e2ff; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eee; color: #444; white-space: nowrap; }
.badge-open, .badge-accepted, .badge-completed { background: var(--success-soft); color: var(--success); }
.badge-pending_payment, .badge-awaiting_approval, .badge-matched, .badge-shortlisted { background: #fff4de; color: #a15c00; }
.badge-consultation_requested, .badge-consultation_scheduled, .badge-in_progress, .badge-applied { background: var(--primary-soft); color: var(--primary); }
.badge-cancelled, .badge-rejected, .badge-declined, .badge-withdrawn { background: var(--error-soft); color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-block; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: #f4f2f8; color: var(--text); }

/* Jobs & influencers */
.job-card h3 { margin: 6px 0; }
.job-card-top { display: flex; justify-content: space-between; align-items: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.advert h3 { margin-top: 18px; }
.inf-card { display: flex; gap: 14px; align-items: center; }
.inf-card h3 { margin: 0; }
.inf-stats { margin-top: 4px; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), #db2777); color: #fff; font-weight: 800; font-size: 1.2rem; }
.avatar-lg { width: 80px; height: 80px; font-size: 2rem; }
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.profile-head h1 { margin: 0; }
.locked { text-align: center; color: var(--muted); }
.applicant { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.app-main { flex: 1; min-width: 0; }
.app-main p { margin: 6px 0; }
.applicant .btn-row { margin-top: 8px; }
.contact { margin-top: 6px; overflow-wrap: anywhere; }
.app-row { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.app-row h3 { margin: 4px 0 8px; }
.app-actions { display: flex; gap: 8px; }
.candidate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
@media (max-width: 600px) { .candidate { grid-template-columns: minmax(0, 1fr); } }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 12px; }

/* Stats */
.stats { margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 1.5rem; }
.bar { width: 100%; height: 6px; border: 0; border-radius: 4px; overflow: hidden; background: #eee; appearance: none; }
.bar::-webkit-progress-bar { background: #eee; }
.bar::-webkit-progress-value { background: var(--primary); }
.bar::-moz-progress-bar { background: var(--primary); }

/* Progress */
.progress { list-style: none; display: flex; padding: 0; margin: 0 0 20px; gap: 4px; overflow-x: auto; }
.progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .78rem; color: var(--muted); min-width: 84px; position: relative; }
.progress li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eee; font-weight: 700; color: var(--muted); z-index: 1; }
.progress li::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: #e5e5e5; }
.progress li:first-child::before { display: none; }
.progress li.done span { background: var(--primary); color: #fff; }
.progress li.done::before, .progress li.current::before { background: var(--primary); }
.progress li.current { color: var(--text); font-weight: 700; }
.progress li.current span { background: #fff; border: 2px solid var(--primary); color: var(--primary); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 12px 0 0; }
.timeline li { padding: 8px 0 8px 14px; border-left: 2px solid var(--border); }
.timeline li.internal { border-left-color: var(--accent); background: #fffaf0; }

/* Tables */
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fbfaff; }
.table tr:last-child td { border-bottom: 0; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-inner p { margin: 6px 0 0; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.verify-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.totp-setup { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.totp-setup img { border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.totp-key { font-size: .9rem; letter-spacing: .05em; background: #f4f2f8; padding: 6px 10px; border-radius: 6px; overflow-wrap: anywhere; }
.chip-warn { background: var(--error-soft); color: var(--error); }

/* ---- Data viz (validated palette: series 1/2 pass CVD + contrast checks on white) ---- */
:root { --series-1: #2a78d6; --series-2: #eb6834; --viz-grid: #ecebf2; --viz-axis: #d6d3e0; --viz-text: #52514e; --viz-text-strong: #1c1530; }
.viz-card h2 { margin-top: 0; }
.viz { width: 100%; height: auto; display: block; margin: 8px 0; overflow: visible; }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-axis { stroke: var(--viz-axis); stroke-width: 1; }
.viz-tick { fill: var(--viz-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.viz-label { fill: var(--viz-text-strong); font-size: 13px; }
.viz-value { fill: var(--viz-text-strong); font-size: 13px; font-weight: 600; }
.viz-note { fill: var(--viz-text); font-weight: 400; }
.viz-bar { fill: var(--series-1); }
.viz-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.viz-line.viz-s1 { stroke: var(--series-1); } .viz-line.viz-s2 { stroke: var(--series-2); }
.viz-dot { stroke: #fff; stroke-width: 2; pointer-events: none; }
.viz-dot.viz-s1 { fill: var(--series-1); } .viz-dot.viz-s2 { fill: var(--series-2); }
.viz-hit { fill: transparent; cursor: crosshair; outline: none; }
.viz-crosshair { stroke: var(--viz-axis); stroke-width: 1; opacity: 0; pointer-events: none; }
.viz-hover:hover .viz-crosshair, .viz-hover:focus-within .viz-crosshair { opacity: 1; }
.viz-hit:hover + .viz-bar, .viz-hit:focus-visible { stroke: none; }
.viz-legend { display: flex; gap: 16px; color: var(--muted); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.swatch.viz-s1 { background: var(--series-1); } .swatch.viz-s2 { background: var(--series-2); }
.viz-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--text); color: #fff; font-size: .8rem; padding: 6px 10px; border-radius: 8px; white-space: pre-line; box-shadow: var(--shadow); max-width: 260px; }
.delta { font-size: .8rem; }
.delta-up { color: var(--success); } .delta-down { color: var(--error); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pad-h { padding: 16px 16px 0; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg a { padding: 8px 14px; color: var(--text); font-size: .9rem; }
.seg a + a { border-left: 1px solid var(--border); }
.seg a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.seg a:hover { text-decoration: none; background: #f4f2f8; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
.btn-danger:hover { background: #991b1b; }
details.danger { border-color: #f6caca; }
details.danger summary { color: var(--error); }
.pay-form { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.promo summary { color: var(--muted); }
.promo-input { margin-top: 6px; max-width: 200px; text-transform: uppercase; }
.job-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.badge-featured { background: #fff4de; color: #a15c00; }
.stars { color: #b45309; letter-spacing: 1px; white-space: nowrap; }
.review { border-top: 1px solid var(--border); padding: 12px 0; }
.review:first-child { border-top: 0; }
.money-input { display: flex; align-items: center; gap: 6px; }
.money-input input { flex: 1; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.footer .small a { color: inherit; }
