/* ============================================================
   FAMASA — Facilitators, Assessors & Moderators of South Africa
   Design language: clean white, blue accent
   (styled after the Regular Binary storefront, in blue)
   ============================================================ */

:root {
  --page:       #FFFFFF;
  --surface:    #F8FAFB;
  --surface-2:  #F1F5F9;
  --ink:        #0F1B2D;
  --ink2:       #64748B;
  --ink3:       #94A3B8;
  --border:     #E2E8F0;
  --accent:     #1D5FC2;
  --accent-dark:#164A99;
  --accent-soft:#EFF5FE;
  --gold:       #F5A623;
  --green:      #22C55E;
  --green-dark: #15803D;
  --red:        #EF4444;
  --red-dark:   #B91C1C;
  --navy-900:   #0F1B2D;
  --white:      #FFFFFF;
  --radius:     14px;
  --radius-sm:  10px;
  --radius-xs:  4px;
  --shadow-sm:  0 1px 3px rgba(15,27,45,.04), 0 1px 2px rgba(15,27,45,.03);
  --shadow:     0 2px 8px rgba(15,27,45,.08), 0 1px 3px rgba(15,27,45,.06);
  --shadow-lift:0 10px 24px rgba(15,27,45,.12), 0 3px 8px rgba(15,27,45,.08);
  --font-display: "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --maxw: 1152px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display); line-height: 1.15; color: var(--ink);
  letter-spacing: -0.01em; text-transform: capitalize;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0; }

/* Justified body copy; centered blocks override below */
p { text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }
.center p, p.center { text-align: center; text-align-last: center; hyphens: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 64px 0; }
.section.tint { background: var(--surface); }
.section.dark { background: var(--surface); }
.section.dark h2, .section.dark h3 { color: var(--ink); }
.section.dark p { color: var(--ink2); }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-head p { color: var(--ink2); margin-top: 10px; font-size: .95rem; }

/* ---------- Buttons (RB style: small caps, tight radius) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 22px; border-radius: var(--radius-xs); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white) !important; box-shadow: 0 8px 20px rgba(29,95,194,.25); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: var(--white) !important; }
.btn-dark:hover { background: #1E2C42; }
.btn-outline { background: var(--white); color: var(--accent) !important; border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-light { background: var(--white); color: var(--accent) !important; border-color: var(--accent); }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost-light { background: transparent; color: var(--ink) !important; }
.btn-ghost-light:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Nav (white, sticky, centered links) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15,27,45,.06), 0 6px 18px rgba(15,27,45,.08);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-name {
  font-family: "Heebo", var(--font-body); font-weight: 800; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .22em; color: var(--accent);
}
.brand-name span { color: inherit; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  position: relative; padding: 10px 12px; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-radius: var(--radius-xs);
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0);
  transform-origin: left; transition: transform .22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; border-radius: 50%; width: 42px; height: 42px; }
.nav-toggle:hover { background: var(--surface-2); }

/* ---------- Hero (white, centered, blobs + dotted grid) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--white);
  box-shadow: inset 0 -16px 24px -16px rgba(15,27,45,.14);
}
.hero-blob { position: absolute; border-radius: 9999px; filter: blur(70px); pointer-events: none; }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-25px) scale(1.08); } }
@keyframes blobFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-25px,20px) scale(1.05); } }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15,27,45,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 760px; margin: 0 auto;
  padding: 48px 24px 56px; text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid rgba(29,95,194,.35); box-shadow: var(--shadow-sm);
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { color: var(--ink); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead {
  color: var(--ink2); font-size: .98rem; margin: 0 auto 26px; max-width: 540px;
  text-align: center; text-align-last: center; hyphens: none;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 10px 22px; margin-top: 30px; flex-wrap: wrap;
  justify-content: center; align-items: baseline; font-size: 12px; color: var(--ink2);
}
.hero-stat b { font-family: var(--font-display); font-size: .95rem; color: var(--ink); margin-right: 5px; }
.hero-stat span { font-size: .74rem; }
.hero-stats .sep { opacity: .4; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-in > * { animation: heroIn .7s ease-out both; }
.hero-in > *:nth-child(1) { animation-delay: .05s; }
.hero-in > *:nth-child(2) { animation-delay: .15s; }
.hero-in > *:nth-child(3) { animation-delay: .25s; }
.hero-in > *:nth-child(4) { animation-delay: .35s; }
.hero-in > *:nth-child(5) { animation-delay: .45s; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Elements already on screen at load appear instantly (no entrance animation) */
.reveal.is-visible.instant, .reveal-stagger.is-visible.instant > * { transition: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .55s ease-out, transform .55s ease-out; }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-in > * { animation: none !important; }
  .hero-blob { animation: none !important; }
}

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgba(15,27,45,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(29,95,194,.35); box-shadow: 0 14px 30px rgba(15,27,45,.12), 0 4px 10px rgba(15,27,45,.06); }
.card .icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--white); font-size: 1.15rem; margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink2); font-size: .88rem; }

/* ---------- Credit rules list (home, Credits & Fair Play) ---------- */
.rules-card {
  max-width: 620px; margin: 32px auto 0; background: var(--white);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,27,45,.06);
}
.rules-head {
  padding: 14px 20px; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink2); background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.rule-row { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--border); }
.rule-row:first-of-type { border-top: 0; }
.rule-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; flex: none; }
.ic-red { background: #FEECEC; color: #DC2626; }
.rule-label { flex: 1; font-size: .92rem; font-weight: 500; color: var(--ink); }
.rule-effect {
  flex: none; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.rule-effect .fa-solid { font-size: .68rem; }
.rule-effect.pos { color: var(--green-dark); background: #F0FDF4; }
.rule-effect.spend { color: #B45309; background: #FEF6E7; }
.rule-effect.bad { color: var(--red-dark); background: #FEF2F2; }
.rule-effect.free { color: var(--accent); background: var(--accent-soft); }

/* Guide page (how-credits-work) */
.guide-steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: g; }
.guide-steps li { position: relative; padding: 0 0 14px 40px; color: var(--ink2); font-size: .9rem; line-height: 1.6; }
.guide-steps li:last-child { padding-bottom: 0; }
.guide-steps li::before {
  counter-increment: g; content: counter(g); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: .8rem; display: grid; place-items: center; font-family: var(--font-display);
}
.guide-steps li b { color: var(--ink); }
.guide-callout {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: .88rem; line-height: 1.6;
  background: #FEF2F2; border: 1px solid #FECACA; color: var(--red-dark);
}
.guide-callout.danger > .fa-solid { color: var(--red); font-size: 1.1rem; margin-top: 2px; flex: none; }
.guide-callout b { color: var(--red-dark); }

/* Course-pricing cost split bars */
.split-list { display: flex; flex-direction: column; gap: 10px; }
.split-row { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 12px; }
.split-label { font-size: .84rem; color: var(--ink2); }
.split-track { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.split-bar { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2E76E8, #1D5FC2); }
.split-bar.is-margin { background: linear-gradient(90deg, #22B364, #15803D); }
.split-amount { font-size: .84rem; font-weight: 700; color: var(--ink); min-width: 64px; text-align: right; }
@media (max-width: 560px) { .split-row { grid-template-columns: 110px 1fr auto; } .split-label { font-size: .78rem; } }

/* ---------- Steps (circle icons, centered) ---------- */
.steps { text-align: center; }
.step { border: 0; background: transparent; box-shadow: none; padding: 0 14px; }
.step:hover { transform: none; box-shadow: none; }
.step .step-icon {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--accent); color: var(--white); display: grid; place-items: center; font-size: 1.45rem;
}
.step-num {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent); margin-bottom: 8px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink2); font-size: .88rem; text-align: center; text-align-last: center; hyphens: none; }

/* ---------- Avatars ---------- */
.avatar {
  border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  width: 52px; height: 52px; font-size: 1.05rem; letter-spacing: .5px;
  background: linear-gradient(135deg, #2E76E8, #164A99);
  box-shadow: 0 4px 10px rgba(29,95,194,.25); overflow: hidden;
}
.avatar.lg { width: 68px; height: 68px; font-size: 1.35rem; }
.avatar.sm { width: 40px; height: 40px; font-size: .82rem; box-shadow: 0 2px 6px rgba(15,27,45,.18); }
.avatar.xl { width: 88px; height: 88px; font-size: 1.9rem; }
/* colourful but harmonious avatar palette (assigned by id) */
.av-c0 { background: linear-gradient(135deg, #2E76E8, #164A99); box-shadow: 0 4px 10px rgba(29,95,194,.28); }
.av-c1 { background: linear-gradient(135deg, #10B4C4, #0E7C90); box-shadow: 0 4px 10px rgba(16,180,196,.28); }
.av-c2 { background: linear-gradient(135deg, #7C5CFC, #5B3FD1); box-shadow: 0 4px 10px rgba(124,92,252,.28); }
.av-c3 { background: linear-gradient(135deg, #F0A020, #D97706); box-shadow: 0 4px 10px rgba(240,160,32,.28); }
.av-c4 { background: linear-gradient(135deg, #EC4899, #BE185D); box-shadow: 0 4px 10px rgba(236,72,153,.26); }
.av-c5 { background: linear-gradient(135deg, #22B364, #15803D); box-shadow: 0 4px 10px rgba(34,179,100,.26); }

/* Stretched-link cards (whole card clickable) */
.link-card { position: relative; }
.link-card .stretch { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

.person-card { display: flex; flex-direction: column; }
.person-top { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
.person-id { flex: 1; min-width: 0; }
.person-top h3 { font-size: 1.02rem; margin: 0; line-height: 1.25; display: flex; align-items: center; gap: 6px; }
.vtick { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; flex: none; }
.person-top .role { font-size: .74rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.person-loc { font-size: .78rem; color: var(--ink2); margin-top: 2px; }
.person-loc .fa-location-dot { color: var(--ink3); font-size: .72rem; }
.person-bio { color: var(--ink2); font-size: .86rem; line-height: 1.55; margin: 0 0 14px; }
.person-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.person-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }

/* rating score badge (top-right of a person card) */
.score-pill {
  flex: none; text-align: center; min-width: 52px; padding: 6px 10px; border-radius: 12px;
  background: linear-gradient(135deg, #EFF5FE, #DBE9FD); border: 1px solid rgba(29,95,194,.18);
}
.score-pill b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--accent); line-height: 1; }
.score-pill .scount { display: block; font-size: .64rem; color: var(--ink2); margin-top: 2px; }
.score-pill .scount .fa-star { color: var(--gold); font-size: .58rem; }
.score-pill.is-new { background: var(--surface-2); border-color: var(--border); }
.score-pill.is-new b { font-size: .82rem; color: var(--ink2); padding-top: 3px; }

/* "Top rated" ribbon */
.top-ribbon {
  position: absolute; top: 14px; right: -6px; z-index: 3;
  background: linear-gradient(135deg, #F5A623, #D97706); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px 4px 10px; border-radius: 4px 0 0 4px; box-shadow: 0 4px 10px rgba(217,119,6,.35);
}
.top-ribbon::after { content: ""; position: absolute; right: 0; bottom: -5px; border: 3px solid #B45309; border-right-color: transparent; border-bottom-color: transparent; }

/* ---------- Chips ---------- */
.chip {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 11px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink2);
  text-transform: capitalize; letter-spacing: .02em; border: 1px solid transparent;
}
.chip.more { background: transparent; border-color: var(--border); color: var(--ink2); }
.chip.navy, .chip.blue { background: var(--accent-soft); color: var(--accent); }
.chip.gold { background: #FDF3DF; color: #9A6A0D; }
.chip.green { background: #F0FDF4; color: var(--green-dark); }
.chip.red { background: #FEF2F2; color: var(--red-dark); }
.chip.grey { background: var(--surface-2); color: var(--ink2); }

.badge-verified { color: var(--green-dark); font-size: .8rem; font-weight: 600; }

/* ---------- Stars & ratings ---------- */
.stars { white-space: nowrap; display: inline-flex; gap: 2px; font-size: .8rem; }
.stars i { color: var(--gold); }
.stars i.fa-regular { color: var(--border); }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink2); }
.rating-line b { color: var(--ink); }

.credits-pill {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700;
  font-size: .8rem; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(29,95,194,.25);
  padding: 5px 13px; border-radius: 999px;
}
.credits-pill::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f51e"; font-size: .72rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
table.data th {
  text-align: left; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink2); padding: 13px 18px;
  background: var(--surface); border-bottom: 1px solid var(--border); font-weight: 600;
}
table.data td { padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--surface); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 14px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); outline: none; transition: border .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink3); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,95,194,.15);
}
.field .hint { font-size: .74rem; color: var(--ink2); }

/* Role picker (multi-select: Facilitator / Assessor / Moderator) */
.role-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.role-opt {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: .85rem; font-weight: 500; background: var(--white);
  text-transform: none; flex: 1; min-width: 120px; transition: border .15s, background .15s;
}
.role-opt:hover { border-color: var(--accent); }
.role-opt input { width: auto; accent-color: var(--accent); }
.role-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Searchable field picker (large fields-of-expertise list) */
.field-picker-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; background: var(--white); }
.field-search { width: 100%; margin-bottom: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-body); outline: none; }
.field-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,95,194,.15); }
.field-picker { max-height: 234px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 2px; }
.field-opt { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: .82rem; text-transform: none; color: var(--ink); }
.field-opt input { width: auto; }
.field-picker-none { font-size: .82rem; color: var(--ink2); padding: 8px 2px 2px; }
.linkish { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
@media (max-width: 640px) { .field-picker { grid-template-columns: 1fr; } }

/* ---------- SSO (social sign-in) ---------- */
.sso { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.sso-btn { width: 100%; justify-content: center; gap: 10px; text-transform: none; letter-spacing: .01em; font-size: 13px; }
.sso-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; font-weight: 800; font-size: 12px; color: #fff; }
.sso-google { background: #EA4335; }
.sso-microsoft { background: #2F2F2F; }
.sso-divider { display: flex; align-items: center; text-align: center; color: var(--ink3); font-size: 12px; margin: 6px 0 2px; }
.sso-divider::before, .sso-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sso-divider span { padding: 0 12px; text-transform: uppercase; letter-spacing: .1em; }

.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: var(--radius-xs); width: fit-content; margin-bottom: 28px; }
.tab {
  border: 0; background: transparent; padding: 9px 20px; border-radius: var(--radius-xs);
  font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink2); cursor: pointer; transition: all .15s; font-family: var(--font-body);
}
.tab.active { background: var(--accent); color: var(--white); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.filter-bar select, .filter-bar input {
  font-family: var(--font-body); font-size: 13px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; background: var(--white);
}
.filter-bar input { flex: 1; min-width: 180px; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,95,194,.15); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--white); padding: 44px 0 26px; }
.page-hero h1 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-hero p { color: var(--ink2); margin-top: 8px; max-width: 640px; font-size: .92rem; }

/* ---------- Job cards ---------- */
.job-card { display: flex; flex-direction: column; }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.job-head-main { min-width: 0; }
.job-head-main .chip { margin-bottom: 8px; }
.job-head h3 { font-size: 1rem; line-height: 1.3; }
.job-head h3 a { color: var(--ink); }
.job-head h3 a:hover { color: var(--accent); }
.job-fee-tag {
  flex: none; text-align: right; padding: 8px 12px; border-radius: 12px;
  background: linear-gradient(135deg, #EFF5FE, #DBE9FD); border: 1px solid rgba(29,95,194,.18);
}
.job-fee-tag b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--accent); line-height: 1.1; white-space: nowrap; }
.job-fee-tag span { font-size: .66rem; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.job-company { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink); text-decoration: none; }
.job-company:hover .job-company-name { color: var(--accent); }
.job-company-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job-company-name { font-size: .88rem; font-weight: 600; }
.job-company-rating { font-size: .76rem; color: var(--ink2); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.job-desc { font-size: .86rem; color: var(--ink2); line-height: 1.55; margin-bottom: 16px; }
.job-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.job-applicants { font-size: .8rem; color: var(--ink2); }
.job-applicants .fa-user { color: var(--ink3); font-size: .74rem; margin-right: 2px; }
.job-fee { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }

/* ---------- Profile & detail pages ---------- */
.profile-hero { background: var(--white); padding: 26px 0 30px; border-bottom: 1px solid var(--border); }
.back-link { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--ink2); margin-bottom: 16px; }
.back-link:hover { color: var(--accent); }
.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar.xl { width: 84px; height: 84px; font-size: 1.7rem; }
.profile-id { flex: 1; min-width: 220px; }
.profile-id h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.profile-sub { font-size: .82rem; color: var(--ink2); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.profile-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.profile-grid aside .panel { position: sticky; }
.review { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.apply-box { text-align: center; }
.apply-box .job-fee { color: var(--accent); }
.legal .panel h3 { margin-top: 22px; }
.legal .panel h3:first-child { margin-top: 0; }
.legal .panel p { color: var(--ink2); font-size: .9rem; margin-bottom: 8px; }
@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-actions { flex-direction: row; align-items: center; }
}

/* ---------- Admin bar ---------- */
.admin-bar { background: var(--ink); color: #fff; position: sticky; top: 68px; z-index: 40; box-shadow: var(--shadow); }
.admin-bar-inner { display: flex; align-items: center; gap: 18px; height: 48px; }
.admin-brand { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.admin-links { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.admin-links a { color: #CBD5E1; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--radius-xs); }
.admin-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-links a.on { color: #fff; background: var(--accent); }
.admin-bar-inner > a.small { color: #A7F3D0; white-space: nowrap; }
@media (max-width: 640px) {
  .admin-bar { position: static; }
  .admin-bar-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
}

/* ---------- Admin dashboard ---------- */
.admin-page { background: var(--surface); min-height: 78vh; padding: 26px 0 48px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-size: 1.7rem; margin: 0; }
.admin-head p { margin-top: 4px; }

.kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(15,27,45,.04);
  display: flex; flex-direction: column; gap: 12px; transition: transform .18s, box-shadow .18s;
}
.kpi:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15,27,45,.1); }
.kpi-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.ic-blue { background: #EFF5FE; color: #1D5FC2; } .ic-indigo { background: #EEEBFE; color: #7C5CFC; } .ic-teal { background: #E1FAFC; color: #0E7C90; }
.ic-amber { background: #FEF3E2; color: #D97706; } .ic-gold { background: #FDF6DF; color: #CA9A04; } .ic-pink { background: #FCE9F3; color: #BE185D; }
.kpi-val { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.kpi-lbl { font-size: .74rem; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.kpi-sub { font-size: .74rem; color: var(--ink3); }
.kpi-sub.link { color: var(--accent); font-weight: 600; }
.kpi.kpi-alert { border-color: rgba(29,95,194,.4); box-shadow: 0 0 0 3px rgba(29,95,194,.08); }

.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-row .wide { grid-column: span 1; }
@media (min-width: 900px) {
  .chart-row { grid-template-columns: 2fr 1fr; }
}
.chart-card { margin-bottom: 0; }
.chart-empty { height: 200px; display: grid; place-items: center; color: var(--ink3); font-size: .9rem; }

/* CSS bar chart */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 210px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar {
  width: 60%; max-width: 46px; min-height: 3px; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #2E76E8, #1D5FC2); position: relative;
  display: flex; justify-content: center;
  animation: barGrow .5s ease-out;
}
.bar span { position: absolute; top: -20px; font-size: .72rem; font-weight: 700; color: var(--ink); }
.bar-lbl { margin-top: 8px; font-size: .72rem; color: var(--ink2); font-weight: 600; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar { transform-origin: bottom; }

/* CSS doughnut */
.donut-wrap { display: flex; align-items: center; gap: 22px; padding: 8px 0; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.donut-hole { width: 96px; height: 96px; border-radius: 50%; background: var(--white); display: grid; place-items: center; text-align: center; box-shadow: inset 0 0 0 1px var(--border); }
.donut-hole b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); line-height: 1; }
.donut-hole span { font-size: .68rem; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.donut-legend { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 8px; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink2); }
.legend-row b { margin-left: auto; color: var(--ink); }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }

.mini-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.mini-row:last-child { border-bottom: 0; }
.mini-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); margin-top: 6px; flex: none; }
.mini-dot.on { background: var(--accent); box-shadow: 0 0 0 3px rgba(29,95,194,.15); }

@media (max-width: 900px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.dash-side { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
.dash-side .avatar { margin-bottom: 12px; }
.dash-side hr { border: 0; border-top: 1px solid var(--border); margin: 15px 0; }
.stat-row { display: flex; justify-content: space-between; font-size: .84rem; padding: 6px 0; color: var(--ink2); }
.stat-row b { color: var(--ink); }

.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.panel h3 { margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }

.metric-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.metric b { display: block; font-family: var(--font-display); font-size: 1.55rem; color: var(--ink); }
.metric span { font-size: .76rem; color: var(--ink2); }
.metric.blue { background: var(--accent); border-color: var(--accent); }
.metric.blue b { color: var(--white); }
.metric.blue span { color: rgba(255,255,255,.75); }

/* ---------- Notices ---------- */
.notice { border-radius: var(--radius-sm); padding: 12px 16px; font-size: .86rem; margin-bottom: 18px; border: 1px solid; }
.notice.info { background: #F0F9FF; border-color: #BAE6FD; color: #075985; }
.notice.warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.notice.danger { background: #FEF2F2; border-color: #FECACA; color: var(--red-dark); }
.notice.success { background: #F0FDF4; border-color: #BBF7D0; color: var(--green-dark); }

/* ---------- Trust bar ---------- */
.trust-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.trust-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--white); border-radius: 6px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); padding: 18px 20px; cursor: pointer; margin-bottom: 12px;
}
.faq-item summary { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .9rem; list-style: none; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f078"; color: var(--accent); font-size: .8rem; transition: transform .2s; margin-left: 14px; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { font-size: .86rem; color: var(--ink2); margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--ink); padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--ink); max-width: 560px; }
.cta-band p { color: var(--ink2); margin-top: 8px; font-size: .92rem; }

/* ---------- Footer (dark slate) ---------- */
footer { background: #2D3748; color: #E2E8F0; padding: 0; margin-top: 72px; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 46px 24px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand .brand-name { color: #FFFFFF; display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: #94A3B8; font-size: .84rem; max-width: 320px; text-align: left; }
.footer-brand .skivo-note { display: inline-block; margin-top: 12px; font-size: .78rem; color: #94A3B8; }
.footer-col h4 {
  color: #FFFFFF; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px;
}
.footer-col a { display: block; color: #CBD5E1; font-size: .86rem; padding: 5px 0; }
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px; font-size: 12px; color: #94A3B8;
  display: flex; justify-content: space-between; gap: 8px 22px; flex-wrap: wrap; text-align: center;
}
footer a { color: #A7F3D0; }
.skivo-link { color: #6EE7B7; font-weight: 600; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: center; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white); padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: .86rem; box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none;
  transition: all .25s ease; z-index: 100; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,27,45,.55); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  max-width: 520px; width: 100%; box-shadow: var(--shadow-lift); max-height: 88vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 6px; }
.modal .sub { color: var(--ink2); font-size: .84rem; margin-bottom: 18px; }
.star-input { display: flex; gap: 8px; font-size: 1.9rem; cursor: pointer; color: var(--border); margin: 8px 0 18px; }
.star-input span.on { color: var(--gold); }

/* ---------- Misc ---------- */
.muted { color: var(--ink2); }
.small { font-size: .84rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--ink2); }
.empty-state .big { font-size: 2.4rem; margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}
.nav-mobile { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile:not([hidden]) {
    display: flex; flex-direction: column; padding: 12px 24px 18px; gap: 2px;
    border-top: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow);
  }
  .nav-mobile a {
    padding: 11px 4px; font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .09em; color: var(--ink); border-bottom: 1px solid var(--surface-2);
  }
  .nav-mobile a:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .nav-cta .btn-ghost-light { display: none; }
  .nav-cta .credits-pill { display: none; }
  .grid-3, .grid-4, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 24px; }
  .section { padding: 48px 0; }
  .profile-head { gap: 14px; }
  .profile-actions { width: 100%; justify-content: space-between; }
}
