/* ============================================================
   Cheapflix Nepal — Design System v4
   "Ink & Vermilion"
   Cool neutral canvas · midnight-indigo ink · vermilion accent
   Archivo (display) · Inter (body) · JetBrains Mono (labels)
   Covers: landing, auth, booking flow, user / provider / admin
   dashboards, chat, support, onboarding. Accessible + responsive.
   Class and custom-property names are unchanged from v3 so every
   existing page and inline style keeps working.
   ============================================================ */

:root {
  /* ---- surfaces ---- */
  --paper: #f5f5f8;
  --paper-deep: #ebebf1;
  --card: #ffffff;

  /* ---- ink ---- */
  --ink: #0b0d17;
  --ink-soft: #3c3f52;
  --muted: #6c7086;
  --faint: #a2a5b8;
  --line: #e2e3ea;
  --line-soft: #eeeef4;

  /* ---- primary: midnight indigo ---- */
  --pine: #12162e;
  --pine-dark: #0a0d1f;
  --pine-deep: #05060f;
  --pine-soft: #ecedf4;
  --pine-line: #c7c9da;

  /* ---- accent: vermilion ---- */
  --marigold: #e2402c;
  --marigold-deep: #c22e1b;
  --marigold-soft: #fdece8;

  /* ---- status ---- */
  --clay: #e2402c;
  --good: #0e7c5a;
  --good-soft: #e4f4ee;
  --warn: #b45309;
  --warn-soft: #fdf1de;
  --bad: #c42b2b;
  --bad-soft: #fceaea;
  --info: #2a4bd7;
  --info-soft: #e9edfc;

  /* ---- geometry: sharper than v3, deliberate ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 13, 23, 0.06);
  --shadow-md: 0 10px 24px -14px rgba(11, 13, 23, 0.32);
  --shadow-lg: 0 30px 60px -32px rgba(11, 13, 23, 0.38);
  --ring: 0 0 0 3px rgba(18, 22, 46, 0.15);

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: Archivo, Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h: 66px;
  --max: 1200px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --t-fast: 0.16s;
  --t-mid: 0.3s;
  --t-slow: 0.65s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* fine engineering grid + soft top glow replaces the v3 dot pattern */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(11, 13, 23, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 13, 23, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, transparent 78%);
}
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.032em;
}
h1, h2 { font-weight: 800; }
p { color: var(--ink-soft); }
a { color: var(--pine); text-underline-offset: 3px; }
::selection { background: var(--marigold); color: #fff; }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
section.block { padding: 104px 0; position: relative; z-index: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* mono micro-label — the system's signature detail */
.kicker, .eyebrow, .step-num, .dash-sec, .tbl th, .foot-col h4,
.menu-sec, .stat span, .filter-item, .pro-fact span, .cal-dow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; overflow: hidden;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
/* shine sweep — one shared micro-interaction for every button */
.btn::after {
  content: ''; position: absolute; inset: 0 auto 0 -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn:hover::after { animation: sweep 0.75s var(--ease-out); }
.btn-line:hover::after, .btn-ghost-light:hover::after { background: linear-gradient(100deg, transparent, rgba(226, 64, 44, 0.12), transparent); }
@keyframes sweep {
  0% { left: -60%; opacity: 0; }
  25% { opacity: 1; }
  100% { left: 115%; opacity: 0; }
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-pine { background: var(--pine); color: #fff; box-shadow: var(--shadow-md); }
.btn-pine:hover { background: var(--pine-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(11, 13, 23, 0.55); }
.btn-clay { background: var(--marigold); color: #fff; box-shadow: var(--shadow-md); }
.btn-clay:hover { background: var(--marigold-deep); transform: translateY(-2px); }
.btn-line { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.26); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.loading { position: relative; pointer-events: none; color: transparent !important; }
.btn.loading::after {
  content: ''; position: absolute; inset: auto; left: 50%; top: 50%; margin: -9px 0 0 -9px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite; background: none;
}
.btn-line.loading::after { border-color: rgba(18, 22, 46, 0.2); border-top-color: var(--pine); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(245, 245, 248, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.site-nav.scrolled { background: rgba(245, 245, 248, 0.94); border-bottom-color: var(--line); box-shadow: 0 12px 30px -26px rgba(11, 13, 23, 0.6); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; height: var(--nav-h); display: flex; align-items: center; gap: 16px; min-width: 0; }
.nav-inner .brand { margin-right: 0; flex-shrink: 0; }
.nav-inner .nav-links { margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: max-content; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--pine) url('../icons/mark.svg') center / cover no-repeat;
  color: transparent; font-size: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  transition: transform var(--t-mid) var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.04em; line-height: 1; }
.brand-name small {
  display: block; font-family: var(--font-mono); font-weight: 600; font-size: 9.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--marigold); margin-top: 3px;
}
.nav-links {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 0; border: none; background: none; flex-shrink: 0; max-width: 100%;
}
.nav-links a {
  position: relative; text-decoration: none; color: var(--ink-soft);
  font-size: 13.5px; font-weight: 500; padding: 8px 13px; border-radius: 8px;
  white-space: nowrap; transition: color var(--t-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--marigold); border-radius: 2px;
  transform-origin: left; animation: nav-underline 0.35s var(--ease-out);
}
@keyframes nav-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 4px; flex-shrink: 0; min-height: 40px; }
.nav-cta .btn { min-height: 38px; white-space: nowrap; }
.nav-user { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav-user strong { color: var(--ink); font-weight: 600; }
.nav-avatar { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.burger { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 9px; width: 40px; height: 40px; flex-shrink: 0; cursor: pointer; color: var(--ink); transition: border-color var(--t-fast) var(--ease-out); }
.burger:hover { border-color: var(--ink); }
body.nav-open { overflow: hidden; }
.mobile-menu { display: none; }
.or-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.or-row::before, .or-row::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* scroll progress — the page's pulse */
#cfProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--marigold), #ff8a5c);
  pointer-events: none;
}

/* ============================================================
   HERO — full-bleed midnight panel, light chrome above
   ============================================================ */
.hero {
  position: relative; z-index: 1; overflow: hidden;
  padding: calc(var(--nav-h) + 76px) 0 84px;
  background: radial-gradient(900px 520px at 82% -8%, rgba(226, 64, 44, 0.22), transparent 62%),
              radial-gradient(700px 480px at 8% 106%, rgba(42, 75, 215, 0.16), transparent 60%),
              linear-gradient(180deg, var(--pine-deep) 0%, var(--pine) 100%);
  border-radius: 0 0 32px 32px;
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1000px 620px at 50% 0%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(1000px 620px at 50% 0%, #000 0%, transparent 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 60px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse-ring 2.4s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  color: #fff; margin-bottom: 22px;
  letter-spacing: -0.045em; line-height: 0.98;
  text-wrap: balance;
}
.hero h1 .hand { position: relative; white-space: nowrap; display: inline-block; }
.hero h1 .hand svg { position: absolute; left: 0; right: 0; bottom: -8px; width: 100%; height: 10px; opacity: 0.95; }
.hero h1 .hand svg path { stroke: var(--marigold); }
.hero-sub { font-size: 17.5px; max-width: 470px; margin-bottom: 34px; color: rgba(255, 255, 255, 0.68); }

.search-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg); padding: 8px;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
  max-width: 580px; backdrop-filter: blur(14px);
  transition: border-color var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
}
.search-card:focus-within { border-color: rgba(255, 255, 255, 0.34); transform: translateY(-2px); }
.search-row { display: flex; gap: 6px; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; min-width: 0; transition: background var(--t-fast) var(--ease-out); }
.search-field:hover { background: rgba(255, 255, 255, 0.05); }
.search-field + .search-field { border-left: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0 10px 10px 0; }
.search-field svg { flex-shrink: 0; color: rgba(255, 255, 255, 0.5); }
.search-field input, .search-field select {
  border: none; outline: none; background: transparent; font-family: inherit;
  font-size: 15px; color: #fff; width: 100%;
}
.search-field input::placeholder { color: rgba(255, 255, 255, 0.42); }
.search-field select option { color: var(--ink); }
.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick-tag {
  font-family: inherit; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.quick-tag:hover { border-color: var(--marigold); color: #fff; background: rgba(226, 64, 44, 0.16); transform: translateY(-2px); }
.trust-row { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--pine);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; margin-left: -10px;
  transition: transform var(--t-fast) var(--ease-spring);
}
.trust-avatars span:first-child { margin-left: 0; }
.trust-avatars:hover span { transform: translateY(-3px); }
.trust-text { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.trust-text strong { color: #fff; font-weight: 600; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 13px; }

.hero-visual { position: relative; perspective: 1200px; }
.job-card {
  background: rgba(255, 255, 255, 0.97); border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-xl); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
  padding: 24px; position: relative; z-index: 2; color: var(--ink);
  transform-style: preserve-3d;
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.job-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.job-avatar { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.job-name { font-weight: 700; font-size: 15.5px; }
.job-cat { font-size: 13px; color: var(--muted); }
.job-status { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--good); background: var(--good-soft); padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.job-lines { display: grid; gap: 9px; margin: 16px 0; }
.job-lines i { display: block; height: 8px; border-radius: 4px; background: var(--paper-deep); }
.job-lines i:nth-child(1) { animation: line-grow 1s var(--ease-out) backwards; }
.job-lines i:nth-child(2) { animation: line-grow 1s 0.1s var(--ease-out) backwards; }
.job-lines i:nth-child(3) { animation: line-grow 1s 0.2s var(--ease-out) backwards; }
@keyframes line-grow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }
.job-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.job-price { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.job-price small { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.float-chip {
  position: absolute; background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 13px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  padding: 11px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; z-index: 3; color: var(--ink);
  animation: floaty 6s ease-in-out infinite;
  backdrop-filter: blur(10px);
}
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.float-chip .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--pine); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chip-a { top: -24px; right: 20px; }
.chip-b { bottom: -22px; left: -14px; animation-delay: 3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.hstat { padding: 26px 24px 0; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.hstat:first-child { border-left: none; padding-left: 0; }
.hstat b { font-family: var(--font-display); font-size: 15px; font-weight: 700; display: block; line-height: 1.2; color: #fff; letter-spacing: -0.02em; margin-bottom: 4px; }
.hstat b em { font-style: normal; color: var(--marigold); }
.hstat span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }

/* ---------- section headings ---------- */
.kicker { color: var(--marigold); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.sec-title { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 14px; letter-spacing: -0.038em; text-wrap: balance; }
.sec-sub { font-size: 16.5px; max-width: 560px; color: var(--ink-soft); }
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head.center .sec-sub { margin: 0 auto; }
.sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }

/* ---------- category + provider cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.cat-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 16px 20px; text-align: center;
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out);
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--marigold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-ic { width: 48px; height: 48px; border-radius: 13px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; transition: transform var(--t-mid) var(--ease-spring); }
.cat-card:hover .cat-ic { transform: rotate(-8deg) scale(1.1); }
.cat-ic svg { width: 23px; height: 23px; }
.cat-card b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.cat-card span { font-size: 11.5px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 20px 24px;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num { color: var(--marigold); background: var(--marigold-soft); border-radius: 999px; padding: 4px 11px; display: inline-block; margin-bottom: 16px; }
.step h3 { font-size: 16.5px; margin-bottom: 7px; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.02em; }
.step p { font-size: 13.5px; }
.step svg { width: 25px; height: 25px; color: var(--ink); margin-bottom: 14px; display: block; transition: transform var(--t-mid) var(--ease-spring), color var(--t-mid) var(--ease-out); }
.step:hover svg { transform: translateY(-3px) scale(1.08); color: var(--marigold); }

.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.pro-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out);
}
.pro-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--marigold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.pro-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pro-card:hover::before { transform: scaleX(1); }
.pro-card.selected { border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-soft); }
.pro-card.selected::before { transform: scaleX(1); }
.pro-top { display: flex; gap: 13px; margin-bottom: 14px; }
.pro-avatar { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.pro-name { font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: -0.02em; }
.pro-cat { font-size: 12.5px; color: var(--muted); }
.pro-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--good); margin-top: 5px; }
.pro-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; }
.pro-rating .stars { font-size: 12px; }
.pro-rating b { color: var(--ink); }
.pro-rating span { color: var(--muted); }
.pro-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.pro-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.pro-price { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.pro-price small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); }

/* ---------- testimonials / CTA / app band ---------- */
.testi-band {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 100%);
  border-radius: 28px; padding: 68px 60px; color: #fff;
}
.testi-band::after {
  content: ''; position: absolute; top: -140px; right: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 64, 44, 0.3), transparent 68%);
}
.testi-band .sec-title { color: #fff; }
.testi-band .sec-sub { color: rgba(255, 255, 255, 0.6); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 42px; }
.testi-card {
  position: relative; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-lg);
  padding: 28px; transition: background var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out);
}
.testi-card:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); transform: translateY(-4px); }
.testi-card p { color: rgba(255, 255, 255, 0.84); font-size: 14.5px; margin-bottom: 22px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who i { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 12.5px; color: #fff; flex-shrink: 0; }
.testi-who b { display: block; font-size: 14px; color: #fff; font-weight: 600; }
.testi-who span { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 48px 44px;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.cta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cta-card.dark { background: linear-gradient(150deg, var(--marigold) 0%, #b8240f 100%); color: #fff; }
.cta-card.cream { background: var(--card); border: 1px solid var(--line); }
.cta-card h2 { font-size: clamp(24px, 2.7vw, 33px); margin-bottom: 12px; letter-spacing: -0.035em; }
.cta-card.dark p { color: rgba(255, 255, 255, 0.86); margin-bottom: 26px; max-width: 380px; }
.cta-card.cream p { margin-bottom: 26px; max-width: 380px; }
.cta-card.dark .kicker { color: rgba(255, 255, 255, 0.85); }

footer.site-foot { background: var(--pine-deep); color: rgba(255, 255, 255, 0.6); padding: 72px 0 32px; margin-top: 0; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.foot-grid-5 { grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { font-size: 13.5px; color: rgba(255, 255, 255, 0.45); margin-top: 16px; max-width: 300px; }
.foot-col h4 { color: #fff; margin-bottom: 18px; }
.foot-col a { display: block; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); text-decoration: none; margin-bottom: 11px; transition: color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.foot-col a:hover { color: #fff; transform: translateX(3px); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: all var(--t-fast) var(--ease-out); margin: 0; }
.social-row a:hover { background: var(--marigold); color: #fff; border-color: var(--marigold); transform: translateY(-3px); }

/* ---------- mobile app band ---------- */
.app-band {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--pine) 0%, var(--pine-deep) 72%);
  border-radius: 28px; padding: 60px; color: #fff;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center;
}
.app-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 400px at 100% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 400px at 100% 0%, #000, transparent 75%);
}
.app-band .sec-title { color: #fff; }
.app-copy { position: relative; z-index: 1; }
.app-copy p { color: rgba(255, 255, 255, 0.66); max-width: 420px; margin-bottom: 26px; }
.app-note { font-size: 13px !important; margin: 20px 0 0 !important; }
.store-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 10px 18px 10px 14px; color: #fff;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.store-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.store-btn small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, 0.5); line-height: 1.2; }
.store-btn b { display: block; font-size: 15px; line-height: 1.25; font-weight: 600; }
.app-phone { display: flex; justify-content: center; position: relative; z-index: 1; }
.phone-frame {
  width: 236px; background: #05060f; border-radius: 38px; padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9);
  animation: floaty 7s ease-in-out infinite;
}
.phone-notch { width: 90px; height: 22px; background: #05060f; border-radius: 0 0 13px 13px; margin: 0 auto 8px; border: 1px solid rgba(255, 255, 255, 0.08); border-top: none; }
.phone-screen { background: var(--paper); border-radius: 27px; padding: 20px 15px; display: grid; gap: 9px; justify-items: center; text-align: center; color: var(--ink); }
.phone-screen b { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.phone-line { display: block; height: 8px; border-radius: 4px; background: var(--paper-deep); }
.phone-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; font-size: 12px; font-weight: 600; width: 100%; text-align: left; }
.phone-card i { font-style: normal; margin-right: 6px; }
.phone-card em { display: block; font-style: normal; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.phone-btn { background: var(--marigold); color: #fff; border-radius: 10px; font-size: 12.5px; font-weight: 600; padding: 10px 16px; width: 100%; }

/* ---------- auth ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; padding: 56px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(760px 520px at 22% -6%, rgba(226, 64, 44, 0.26), transparent 62%),
              linear-gradient(165deg, var(--pine) 0%, var(--pine-deep) 100%);
}
.auth-side::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(700px 500px at 30% 10%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 500px at 30% 10%, #000, transparent 78%);
}
.auth-side::after { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.09); right: -170px; bottom: -170px; }
.auth-side > div { position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-size: clamp(30px, 3.1vw, 44px); margin: 26px 0 16px; letter-spacing: -0.04em; }
.auth-side > div p { color: rgba(255, 255, 255, 0.62); max-width: 400px; }
.auth-proof { display: flex; gap: 30px; margin-top: 42px; }
.auth-proof b { font-family: var(--font-display); font-size: 25px; font-weight: 800; color: #fff; display: block; letter-spacing: -0.04em; }
.auth-proof span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.auth-steps { display: grid; gap: 12px; margin-top: 34px; max-width: 400px; }
.auth-step { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 14px 16px; transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.auth-step:hover { background: rgba(255, 255, 255, 0.09); transform: translateX(4px); }
.auth-step i { width: 28px; height: 28px; border-radius: 8px; background: var(--marigold); color: #fff; font-style: normal; font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-mono); }
.auth-step b { display: block; font-size: 14px; color: #fff; font-weight: 600; }
.auth-step span { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 38px 34px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 31px; margin-bottom: 10px; letter-spacing: -0.04em; }
.auth-card > p { margin-bottom: 26px; font-size: 14.5px; }
.auth-card .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 20px; color: var(--muted); transition: color var(--t-fast) var(--ease-out); }
.auth-card .back-link:hover { color: var(--marigold); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.005em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md);
  outline: none; transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); box-shadow: var(--ring); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-err { font-size: 12.5px; color: var(--bad); margin-top: 6px; display: none; }
.field.invalid input { border-color: var(--bad); background: var(--bad-soft); }
.field.invalid .field-err { display: block; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-wrap input { padding-left: 40px; }
.input-wrap .pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: none; color: var(--muted); font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  padding: 7px 10px; border-radius: 7px; cursor: pointer; text-transform: uppercase;
}
.input-wrap .pw-toggle:hover { background: var(--paper-deep); color: var(--ink); }
.pw-meter { display: flex; gap: 5px; margin-top: 9px; }
.pw-meter i { height: 4px; flex: 1; border-radius: 3px; background: var(--line-soft); transition: background var(--t-mid) var(--ease-out); }
.pw-meter[data-s="1"] i:nth-child(1) { background: var(--bad); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--marigold); }
.pw-meter[data-s="4"] i:nth-child(-n+4) { background: var(--good); }
.form-note { font-size: 13px; text-align: center; margin-top: 22px; }
.alert { border-radius: var(--r-md); padding: 13px 16px; font-size: 13.5px; margin-bottom: 18px; display: none; }
.alert.show { display: block; animation: toast-in 0.28s var(--ease-out); }
.alert-err { background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(196, 43, 43, 0.22); }
.alert-ok { background: var(--good-soft); color: var(--good); border: 1px solid rgba(14, 124, 90, 0.22); }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.role-card { border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: 15px; cursor: pointer; text-align: left; font-family: inherit; transition: all var(--t-fast) var(--ease-out); }
.role-card b { display: block; font-size: 14px; margin-bottom: 3px; font-weight: 600; }
.role-card span { font-size: 12.5px; color: var(--muted); }
.role-card:hover { border-color: var(--faint); transform: translateY(-2px); }
.role-card.on { border-color: var(--pine); background: var(--pine-soft); box-shadow: var(--ring); }
.tabs { display: flex; gap: 4px; background: var(--paper-deep); border-radius: var(--r-md); padding: 4px; margin-bottom: 26px; }
.tabs button { flex: 1; border: none; background: transparent; font-family: inherit; font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 10px; border-radius: 7px; cursor: pointer; transition: all var(--t-fast) var(--ease-out); }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- dashboards ---------- */
.dash { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; width: 100%; }
#dashScrim { display: none; }
.dash-side {
  background: var(--pine-deep); color: rgba(255, 255, 255, 0.66);
  padding: 22px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.dash-side .brand-name { color: #fff; }
.dash-profile { display: flex; align-items: center; gap: 11px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--r-md); padding: 12px; margin: 14px 4px 12px; }
.dash-profile .pa { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.dash-profile b { display: block; font-size: 13px; color: #fff; line-height: 1.25; font-weight: 600; }
.dash-profile span { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.dash-sec { color: rgba(255, 255, 255, 0.32); padding: 16px 14px 6px; }
.dash-link {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 9px; color: rgba(255, 255, 255, 0.62);
  text-decoration: none; font-size: 13.5px; font-weight: 500;
  border: none; background: none; font-family: inherit; width: 100%; text-align: left; cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.dash-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.dash-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.dash-link.on { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; }
.dash-link.on::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--marigold); }
.dash-link .count { margin-left: auto; background: var(--marigold); color: #fff; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; min-width: 21px; height: 21px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
.dash-side-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }
.dash-main { padding: 34px 40px 76px; min-width: 0; width: 100%; max-width: none; }
.dash-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-top h1 { font-size: clamp(24px, 2.7vw, 33px); }
.dash-top p { font-size: 14px; }
.dash-top .spacer { flex: 1; }
.top-search { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 15px; min-width: 240px; transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.top-search:focus-within { border-color: var(--pine); box-shadow: var(--ring); }
.top-search svg { color: var(--faint); flex-shrink: 0; }
.top-search input { border: none; outline: none; background: transparent; font-family: inherit; font-size: 14px; width: 100%; color: var(--ink); }

.dash-hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: 26px 28px; margin-bottom: 22px; color: #fff;
  background: linear-gradient(140deg, var(--pine) 0%, var(--pine-deep) 100%);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.dash-hero::after {
  content: ''; position: absolute; top: -120px; right: -80px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(226, 64, 44, 0.3), transparent 68%);
}
.dash-hero h2 { color: #fff; font-size: clamp(20px, 2.4vw, 27px); margin-bottom: 7px; letter-spacing: -0.035em; }
.dash-hero p { color: rgba(255, 255, 255, 0.7); font-size: 13.5px; max-width: 560px; }
.dash-hero .btn { flex-shrink: 0; position: relative; z-index: 1; }
.dash-hero > * { position: relative; z-index: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat {
  position: relative; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--pine); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.stat.in::before { transform: scaleX(1); }
.stat-grid .stat:nth-child(2)::before { background: var(--good); }
.stat-grid .stat:nth-child(3)::before { background: var(--marigold); }
.stat-grid .stat:nth-child(4)::before { background: var(--info); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-ic svg { width: 20px; height: 20px; }
.stat span { color: var(--muted); }
.stat b { font-family: var(--font-display); font-size: 29px; font-weight: 800; display: block; margin-top: 4px; line-height: 1.1; letter-spacing: -0.045em; }
.stat small { font-size: 12px; color: var(--good); font-weight: 600; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: 18px; letter-spacing: -0.03em; }
.panel-head p { font-size: 13px; }
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 680px; }
.tbl th { text-align: left; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background var(--t-fast) var(--ease-out); }
.tbl tbody tr:hover td { background: var(--paper); }
.cell-main { display: flex; align-items: center; gap: 10px; }
.cell-avatar { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11.5px; font-weight: 700; flex-shrink: 0; }
.cell-main b { display: block; font-size: 13px; line-height: 1.3; font-weight: 600; }
.cell-main span { font-size: 11.5px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-green { background: var(--good-soft); color: var(--good); }
.pill-amber { background: var(--warn-soft); color: var(--warn); }
.pill-red { background: var(--bad-soft); color: var(--bad); }
.pill-grey { background: var(--paper-deep); color: var(--ink-soft); }
.pill-blue { background: var(--info-soft); color: var(--info); }

.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty-ic { width: 58px; height: 58px; border-radius: 16px; background: var(--paper-deep); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--faint); }
.empty-ic svg { width: 26px; height: 26px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 5px; font-weight: 600; }

.skel { border-radius: 8px; background: linear-gradient(90deg, var(--paper-deep) 25%, #f7f7fa 50%, var(--paper-deep) 75%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

.progress { height: 7px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--pine); transition: width 0.6s var(--ease-out); }
.meter-grid { display: grid; gap: 13px; }
.meter-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 12px; align-items: center; font-size: 13px; }
.meter-row .progress { height: 8px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 152px; padding-top: 10px; }
.bars .bar { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--pine-soft); border: 1px solid var(--pine-line); position: relative; min-height: 8px; transition: height 0.6s var(--ease-out); }
.bars .bar.hot { background: var(--marigold); border-color: var(--marigold-deep); }
.bars .bar span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); font-weight: 600; font-family: var(--font-mono); }

.switch { position: relative; width: 44px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; margin: 0; z-index: 2; }
.switch .track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background var(--t-fast) var(--ease-out); }
.switch .track::after { content: ''; position: absolute; width: 19px; height: 19px; border-radius: 50%; background: #fff; top: 3px; left: 3px; box-shadow: var(--shadow-sm); transition: transform var(--t-fast) var(--ease-spring); }
.switch input:checked + .track { background: var(--good); }
.switch input:checked + .track::after { transform: translateX(19px); }

/* ---------- booking flow ---------- */
.flow-shell { max-width: 1080px; margin: 0 auto; padding: calc(var(--nav-h) + 44px) 28px 96px; position: relative; z-index: 1; }
.flow-steps { display: flex; align-items: center; gap: 8px; margin: 28px 0 36px; }
.fstep { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--faint); transition: color var(--t-mid) var(--ease-out); }
.fstep i { width: 27px; height: 27px; border-radius: 8px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; background: var(--card); font-weight: 700; font-family: var(--font-mono); transition: all var(--t-mid) var(--ease-spring); }
.fstep.done { color: var(--pine); }
.fstep.done i { background: var(--pine); border-color: var(--pine); color: #fff; }
.fstep.now { color: var(--ink); }
.fstep.now i { border-color: var(--marigold); color: var(--marigold); box-shadow: 0 0 0 3px var(--marigold-soft); }
.fline { flex: 1; height: 1.5px; background: var(--line); min-width: 20px; position: relative; overflow: hidden; }
.flow-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.sum-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding: 7px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 15px; font-weight: 600; font-size: 15px; }
.sum-row.total span:last-child { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -0.04em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 17px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--t-fast) var(--ease-out); color: var(--ink-soft); }
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip.on { background: var(--pine); border-color: var(--pine); color: #fff; font-weight: 600; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px; cursor: pointer; font-family: inherit; background: var(--card); text-align: left; transition: all var(--t-fast) var(--ease-out); }
.slot b { display: block; font-size: 13px; font-weight: 600; }
.slot span { font-size: 11.5px; color: var(--muted); }
.slot:hover { border-color: var(--faint); transform: translateY(-2px); }
.slot.on { border-color: var(--pine); background: var(--pine-soft); box-shadow: var(--ring); }
.search-bar { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 15px; transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.search-bar:focus-within { border-color: var(--pine); box-shadow: var(--ring); }
.search-bar svg { color: var(--faint); flex-shrink: 0; }
.search-bar input { border: none; outline: none; background: transparent; font-family: inherit; font-size: 15px; width: 100%; color: var(--ink); }

/* ---------- modal / toast ---------- */
.modal-veil { position: fixed; inset: 0; background: rgba(5, 6, 15, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-veil.show { display: flex; }
.modal { background: var(--card); border-radius: var(--r-xl); max-width: 520px; width: 100%; padding: 32px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop 0.3s var(--ease-spring); border: 1px solid var(--line-soft); }
.modal h2 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.035em; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
#toasts { position: fixed; bottom: 24px; right: 24px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 48px)); }
.toast { background: var(--pine-deep); color: #fff; border-radius: var(--r-md); padding: 14px 17px; font-size: 13.5px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; animation: toast-in 0.35s var(--ease-spring); border-left: 3px solid var(--marigold); }
.toast.ok { border-left-color: #34d399; }
.toast.err { border-left-color: #f87171; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- support / faq ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); margin-bottom: 10px; overflow: hidden; transition: border-color var(--t-fast) var(--ease-out); }
.faq:hover { border-color: var(--faint); }
.faq.open { border-color: var(--pine); }
.faq button { width: 100%; background: none; border: none; font-family: inherit; font-size: 14.5px; font-weight: 600; text-align: left; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--ink); }
.faq button span { transition: transform var(--t-mid) var(--ease-spring); color: var(--marigold); font-size: 19px; line-height: 1; }
.faq.open button span { transform: rotate(135deg); }
.faq .ans { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out); }
.faq.open .ans { max-height: 300px; }
.faq .ans p { padding: 0 20px 19px; font-size: 14px; }
.ticket-btn { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 8px; cursor: pointer; font-family: inherit; background: var(--card); transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.ticket-btn:hover { border-color: var(--faint); transform: translateX(3px); }
.ticket-btn.open { background: var(--pine-soft); border-color: var(--pine-line); }
.msg { border-radius: 12px; padding: 11px 14px; font-size: 14px; max-width: 90%; }
.msg.mine { background: var(--pine-soft); margin-left: auto; }
.msg.theirs { background: var(--paper-deep); }
.msg-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- icons ---------- */
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.ic-sm { width: 15px; height: 15px; }
.btn .ic { width: 17px; height: 17px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--pine); cursor: pointer; transition: all var(--t-fast) var(--ease-out); text-decoration: none; }
.icon-btn:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.icon-btn.call { background: var(--good-soft); border-color: rgba(14, 124, 90, 0.22); color: var(--good); }
.icon-btn.chat { background: var(--info-soft); border-color: rgba(42, 75, 215, 0.22); color: var(--info); }

/* ---------- provider public profile ---------- */
.pro-hero { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.pro-hero-avatar { width: 100px; height: 100px; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 33px; flex-shrink: 0; box-shadow: var(--shadow-md); }
.pro-hero h1 { font-size: clamp(26px, 3vw, 37px); margin-bottom: 6px; }
.pro-hero .sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.pro-hero-actions { display: grid; gap: 10px; min-width: 210px; }
.pro-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.pro-fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.pro-fact b { font-family: var(--font-display); font-size: 21px; font-weight: 800; display: block; letter-spacing: -0.04em; }
.pro-fact span { color: var(--muted); }
.bio-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; font-size: 14.5px; }
.svc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.svc-row:last-child { border-bottom: none; }
.review-card { border: 1px solid var(--line-soft); background: var(--paper); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 10px; }
.review-card .who { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.review-card .who .cell-avatar { width: 28px; height: 28px; font-size: 10.5px; border-radius: 8px; }

/* ---------- chat ---------- */
.chat-shell { display: grid; grid-template-columns: 320px 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; min-height: 560px; max-height: calc(100vh - 220px); box-shadow: var(--shadow-sm); }
.chat-list { border-right: 1px solid var(--line-soft); overflow-y: auto; background: var(--paper); }
.chat-thread-btn { display: flex; gap: 12px; width: 100%; text-align: left; padding: 15px 17px; border: none; border-bottom: 1px solid var(--line-soft); background: transparent; cursor: pointer; font-family: inherit; transition: background var(--t-fast) var(--ease-out); align-items: center; }
.chat-thread-btn:hover { background: var(--card); }
.chat-thread-btn.on { background: var(--card); box-shadow: inset 3px 0 0 var(--marigold); }
.chat-thread-btn .t { min-width: 0; flex: 1; }
.chat-thread-btn b { display: block; font-size: 13.5px; font-weight: 600; }
.chat-thread-btn small { font-size: 11.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { background: var(--marigold); color: #fff; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); background: var(--card); flex-wrap: wrap; }
.chat-body { flex: 1; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.bubble { max-width: 72%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; animation: pop 0.22s var(--ease-spring); }
.bubble.mine { background: var(--pine); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.theirs { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-time { font-size: 10.5px; opacity: 0.6; margin-top: 4px; }
.chat-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line-soft); background: var(--card); }
.chat-input input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 18px; font-family: inherit; font-size: 14px; outline: none; transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.chat-input input:focus { border-color: var(--pine); box-shadow: var(--ring); }
.typing { font-size: 12px; color: var(--muted); font-style: italic; }

/* ---------- payments ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pay-card { border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: 15px; cursor: pointer; font-family: inherit; text-align: left; transition: all var(--t-fast) var(--ease-out); display: grid; gap: 5px; }
.pay-card b { font-size: 13.5px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pay-card span { font-size: 11.5px; color: var(--muted); }
.pay-card:hover { border-color: var(--faint); transform: translateY(-2px); }
.pay-card.on { border-color: var(--pine); background: var(--pine-soft); box-shadow: var(--ring); }
.pay-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--paper-deep); border-radius: 999px; padding: 6px 12px; }
.receipt { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 18px; background: var(--paper); }
.qr-ph { width: 150px; height: 150px; border-radius: var(--r-md); background: repeating-linear-gradient(45deg, var(--paper-deep), var(--paper-deep) 8px, #fff 8px, #fff 16px); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; color: var(--pine); text-align: center; margin: 0 auto; font-family: var(--font-mono); }

/* ---------- notifications ---------- */
.bell-wrap { position: relative; }
.bell-btn { position: relative; }
.bell-count { position: absolute; top: -6px; right: -6px; background: var(--marigold); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 600; min-width: 19px; height: 19px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); }
.notif-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 94vw); background: var(--card); z-index: 100; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform 0.3s var(--ease-out); display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.notif-drawer.open { transform: none; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.notif-list { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.notif-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 15px; background: var(--card); transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.notif-card:hover { transform: translateX(-3px); }
.notif-card.unread { border-color: var(--pine-line); background: var(--pine-soft); }
.notif-card b { font-size: 13px; display: block; font-weight: 600; }
.notif-card p { font-size: 12.5px; margin: 4px 0 10px; }
.notif-card time { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.notif-settings { border-top: 1px solid var(--line-soft); padding: 16px 20px; display: grid; gap: 10px; background: var(--paper); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; }
#notifScrim { position: fixed; inset: 0; background: rgba(5, 6, 15, 0.5); z-index: 95; display: none; }
#notifScrim.show { display: block; }

/* ---------- booking timeline ---------- */
.timeline { display: grid; gap: 0; margin: 8px 0; }
.tl-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 20px; }
.tl-step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-dot { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--faint); z-index: 1; }
.tl-step.done .tl-dot { background: var(--pine); border-color: var(--pine); color: #fff; }
.tl-step.now .tl-dot { border-color: var(--marigold); color: var(--marigold); box-shadow: 0 0 0 3px var(--marigold-soft); }
.tl-step b { font-size: 13.5px; display: block; font-weight: 600; }
.tl-step span { font-size: 12px; color: var(--muted); }

/* ---------- booking filters + favorites ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 13px 15px; }
.filter-item { display: grid; gap: 5px; color: var(--muted); }
.filter-item select { font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--card); outline: none; text-transform: none; letter-spacing: normal; transition: border-color var(--t-fast) var(--ease-out); }
.filter-item select:focus { border-color: var(--pine); box-shadow: var(--ring); }
.fav-btn { border: 1px solid var(--line); background: var(--card); width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--faint); transition: all var(--t-fast) var(--ease-spring); flex-shrink: 0; }
.fav-btn svg { width: 16px; height: 16px; }
.fav-btn:hover { color: var(--marigold); border-color: var(--marigold); transform: scale(1.08); }
.fav-btn.on { color: var(--marigold); border-color: var(--marigold); background: var(--marigold-soft); }
.fav-btn.on svg { fill: currentColor; animation: heart-pop 0.4s var(--ease-spring); }
@keyframes heart-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- calendar ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { border: 1px solid var(--line-soft); background: var(--card); border-radius: 8px; min-height: 52px; padding: 5px 6px; font-size: 11.5px; cursor: pointer; font-family: inherit; text-align: left; transition: all var(--t-fast) var(--ease-out); }
.cal-day b { display: block; font-size: 12.5px; font-weight: 600; }
.cal-day .dots { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; }
.cal-day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--marigold); }
.cal-day .dots i.done { background: var(--good); }
.cal-day .dots i.cancel { background: var(--faint); }
.cal-day:hover { border-color: var(--faint); transform: translateY(-2px); }
.cal-day.sel { border-color: var(--pine); background: var(--pine-soft); box-shadow: var(--ring); }
.cal-day.dim { opacity: 0.32; pointer-events: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }

/* ---------- avatars + uploads + review photos ---------- */
.av-img { object-fit: cover; padding: 0; overflow: hidden; }
.pro-hero-avatar.av-img, .job-avatar.av-img, .pro-avatar.av-img { padding: 0; }
.avatar-edit { position: relative; cursor: pointer; }
.avatar-edit .cam { position: absolute; right: -4px; bottom: -4px; width: 29px; height: 29px; border-radius: 50%; background: var(--marigold); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); transition: transform var(--t-fast) var(--ease-spring); }
.avatar-edit:hover .cam { transform: scale(1.12) rotate(-8deg); }
.avatar-edit .cam svg { width: 13px; height: 13px; }
.upload-zone { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 20px; text-align: center; background: var(--card); cursor: pointer; transition: all var(--t-fast) var(--ease-out); font-size: 13.5px; }
.upload-zone:hover, .upload-zone.over { border-color: var(--marigold); background: var(--marigold-soft); }
.upload-zone input { display: none; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.doc-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 13px; }
.doc-chip a { color: var(--marigold); }
.photo-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.photo-thumbs img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; transition: transform var(--t-fast) var(--ease-out); }
.photo-thumbs img:hover { transform: scale(1.06); }

/* ---------- receipts ---------- */
.receipt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.receipt-modal { border-top: 4px solid var(--marigold); }

/* ============================================================
   MOTION — purposeful, reduced-motion safe
   ============================================================ */

/* scroll reveal: rises, unblurs, staggers by --i */
.rv {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(7px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out),
              filter var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
.rv.in { opacity: 1; transform: none; filter: none; }
.rv-done { will-change: auto; }

/* headline mask reveal */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.26em; margin-bottom: -0.26em; }
/* the mask owns the clip room, so the hand-drawn underline is not cut off */
.line-mask > span { padding-bottom: 0; margin-bottom: 0; }
.line-mask > span { display: block; transform: translateY(105%); animation: line-rise 0.9s var(--ease-out) forwards; }
.line-mask:nth-child(1) > span { animation-delay: 0.05s; }
.line-mask:nth-child(2) > span { animation-delay: 0.16s; }
.line-mask:nth-child(3) > span { animation-delay: 0.27s; }
@keyframes line-rise { to { transform: translateY(0); } }

/* marquee for trust/category strips */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.marquee-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--marigold); }

/* pointer spotlight — opt in with data-spotlight */
[data-spotlight] { position: relative; }
[data-spotlight]::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(226, 64, 44, 0.1), transparent 62%);
  opacity: 0; transition: opacity var(--t-mid) var(--ease-out);
}
[data-spotlight]:hover::after { opacity: 1; }

/* counters */
[data-count] { font-variant-numeric: tabular-nums; }

/* staggered children — containers marked data-stagger reveal in sequence */
[data-stagger-ready] > * { opacity: 0; }
[data-stagger-ready].in > * {
  animation: stagger-rise 0.62s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 65ms);
}
@keyframes stagger-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* stat accent bar grows in when the card is revealed */
.stat.in::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .line-mask > span { transform: none; animation: none; }
  .marquee-track { animation: none; }
  .float-chip, .phone-frame, .eyebrow .dot, .job-lines i, .stat::before { animation: none !important; transform: none; }
  .stat::before { transform: scaleX(1); }
  .btn:hover::after { animation: none; }
  [data-stagger-ready] > * { opacity: 1 !important; animation: none !important; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { border-radius: 0 0 24px 24px; padding: calc(var(--nav-h) + 56px) 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .hero-visual { max-width: 520px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .hstat:nth-child(3) { border-left: none; padding-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-row { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 32px 20px 64px; }
  .auth-card { padding: 30px 24px; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 80; transform: translateX(-105%); transition: transform 0.3s var(--ease-out); height: 100dvh; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; }
  .dash-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .dash-main { width: 100%; padding: 24px 20px 76px; }
  #dashScrim { position: fixed; inset: 0; background: rgba(5, 6, 15, 0.5); z-index: 70; display: none; pointer-events: none; }
  #dashScrim.show { display: block; pointer-events: auto; }
  body.dash-nav-open { overflow: hidden; }
  .app-band { grid-template-columns: 1fr; padding: 44px 32px; }
  .foot-grid-5 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 1150px) {
  .nav-inner { gap: 10px; }
  .nav-links a { padding: 8px 9px; font-size: 12.5px; }
  .nav-hello { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .burger { display: flex; align-items: center; justify-content: center; }
  .mobile-menu {
    display: block; position: fixed; top: calc(var(--nav-h) + 8px); left: 12px; right: 12px; z-index: 49;
    background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 8px 14px 12px; box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--nav-h) - 24px); max-height: calc(100vh - var(--nav-h) - 24px);
    overflow-y: auto; overscroll-behavior: contain;
    animation: pop 0.24s var(--ease-out);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a, .mobile-menu button.menu-link {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 12px 10px; text-decoration: none; color: var(--ink);
    font-weight: 600; font-size: 14px; background: none; border: none;
    border-bottom: 1px solid var(--line-soft); font-family: inherit;
    text-align: left; cursor: pointer; border-radius: 8px; white-space: nowrap;
  }
  .mobile-menu a:last-child, .mobile-menu button.menu-link:last-child { border-bottom: 0; }
  .mobile-menu a:hover, .mobile-menu a:focus-visible, .mobile-menu button.menu-link:hover { background: var(--pine-soft); color: var(--pine); }
  .mobile-menu a.active { color: var(--marigold); background: var(--marigold-soft); }
  .mobile-menu .menu-sec { color: var(--muted); padding: 13px 10px 4px; }
  .mobile-menu .menu-divider { height: 1px; background: var(--line-soft); margin: 8px 0; }
  .mobile-menu .menu-user { display: flex; align-items: center; gap: 10px; padding: 12px 10px; font-weight: 600; font-size: 14px; }
  .pro-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pro-hero-actions { width: 100%; }
  .chat-shell { grid-template-columns: 1fr; max-height: none; }
  .chat-list { max-height: 260px; border-right: none; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 760px) {
  section.block { padding: 68px 0; }
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 10px; }
  .sec-head.split { flex-direction: column; align-items: flex-start; }
  .testi-band { padding: 42px 26px; border-radius: 22px; }
  .app-band { padding: 36px 24px; border-radius: 22px; }
  .foot-grid-5 { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-line, .nav-cta .nav-user { display: none; }
  .nav-cta .btn-pine { padding: 8px 13px; font-size: 12.5px; }
  .mobile-menu button:not(.menu-link) { display: flex; width: 100%; padding: 12px 10px; font-family: inherit; font-size: 14px; font-weight: 600; background: none; border: none; border-bottom: 1px solid var(--line-soft); text-align: left; cursor: pointer; }
  .search-row { flex-direction: column; }
  .search-field + .search-field { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { margin-top: 48px; }
  .field-row { grid-template-columns: 1fr; }
  .role-cards { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: 1fr; }
  .chip-a { right: 4px; }
  .chip-b { left: 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .meter-row { grid-template-columns: 90px 1fr 44px; }
  .flow-shell { padding: calc(var(--nav-h) + 28px) 20px 80px; }
}
@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid-5 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .hstat { border-left: none; padding-left: 0; }
  .app-phone { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  body::before, .site-nav, .dash, .dash-side, .dash-top, .no-print, #toasts, .flow-shell, #cfProgress { display: none !important; }
  body { background: #fff; }
  .modal-veil { position: static; display: block; background: none; padding: 0; }
  .modal-veil:not(.show) { display: none; }
  .modal { box-shadow: none; border: none; max-width: none; }
}


/* ---------- app launch / mobile ---------- */
:root { --tabbar-h: 58px; }
html { -webkit-text-size-adjust: 100%; }
body {
  padding-top: env(safe-area-inset-top, 0px);
  min-height: 100dvh;
}
.btn, .chip, .burger, .dash-link, .chat-thread-btn, .app-tabbar a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(226, 64, 44, 0.12);
}
.btn { min-height: 44px; }
.burger { min-width: 44px; min-height: 44px; }

/* iOS: 16px inputs avoid auto-zoom */
.field input, .field select, .field textarea,
.input-wrap input, .top-search input, #heroSearch, #chatText, #globalSearch, #jobSearch {
  font-size: 16px;
}

.app-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 4px 6px env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line);
}
.app-tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.02em; border-radius: 12px; min-height: 48px;
}
.app-tabbar a svg { width: 22px; height: 22px; }
.app-tabbar a.on, .app-tabbar a:active { color: var(--ink); background: var(--paper); }
.app-tabbar a.on svg { stroke: var(--marigold); }

.app-install {
  display: none;
  position: fixed; left: 12px; right: 12px; z-index: 91;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 10px);
  background: var(--ink); color: #fff; border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow-lg);
  align-items: center; gap: 10px;
}
.app-install.show { display: flex; }
.app-install b { font-size: 13.5px; display: block; }
.app-install span { font-size: 12px; color: rgba(255,255,255,.7); }
.app-install .spacer { flex: 1; }
.app-install .btn { min-height: 36px; padding: 8px 14px; font-size: 13px; }
.app-install .app-install-x {
  border: none; background: none; color: rgba(255,255,255,.7); font-size: 20px;
  width: 36px; height: 36px; cursor: pointer;
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(32px, 10.4vw, 44px); line-height: 1.08; }
  .hero h1 .hand { white-space: normal; }
  .line-mask { overflow: visible; padding-bottom: 0; margin-bottom: 0; }
  .line-mask > span { transform: none; animation: none; }
  .hero-sub { font-size: 16px; }
  .search-card { padding: 10px; }
  .search-row .btn { width: 100%; min-height: 48px; }

  .app-tabbar { display: grid; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .site-foot { margin-bottom: 8px; }
  .dash-main { padding-bottom: calc(var(--tabbar-h) + 28px) !important; }
  .flow-shell { padding-bottom: calc(var(--tabbar-h) + 28px); }
  .chat-shell { margin-bottom: 8px; }

  .dash-top { align-items: flex-start; }
  .dash-top .top-search { min-width: 0; width: 100%; order: 5; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .table-wrap { margin: 0 -12px; padding: 0 12px; }
  table.tbl { min-width: 560px; }

  .chip { min-height: 40px; padding: 8px 14px; }
  .modal { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; }

  /* Chat: list OR thread, like iMessage */
  .chat-shell { min-height: calc(100dvh - var(--nav-h) - var(--tabbar-h) - 90px); max-height: none; }
  .chat-shell.thread-open .chat-list { display: none; }
  .chat-shell.thread-open .chat-main { display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-h) - var(--tabbar-h) - 24px); }
  .chat-back { display: none; }
  .chat-shell.thread-open .chat-back { display: inline-flex; }
}

@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-pine { display: none; }
  .hero { padding-bottom: 48px; }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .site-nav {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  }
  .app-tabbar { display: grid; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .app-install { display: none !important; }
}


/* ============================================================
   PHONE APP SKIN — Pathao / inDrive density
   Desktop (≥761px) is unchanged. These rules only apply on phones.
   ============================================================ */
.app-only,
.app-greet,
.app-loc,
.app-promo { display: none; }

@media (max-width: 760px) {
  :root { --nav-h: 56px; --tabbar-h: 64px; --r-lg: 16px; --r-xl: 22px; }

  html, body { overflow-x: hidden; }
  body { background: var(--paper); }

  /* Never let grid/flex children force content past the screen edge.
     min-content auto-sizing was bleeding the hero search card, profile card,
     booking panel and auth card ~90px off the right side on phones. */
  .hero-grid > *, .pro-hero > *, .auth-shell > *, .flow-grid > *, .app-band > *,
  .foot-grid > *, .foot-grid-5 > *, .steps > *, .stat-grid > *, .pro-facts > *,
  .panel > *, .panel-head > *, .filter-bar > *, .svc-row > *, .search-row > *,
  .pro-top > *, .dash-top > *, .review-card .who > *, .meter-row > *,
  .chip-row, .quick-tags, .search-card, .auth-card { min-width: 0; }
  .svc-row > span, .pro-name a, .review-card p { overflow-wrap: anywhere; }

  .desk-only { display: none !important; }
  .app-only { display: block; }
  .app-greet { display: block; }
  .app-loc { display: inline-flex; }
  .app-promo { display: flex; }

  #cfProgress { display: none !important; }

  /* ---- native header ---- */
  .site-nav {
    background: var(--pine-deep);
    border-bottom: none;
    box-shadow: none;
  }
  .site-nav.scrolled {
    background: rgba(5, 6, 15, 0.94);
    border-bottom-color: transparent;
    box-shadow: 0 10px 24px -18px rgba(0,0,0,.7);
  }
  .page-home .site-nav { background: transparent; }
  .page-home .site-nav.scrolled { background: rgba(5, 6, 15, 0.94); }
  .nav-inner { padding: 0 16px; height: var(--nav-h); gap: 10px; }
  .nav-inner .brand { margin-right: 0; }
  .site-nav .brand-name { color: #fff; font-size: 15px; }
  .site-nav .brand-name small { display: none; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .nav-cta { display: none !important; }
  .burger {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.14);
    color: #fff;
    width: 40px; height: 40px;
  }

  .app-loc {
    display: inline-flex; align-items: center; gap: 6px;
    margin-right: auto; min-width: 0;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff; font-family: inherit; font-size: 13px; font-weight: 650;
    padding: 7px 11px; border-radius: 999px; cursor: pointer;
    max-width: 52vw;
  }
  .app-loc svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .9; }
  .app-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-loc:active { transform: scale(.97); }

  .wrap { padding: 0 16px; }
  section.block { padding: 28px 0; }

  /* ---- home hero → compact app header ---- */
  .page-home .hero {
    padding: calc(var(--nav-h) + 10px) 0 72px;
    border-radius: 0 0 28px 28px;
  }
  .page-home .eyebrow,
  .page-home .hero-sub,
  .page-home .hero-visual,
  .page-home .hero-stats,
  .page-home .trust-row { display: none !important; }
  .page-home .app-greet {
    font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
    color: rgba(255,255,255,.72); margin: 0 0 6px;
  }
  .page-home .hero h1 {
    font-size: clamp(26px, 7.4vw, 32px);
    line-height: 1.12; margin-bottom: 16px; letter-spacing: -.04em;
  }
  .page-home .hero h1 .hand { white-space: normal; }

  .search-card {
    background: #fff; border: none; max-width: none;
    border-radius: 20px; padding: 8px;
    box-shadow: 0 16px 40px -18px rgba(0,0,0,.55);
  }
  .search-card:focus-within { transform: none; border: none; }
  .search-field { padding: 12px 12px; background: transparent; }
  .search-field + .search-field {
    border-left: none; border-top: 1px solid var(--line-soft);
    border-radius: 12px;
  }
  .search-field svg { color: var(--muted); }
  .search-field input, .search-field select { color: var(--ink); font-size: 16px; font-weight: 550; }
  .search-field input::placeholder { color: var(--faint); }
  .search-row .btn { width: 100%; min-height: 50px; border-radius: 14px; font-size: 15.5px; }

  .quick-tags {
    flex-wrap: nowrap; overflow-x: auto; margin-top: 12px;
    padding-bottom: 4px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .quick-tags::-webkit-scrollbar { display: none; }
  .quick-tag { flex-shrink: 0; background: rgba(255,255,255,.12); color: #fff; }

  /* overlapping white sheet */
  .page-home #services {
    margin-top: -48px; position: relative; z-index: 3;
    background: var(--paper);
    border-radius: 24px 24px 0 0;
    padding: 22px 0 12px !important;
    box-shadow: 0 -12px 28px rgba(11,13,23,.12);
  }
  .page-home #services .sec-head { margin-bottom: 12px; }
  .page-home #services .kicker,
  .page-home #services .sec-sub { display: none; }
  .page-home #services .sec-title { font-size: 18px; margin-bottom: 0; }
  .page-home #services .btn-line,
  .page-home #providers .btn-line { display: none; }

  .cat-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px 4px;
  }
  .cat-card {
    padding: 8px 2px 10px; border: none; background: transparent;
    box-shadow: none; border-radius: 16px;
  }
  .cat-card::before { display: none; }
  .cat-card:hover, .cat-card:active { transform: none; box-shadow: none; }
  .cat-card:active .cat-ic { transform: scale(.94); }
  .cat-ic {
    width: 54px; height: 54px; border-radius: 18px; margin: 0 auto 8px;
    box-shadow: 0 6px 14px -8px rgba(11,13,23,.35);
  }
  .cat-ic svg { width: 24px; height: 24px; }
  .cat-card b { font-size: 11.5px; font-weight: 650; letter-spacing: -.01em; }
  .cat-card span { display: none; }

  .app-promo {
    display: flex; align-items: center; gap: 12px;
    margin: 14px 0 4px; padding: 14px 16px;
    border-radius: 18px; text-decoration: none; color: #fff;
    background: linear-gradient(135deg, var(--marigold) 0%, #b8240f 100%);
    box-shadow: 0 12px 28px -14px rgba(194,46,27,.8);
  }
  .app-promo-ic {
    width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
    background: rgba(255,255,255,.16);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
  }
  .app-promo b { display: block; font-size: 14.5px; font-weight: 750; }
  .app-promo small { display: block; font-size: 12px; color: rgba(255,255,255,.82); margin-top: 2px; }
  .app-promo-go {
    margin-left: auto; background: #fff; color: var(--marigold-deep);
    font-size: 12.5px; font-weight: 800; padding: 8px 12px; border-radius: 999px;
  }

  .page-home #providers { padding-top: 8px; padding-bottom: 20px; }
  .page-home #providers .sec-head { margin-bottom: 12px; }
  .page-home #providers .kicker,
  .page-home #providers .sec-sub { display: none; }
  .page-home #providers .sec-title { font-size: 18px; margin-bottom: 0; }
  .page-home #providers .btn-line { padding: 6px 10px; font-size: 12.5px; min-height: 34px; }

  .page-home .pro-grid {
    display: flex; overflow-x: auto; gap: 12px;
    margin: 0 -16px; padding: 4px 16px 18px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .page-home .pro-grid::-webkit-scrollbar { display: none; }
  .page-home .pro-card {
    min-width: 268px; max-width: 268px; scroll-snap-align: start;
    padding: 16px; border-radius: 18px; box-shadow: var(--shadow-sm);
  }
  .page-home .pro-card:hover { transform: none; }
  .page-home .pro-meta { display: none; }
  .page-home .skel { min-width: 268px; border-radius: 18px; }

  .page-home .site-foot { padding: 18px 0 20px; }
  .page-home .foot-grid-5 { display: none; }
  .page-home .foot-bottom { flex-direction: column; gap: 6px; font-size: 11.5px; }

  /* ---- tab bar: Pathao-style raised Book ---- */
  .app-tabbar {
    display: grid;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -10px 30px -18px rgba(11,13,23,.45);
    border-top: 1px solid var(--line-soft);
    overflow: visible;
    padding-top: 6px;
  }
  .app-tabbar a {
    gap: 2px; font-size: 10px; font-weight: 750; color: var(--faint);
    border-radius: 14px;
  }
  .app-tabbar a svg { width: 22px; height: 22px; }
  .app-tabbar a.on { color: var(--ink); background: transparent; }
  .app-tabbar a.on svg { stroke: var(--marigold); }
  .app-tabbar a.tab-book { top: -16px; color: var(--ink); }
  .app-tabbar a.tab-book .fab {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(180deg, var(--marigold) 0%, var(--marigold-deep) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 22px -8px rgba(194,46,27,.85);
  }
  .app-tabbar a.tab-book svg { stroke: #fff; width: 24px; height: 24px; }
  .app-tabbar a.tab-book span { font-size: 10px; margin-top: 2px; }

  .app-install { border-radius: 18px; left: 10px; right: 10px; }

  /* ---- booking ---- */
  .flow-shell { padding: calc(var(--nav-h) + 16px) 16px calc(var(--tabbar-h) + 28px); }
  .flow-shell .display { font-size: 24px !important; letter-spacing: -.03em; }
  .flow-shell > p.muted { display: none; }
  .flow-steps { margin: 16px 0 18px; }
  .fstep { font-size: 12px; }
  .filter-bar { padding: 10px; gap: 8px; }
  .filter-item { width: 100%; }
  .filter-item select { width: 100%; min-height: 44px; }
  .pro-card { border-radius: 16px; }
  .chip { min-height: 42px; padding: 8px 14px; }
  .slot { min-height: 48px; }
  .pay-card { min-height: 64px; border-radius: 14px; }
  .flow-shell .summary {
    position: sticky;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 30;
    box-shadow: var(--shadow-lg);
  }

  /* ---- dashboards ---- */
  .dash-main { padding: 16px 14px calc(var(--tabbar-h) + 28px) !important; }
  .dash-top { gap: 10px; margin-bottom: 14px; }
  .dash-top h1 { font-size: 22px; }
  .dash-top .btn-pine { width: 100%; }
  .dash-hero { padding: 16px; border-radius: 18px; margin-bottom: 14px; }
  .dash-hero h2 { font-size: 20px; }
  .dash-hero .btn { width: 100%; justify-content: center; }
  .stat { padding: 14px; border-radius: 16px; }
  .stat b { font-size: 22px; }
  .stat:hover { transform: none; }
  .panel { padding: 16px; border-radius: 16px; }
  .panel-head h2 { font-size: 16px; }

  /* ---- chat ---- */
  body:has(#chatShell) .site-foot,
  body:has(#chatShell) .flow-shell > p.muted { display: none; }
  body:has(#chatShell) .flow-shell { padding-top: calc(var(--nav-h) + 12px); padding-bottom: 8px; }
  body:has(#chatShell) .flow-shell .display { font-size: 22px !important; }
  .chat-shell {
    border-radius: 18px; overflow: hidden;
    min-height: calc(100dvh - var(--nav-h) - var(--tabbar-h) - 70px) !important;
  }
  .bubble { max-width: 82%; border-radius: 16px; padding: 10px 13px; }
  .bubble.mine { border-bottom-right-radius: 4px; }
  .bubble.theirs { border-bottom-left-radius: 4px; }
  .chat-input { padding: 10px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .chat-input input { min-height: 44px; }

  /* ---- auth ---- */
  .auth-main { padding: 28px 16px calc(var(--tabbar-h) + 36px); }
  .auth-card {
    padding: 8px 0 20px; border: none; box-shadow: none;
    background: transparent; max-width: none; border-radius: 0;
  }
  .auth-card h1 { font-size: 28px; }
  .field input, .field select, .field textarea,
  .input-wrap input { min-height: 48px; }
  .btn-block { min-height: 50px; border-radius: 14px; }
  .role-cards { grid-template-columns: 1fr; }

  /* ---- sheets / drawers ---- */
  .modal-veil.show { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%; max-width: none;
    border-radius: 22px 22px 0 0;
    max-height: min(92dvh, 92vh);
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .notif-drawer { width: 100%; }

  .site-foot { margin-bottom: 0; }

  /* kill hover-lift on touch */
  .cat-card:hover, .pro-card:hover, .step:hover, .stat:hover,
  .cta-card:hover, .pay-card:hover { transform: none; }
}

@media (max-width: 460px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-pine { display: none; }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .site-nav {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    background: var(--pine-deep);
  }
  .page-home .site-nav { background: transparent; }
  .app-tabbar { display: grid; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .app-install { display: none !important; }
}
