/* NISSET SKILLS — Design system */
:root {
  --paper: #fafaf9;
  --paper-2: #f2f4f2;
  --ink: #0f1115;
  --ink-2: #3a3f47;
  --muted: #6b7280;
  --primary: #00264a;
  --primary-hover: #001c38;
  --primary-light: #e8eef5;
  --gold: #e6ae25;
  --gold-hover: #cf9915;
  --accent: #e6ae25;
  --border: #e5e5e2;
  --white: #ffffff;
  --danger: #b91c1c;
  --success: #166534;
  --warning: #a16207;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15,17,21,.06), 0 4px 16px rgba(15,17,21,.06);
  --shadow-lg: 0 12px 40px rgba(15,17,21,.14);
  --font: "Inter", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
  --max: 1180px;
  --bg: var(--paper);          /* alias: sticky bars that need a solid page-colored backdrop */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .95rem; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s cubic-bezier(.2,.8,.2,1), box-shadow .15s ease, background .15s ease, color .15s ease;
  font-family: inherit; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(0,38,74,.15); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,38,74,.28); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,38,74,.25); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,17,21,.22); }
.btn-secondary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: #c8c2b4; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(230,174,37,.35); }
.btn-outline-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: #fff; }
.btn-link { background: transparent; color: var(--primary); border: none; padding: .25rem 0; font-weight: 600; text-decoration: underline; }
.btn-link:hover { color: var(--primary-hover); }
.mfa-recovery-codes {
  background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95rem; line-height: 1.9; letter-spacing: .02em; user-select: all;
}
.btn-sm { padding: .4rem .85rem; font-size: .875rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(15,17,21,.08); border-bottom-color: transparent; }
.header-inner {
  display: flex; align-items: center; gap: 2rem; min-height: 68px;
}
.logo { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }
.logo-img {
  height: 44px; width: auto; display: block; padding: 3px 6px;
  background: #fff; border-radius: 7px; object-fit: contain;
}
.main-nav { display: flex; align-items: center; gap: .35rem; flex: 1; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; color: var(--ink-2); font-weight: 600; font-size: .9rem;
  background: none; border: none; cursor: pointer; font-family: inherit; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-item { position: relative; }
.mega-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 640px; margin-top: 6px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.5rem; z-index: 50;
}
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mega-menu h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .75rem; font-family: var(--font); font-weight: 700; }
.mega-menu a { display: block; padding: .35rem 0; color: var(--ink-2); font-size: .9rem; transition: color .15s ease; }
.mega-menu a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-search {
  display: flex; align-items: center; background: var(--paper); border-radius: 999px;
  border: 1px solid var(--border); overflow: hidden; transition: border-color .15s ease, background .15s ease;
}
.header-search:focus-within { border-color: var(--primary); background: var(--white); }
.header-search input {
  border: none; background: transparent; padding: .55rem 1rem; width: 190px;
  font-size: .88rem; font-family: inherit; outline: none;
}
.header-search button {
  border: none; background: transparent; padding: .55rem .9rem; cursor: pointer; color: var(--muted);
}
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ink-2); font-size: 1.1rem; transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn .badge {
  position: absolute; top: 2px; right: 2px; background: var(--danger); color: #fff;
  font-size: .65rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 3px;
}
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: .5rem; background: none; border: none;
  cursor: pointer; font-family: inherit; padding: .3rem .5rem .3rem .3rem; border-radius: 999px; transition: background .15s ease;
}
.user-btn:hover { background: var(--paper-2); }
.user-btn img { border-radius: 50%; width: 32px; height: 32px; object-fit: cover; }
.user-btn span { font-weight: 600; font-size: .88rem; }
.dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem; z-index: 50;
}
.dropdown.open { display: block; }
.dropdown a {
  display: flex; align-items: center; gap: .65rem; padding: .6rem .85rem;
  color: var(--ink-2); border-radius: var(--radius-sm); font-size: .9rem; transition: background .15s ease, color .15s ease;
}
.dropdown a:hover { background: var(--paper); color: var(--ink); }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: .35rem 0; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--ink); padding: .5rem; }

/* Flash */
.flash-wrap { padding-top: 1rem; }
.flash {
  padding: .85rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: .5rem;
  display: flex; align-items: center; justify-content: space-between; font-weight: 500;
}
.flash-success { background: #dcfce7; color: var(--success); }
.flash-error { background: #fee2e2; color: var(--danger); }
.flash-info { background: #e0f2fe; color: #075985; }
.flash i.fa-solid, .flash i.fa-regular { margin-right: .5rem; }
.flash-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; opacity: .6; }

/* Hero — clean, full-bleed video, centered content (Upwork/Fiverr-style restraint) */
.hero {
  position: relative; overflow: hidden;
  padding: 5.5rem 0 4rem;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(6,20,17,.82) 0%, rgba(6,20,17,.7) 55%, rgba(6,20,17,.88) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-overlay { background: #07140f; }
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; padding-bottom: 1rem; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: hero-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.hero-inner > *:nth-child(1) { animation-delay: .02s; }
.hero-inner > *:nth-child(2) { animation-delay: .08s; }
.hero-inner > *:nth-child(3) { animation-delay: .14s; }
.hero-inner > *:nth-child(4) { animation-delay: .2s; }
.hero-inner > *:nth-child(5) { animation-delay: .26s; }
.hero-inner > *:nth-child(6) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .hero-inner > * { animation: none; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; color: #f0c563; font-weight: 700;
  font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1.4rem;
  background: rgba(230,174,37,.15); border: 1px solid rgba(230,174,37,.4); padding: .4rem .85rem;
  border-radius: 999px;
}
.hero-eyebrow-icon { width: 14px; height: 14px; flex-shrink: 0; color: #f0c563; }
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: -.03em; line-height: 1.12; margin-bottom: 1.15rem; color: #fff;
}
.hero h1 .accent { color: #e6ae25; }
.hero-sub { font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,.75); margin: 0 auto 2.25rem; max-width: 52ch; }

.hero-toggle {
  display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 4px; margin-bottom: 1.75rem;
}
.hero-toggle a {
  padding: .65rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .88rem; color: rgba(255,255,255,.7);
  transition: background .15s ease, color .15s ease;
}
.hero-toggle a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(0,38,74,.4); }
.hero-toggle a:not(.active):hover { color: #fff; }

.hero-search {
  display: flex; align-items: center; background: rgba(255,255,255,.98); border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35); overflow: hidden; max-width: 560px; padding: .3rem; margin: 0 auto;
  border: 1px solid rgba(255,255,255,.6); transition: box-shadow .2s ease, transform .2s ease;
}
.hero-search:focus-within {
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 4px rgba(230,174,37,.35);
  transform: translateY(-1px);
}
.hero-search i.search-icon { padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.hero-search input {
  flex: 1; border: none; padding: .95rem .75rem; font-size: .95rem; font-family: inherit; outline: none; background: transparent;
}
.hero-search button {
  border: none; background: var(--primary); color: #fff; padding: 0 1.7rem; height: 100%; min-height: 50px;
  font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit; border-radius: 999px;
  transition: background .15s ease, transform .15s cubic-bezier(.2,.8,.2,1);
}
.hero-search button:hover { background: var(--primary-hover); transform: scale(1.03); }
.hero-search button:active { transform: scale(.98); }

.popular-tags {
  display: flex; flex-wrap: wrap; gap: 0 .5rem; margin: 1.1rem 0 0; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.popular-tags-light span.lbl { font-weight: 600; }
.tag-light { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); transition: color .15s ease; }
.tag-light:hover { color: #e6ae25; }
.popular-tags .sep { color: rgba(255,255,255,.3); }

/* Honest trust bar — real platform numbers, no fabricated client logos */
.hero-trust-bar {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2.5rem;
}
.hero-trust-bar .htb-item { display: flex; align-items: center; gap: .6rem; }
.hero-trust-bar .htb-item i { color: #e6ae25; font-size: 1.05rem; }
.hero-trust-bar .htb-item strong { display: block; color: #fff; font-size: 1.1rem; font-family: var(--display); line-height: 1.1; }
.hero-trust-bar .htb-item span { display: block; color: rgba(255,255,255,.55); font-size: .7rem; }

.hero-person {
  position: relative; z-index: 1; display: flex; justify-content: center; margin-top: -1rem;
}
.hero-person::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,174,37,.35) 0%, rgba(230,174,37,.12) 55%, rgba(230,174,37,0) 75%);
  z-index: -1;
}
.hero-person img {
  width: 100%; max-width: 220px; height: auto; display: block; position: relative; z-index: 1;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.5));
}

/* Stats */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 2.5rem 0; border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: 1.75rem; color: var(--primary); }
.stat span { font-size: .9rem; color: var(--muted); }

/* Stats v2 — floating card with colored icon circles (matches homepage screenshot) */
.stats-strip-v2 {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; justify-content: space-between;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.5rem 2rem; position: relative; z-index: 5;
  margin-top: -40px;
}
.stat-v2 { display: flex; align-items: center; gap: .75rem; flex: 1 1 160px; min-width: 160px; }
.stat-v2-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 1.05rem; flex-shrink: 0; transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.stat-v2:hover .stat-v2-icon { transform: scale(1.08) rotate(-4deg); }
.stat-v2-icon.blue { background: #3b82f6; }
.stat-v2-icon.green { background: #22c55e; }
.stat-v2-icon.orange { background: #f59e0b; }
.stat-v2-icon.purple { background: #8b5cf6; }
.stat-v2 strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--ink); line-height: 1.15; }
.stat-v2 span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) {
  .stats-strip-v2-wrap { margin-top: 1.5rem; }
  .stats-strip-v2, .stats-strip-v2-skeleton { padding: 1.25rem; }
}

/* Category row — horizontal icon+text cards on a real grid, so a partial
   last row (e.g. 5 categories = 4 + 1) doesn't stretch the leftover card
   to fill the whole row the way flex-wrap did. */
.cat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat-row-card {
  display: flex; align-items: center; gap: .85rem; min-width: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.3rem; text-align: left;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, border-color .18s ease;
}
.cat-row-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cat-row-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  flex-shrink: 0; font-size: 1.05rem; color: #fff;
}
.cat-row-text { min-width: 0; }
.cat-row-card strong { display: block; font-size: .95rem; line-height: 1.3; margin-bottom: .3rem; color: var(--ink); }
.cat-row-card span { display: block; font-size: .8rem; color: var(--muted); }

/* Category pills — top tab row on Find Work, reuses the .cat-row flex wrapper */
.cat-pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--white);
  color: var(--ink-2); font-size: .85rem; font-weight: 600; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-pill-count {
  background: rgba(0,0,0,.08); font-size: .72rem; font-weight: 700;
  padding: .05rem .4rem; border-radius: 999px;
}
.cat-pill.active .cat-pill-count { background: rgba(255,255,255,.2); }
@media (max-width: 980px) {
  .cat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .cat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cat-row { grid-template-columns: 1fr; }
}

/* Freelancer card v2 — horizontal profile card (matches homepage screenshot) */
.fc-grid-v2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.fc-card-v2 {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, border-color .18s ease;
}
.fc-card-v2:hover { box-shadow: var(--shadow-lg); border-color: #c8c2b4; transform: translateY(-3px); }
.fc-v2-badge-row { display: flex; justify-content: flex-end; margin-bottom: .5rem; min-height: 1px; }
.fc-v2-badge {
  font-size: .65rem; font-weight: 700; background: var(--primary-light); color: var(--primary);
  padding: .2rem .6rem; border-radius: 999px; white-space: nowrap;
}
.fc-v2-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .7rem; }
.fc-card-v2 img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fc-card-v2 .fc-info { min-width: 0; }
.fc-card-v2 h3 { font-size: .93rem; margin: 0 0 .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-card-v2 h3 a { color: var(--ink); }
.fc-v2-headline { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-v2-loc { display: flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--muted); margin-bottom: .4rem; }
.fc-v2-loc i { color: var(--accent); font-size: .7rem; }
.fc-v2-rating { display: flex; align-items: center; gap: .3rem; font-size: .8rem; margin-bottom: .7rem; }
.fc-v2-rating i { color: var(--gold); }
.fc-v2-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .65rem; border-top: 1px solid var(--border); font-size: .8rem; }
.fc-v2-foot .rate strong { color: var(--ink); font-weight: 700; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-header h2 { font-size: 1.75rem; margin: 0; }
.section-header p { color: var(--muted); margin: 0; }

/* Scroll-reveal — elements start hidden/offset, JS adds .is-visible via IntersectionObserver */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Skeleton loading — shimmer utility. Apply to any placeholder block or as an <img> background
   so real content covers it the instant it's ready (images) or JS reveals it (stats-strip). */
.skeleton-shimmer, .fc-card-v2 img {
  background: linear-gradient(100deg, var(--paper-2) 30%, #eceae4 45%, var(--paper-2) 60%);
  background-size: 250% 100%;
  animation: skeleton-sweep 1.4s ease-in-out infinite;
}
@keyframes skeleton-sweep {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer, .fc-card-v2 img { animation: none; background: var(--paper-2); }
}

/* Stats skeleton — placeholder bars shown until JS confirms the page is ready, then swapped
   for the real numbers. Safe if JS is blocked: <noscript> forces the real card to show instead. */
.stats-strip-v2-wrap { position: relative; margin-top: -40px; }
.stats-strip-v2-skeleton {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; justify-content: space-between;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.5rem 2rem;
}
.skel-stat { display: flex; align-items: center; gap: .75rem; flex: 1 1 160px; min-width: 160px; }
.skel-circle { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.skel-line { height: 10px; border-radius: 999px; }
.skel-line.w60 { width: 60%; }
.skel-line.w80 { width: 80%; }
.stats-strip-v2 { margin-top: 0; }
.stats-strip-v2.is-hidden, .stats-strip-v2-skeleton.is-hidden { display: none; }
.stats-strip-v2:not(.is-hidden) { animation: fade-in .4s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.freelancer-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; flex-direction: column; gap: .85rem;
  transition: box-shadow .15s, border-color .15s; min-width: 0;
}
.freelancer-card:hover { box-shadow: var(--shadow); border-color: #c8c2b4; }
.fc-header { display: flex; gap: .85rem; min-width: 0; }
.fc-header img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fc-info { min-width: 0; flex: 1; }
.fc-info h3 { font-size: 1.05rem; margin: 0 0 .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-info h3 a { color: var(--ink); }
.fc-info .headline { font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-level { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.fc-diamonds { display: inline-flex; gap: 2px; }
.fc-diamonds i { font-size: .5rem; color: var(--border); }
.fc-diamonds i.is-filled { color: var(--gold); }
.fc-bio {
  font-size: .85rem; color: var(--ink-2); line-height: 1.5; margin: 0;
  display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fc-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; color: var(--ink-2); }
.fc-meta i { color: var(--accent); margin-right: .25rem; }
.fc-skills { display: flex; flex-wrap: wrap; gap: .35rem; }
.skill-chip {
  font-size: .75rem; padding: .2rem .55rem; background: var(--paper);
  border-radius: 999px; color: var(--ink-2);
}
.skill-chip-more { background: var(--paper-2); color: var(--muted); font-weight: 700; }
.fc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--border); }
.fc-actions { display: flex; gap: .4rem; }
.fc-verified-badge { color: var(--primary); font-size: .82rem; margin-left: .3rem; }
.fc-avail-pill { margin-left: auto; align-self: flex-start; flex-shrink: 0; }
.fc-portfolio-preview { border-radius: var(--radius-sm); overflow: hidden; height: 90px; }
.fc-portfolio-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-save-btn.is-saved { color: var(--primary); border-color: var(--primary); }
.filter-checkbox label { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .88rem; cursor: pointer; }
.filter-checkbox input { width: auto; }
.fc-rating { display: flex; align-items: center; gap: .35rem; font-size: .85rem; }
.fc-rating i { color: var(--gold); }
.fc-rating .muted { font-size: .8rem; }
.rate { font-weight: 700; font-size: .95rem; }
.rate span { font-weight: 400; color: var(--muted); font-size: .8rem; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.cat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; align-items: center; gap: .85rem; transition: .15s;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.cat-card i { font-size: 1.4rem; color: var(--primary); width: 40px; text-align: center; }
.cat-card strong { display: block; color: var(--ink); font-size: .95rem; }
.cat-card span { font-size: .8rem; color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.step-num {
  width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem; font-size: .9rem;
}
.step h3 { font-size: 1.1rem; }

/* Trust / verification section */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.trust-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.trust-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; font-size: 1.05rem; margin-bottom: 1rem;
}
.trust-card h3 { font-size: 1rem; margin: 0 0 .4rem; }
.trust-card p { margin: 0; }

/* Cambodia / Southeast Asia positioning */
.region-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.region-eyebrow { margin-bottom: 1rem; color: var(--primary); }
.region-copy h2 { margin-top: 0; }
.region-list { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.region-list li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.region-list li i { color: var(--success); }
.region-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.region-stat {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; text-align: center;
}
.region-stat strong { display: block; font-size: 1.8rem; color: var(--primary); }
.region-stat span { color: var(--muted); font-size: .85rem; }

/* Trust / CTA */
.cta-band {
  background: radial-gradient(circle at 15% 20%, rgba(230,174,37,.25), transparent 45%),
              linear-gradient(135deg, #001c38 0%, var(--primary) 55%, #073f4a 100%);
  color: #fff; padding: 3.5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: 1.85rem; }
.cta-band p { opacity: .85; max-width: 40ch; margin: 0 auto 1.5rem; }
.cta-band .btn { background: #fff; color: var(--primary); }
.cta-band .btn:hover { background: var(--paper); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }

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

/* Search page */
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.75rem; padding: 2rem 0; }
.filters {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; height: fit-content; position: sticky; top: 80px;
}
.filters h3 { font-size: 1rem; margin-bottom: 1rem; }
.filter-group { margin-bottom: 1.25rem; }
.filter-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .03em; }
.filter-group select, .filter-group input[type="number"], .filter-group input[type="text"] {
  width: 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9rem; background: var(--paper);
}
.range-row { display: flex; gap: .5rem; align-items: center; }
.results-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.results-header h1 { font-size: 1.4rem; margin: 0; }
.sort-select { padding: .45rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; background: var(--white); }

/* Pagination */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: .9rem; color: var(--ink-2); background: var(--white);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Profile */
.profile-hero {
  background: var(--white); border-bottom: 1px solid var(--border); padding: 2.5rem 0;
}
.profile-top { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.profile-top img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.profile-top h1 { font-size: 1.75rem; margin-bottom: .25rem; }
.profile-actions { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.profile-body { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; padding: 2rem 0; }
.profile-main, .profile-aside { min-width: 0; }
.panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.panel hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.review-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.stars { color: #ca8a04; letter-spacing: 1px; }

/* Auth forms */
.auth-page { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 2rem 0; }
.auth-card {
  width: min(100%, 420px); background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: .35rem; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: var(--paper);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-error { color: var(--danger); font-size: .875rem; margin-top: .25rem; }
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.25rem; }
.role-toggle label {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: .9rem;
}
.role-toggle input { display: none; }
.role-toggle input:checked + span,
.role-toggle label:has(input:checked) { border-color: var(--primary); background: #e8f0f3; color: var(--primary); }

/* Dashboard */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 2rem 0; min-height: 60vh; }
.dash-nav {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem; height: fit-content; position: sticky; top: 80px;
}
.dash-nav a {
  display: flex; align-items: center; gap: .65rem; padding: .65rem .85rem;
  border-radius: var(--radius-sm); color: var(--ink-2); font-size: .9rem; font-weight: 500;
}
.dash-nav a:hover, .dash-nav a.active { background: var(--paper); color: var(--ink); }
.dash-nav a.active { font-weight: 600; }
.dash-content h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem;
}
.stat-card strong { display: block; font-size: 1.5rem; font-family: var(--display); }
.stat-card span { font-size: .85rem; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; background: var(--paper); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
.status-pill {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.status-open, .status-active, .status-available { background: #dcfce7; color: var(--success); }
.status-pending { background: #fef9c3; color: var(--warning); }
.status-completed { background: #e0f2fe; color: #075985; }
.status-cancelled, .status-rejected { background: #fee2e2; color: var(--danger); }
.status-disputed { background: #ffedd5; color: #c2410c; }
.status-revision_requested { background: #ffedd5; color: #c2410c; }

/* Shared status palette. Every status value the app renders through
   `status-pill status-<value>` needs a rule here, otherwise it falls back to an
   unstyled pill on pages that don't load project.css. Groups: green = live/paid,
   amber = waiting on someone, blue = in motion, red = failed/ended, gray = inactive. */
.status-paid, .status-funded, .status-approved, .status-released, .status-verified, .status-accepted { background: #dcfce7; color: var(--success); }
.status-pending_payment, .status-pending_moderation, .status-processing, .status-submitted, .status-viewed, .status-busy { background: #fef9c3; color: var(--warning); }
.status-in_progress { background: #e0f2fe; color: #075985; }
.status-payment_failed, .status-failed, .status-closed, .status-declined, .status-unavailable, .status-canceled { background: #fee2e2; color: var(--danger); }
.status-draft, .status-paused, .status-archived, .status-expired, .status-refunded, .status-withdrawn { background: #f1f5f9; color: #475569; }

/* Icon accent for stat cards — an optional top-right badge, additive only
   (position: relative on .stat-card above doesn't change flow for the many
   existing plain stat-card usages that don't include this icon element). */
.stat-card-icon {
  position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: .95rem; background: var(--paper-2); color: var(--muted);
}
.stat-card.stat-card-primary .stat-card-icon { background: rgba(28, 61, 74, .1); color: var(--primary); }
.stat-card.stat-card-warning .stat-card-icon { background: rgba(180, 83, 9, .12); color: #b45309; }
.stat-card.stat-card-gold .stat-card-icon { background: rgba(212, 175, 55, .18); color: var(--gold); }
.stat-card.stat-card-success .stat-card-icon { background: rgba(22, 163, 74, .12); color: var(--success); }
.stat-card.stat-card-info .stat-card-icon { background: rgba(7, 89, 133, .1); color: #075985; }

/* Reusable table/row helpers */
.dash-avatar-row { display: flex; align-items: center; gap: .6rem; }
.dash-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Reusable search input with a leading icon — wrap the input in
   .search-field instead of styling input[type=search] directly, since a
   bare input can't host a positioned icon on its own. */
.search-field { position: relative; flex: 1; min-width: 200px; }
.search-field i {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .85rem; pointer-events: none;
}
.search-field input[type="search"] {
  width: 100%; padding: .65rem 1rem .65rem 2.4rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; background: var(--white);
}

/* Per-contract progress bar (Finance pages) */
.finance-progress-cell { min-width: 110px; }
.finance-progress-bar { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-bottom: .3rem; }
.finance-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--primary)); border-radius: 999px; }

/* Messages */
.msg-heading { margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.msg-total-badge { font-size: .75rem; font-weight: 700; background: var(--primary-light); color: var(--primary); padding: .25rem .65rem; border-radius: 999px; vertical-align: middle; }

.msg-layout {
  display: grid; grid-template-columns: 300px 1fr 272px; gap: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  height: 78vh; min-height: 600px; overflow: hidden; box-shadow: var(--shadow);
}
.msg-layout.no-panel { grid-template-columns: 300px 1fr; }

/* ---- Conversation list ---- */
.msg-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--white); }
.msg-list-header { padding: 1rem 1rem .75rem; flex-shrink: 0; }
.msg-list-header h1 { font-size: 1.05rem; margin: 0 0 .65rem; display: flex; align-items: center; gap: .5rem; }
.msg-search { position: relative; }
.msg-search i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8rem; }
.msg-search input { width: 100%; padding: .55rem .75rem .55rem 2.15rem; border: 1px solid var(--border); background: var(--paper); border-radius: 999px; font-size: .85rem; font-family: inherit; transition: border-color .15s ease, background .15s ease; }
.msg-search input:focus { border-color: var(--primary); background: var(--white); }
.msg-list-scroll { overflow-y: auto; flex: 1; min-height: 0; }
.msg-item { padding: .75rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; display: flex; gap: .65rem; color: inherit; text-decoration: none; align-items: flex-start; transition: background .12s ease; }
.msg-item:hover { background: var(--paper); }
.msg-item.active { background: var(--primary-light); }
.msg-item.active .msg-item-top strong { color: var(--primary); }
.msg-item.unread strong { color: var(--ink); font-weight: 700; }
.msg-item.unread .preview { color: var(--ink-2); font-weight: 600; }
.msg-item-avatar { position: relative; flex-shrink: 0; }
.msg-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block; background: var(--paper-2); }
.status-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--white); background: var(--muted); }
.status-dot.online { background: var(--success); }
.status-dot.offline { background: #b7bcc4; }
.msg-item-body { min-width: 0; flex: 1; }
.msg-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.msg-item-top strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.msg-item-time { font-size: .7rem; color: var(--muted); flex-shrink: 0; }
.msg-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .2rem; }
.msg-item .preview { margin: 0; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-unread-badge { flex-shrink: 0; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 .3rem; }
.msg-empty-state { padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; color: var(--muted); text-align: center; }
.msg-empty-state i { font-size: 1.9rem; opacity: .4; }

/* ---- Thread (center) ---- */
.msg-thread { display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.msg-thread .msg-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: var(--muted); background: var(--white); }
.msg-thread .msg-empty i { font-size: 2.25rem; opacity: .4; }

.msg-thread-head { padding: .7rem 1.1rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .65rem; flex-shrink: 0; background: var(--white); }
.msg-back { display: none; color: var(--ink-2); font-size: 1rem; flex-shrink: 0; }
.msg-thread-head .msg-item-avatar { flex-shrink: 0; }
.msg-thread-who { min-width: 0; flex: 1; line-height: 1.25; }
.msg-thread-who strong { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-thread-who .thread-status { font-size: .74rem; color: var(--muted); }
.msg-thread-actions { display: flex; align-items: center; gap: .15rem; flex-shrink: 0; }
.thread-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent; color: var(--ink-2); font-size: .95rem; display: grid; place-items: center; cursor: pointer; transition: background .15s ease, color .15s ease; }
.thread-icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.thread-icon-btn[disabled] { color: var(--border); cursor: not-allowed; }
.thread-icon-btn[disabled]:hover { background: transparent; color: var(--border); }
.thread-icon-btn.panel-toggle { display: none; }

.thread-menu { position: relative; }
.thread-menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: .4rem; z-index: 40; display: none;
}
.thread-menu.open .thread-menu-panel { display: block; }
.thread-menu-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; padding: .5rem .6rem; border: none; background: none; border-radius: var(--radius-sm); color: var(--ink-2); font-size: .84rem; text-align: left; cursor: not-allowed; font-family: inherit; }
.thread-menu-item.danger { color: var(--danger); }
.thread-menu-soon { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--paper-2); padding: .1rem .4rem; border-radius: 999px; }

.msg-messages { flex: 1; padding: 1.1rem 1.25rem; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; }
.msg-date-sep { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0 .85rem; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.msg-date-sep:first-child { margin-top: 0; }
.msg-date-sep::before, .msg-date-sep::after { content: ''; height: 1px; background: var(--border); flex: 1; }

.bubble-row { display: flex; align-items: flex-end; gap: .5rem; margin-top: .7rem; position: relative; }
.bubble-row.grouped { margin-top: .18rem; }
.bubble-row.mine { justify-content: flex-end; }
.bubble-row.theirs { justify-content: flex-start; }
.msg-avatar-sm { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.msg-avatar-sm-spacer { width: 26px; flex-shrink: 0; }

.bubble-wrap { max-width: 66%; display: flex; flex-direction: column; }
.bubble-row.mine .bubble-wrap { align-items: flex-end; }
.bubble-row.theirs .bubble-wrap { align-items: flex-start; }
.bubble { padding: .6rem .85rem; border-radius: 16px; font-size: .89rem; line-height: 1.48; word-break: break-word; }
.bubble.mine { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.theirs { background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble-meta { display: flex; align-items: center; gap: .3rem; font-size: .68rem; color: var(--muted); margin-top: .3rem; padding: 0 .2rem; }
.bubble-meta .fa-check, .bubble-meta .fa-check-double { font-size: .68rem; }
.bubble-meta .seen { color: var(--primary); }

.bubble-actions {
  display: flex; align-items: center; gap: .1rem; opacity: 0; transition: opacity .12s ease;
  background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .1rem; box-shadow: var(--shadow);
}
.bubble-row:hover .bubble-actions { opacity: 1; }
.bubble-action-btn { width: 26px; height: 26px; border-radius: 50%; border: none; background: none; color: var(--muted); font-size: .72rem; display: grid; place-items: center; cursor: pointer; }
.bubble-action-btn:hover { background: var(--paper-2); color: var(--ink); }
.bubble-action-btn[disabled] { cursor: not-allowed; opacity: .45; }
.bubble-action-btn[disabled]:hover { background: none; color: var(--muted); }
.bubble-action-btn.copied { color: var(--success); }

.typing-indicator { display: none; align-items: center; gap: .4rem; margin-top: .7rem; }
.typing-indicator.show { display: flex; }
.typing-dots { background: var(--white); border: 1px solid var(--border); border-radius: 16px; border-bottom-left-radius: 4px; padding: .55rem .8rem; display: inline-flex; gap: .22rem; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; animation: typing-bounce 1.1s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* ---- Composer ---- */
.msg-compose { display: flex; gap: .4rem; padding: .75rem 1rem; border-top: 1px solid var(--border); align-items: flex-end; flex-shrink: 0; background: var(--white); position: relative; }
.msg-compose-tools { display: flex; gap: .1rem; flex-shrink: 0; }
.compose-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: none; color: var(--ink-2); font-size: .95rem; display: grid; place-items: center; cursor: pointer; transition: background .15s ease, color .15s ease; flex-shrink: 0; }
.compose-icon-btn:hover { background: var(--paper-2); color: var(--primary); }
.compose-icon-btn[disabled] { color: var(--border); cursor: not-allowed; }
.compose-icon-btn[disabled]:hover { background: none; color: var(--border); }
.msg-compose-field { flex: 1; display: flex; align-items: flex-end; border: 1px solid var(--border); border-radius: 20px; background: var(--paper); padding: .2rem .3rem .2rem .95rem; transition: border-color .15s ease, background .15s ease; }
.msg-compose-field:focus-within { border-color: var(--primary); background: var(--white); }
.msg-compose textarea {
  flex: 1; border: none; background: none; padding: .5rem 0;
  font-family: inherit; font-size: .89rem; resize: none; min-height: 22px; max-height: 120px; line-height: 1.4; outline: none;
}
.msg-compose .btn-send { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: none; background: var(--primary); color: #fff; cursor: pointer; transition: background .15s ease, transform .1s ease; }
.msg-compose .btn-send:hover { background: var(--primary-hover); }
.msg-compose .btn-send:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

.emoji-popover {
  position: absolute; bottom: calc(100% + 8px); left: 1rem; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .5rem; display: none;
  grid-template-columns: repeat(8, 1fr); gap: .1rem; z-index: 40; width: 268px;
}
.emoji-popover.open { display: grid; }
.emoji-popover button { border: none; background: none; font-size: 1.15rem; padding: .3rem; border-radius: 6px; cursor: pointer; line-height: 1; }
.emoji-popover button:hover { background: var(--paper-2); }

/* ---- Project context panel ---- */
.msg-panel { border-left: 1px solid var(--border); background: var(--white); overflow-y: auto; min-height: 0; }
.msg-panel-section { padding: 1.15rem 1.1rem; border-bottom: 1px solid var(--border); }
.msg-panel-eyebrow { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem; }
.msg-panel-project h3 { font-size: .95rem; margin: 0 0 .8rem; line-height: 1.35; }
.msg-panel-row { display: flex; align-items: center; justify-content: space-between; font-size: .83rem; padding: .4rem 0; border-top: 1px solid var(--border); }
.msg-panel-row:first-of-type { border-top: none; }
.msg-panel-row span:first-child { color: var(--muted); }
.msg-panel-row .budget { font-weight: 700; color: var(--ink); font-family: var(--display); }
.msg-panel-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.msg-panel-actions .btn { width: 100%; text-align: center; font-size: .84rem; padding: .55rem 1rem; }
.msg-panel-close { display: none; }

@media (max-width: 1080px) {
  .msg-layout { grid-template-columns: 280px 1fr; }
  .msg-panel { display: none; }
  .thread-icon-btn.panel-toggle { display: grid; }
  .msg-panel.drawer-open {
    display: block; position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); z-index: 200;
    box-shadow: var(--shadow-lg); animation: panel-slide-in .18s ease;
  }
  .msg-panel-close { display: grid; }
  .panel-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,17,21,.35); z-index: 190; }
  .panel-backdrop.show { display: block; }
}
@keyframes panel-slide-in { from { transform: translateX(16px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 760px) {
  .msg-layout { grid-template-columns: 1fr; height: auto; min-height: 78vh; border-radius: var(--radius-sm); }
  .msg-list { border-right: none; }
  .msg-layout.has-active .msg-list { display: none; }
  .msg-layout:not(.has-active) .msg-thread { display: none; }
  .msg-back { display: inline-flex; }
  .bubble-wrap { max-width: 82%; }
  .msg-panel { width: 100vw; max-width: 100vw; }
}

.section-alt { background: var(--paper-2); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-outline-white { background: transparent; border: 2px solid #fff; color: #fff; }
.form-error-center { margin-bottom: 1rem; text-align: center; }
.auth-footnote { margin-top: 1.25rem; margin-bottom: 0; }
.auth-demo-note { margin-top: 1rem; font-size: .8rem; text-align: center; }
.section-narrow { max-width: 720px; }
.section-narrow-sm { max-width: 520px; }
.steps-lead { max-width: 50ch; font-size: 1.1rem; }
.steps { margin-top: 2.5rem; }
.how-cta { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.notif-item { display: flex; gap: .9rem; }
.notif-item.unread { border-left: 3px solid var(--primary); }
.notif-item-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--paper-2); color: var(--primary);
  display: grid; place-items: center; font-size: .95rem;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title-row { display: flex; align-items: center; gap: .5rem; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.notif-item .notif-body { margin: .35rem 0; color: var(--ink-2); }
.notif-item .notif-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.notif-item .notif-time { font-size: .85rem; }
.notif-actions { display: flex; gap: .4rem; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #061b32 0%, #00264a 58%, #073f4a 100%);
  border-top: 4px solid var(--gold);
  color: #dce9ed; padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand .logo-img { height: 58px; padding: 4px 8px; }
.footer-brand p { color: #dce9ed; font-size: .9rem; max-width: 28ch; }
.site-footer h4 { color: #f4c64d; font-family: var(--font); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .85rem; }
.site-footer a { display: block; color: #dce9ed; font-size: .9rem; padding: .25rem 0; }
.site-footer a:hover { color: #f4c64d; }
.footer-bottom { border-top: 1px solid rgba(220,233,237,.22); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; }
.footer-bottom p:first-child { color: #f4c64d; }

/* Empty state */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2.5rem; margin-bottom: 1rem; opacity: .4; }

/* ---------------------------------------------------------------- */
/* Utility classes — used instead of inline styles across templates  */
/* ---------------------------------------------------------------- */
.panel-title { font-size: 1.1rem; }
.u-narrow { max-width: 640px; }
.u-narrow-sm { max-width: 520px; }
.u-narrow-md { max-width: 720px; }
.u-page { padding: 2rem 0; }
.u-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.u-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.u-flex { display: flex; }
.u-flex-wrap { display: flex; flex-wrap: wrap; }
.u-flex-gap { display: flex; gap: .75rem; flex-wrap: wrap; }
.u-align-center { align-items: center; }
.u-justify-between { justify-content: space-between; }
.u-justify-end { justify-content: flex-end; }
.u-justify-center { justify-content: center; }
.u-text-right { text-align: right; }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-mt-1 { margin-top: 1rem; }
.u-mb-1 { margin-bottom: 1rem; }
.u-mb-2 { margin-bottom: 1.5rem; }
.u-mt-2 { margin-top: 1.5rem; }
.u-mt-3 { margin-top: 2.5rem; }
.u-fs-sm { font-size: .85rem; }
.u-block { display: block; }
.u-fs-md { font-size: 1rem; }
.u-fw-600 { font-weight: 600; }
.u-scroll-list { max-height: 160px; overflow-y: auto; padding: .5rem; background: var(--paper); border-radius: var(--radius-sm); }
.u-inline-form { display: inline; }

.field-plain {
  width: 100%; padding: .65rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit;
}
.checkbox-chip {
  font-weight: 500; font-size: .85rem; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--white); cursor: pointer; user-select: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.checkbox-chip:hover { border-color: var(--primary); }
.checkbox-chip input[type="checkbox"] { accent-color: var(--primary); margin: 0; }
.checkbox-chip:has(input:checked) {
  background: rgba(28, 61, 74, .08); border-color: var(--primary); color: var(--primary); font-weight: 600;
}
.skills-checklist { display: flex; flex-wrap: wrap; gap: .5rem; max-height: 160px; overflow-y: auto; padding: .5rem; background: var(--paper); border-radius: var(--radius-sm); }

/* Panel header row (title + action) */
.panel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }

/* Avatar upload (settings) */
.avatar-upload { display: flex; align-items: center; gap: 1rem; }
.avatar-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.avatar-field input[type="file"] { font-size: .85rem; display: block; margin-bottom: .25rem; }

/* Simple list rows (contract/project quick lists reused across pages) */
.row-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 0;
}
.row-title { margin: 0 0 .35rem; font-size: 1.15rem; }
.row-title a { color: var(--ink); }
.row-desc { margin: 0; color: var(--ink-2); }
.simple-list { display: flex; flex-direction: column; gap: 1rem; }

/* Project list (browse work) */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.75rem; margin: 0; }
.page-head .count { margin: 0; }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.toolbar input[type="search"], .toolbar select { padding: .65rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; background: var(--white); }
.project-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.project-card .pc-main { flex: 1; min-width: 0; }
.project-card h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.project-card h3 a { color: var(--ink); }
.project-card .pc-meta { margin: 0 0 .5rem; font-size: .9rem; }
.project-card .pc-desc { margin: 0; color: var(--ink-2); }
.project-card .pc-side { text-align: right; min-width: 130px; }
.project-card .pc-side .status-pill { margin-top: .35rem; display: inline-block; }
.project-card .pc-side .proposals-count { font-size: .8rem; margin: .5rem 0 0; }
.project-card .pc-side .btn { margin-top: .5rem; }

/* Project detail page */
.pd-layout { padding: 0; }
.pd-status { margin-bottom: .75rem; }
.pd-desc-title { font-size: 1.1rem; }
.pd-skills-title { font-size: 1.1rem; margin-top: 1.5rem; }
.budget-figure { font-size: 1.35rem; }
.budget-figure .fixed-note { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }
.client-mini { display: flex; gap: .75rem; align-items: center; }
.client-mini img { width: 48px; height: 48px; border-radius: 50%; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* Profile hero specifics */
.profile-top .profile-info { flex: 1; min-width: 0; }
.profile-top .headline-text { margin: 0; font-size: 1.1rem; color: var(--ink-2); }
.profile-top .fc-meta { margin-top: .75rem; }
.profile-top .rate-block { text-align: right; }
.profile-top .rate-block .rate { font-size: 1.5rem; }
.profile-top .rate-block .rate span { font-size: .9rem; }
.review-head { display: flex; gap: .75rem; align-items: center; margin-bottom: .35rem; }
.review-head img { border-radius: 50%; }
.review-head .review-time { margin-left: auto; font-size: .85rem; }
.review-body { margin: .35rem 0 0; }

/* Settings page: tab nav + content */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.settings-tabs { display: flex; flex-direction: column; gap: .15rem; position: sticky; top: 1.5rem; }
.settings-tabs a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: var(--radius-sm); color: var(--ink-2); font-size: .9rem; font-weight: 600; text-decoration: none; }
.settings-tabs a i { width: 16px; text-align: center; color: var(--muted); }
.settings-tabs a:hover { background: var(--paper-2); }
.settings-tabs a.is-active { background: var(--paper-2); color: var(--primary); }
.settings-tabs a.is-active i { color: var(--primary); }
.settings-content .panel { margin-bottom: 0; }
.settings-soon .empty { padding: 2rem 1rem; }
@media (max-width: 760px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-tabs { flex-direction: row; flex-wrap: wrap; position: static; border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
}

/* Profile page additions: verified badge, work history/education timeline, portfolio, languages */
.profile-verified-badge { color: var(--primary); font-size: 1.1rem; vertical-align: middle; margin-left: .25rem; }
.profile-timeline { position: relative; padding-left: 1.5rem; }
.profile-timeline-item { position: relative; padding-bottom: 1.5rem; }
.profile-timeline-item:last-child { padding-bottom: 0; }
.profile-timeline-item::before {
  content: ''; position: absolute; left: -1.05rem; top: .35rem; bottom: -1.15rem;
  width: 1px; background: var(--border);
}
.profile-timeline-item:last-child::before { display: none; }
.profile-timeline-dot {
  position: absolute; left: -1.35rem; top: .2rem; width: 9px; height: 9px;
  border-radius: 50%; background: var(--primary);
}
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.portfolio-card {
  display: block; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.portfolio-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.portfolio-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.portfolio-card-placeholder {
  width: 100%; height: 130px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--muted); font-size: 1.5rem;
}
.portfolio-card-body { padding: .75rem; }
.portfolio-card-body strong { display: block; font-size: .92rem; color: var(--ink); }
.profile-language-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }

/* Trust badges on profiles */
.trust-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.trust-badge {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: 999px; background: #e8f0f3; color: var(--primary);
}
.trust-badge i { font-size: .75rem; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem;
    box-shadow: var(--shadow);
  }
  .mobile-toggle { display: grid; }
  .header-search { display: none; }
  .hero { padding: 3rem 0; }
  .hero-inner { padding: 0 .5rem; }
  .hero-toggle { flex-direction: column; width: 100%; }
  .hero-toggle a { text-align: center; }
  .hero-trust-bar { gap: 1.5rem 2rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .profile-body { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; flex-wrap: wrap; gap: .25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-menu { min-width: 100%; left: 0; right: 0; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .user-btn span { display: none; }
}
/* Edit profile — professional multi-section layout (dashboard/profile/) */
.pe-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 1.5rem 0; }
.pe-head h1 { font-size: 1.75rem; }
.pe-completeness { min-width: 220px; }
.pe-completeness-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .35rem; color: var(--ink-2); }
.pe-completeness-label strong { color: var(--primary); }
.pe-bar { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.pe-bar-fill { height: 100%; border-radius: 999px; transition: width .3s ease; }
.pe-bar-fill.pe-bar-low { background: var(--danger); }
.pe-bar-fill.pe-bar-mid { background: linear-gradient(90deg, var(--warning), var(--gold)); }
.pe-bar-fill.pe-bar-good { background: linear-gradient(90deg, var(--gold), var(--primary)); }

.pe-onboarding-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Quick-jump nav — this is a long single-page form, so a sticky pill row
   beats forcing people to scroll past 7 panels to reach Languages. */
.pe-jumpnav {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem;
  position: sticky; top: 70px; z-index: 5; background: var(--bg);
  padding: .5rem 0;
}
.pe-jumpnav a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem;
  border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; font-weight: 600;
  color: var(--ink-2); background: var(--white); transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pe-jumpnav a:hover { border-color: var(--primary); color: var(--primary); }
.pe-jumpnav a.is-active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.pe-jumpnav i { font-size: .75rem; color: var(--gold); }
.pe-jumpnav a.is-active i { color: var(--primary); }

.pe-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; padding-bottom: 3rem; }
.pe-main { min-width: 0; }
.pe-main .panel h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.pe-main .panel h2 i {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(212, 175, 55, .15); color: var(--gold); font-size: .85rem; flex-shrink: 0;
}
.pe-counter { margin-top: .35rem; }

.avail-toggle { display: flex; gap: .6rem; flex-wrap: wrap; }
.avail-toggle label {
  display: flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border: 1.5px solid var(--border);
  border-radius: 999px; cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--ink-2);
}
.avail-toggle input { display: none; }
.avail-toggle label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.avail-dot-available { background: var(--success); }
.avail-dot-busy { background: var(--warning); }
.avail-dot-unavailable { background: var(--danger); }

.pe-save-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; position: sticky; bottom: 1rem;
}

.pe-aside { position: sticky; top: 90px; }
.pe-preview-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem; }
.pe-preview-card { pointer-events: none; margin-bottom: 1.25rem; }
.pe-tips h2 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.pe-tips h2 i { color: var(--gold); }
.pe-tips-list { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .pe-layout { grid-template-columns: 1fr; }
  .pe-aside { position: static; }
}

/* ---- School / certification tests ---- */
.school-badge-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.15rem;
}

.school-result-panel { text-align: center; padding: 3rem 2rem; }
.school-result-icon { font-size: 3rem; }
.school-result-icon.pass { color: var(--success); }
.school-result-icon.fail { color: var(--danger); }

.quiz-question-panel p:first-child { margin-bottom: .85rem; }
.quiz-options { display: flex; flex-direction: column; gap: .6rem; }
.quiz-option-label {
  display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  font-size: .92rem; transition: border-color .15s ease, background .15s ease;
}
.quiz-option-label:hover { border-color: #c8c2b4; background: var(--paper); }
.quiz-option-label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.quiz-option-label input { accent-color: var(--primary); }

/* ---- School — hero banner ---- */
.school-hero { padding: 2.5rem 0 3rem; }
.school-hero-inner { max-width: 640px; margin: 0 auto 2rem; text-align: center; }
.school-eyebrow { background: var(--primary-light); color: var(--primary); margin-bottom: 1rem; }
.school-hero-inner h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: .75rem; }
.school-hero-lead { color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; margin: 0 auto 1.25rem; max-width: 56ch; }
.school-hero-stat {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600;
  color: var(--success); background: #dcfce7; padding: .5rem 1rem; border-radius: 999px;
}
.school-hero-banner { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.school-hero-banner img { width: 100%; height: clamp(160px, 26vw, 260px); object-fit: cover; display: block; }

/* ---- School — test cards ---- */
.school-test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.test-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.test-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.test-card-passed { border-color: rgba(22, 101, 52, .3); }
.test-card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.test-card h3 { font-size: 1.1rem; margin: 0; }
.test-card-category { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.test-card-desc { font-size: .88rem; line-height: 1.5; margin: 0; }
.test-card-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .82rem; color: var(--ink-2); }
.test-card-meta i { color: var(--accent); margin-right: .25rem; }

/* ---- Quiz sticky summary bar ---- */
.quiz-sticky-bar {
  position: sticky; top: 78px; z-index: 10; background: var(--paper);
  padding: 1.25rem 0 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.quiz-sticky-title h1 { font-size: 1.4rem; margin: 0 0 .2rem; }
.quiz-progress-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; min-width: 180px; }
.quiz-progress-track { width: 180px; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.quiz-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--primary)); border-radius: 999px; transition: width .25s ease; }
.quiz-progress-label { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* ---- Quiz question / option polish ---- */
.quiz-question-text { display: flex; align-items: flex-start; gap: .65rem; font-weight: 600; margin-bottom: .85rem; }
.quiz-q-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); font-size: .82rem; font-weight: 700; display: grid; place-items: center;
}
.quiz-opt-letter {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2);
  color: var(--ink-2); font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.quiz-option-label:has(input:checked) .quiz-opt-letter { background: var(--primary); color: #fff; }

/* ---- Score ring on the results screen ---- */
.school-score-ring {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--ring-color, var(--success)) calc(var(--pct, 0) * 1%), var(--paper-2) 0);
}
.school-score-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--white); }
.school-score-ring span { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.school-score-ring-pass { --ring-color: var(--success); }
.school-score-ring-fail { --ring-color: var(--danger); }
.school-result-icon { display: none; } /* superseded visually by the score ring, kept in markup for no-CSS fallback */

@media (max-width: 720px) {
  .quiz-sticky-bar { position: static; flex-direction: column; align-items: stretch; }
  .quiz-progress-wrap { align-items: stretch; min-width: 0; }
  .quiz-progress-track { width: 100%; }
}

/* ==========================================================================
   Onboarding — 5-step profile wizard (about / rate / employment / education / languages)
   ========================================================================== */
.onb-wrap { max-width: 720px; padding-top: 2rem; padding-bottom: 3rem; }

.onb-progress {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: .5rem; gap: .25rem;
}
.onb-progress-step { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 0 0 auto; }
.onb-progress-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; background: var(--paper-2); color: var(--muted);
  border: 1.5px solid var(--border); flex-shrink: 0;
}
.onb-progress-step.is-active .onb-progress-dot { background: var(--primary); color: #fff; border-color: var(--primary); }
.onb-progress-step.is-done .onb-progress-dot { background: var(--gold); color: #fff; border-color: var(--gold); font-size: .75rem; }
.onb-progress-label { font-size: .72rem; color: var(--muted); text-align: center; max-width: 80px; line-height: 1.2; }
.onb-progress-step.is-active .onb-progress-label { color: var(--ink); font-weight: 600; }
.onb-progress-line { flex: 1 1 auto; height: 2px; background: var(--border); margin-top: 15px; }
.onb-progress-line.is-done { background: var(--gold); }
.onb-progress-text { text-align: center; margin: 1rem 0 1.75rem; }

.onb-panel { padding: 2rem; }
.onb-h1 { font-size: 1.5rem; display: flex; align-items: center; gap: .6rem; }
.onb-h1 i { color: var(--gold); }
.onb-form { margin-top: 1.5rem; }

.onb-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  gap: 1rem; flex-wrap: wrap;
}
.onb-nav-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* Rate step */
.onb-rate-group { max-width: 220px; }
.onb-rate-input {
  display: flex; align-items: center; gap: .4rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .5rem .85rem; background: var(--white);
}
.onb-rate-input span { color: var(--muted); font-weight: 600; }
.onb-rate-input input {
  border: none; outline: none; font-size: 1.1rem; font-weight: 700; width: 100%;
  background: transparent; padding: 0; text-align: right;
}
.onb-fee-box { background: var(--paper-2); border-radius: var(--radius-sm); padding: 1.25rem; margin-top: 1.5rem; }
.onb-fee-row { display: flex; align-items: center; justify-content: space-between; padding: .3rem 0; font-size: .92rem; }
.onb-fee-row.onb-fee-net { font-size: 1.05rem; }
.onb-fee-box hr { border: none; border-top: 1px solid var(--border); margin: .5rem 0; }

/* Repeatable rows (employment / education / languages) */
.onb-repeat-row {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.25rem 1.25rem 0.75rem; margin-bottom: 1rem; background: var(--white);
}
.onb-row-remove {
  position: absolute; top: .6rem; right: .6rem; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: var(--paper-2); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; font-size: .8rem; transition: background .15s ease, color .15s ease;
}
.onb-row-remove:hover { background: var(--danger); color: #fff; }
.onb-current-check { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 500; margin-bottom: 1rem; cursor: pointer; }
.onb-current-check input[type="checkbox"] { accent-color: var(--primary); }
.onb-lang-row .form-group:last-child { margin-bottom: .75rem; }
.onb-add-row { margin-top: .25rem; }

@media (max-width: 640px) {
  .onb-panel { padding: 1.25rem; }
  .onb-progress-label { max-width: 56px; font-size: .65rem; }
  .onb-nav { flex-direction: column; align-items: stretch; }
  .onb-nav-right { margin-left: 0; justify-content: space-between; }
}

.pe-timeline { list-style: none; margin: 0; padding: 0; }
.pe-timeline-item { display: flex; gap: .8rem; position: relative; padding-bottom: 1.1rem; }
.pe-timeline-item:last-child { padding-bottom: 0; }
.pe-timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px; background: var(--border);
}
.pe-timeline-marker {
  width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0; font-size: .8rem; z-index: 1;
}
.pe-timeline-content { padding-top: .3rem; font-size: .92rem; }

/* Step 6 — job matching (projects.php) */
.pc-match-note { color: var(--primary); font-weight: 600; }
.pc-match-badge {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--gold);
  background: rgba(212, 175, 55, .12); padding: .2rem .55rem; border-radius: 999px;
}
.filter-hint {
  font-size: .82rem; color: var(--muted); background: var(--paper-2);
  border-radius: var(--radius-sm); padding: .85rem; line-height: 1.4;
}
.filter-hint a { display: block; margin-top: .3rem; font-weight: 600; }

/* ==========================================================================
   Find Work — UX/UI polish pass (project cards, filters, Recommended panel)
   ========================================================================== */

/* Card polish — hover lift + budget emphasis, scoped to project cards only
   so it doesn't change .row-card's look elsewhere (contracts, applications). */
.project-card {
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.project-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.project-card .budget-figure { color: var(--primary); font-weight: 700; }
.project-card .pc-meta i { color: var(--gold); margin-right: .1rem; }
.pc-skills { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.pc-skill-tag {
  font-size: .76rem; font-weight: 600; color: var(--primary);
  background: var(--paper-2); border: 1px solid var(--border);
  padding: .18rem .6rem; border-radius: 999px;
}

/* "Recommended for you" panel — a soft gold-tinted callout that sits above
   the regular list, visually distinct without competing with it. */
.recommended-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(212, 175, 55, .06), var(--white) 40%);
  border-color: rgba(212, 175, 55, .35);
  overflow: hidden;
}
.recommended-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
}
.recommended-star { color: var(--gold); }
.recommended-card {
  background: var(--white);
  border-color: rgba(212, 175, 55, .25);
}
.recommended-card:hover { border-color: var(--gold); }

/* Filters sidebar — consistent hover/focus states (base rules only styled
   the resting state, with no differentiation on interaction). */
.filters select,
.filters input[type="number"],
.filters input[type="text"] {
  transition: border-color .15s ease, box-shadow .15s ease;
}
.filters select:hover,
.filters input[type="number"]:hover,
.filters input[type="text"]:hover {
  border-color: var(--primary);
}
.filters select:focus,
.filters input[type="number"]:focus,
.filters input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 61, 74, .1);
}
.filters .btn-block { width: 100%; }

/* Result count line — keep the "sorted for your skills" note visually calm,
   not shouting the same weight as the count itself. */
.page-head .count { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }

@media (max-width: 640px) {
  .recommended-panel { padding: 1.1rem; }
  .project-card:hover { transform: none; } /* skip the lift on touch devices */
}

/* Step 3 — skills onboarding (grouped checkbox-chip picker) */
.onb-search-wrap { position: relative; }
.onb-search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .85rem; pointer-events: none;
}
.onb-search-input { padding-left: 2.4rem; }

.onb-skills-groups { max-height: 420px; overflow-y: auto; padding-right: .25rem; }
.onb-skill-group { margin-bottom: 1.25rem; }
.onb-skill-group-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 0 0 .5rem; border-left: 3px solid var(--gold); padding-left: .5rem;
}
.onb-skills-groups .skills-checklist { max-height: none; background: transparent; padding: 0; }

.onb-skill-status-bar {
  display: inline-flex; align-items: center; padding: .45rem .85rem; border-radius: 999px;
  background: var(--paper-2); font-weight: 600; transition: background .15s ease, color .15s ease;
}
.onb-skill-status-bar.onb-skill-status-valid { background: rgba(45, 90, 74, .12); color: #2D5A4A; }
.onb-skill-status-bar.onb-skill-status-warn { background: rgba(196, 60, 60, .1); color: var(--danger); }
.onb-skill-input:disabled:not(:checked) { opacity: .35; cursor: not-allowed; }
#onb-skill-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Resume upload — drag & drop zone */
.onb-dropzone {
  position: relative; display: block; border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 2.5rem 1.5rem; text-align: center; cursor: pointer;
  background: var(--paper-2); transition: border-color .15s ease, background .15s ease;
}
.onb-dropzone:hover, .onb-dropzone.is-dragover {
  border-color: var(--primary); background: rgba(28, 61, 74, .04);
}
.onb-dropzone.has-file { border-style: solid; }
.onb-dropzone-input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.onb-dropzone-icon { font-size: 2.1rem; color: var(--gold); margin-bottom: .6rem; }
.onb-dropzone-text { font-weight: 600; margin-bottom: .25rem; }
.onb-dropzone-browse { color: var(--primary); text-decoration: underline; }

.onb-file-selected {
  display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
  margin-top: .85rem;
}
.onb-file-selected i.fa-file-lines { color: var(--primary); font-size: 1.15rem; flex-shrink: 0; }
.onb-file-name { font-weight: 600; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onb-file-size { color: var(--muted); font-size: .82rem; flex-shrink: 0; }
.onb-file-clear {
  border: none; background: var(--paper-2); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--muted); flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.onb-file-clear:hover { background: var(--danger); color: #fff; }

@media (max-width: 640px) {
  .onb-dropzone { padding: 1.75rem 1rem; }
}
/* ==========================================================================
   APPLICATION HEADER (logged-in experience only) — Cerulean Blue system
   Scoped under .app-header / .wk-* so none of this touches the public
   marketing header's --primary/--gold tokens used above. Same 7-color
   cerulean palette already established in dashboard.css for the freelancer
   overview page, extended here so every other logged-in page (client
   dashboard, messages, notifications, settings, profile, projects, search)
   gets the same header instead of the public mega-menu.
   ========================================================================== */
.app-header {
  --wk-cerulean: #1C86B8; --wk-bright: #1B98E0; --wk-sky: #A7D8F0;
  --wk-bg: #F7FAFC; --wk-gray: #C8D0D6; --wk-ink: #22313F;
  --wk-border: rgba(200, 208, 214, .55); --wk-tint: rgba(28, 134, 184, .07);
  background: #fff;
}
.app-header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.app-header .logo-img { height: 38px; }
.app-search {
  display: flex; align-items: center; flex: 1; max-width: 480px; min-width: 0;
  background: var(--wk-bg); border: 1px solid var(--wk-border); border-radius: 10px;
  overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease;
}
.app-search:focus-within { border-color: var(--wk-cerulean); box-shadow: 0 0 0 3px var(--wk-tint); background: #fff; }
.app-search-type {
  border: none; background: transparent; padding: .6rem .5rem .6rem .9rem; font-size: .82rem;
  font-weight: 600; color: var(--wk-ink); font-family: inherit; border-right: 1px solid var(--wk-border); cursor: pointer;
}
.app-search input { flex: 1; min-width: 0; border: none; background: transparent; padding: .6rem .75rem; font-size: .88rem; font-family: inherit; outline: none; color: var(--wk-ink); }
.app-search button { border: none; background: transparent; padding: .6rem .9rem; cursor: pointer; color: var(--wk-cerulean); }
.app-nav { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.app-nav-link {
  padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .88rem; color: #fff;
  background: linear-gradient(135deg, var(--wk-cerulean), var(--wk-bright)); white-space: nowrap;
  transition: box-shadow .15s ease, transform .15s ease;
}
.app-nav-link:hover { box-shadow: 0 4px 12px rgba(28, 134, 184, .35); transform: translateY(-1px); color: #fff; }
.app-header-actions { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.app-nav-mobile { display: none; }

/* Icon buttons + dropdown shell shared by help / notifications / account menu */
.wk-icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  color: var(--wk-ink, #22313F); font-size: 1.05rem; background: none; border: none; cursor: pointer;
  font-family: inherit; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.wk-icon-btn:hover, .wk-icon-btn:focus-visible { background: rgba(28, 134, 184, .08); color: var(--wk-cerulean, #1C86B8); outline: none; }
.wk-badge {
  position: absolute; top: 1px; right: 1px; background: #e35555; color: #fff; font-size: .63rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding: 0 3px; border: 2px solid #fff;
}
.wk-dropdown { position: relative; }
.wk-panel {
  display: none; position: absolute; right: 0; top: calc(100% + 10px); background: #fff;
  border: 1px solid rgba(200, 208, 214, .6); border-radius: 14px; box-shadow: 0 12px 32px rgba(34, 49, 63, .16);
  z-index: 200; opacity: 0; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease;
}
.wk-panel.open { display: block; opacity: 1; transform: translateY(0); }

/* Notification panel */
.wk-notif-panel { width: 360px; max-width: calc(100vw - 2rem); }
.wk-panel-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid rgba(200, 208, 214, .5); font-weight: 700; font-size: .92rem; color: #22313F; }
.wk-link-btn { background: none; border: none; color: #1C86B8; font-weight: 600; font-size: .8rem; cursor: pointer; font-family: inherit; padding: 0; }
.wk-link-btn:hover { text-decoration: underline; }
.wk-panel-body { max-height: 360px; overflow-y: auto; }
.wk-panel-empty { padding: 2rem 1rem; text-align: center; color: rgba(34, 49, 63, .5); }
.wk-panel-empty i { font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.wk-notif-item { display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(200, 208, 214, .35); text-decoration: none; position: relative; transition: background .12s ease; }
.wk-notif-item:last-child { border-bottom: none; }
.wk-notif-item:hover, .wk-notif-item:focus-visible { background: rgba(28, 134, 184, .06); outline: none; }
.wk-notif-item.is-unread { background: rgba(28, 134, 184, .04); }
.wk-notif-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(28, 134, 184, .1); color: #1C86B8; display: grid; place-items: center; flex-shrink: 0; font-size: .85rem; }
.wk-notif-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.wk-notif-text strong { font-size: .86rem; color: #22313F; }
.wk-notif-text span { font-size: .8rem; color: rgba(34, 49, 63, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-notif-text em { font-style: normal; font-size: .72rem; color: rgba(34, 49, 63, .42); }
.wk-notif-dot { position: absolute; top: 1rem; right: 1rem; width: 8px; height: 8px; border-radius: 50%; background: #1C86B8; }
.wk-panel-foot { display: block; text-align: center; padding: .75rem; font-size: .84rem; font-weight: 600; color: #1C86B8; border-top: 1px solid rgba(200, 208, 214, .5); text-decoration: none; }
.wk-panel-foot:hover { background: rgba(28, 134, 184, .05); }

/* Account menu */
.wk-account-btn { display: flex; align-items: center; gap: .5rem; background: none; border: none; cursor: pointer; font-family: inherit; padding: .3rem .6rem .3rem .3rem; border-radius: 999px; transition: background .15s ease; }
.wk-account-btn:hover, .wk-account-btn:focus-visible { background: rgba(28, 134, 184, .08); outline: none; }
.wk-account-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.wk-account-name { font-weight: 600; font-size: .87rem; color: #22313F; }
.wk-account-menu { width: 280px; padding: .5rem; }
.wk-account-head { display: flex; align-items: center; gap: .75rem; padding: .75rem .6rem 1rem; border-bottom: 1px solid rgba(200, 208, 214, .5); margin-bottom: .4rem; }
.wk-account-avatar-lg { width: 44px; height: 44px; }
.wk-account-head strong { display: block; font-size: .92rem; color: #22313F; }
.wk-account-role { display: block; font-size: .78rem; color: rgba(34, 49, 63, .55); }
.wk-availability-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; color: #1a9c5c; margin-top: .25rem; }
.wk-availability-pill i { font-size: .5rem; }
.wk-availability-pill.is-busy { color: #c98a1e; }
.wk-availability-pill.is-off { color: rgba(34, 49, 63, .45); }
.wk-account-menu a, .wk-menu-soon { display: flex; align-items: center; gap: .65rem; padding: .6rem .65rem; color: #3a4550; border-radius: 10px; font-size: .87rem; text-decoration: none; transition: background .12s ease, color .12s ease; }
.wk-account-menu a i, .wk-menu-soon i { width: 16px; text-align: center; color: rgba(34, 49, 63, .45); }
.wk-account-menu a:hover, .wk-account-menu a:focus-visible { background: rgba(28, 134, 184, .08); color: #1C86B8; outline: none; }
.wk-menu-soon { color: rgba(34, 49, 63, .4); cursor: default; }
.wk-menu-soon em { margin-left: auto; font-style: normal; font-size: .68rem; background: rgba(200, 208, 214, .5); padding: .1rem .4rem; border-radius: 999px; }
.wk-menu-danger { color: #c0392b !important; }
.wk-menu-danger:hover { background: rgba(192, 57, 43, .08) !important; color: #c0392b !important; }
.wk-account-menu form[action$="switch-role.php"] { display: block; }
.wk-menu-switch-role { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .6rem .65rem; margin: 0; border: none; background: none; color: #1C86B8; border-radius: 10px; font-size: .87rem; font-family: inherit; text-align: left; cursor: pointer; transition: background .12s ease; }
.wk-menu-switch-role i { width: 16px; text-align: center; color: #1C86B8; }
.wk-menu-switch-role:hover, .wk-menu-switch-role:focus-visible { background: rgba(28, 134, 184, .08); outline: none; }
.wk-account-menu hr { border: none; border-top: 1px solid rgba(200, 208, 214, .5); margin: .4rem 0; }
.wk-menu-prefs { display: flex; align-items: center; justify-content: space-between; padding: .4rem .65rem; font-size: .82rem; color: #3a4550; }
.wk-mini-select { border: 1px solid rgba(200, 208, 214, .6); border-radius: 8px; padding: .25rem .5rem; font-size: .78rem; font-family: inherit; color: #22313F; background: #fff; }

/* Responsive */
@media (max-width: 880px) {
  .app-search-type, .app-nav { display: none; }
  .app-header-inner { gap: .75rem; }
}
@media (max-width: 680px) {
  .app-header .wk-account-name { display: none; }
  .app-header .app-help-btn { display: none; }
  .app-nav-mobile.open { display: flex; flex-direction: column; padding: .5rem 1rem 1rem; border-top: 1px solid rgba(200, 208, 214, .5); gap: .15rem; }
  .app-nav-mobile a { display: flex; align-items: center; gap: .65rem; padding: .65rem .5rem; color: #3a4550; font-weight: 600; font-size: .9rem; border-radius: 10px; }
  .app-nav-mobile a:hover { background: rgba(28, 134, 184, .08); }
  .wk-notif-panel, .wk-account-menu { position: fixed; left: 1rem; right: 1rem; top: 64px; width: auto; }
}

/* ==========================================================================
   About page — premium visual redesign (about.php)
   Original SVG illustrations only — no stock photography, no depicted
   real people. Scoped under .about-* / .mv-* / .journey-* / .region-*
   so nothing here affects any other page.
   ========================================================================== */

/* ---- Shared reveal-img (image/illustration entrance, slightly larger
   offset + scale than the text .reveal, still respects reduced-motion) ---- */
.reveal-img {
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal-img.is-visible { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal-img { opacity: 1; transform: none; transition: none; }
}

/* ---- Gentle decorative motion for illustration accents. Subtle, slow,
   and fully disabled under reduced-motion. Never applied to text. ---- */
@keyframes art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes art-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes art-pulse { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
.art-float-a, .art-float-b, .art-float-c, .art-float-d { transform-origin: center; animation: art-float 5s ease-in-out infinite; }
.art-float-b { animation-delay: .6s; animation-duration: 5.6s; }
.art-float-c { animation-delay: 1.1s; animation-duration: 4.6s; }
.art-float-d { animation-delay: 1.7s; animation-duration: 5.3s; }
.art-orbit-slow { transform-origin: center; animation: art-orbit 40s linear infinite; }
.art-pulse { transform-origin: center; animation: art-pulse 2.6s ease-out infinite; }
.art-pulse-delay { animation-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) {
  .art-float-a, .art-float-b, .art-float-c, .art-float-d, .art-orbit-slow, .art-pulse { animation: none; }
}

/* ---- Hero (split layout) ---- */
.about-hero { padding-top: 3.5rem; overflow: hidden; }
.about-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.about-eyebrow { background: var(--primary-light); color: var(--primary); margin-bottom: 1.1rem; }
.about-hero-copy h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .85rem; }
.about-lead { font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); max-width: 56ch; margin: 0 0 1.5rem; }
.about-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.about-hero-art svg { width: 100%; height: auto; display: block; }

/* Clients <-> Nisset Skills <-> Professionals connector */
.about-connector { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ac-node { display: flex; flex-direction: column; align-items: center; gap: .55rem; width: 118px; }
.ac-node span { font-size: .8rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.ac-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); display: grid; place-items: center; font-size: 1.1rem; color: var(--primary); box-shadow: var(--shadow); }
.ac-node-main .ac-icon { background: var(--primary); color: #fff; width: 62px; height: 62px; font-size: 1.3rem; border: none; }
.ac-node-main span { color: var(--primary); font-weight: 700; }
.ac-line { color: var(--gold); font-size: 1rem; opacity: .8; }

/* ---- Split sections (Our Story / People & Community) ---- */
.about-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: center; }
.about-split-reverse { grid-template-columns: 1.05fr .95fr; }
.about-split-reverse .about-split-copy { order: 1; }
.about-split-reverse .about-mosaic { order: 2; }
.about-split-art svg, .about-mosaic { width: 100%; }
.about-split-art svg { height: auto; display: block; }
.about-copy p { color: var(--ink-2); }

/* ---- Mission / Vision — distinct tints ---- */
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.mv-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; overflow: hidden; }
.mv-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.mv-card-mission { background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 55%); }
.mv-card-mission::before { background: var(--primary); }
.mv-card-vision { background: linear-gradient(180deg, rgba(230,174,37,.12) 0%, var(--white) 55%); }
.mv-card-vision::before { background: var(--gold); }
.mv-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--border); color: var(--primary); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.15rem; box-shadow: var(--shadow); }
.mv-card-vision .mv-icon { color: var(--gold-hover); }
.mv-card h2 { font-size: 1.3rem; margin-bottom: .5rem; }

/* ---- Freelancer / client journey cards with connected mini-timeline ---- */
.journey-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.journey-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow .2s ease, transform .2s ease; }
.journey-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.journey-art { margin-bottom: 1.1rem; }
.journey-art svg { width: 120px; height: auto; display: block; }
.journey-card h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.1rem; margin-bottom: 1.1rem; }
.journey-card h3 i { color: var(--gold); }
.journey-timeline { list-style: none; margin: 0 0 1.35rem; padding: 0 0 0 6px; position: relative; }
.journey-timeline::before { content: ''; position: absolute; left: 16px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.journey-timeline li { position: relative; padding: 0 0 1rem 40px; font-size: .92rem; color: var(--ink-2); }
.journey-timeline li:last-child { padding-bottom: 0; }
.journey-timeline li::before {
  content: ''; position: absolute; left: 8px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary-light);
  box-shadow: 0 0 0 3px var(--white);
}
.journey-timeline li:first-child::before { border-color: var(--gold); }

/* ---- 5-step flow with a connecting line (horizontal on desktop) ---- */
.about-flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.about-flow::before {
  content: ''; position: absolute; top: 34px; left: calc(10% + 4px); right: calc(10% + 4px);
  height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.flow-step { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.25rem; transition: box-shadow .2s ease, transform .2s ease; }
.flow-step:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.flow-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 1rem; margin-bottom: .6rem;
}
.flow-num { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 800; color: var(--gold); margin-bottom: .35rem; letter-spacing: .05em; }
.flow-step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.about-flow-more { text-align: center; margin-top: 1.75rem; }
.about-flow-more a { font-weight: 600; }

/* ---- People & community mosaic ---- */
.about-mosaic { position: relative; height: 320px; }
.mosaic-bubble {
  position: absolute; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-lg);
}
.mosaic-bubble i { font-size: 1.4rem; }
.mosaic-navy { background: linear-gradient(135deg, var(--primary), #073f4a); }
.mosaic-gold { background: linear-gradient(135deg, var(--gold), var(--gold-hover)); }
.mosaic-lg { width: 130px; height: 130px; top: 20px; left: 30%; }
.mosaic-lg i { font-size: 2rem; }
.mosaic-md { width: 92px; height: 92px; }
.mosaic-md:nth-of-type(2) { top: 10px; right: 6%; }
.mosaic-md:nth-of-type(3) { bottom: 30px; left: 4%; }
.mosaic-md:nth-of-type(6) { bottom: 10px; right: 18%; }
.mosaic-sm { width: 64px; height: 64px; }
.mosaic-sm:nth-of-type(4) { top: 130px; right: 26%; }
.mosaic-sm:nth-of-type(5) { top: 190px; left: 0; }
.about-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.about-tags span { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1.1rem; font-size: .85rem; font-weight: 600; color: var(--primary); }

/* ---- Education & certificates ---- */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.edu-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.edu-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.15rem; }
.edu-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.edu-card .btn { margin-top: 1rem; }
@media (max-width: 720px) {
  .edu-grid { grid-template-columns: 1fr; }
}

/* Certificate sample gallery */
.cert-gallery { margin-top: 2.25rem; text-align: center; }
.cert-gallery-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.cert-gallery-row { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.cert-thumb { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .6rem .8rem; width: 220px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; }
.cert-thumb:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cert-thumb img { width: 100%; height: auto; border-radius: 6px; display: block; }
.cert-thumb figcaption { margin-top: .6rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.cert-gallery-note { margin-top: 1.25rem; font-size: .82rem; max-width: 52ch; margin-left: auto; margin-right: auto; }
@media (max-width: 560px) {
  .cert-thumb { width: 100%; max-width: 280px; }
}

/* Real photo variant of the split-art slot (Our Story) */
.about-split-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-split-photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; display: block; border-radius: var(--radius); }

/* Real photo variant of the split-art slot (Our Story) */
.about-photo-frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-photo-frame img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; display: block; }

/* Education section — wide, non-identifying campus banner + two text cards */
.edu-banner { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.edu-banner img { width: 100%; height: clamp(180px, 32vw, 320px); object-fit: cover; display: block; }
.edu-banner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(0,38,74,0) 0%, rgba(0,38,74,.75) 100%);
}
.edu-banner figcaption span { color: #fff; font-weight: 600; font-size: .95rem; max-width: 46ch; display: block; }
@media (max-width: 600px) {
  .edu-banner figcaption { padding: 1.75rem 1.1rem 1rem; }
  .edu-banner figcaption span { font-size: .85rem; }
}

/* Certificate gallery (figure-based cards) */
.cert-gallery { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: 0; }
.cert-card { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .6rem .9rem; width: 240px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; text-align: center; }
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cert-card img { width: 100%; height: auto; border-radius: 6px; display: block; }
.cert-card figcaption { margin-top: .65rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
@media (max-width: 560px) {
  .cert-card { width: 100%; max-width: 300px; }
}

/* Leadership / team cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 720px; margin: 0 auto; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; text-align: center; transition: box-shadow .2s ease, transform .2s ease; }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; }
.team-avatar-initials { background: linear-gradient(135deg, var(--primary), #073f4a); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-role { font-size: .82rem; font-weight: 700; color: var(--gold-hover); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem; }

/* ---- Trust note ---- */
.about-trust-note { max-width: 62ch; margin: 1.75rem auto 0; text-align: center; font-size: .88rem; }

/* ---- Cambodia / future: SVG map + growth path ---- */
.region-art { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.region-art svg { width: 100%; max-width: 300px; height: auto; }
.region-path { display: flex; flex-direction: column; align-items: center; gap: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; width: 100%; }
.rp-node { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.rp-node i { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 1.1rem; }
.rp-node span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.rp-node-future i { background: var(--primary); color: #fff; }
.rp-node-future span { color: var(--primary); }
.rp-line { width: 2px; height: 26px; background: var(--border); margin: .35rem 0; }

/* ---- Values grid — subtle hover ---- */
.values-grid .value-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.values-grid .value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #c8c2b4; }
.values-grid .value-card h3 { font-size: 1rem; margin: 0 0 .35rem; }
.values-grid .value-card p { margin: 0; }

/* ---- Continuously evolving banner ---- */
.evolving-inner { display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.evolving-inner i { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; }
.evolving-inner p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .about-hero-ctas, .about-connector { justify-content: center; }
  .about-hero-art { max-width: 380px; margin: 0 auto; }
  .about-split, .about-split-reverse { grid-template-columns: 1fr; }
  .about-split-reverse .about-split-copy, .about-split-reverse .about-mosaic { order: initial; }
  .about-split-art { max-width: 380px; margin: 0 auto; }
  .about-mosaic { height: 260px; max-width: 380px; margin: 0 auto; }
  .about-flow { grid-template-columns: repeat(2, 1fr); }
  .about-flow::before { display: none; }
}
@media (max-width: 720px) {
  .mv-grid, .journey-grid { grid-template-columns: 1fr; }
  .about-connector { gap: .5rem; }
  .ac-line { transform: rotate(90deg); }
  .evolving-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .about-flow { grid-template-columns: 1fr; }
  .about-mosaic { height: 240px; }
}

/* ==========================================================================
   RUPP information page (rupp.php) — scoped, independent visual identity
   (deliberately distinct blue from Nisset Skills' navy/gold) so it reads
   as separate informational content, not part of the marketplace brand.
   ========================================================================== */
.rupp-disclaimer-bar, .rupp-hero, .rupp-facts-grid, .rupp-split, .rupp-timeline,
.rupp-mvv-grid, .rupp-faculty-grid, .rupp-degree-grid, .rupp-center-grid,
.rupp-resource-grid, .rupp-contact-grid, .rupp-final-disclaimer {
  --rupp-blue: #16345c; --rupp-blue-light: #e7edf5; --rupp-blue-hover: #0f2745; --rupp-gold: #b8912f;
}

.rupp-disclaimer-bar { background: #fff8e6; border-bottom: 1px solid #f0dfa8; padding: .85rem 0; }
.rupp-disclaimer-inner { display: flex; align-items: flex-start; gap: .75rem; }
.rupp-disclaimer-inner i { color: #92720c; font-size: 1.1rem; margin-top: .15rem; flex-shrink: 0; }
.rupp-disclaimer-inner p { margin: 0; font-size: .85rem; color: #5c4a12; line-height: 1.5; }
.rupp-disclaimer-inner a { color: #7a5f0f; text-decoration: underline; font-weight: 600; }

.rupp-hero { background: linear-gradient(180deg, var(--rupp-blue-light) 0%, var(--paper) 100%); padding: 3rem 0 2.5rem; }
.rupp-hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.rupp-eyebrow { background: #fff; color: var(--rupp-blue); border: 1px solid var(--rupp-blue-light); margin-bottom: 1rem; }
.rupp-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--rupp-blue); margin-bottom: .35rem; }
.rupp-khmer-name { font-size: 1.15rem; color: var(--rupp-blue); font-weight: 600; margin-bottom: 1rem; }
.rupp-lead { color: var(--ink-2); max-width: 60ch; margin: 0 auto 1.5rem; }
.rupp-hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.rupp-hero-ctas .btn-primary { background: var(--rupp-blue); }
.rupp-hero-ctas .btn-primary:hover { background: var(--rupp-blue-hover); }

.rupp-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.rupp-fact { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.rupp-fact strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--rupp-blue); margin-bottom: .3rem; }
.rupp-fact span { font-size: .82rem; color: var(--muted); }
.rupp-source-note { font-size: .8rem; margin-top: 1rem; }

.rupp-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; margin-bottom: 2.5rem; }
.rupp-split-art svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.rupp-art-caption { text-align: center; font-size: .78rem; margin-top: .5rem; }
.rupp-split-copy p { color: var(--ink-2); }

.rupp-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.rupp-tl-item { border-left: 3px solid var(--rupp-blue); padding-left: 1rem; }
.rupp-tl-year { display: block; font-family: var(--display); font-weight: 800; color: var(--rupp-blue); margin-bottom: .35rem; }
.rupp-tl-item p { margin: 0; font-size: .85rem; color: var(--ink-2); }

.rupp-mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rupp-mvv-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.rupp-mvv-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--rupp-blue-light); color: var(--rupp-blue); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.1rem; }
.rupp-mvv-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }

.rupp-faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.rupp-faculty-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: box-shadow .2s ease, transform .2s ease; }
.rupp-faculty-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.rupp-faculty-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--rupp-blue-light); color: var(--rupp-blue); display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.15rem; }
.rupp-faculty-card h3 { font-size: .98rem; margin-bottom: .6rem; }
.rupp-faculty-desc { font-size: .82rem; line-height: 1.5; margin-bottom: 1.1rem; text-align: left; min-height: 4.5em; }

.rupp-degree-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rupp-degree-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.rupp-degree-card h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--rupp-blue); }

.rupp-center-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.rupp-center-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.rupp-center-card i { font-size: 1.4rem; color: var(--rupp-blue); margin-bottom: .6rem; display: block; }
.rupp-center-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.rupp-research-themes { max-width: 70ch; margin-bottom: 1rem; }
.rupp-intl-lead, .rupp-student-lead { max-width: 75ch; color: var(--ink-2); margin-bottom: 1.25rem; }

.rupp-admissions-panel { background: var(--rupp-blue-light); border-radius: var(--radius); padding: 2.5rem; }
.rupp-admissions-panel .btn-primary { background: var(--rupp-blue); margin-top: 1rem; }
.rupp-admissions-panel .btn-primary:hover { background: var(--rupp-blue-hover); }

.rupp-resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.rupp-resource-card {
  display: flex; align-items: center; gap: .75rem; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; color: var(--ink); font-weight: 600; font-size: .9rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rupp-resource-card:hover { border-color: var(--rupp-blue); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--rupp-blue); }
.rupp-resource-card i { color: var(--rupp-blue); font-size: 1.1rem; width: 20px; text-align: center; }

.rupp-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.rupp-contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.rupp-contact-list li { display: flex; align-items: center; gap: .65rem; font-size: .95rem; }
.rupp-contact-list i { color: var(--rupp-blue); width: 18px; text-align: center; }
.rupp-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.rupp-map iframe { display: block; }

.rupp-final-disclaimer { display: flex; align-items: flex-start; gap: 1rem; background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.rupp-final-disclaimer i { color: var(--rupp-blue); font-size: 1.3rem; flex-shrink: 0; }
.rupp-final-disclaimer p { margin: 0; color: var(--ink-2); font-size: .9rem; }

@media (max-width: 900px) {
  .rupp-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .rupp-split { grid-template-columns: 1fr; }
  .rupp-mvv-grid, .rupp-degree-grid { grid-template-columns: 1fr; }
  .rupp-center-grid { grid-template-columns: repeat(2, 1fr); }
  .rupp-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rupp-facts-grid, .rupp-center-grid { grid-template-columns: 1fr; }
}
/* Intro paragraph under a page hero (about.php, school/index.php, rupp.php). The pages only
   had page-specific variants (.about-lead, .school-hero-lead, .rupp-lead); the shared
   .lead class they all also use was never defined. */
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }

/* ==========================================================================
   How it works (how-it-works.php) — tabs + three illustrated steps
   ========================================================================== */
.hiw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hiw-head h1 { margin-bottom: .35rem; }
.hiw-lead { margin: 0; }
.hiw-tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--paper-2); border: 1px solid var(--border); border-radius: 999px; }
.hiw-tabs a { padding: .5rem 1.15rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.hiw-tabs a:hover { color: var(--primary); }
.hiw-tabs a.active { background: var(--primary); color: var(--white); box-shadow: var(--shadow); }
.hiw-tabs a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hiw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.hiw-step h2 { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .4rem; font-size: 1.15rem; }
.hiw-step p { margin: 0; font-size: .95rem; line-height: 1.6; }
.hiw-num { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: .8rem; font-weight: 700; }
.hiw-figure { aspect-ratio: 16 / 9; padding: 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.hiw-figure img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 6px); transition: transform .3s ease; }
.hiw-step:hover .hiw-figure img { transform: scale(1.03); }
.hiw-green { background: #e6f4ea; }
.hiw-blue { background: #e3effa; }
.hiw-yellow { background: #fbf1d3; }
.hiw .how-cta { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }
@media (max-width: 900px) {
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .hiw-figure img { transition: none; } .hiw-step:hover .hiw-figure img { transform: none; } }

/* ===== Footer bottom bar ===== */
.site-footer .footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.5rem;
  padding: 1.25rem 0 1.5rem;
}

.site-footer .footer-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Row 1: Follow us + icons (horizontal, left) */
.site-footer .footer-social {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
}

.site-footer .footer-social-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-right: 0.15rem;
  white-space: nowrap;
}

.site-footer .footer-social-link,
.site-footer .footer-social a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50%;
  color: #fff !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-footer .footer-social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff !important;
}

/* Row 2: copyright left + legal links right */
.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer .footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer .footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.site-footer .footer-legal-links a {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  width: auto !important;
  border: none !important;
  background: none !important;
}

.site-footer .footer-legal-links a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Hide old footer-bottom stripe note if still present elsewhere */
.site-footer .footer-bottom {
  display: none;
}

@media (max-width: 640px) {
  .site-footer .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Account menu: keep Log out reachable — scroll long menus, style danger */
.wk-account-menu {
  max-height: min(70vh, 520px);
  overflow-y: auto;
}
.wk-account-menu a.wk-menu-danger {
  color: #b91c1c !important;
  font-weight: 600;
}
.wk-account-menu a.wk-menu-danger i {
  color: #b91c1c !important;
}
.wk-account-menu a.wk-menu-danger:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
}
/* ===== Our story — polaroid layout (refined) ===== */

.about-story .story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

/* Badge */
.about-story .story-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}
.about-story .story-badge i {
  color: #f59e0b;
  font-size: 0.72rem;
}

/* Title */
.about-story .story-title {
  font-family: var(--display, "Manrope", system-ui, sans-serif);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink, #0f1115);
  margin: 0 0 1.5rem;
}
.about-story .story-accent {
  color: var(--gold, #e6ae25);
}

/* Body copy */
.about-story .story-body p {
  color: var(--ink-2, #3a3f47);
  font-size: 1.04rem;
  line-height: 1.72;
  margin: 0 0 1.15rem;
  max-width: 52ch;
}
.about-story .story-body p:last-child {
  margin-bottom: 0;
}

/* ---- Photo stage ---- */
.about-story .story-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 0;
  min-height: 400px;
  padding: 2rem 1rem 2.5rem;
  /* soft glow behind polaroids */
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 38, 74, 0.04), transparent 70%);
}

/* ---- Polaroid card ---- */
.about-story .story-polaroid {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  max-width: 250px;
  background: #fff;
  /* classic polaroid: thin top/sides, taller bottom for caption */
  padding: 0.7rem 0.7rem 2.75rem;
  border-radius: 3px;
  border: 1px solid rgba(15, 17, 21, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 17, 21, 0.04),
    0 8px 24px rgba(15, 17, 21, 0.1),
    0 20px 48px rgba(15, 17, 21, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease;
}

.about-story .story-polaroid:hover {
  z-index: 5;
  box-shadow:
    0 2px 4px rgba(15, 17, 21, 0.05),
    0 12px 32px rgba(15, 17, 21, 0.12),
    0 28px 56px rgba(15, 17, 21, 0.1);
}

/* Photo */
.about-story .story-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1px;
  background: #e8ebe8;
}

/* Handwritten caption — always fully visible in bottom strip */
.about-story .story-polaroid figcaption {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.65rem;
  margin: 0;
  text-align: center;
  font-family: "Segoe Script", "Brush Script MT", "Apple Chancery", "Comic Sans MS", cursive;
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  font-weight: 400;
  color: #1a365d;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  pointer-events: none;
}

/* Left card — tilt back, slightly lower */
.about-story .story-polaroid-a {
  transform: rotate(-6deg) translateY(12px);
  z-index: 1;
  justify-self: end;
  margin-right: -8%;
}

/* Right card — tilt forward, sits on top */
.about-story .story-polaroid-b {
  transform: rotate(5deg) translateY(-8px);
  z-index: 2;
  justify-self: start;
  margin-left: -8%;
}

.about-story .story-polaroid-a:hover {
  transform: rotate(-4deg) translateY(8px) scale(1.03);
}
.about-story .story-polaroid-b:hover {
  transform: rotate(3deg) translateY(-12px) scale(1.03);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .about-story .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-story .story-photos {
    max-width: 460px;
    margin: 0 auto;
    min-height: 340px;
    padding: 1.5rem 0.75rem 2rem;
  }
  .about-story .story-polaroid {
    max-width: 220px;
  }
}

@media (max-width: 520px) {
  .about-story .story-photos {
    min-height: 250px;
    padding: 1rem 0.25rem 1.5rem;
  }
  .about-story .story-polaroid {
    max-width: 160px;
    padding: 0.5rem 0.5rem 2.35rem;
  }
  .about-story .story-polaroid figcaption {
    font-size: 0.78rem;
    bottom: 0.45rem;
  }
  .about-story .story-polaroid-a {
    transform: rotate(-5deg) translateY(8px);
    margin-right: -6%;
  }
  .about-story .story-polaroid-b {
    transform: rotate(4deg) translateY(-4px);
    margin-left: -6%;
  }
  .about-story .story-polaroid-a:hover,
  .about-story .story-polaroid-b:hover {
    transform: none; /* avoid overflow on small screens */
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-story .story-polaroid,
  .about-story .story-polaroid-a:hover,
  .about-story .story-polaroid-b:hover {
    transition: none;
  }
}

/* ===== Education banner with video support ===== */
.edu-banner {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.edu-banner img,
.edu-banner-video {
  width: 100%;
  height: clamp(320px, 48vw, 560px);   /* even taller */
  object-fit: cover;
  display: block;
}

.edu-banner figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(0,38,74,0) 0%, rgba(0,38,74,.75) 100%);
  pointer-events: none;
}

.edu-banner figcaption span {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  max-width: 46ch;
  display: block;
}

@media (max-width: 600px) {
  .edu-banner figcaption {
    padding: 1.75rem 1.1rem 1rem;
  }
  .edu-banner figcaption span {
    font-size: .85rem;
  }
}