/* ============================================================
   Aptly – services marketplace demo
   ============================================================ */
:root {
  --brand: #2f4fe0;
  --brand-600: #2440c4;
  --brand-700: #1d33a0;
  --brand-50: #eef1ff;
  --brand-100: #dfe5ff;
  --teal: #0f9f8f;
  --teal-50: #e7f7f5;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e5e8ef;
  --line-2: #eef0f5;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ok: #059669;
  --ok-50: #e9f9f2;
  --warn: #b45309;
  --warn-50: #fff7e8;
  --bad: #dc2626;
  --bad-50: #fef1f1;
  --star: #f5a524;
  --navy: #0b1328;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --sh-2: 0 4px 16px rgba(15, 23, 42, .07), 0 1px 3px rgba(15, 23, 42, .05);
  --sh-3: 0 18px 50px rgba(15, 23, 42, .16);
  --side-w: 248px;
  --top-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide-mobile { }
.only-mobile { display: none !important; }

/* ---------- layout helpers ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.split.wide-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split.side-left { grid-template-columns: 320px minmax(0, 1fr); }
.split.browse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.sticky { position: sticky; top: calc(var(--top-h) + 16px); }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid transparent; background: var(--brand); color: #fff;
  font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  text-decoration: none !important;
}
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 1px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn.secondary:hover { background: #f8fafc; border-color: #d5dae4; }
.btn.soft { background: var(--brand-50); color: var(--brand-700); }
.btn.soft:hover { background: var(--brand-100); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(15, 23, 42, .05); }
.btn.danger { background: #fff; color: var(--bad); border-color: #f5c9c9; }
.btn.danger:hover { background: var(--bad-50); }
.btn.ok { background: var(--ok); }
.btn.ok:hover { background: #047857; }
.btn.teal { background: var(--teal); }
.btn.teal:hover { background: #0b867a; }
.btn.white { background: #fff; color: var(--navy); }
.btn.white:hover { background: #eef2ff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card.pad { padding: 20px; }
.card.pad-lg { padding: 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 16px; }
.card-body { padding: 18px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); }
.card.hover { transition: box-shadow .15s, border-color .15s, transform .15s; cursor: pointer; }
.card.hover:hover { box-shadow: var(--sh-2); border-color: #d6dbe6; transform: translateY(-1px); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-title:first-child { margin-top: 0; }
.section-title h2 { font-size: 18px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid #d9dde6; background: #fff; font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.input-group .input { padding-left: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 1px 0 0; flex: none; }
.range { width: 100%; accent-color: var(--brand); }

.seg { display: inline-flex; background: #eef0f5; border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.seg.block { display: flex; }
.seg.block button { flex: 1; justify-content: center; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice {
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.choice:hover { border-color: #c9d0f5; }
.choice.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.choice .ci { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.choice.on .ci { background: var(--brand); color: #fff; }
.choice b { font-size: 14px; }
.choice span { font-size: 12px; color: var(--muted); line-height: 1.35; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  background: #f1f3f8; color: var(--ink-2); font-size: 13px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
button.chip { cursor: pointer; }
button.chip:hover { background: #e7eaf2; }
.chip.on { background: var(--brand); color: #fff; }
.chip.outline { background: #fff; border-color: var(--line); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: #eef0f5; color: var(--ink-2); white-space: nowrap; }
.badge.brand { background: var(--brand-50); color: var(--brand-700); }
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.warn { background: var(--warn-50); color: var(--warn); }
.badge.bad { background: var(--bad-50); color: var(--bad); }
.badge.teal { background: var(--teal-50); color: #0b7d71; }
.badge.dark { background: var(--navy); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- avatar & stars ---------- */
.avatar { flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 750; letter-spacing: .02em; position: relative; }
.avatar .verified { position: absolute; right: -2px; bottom: -2px; width: 40%; height: 40%; min-width: 14px; min-height: 14px; background: var(--brand); border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--star); }
.stars .empty { color: #dfe3ea; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.rating b { font-weight: 750; color: var(--ink); }
.star-input { display: flex; gap: 6px; }
.star-input button { background: none; border: 0; padding: 2px; cursor: pointer; color: #dfe3ea; transition: transform .1s; }
.star-input button.on { color: var(--star); }
.star-input button:hover { transform: scale(1.12); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 16px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #fafbff; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.tabs .count { background: #eef0f5; color: var(--ink-2); border-radius: 999px; padding: 0 7px; font-size: 12px; line-height: 20px; }
.tabs button.on .count { background: var(--brand); color: #fff; }

/* ---------- stats ---------- */
.stat { padding: 18px 20px; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat .si { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.stat .si.ok { background: var(--ok-50); color: var(--ok); }
.stat .si.warn { background: var(--warn-50); color: var(--warn); }
.stat .si.teal { background: var(--teal-50); color: var(--teal); }

/* ---------- list items ---------- */
.list > * + * { border-top: 1px solid var(--line-2); }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.li.click { cursor: pointer; }
.li.click:hover { background: #fafbff; }
.li .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; }
.li .meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta-row { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ei { width: 52px; height: 52px; border-radius: 16px; background: #f1f3f8; display: grid; place-items: center; margin: 0 auto 12px; color: var(--faint); }
.empty h4 { color: var(--ink); margin-bottom: 4px; }

.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); font-size: 14px; }
.callout.ok { background: var(--ok-50); color: #065f46; }
.callout.warn { background: var(--warn-50); color: #92400e; }
.callout.teal { background: var(--teal-50); color: #0b6b61; }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 30;
}
.sidebar .brand-row { height: var(--top-h); display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--line-2); }
.nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav .nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none;
}
.nav a:hover { background: #f4f6fa; }
.nav a.on { background: var(--brand-50); color: var(--brand-700); }
.nav a .count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; line-height: 19px; font-weight: 700; }
.side-foot { padding: 14px; border-top: 1px solid var(--line-2); }
.role-pill { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #f6f7fb; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 28px; margin-left: var(--side-w);
}
.topbar .crumb { font-weight: 700; font-size: 16px; }
.main { margin-left: var(--side-w); padding: 28px; max-width: calc(1280px + var(--side-w)); }
.main.narrow > .inner { max-width: 880px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 12px; cursor: pointer; background: none; border: 0; padding: 0; }
.back-link:hover { color: var(--ink); }

.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: #f1f3f8; }
.icon-btn .bubble { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

.bottom-nav { display: none; }

.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); text-decoration: none !important; }
.logo .mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--brand) 0%, #6d5cf6 100%); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 10px rgba(47, 79, 224, .3); }
.logo.light { color: #fff; }
.logo.provider .mark { background: linear-gradient(135deg, var(--teal) 0%, #2f80ed 100%); box-shadow: 0 4px 10px rgba(15, 159, 143, .35); }

/* dropdown */
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); z-index: 60; overflow: hidden; }
.dropdown .dd-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.dropdown .dd-body { max-height: 420px; overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.notif:hover { background: #fafbff; }
.notif.unread { background: #f7f8ff; }
.notif .ni { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.notif .nt { font-weight: 650; font-size: 14px; }
.notif .nb { font-size: 13px; color: var(--muted); margin-top: 2px; }
.notif .nw { font-size: 12px; color: var(--faint); margin-top: 4px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: left; }
.menu-item:hover { background: #f6f7fb; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 19, 40, .45); backdrop-filter: blur(2px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 20px; box-shadow: var(--sh-3); width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .18s ease; }
.modal.lg { max-width: 760px; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; }
.modal-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.modal-body { padding: 4px 22px 18px; overflow-y: auto; }
.modal-foot { padding: 14px 22px 18px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- toast ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 32px); }
.toast { background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--sh-3); display: flex; gap: 12px; align-items: flex-start; animation: slidein .25s ease; cursor: pointer; }
.toast .ti { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; }
.toast b { display: block; font-size: 14px; }
.toast span { font-size: 13px; color: #c4cbe0; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }

/* ---------- maps ---------- */
.map { width: 100%; height: 320px; border-radius: 14px; overflow: hidden; background: #e9eef3; z-index: 0; position: relative; }
.map.flat { border-radius: 0; }
.leaflet-container { font-family: var(--font); }
.leaflet-tile-pane { filter: saturate(.7) brightness(1.04) contrast(.96); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--sh-2); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.45; }
.leaflet-popup-content b { font-size: 14px; }
.pin-wrap { background: none; border: 0; }
.pin {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(15, 23, 42, .3);
}
.pin > * { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 11px; display: grid; place-items: center; }
.pin.home { background: var(--navy); }
.pin.request { background: #f97316; }
.pin.venue { background: #8b5cf6; }
.pin.accepted { background: var(--ok); }
.pin.pending { background: #94a3b8; }
.pin.teal { background: var(--teal); }
.pin.sm { width: 26px; height: 26px; border-width: 2px; }
.pin.sm > * { font-size: 9px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- provider cards ---------- */
.pcard { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; }
.pcard + .pcard { border-top: 1px solid var(--line-2); }
.pcard .price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pcard .msg { margin-top: 10px; background: #f6f7fb; border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); position: relative; }
.arrive { animation: arrive .45s ease; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); background: #eefcf5; } }

.offer-progress { height: 8px; background: #eef0f5; border-radius: 999px; overflow: hidden; display: flex; }
.offer-progress > div { height: 100%; transition: width .4s ease; }

.wcard { overflow: hidden; display: flex; flex-direction: column; }
.wcard .wtop { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wcard .wdate { display: flex; gap: 14px; align-items: center; }
.wcard .cal { width: 52px; flex: none; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: #fff; }
.wcard .cal small { display: block; background: #8b5cf6; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 0; }
.wcard .cal b { display: block; font-size: 20px; padding: 3px 0 4px; }
.wcard .wfoot { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fcfcfe; }
.seats { height: 6px; background: #eef0f5; border-radius: 999px; overflow: hidden; }
.seats > div { height: 100%; background: #8b5cf6; border-radius: 999px; }
.reco { background: linear-gradient(90deg, #f3efff, #eef1ff); color: #5b3fd6; font-size: 12px; font-weight: 700; padding: 6px 20px; display: flex; align-items: center; gap: 6px; }

.trade-tile { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.trade-tile .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }

.bar-row { display: grid; grid-template-columns: 44px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.bar { height: 8px; background: #eef0f5; border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--star); border-radius: 999px; }

.review { padding: 16px 0; }
.review + .review { border-top: 1px solid var(--line-2); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before { content: ""; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--faint); }
.tl-item.done::before { background: var(--ok); border-color: var(--ok); }
.tl-item.now::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }

/* ---------- video call ---------- */
.call { position: fixed; inset: 0; background: #0a0f1e; z-index: 150; display: flex; flex-direction: column; color: #fff; }
.call-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; gap: 12px; }
.call-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 22px; align-content: center; }
.call-tile { aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 40%, #243055, #141b33); border-radius: 18px; display: grid; place-items: center; position: relative; overflow: hidden; }
.call-tile .nm { position: absolute; left: 14px; bottom: 12px; font-size: 13px; background: rgba(0, 0, 0, .35); padding: 4px 10px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
.call-ctrl { display: flex; justify-content: center; gap: 12px; padding: 22px; }
.call-ctrl button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #222b45; color: #fff; cursor: pointer; display: grid; place-items: center; }
.call-ctrl button.off { background: #fff; color: #0a0f1e; }
.call-ctrl button.end { background: #e11d48; width: 68px; border-radius: 26px; }

/* ---------- demo panel ---------- */
.demo-fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; background: var(--navy); color: #fff; border: 0; border-radius: 999px; height: 40px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; box-shadow: var(--sh-3); cursor: pointer; }
.demo-fab .live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.demo-panel { position: fixed; right: 16px; bottom: 66px; z-index: 91; width: 320px; max-width: calc(100vw - 32px); background: #fff; border-radius: 18px; box-shadow: var(--sh-3); border: 1px solid var(--line); overflow: hidden; animation: pop .15s ease; }
.demo-panel .dp-head { background: var(--navy); color: #fff; padding: 14px 16px; }
.demo-panel .dp-head small { color: #a9b3cf; display: block; font-size: 12px; margin-top: 2px; }
.demo-panel .dp-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.dp-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; background: none; text-align: left; width: 100%; }
.dp-user:hover { background: #f6f7fb; }
.dp-user.on { border-color: var(--brand-100); background: var(--brand-50); }

/* ============================================================
   Public / landing
   ============================================================ */
.pub-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(229, 232, 239, .8); }
.pub-header.dark { background: rgba(11, 19, 40, .85); border-bottom-color: rgba(255, 255, 255, .08); }
.pub-header .in { max-width: 1200px; margin: 0 auto; height: 68px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.pub-nav { display: flex; gap: 22px; }
.pub-nav a { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.pub-header.dark .pub-nav a { color: #c9d1e8; }
.pub-nav a:hover { color: var(--brand); text-decoration: none; }
.pub-header.dark .pub-nav a:hover { color: #fff; }
.pub-nav a.on { color: var(--brand); }
.pub-header.dark .pub-nav a.on { color: #5eead4; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #e3e8ff 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, #e8fbf8 0%, transparent 55%), #fbfbfe; }
.hero .in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); box-shadow: var(--sh-1); }
.eyebrow .e-dot { background: var(--brand-50); color: var(--brand); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -.035em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 540px; line-height: 1.6; }
.search-card { background: #fff; border-radius: 20px; box-shadow: var(--sh-3); padding: 22px; border: 1px solid var(--line); }
.search-card .sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trust-row { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.trust-row div { font-size: 13px; color: var(--muted); }
.trust-row b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.avatar-stack { display: flex; }
.avatar-stack > * { margin-left: -8px; border: 2px solid #fff; }
.avatar-stack > *:first-child { margin-left: 0; }

.lsec { padding: 80px 0; }
.lsec.alt { background: #fff; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.lsec .sh { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.lsec .sh .kicker { color: var(--brand); font-weight: 750; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.lsec .sh h2 { font-size: 36px; letter-spacing: -.03em; margin: 10px 0 12px; }
.lsec .sh p { color: var(--muted); font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 24px; position: relative; }
.step .num { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
.feature { padding: 24px; }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }
.quote { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.quote p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #5b47f0 60%, #7c4dff 100%); border-radius: 26px; padding: 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { font-size: 32px; letter-spacing: -.03em; }
.cta-band p { color: #dfe4ff; margin-top: 8px; font-size: 16px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin-top: 10px; line-height: 1.6; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.footer { background: var(--navy); color: #a9b3cf; padding: 56px 0 32px; font-size: 14px; }
.footer .fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer a { color: #a9b3cf; display: block; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* provider landing (dark) */
.phero { background: radial-gradient(900px 500px at 90% 0%, rgba(15, 159, 143, .35), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(47, 79, 224, .35), transparent 60%), var(--navy); color: #fff; }
.phero .in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 84px; }
.phero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -.035em; margin: 18px 0 16px; }
.phero h1 em { font-style: normal; color: #5eead4; }
.phero .lead { font-size: 18px; color: #c9d1e8; max-width: 540px; line-height: 1.6; }
.eyebrow.dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #dbe2f5; box-shadow: none; }
.eyebrow.dark .e-dot { background: rgba(94, 234, 212, .15); color: #5eead4; }
.phone { width: 320px; max-width: 100%; margin: 0 auto; background: #0f1a33; border-radius: 38px; padding: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone .screen { background: var(--bg); border-radius: 28px; overflow: hidden; color: var(--ink); }
.phone .ph-top { background: #fff; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.offer-mini { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 12px; margin: 10px; box-shadow: var(--sh-1); }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); border-radius: 18px; overflow: hidden; margin-top: 40px; }
.pstats div { background: rgba(11, 19, 40, .6); padding: 20px; }
.pstats b { display: block; font-size: 26px; color: #fff; letter-spacing: -.02em; }
.pstats span { font-size: 13px; color: #a9b3cf; }
.earn-calc { padding: 28px; }
.earn-calc .big { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--teal); }
.teal-k { color: var(--teal) !important; }

/* auth */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth .side { background: radial-gradient(700px 400px at 100% 0%, rgba(124, 77, 255, .35), transparent 60%), linear-gradient(160deg, var(--brand) 0%, #2a2f86 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .side h2 { font-size: 34px; letter-spacing: -.03em; line-height: 1.15; }
.auth .formside { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth .box { width: 100%; max-width: 440px; }
.demo-acc { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; width: 100%; text-align: left; transition: border-color .15s, box-shadow .15s; }
.demo-acc:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* profile header */
.profile-hero { padding: 28px; display: flex; gap: 24px; align-items: flex-start; }
.profile-hero .ph-cover { }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 17px; font-weight: 800; }
.pay-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fafbfd; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgba(15, 23, 42, .12); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .split, .split.side-left { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero .in, .phero .in { grid-template-columns: 1fr; gap: 36px; }
  .footer .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --top-h: 58px; }
  .hide-mobile { display: none !important; }
  .only-mobile { display: initial !important; }
  .sidebar { display: none; }
  .topbar { margin-left: 0; padding: 0 12px 0 16px; }
  .main { margin-left: 0; padding: 18px 16px 96px; }
  h1 { font-size: 24px; }
  .g3, .g2, .split.wide-side, .split.browse { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 11px; font-weight: 650; color: var(--muted); text-decoration: none; position: relative; border-radius: 10px; }
  .bottom-nav a.on { color: var(--brand); }
  .bottom-nav a .count { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--bad); color: #fff; border-radius: 999px; font-size: 10px; padding: 0 5px; line-height: 16px; }
  .demo-fab { bottom: 84px; right: 12px; height: 36px; font-size: 12px; }
  .demo-panel { bottom: 128px; right: 12px; }
  .card.pad { padding: 16px; }
  .card-head, .card-body, .card-foot { padding-left: 16px; padding-right: 16px; }
  .li { padding: 14px 16px; }
  .pcard { padding: 16px; gap: 12px; }
  .page-head { margin-bottom: 16px; }
  .stat { padding: 14px 16px; }
  .stat .value { font-size: 22px; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; border-bottom: 1px solid var(--line-2); padding: 10px 0; }
  .table.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 16px; text-align: right; }
  .table.responsive td::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .table.responsive td.first { text-align: left; }
  .table.responsive td.first::before { display: none; }
  .modal { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .overlay { padding: 0; place-items: end center; }
  .modal-foot .btn { flex: 1; }
  .toasts { top: 12px; right: 12px; left: 12px; width: auto; }
  .pub-nav { display: none; }
  .pub-header .in { padding: 0 16px; gap: 12px; height: 60px; }
  .container { padding: 0 16px; }
  .hero .in { padding: 36px 0 48px; }
  .phero .in { padding: 40px 0 56px; }
  .hero h1, .phero h1 { font-size: 36px; }
  .hero .lead, .phero .lead { font-size: 16px; }
  .search-card { padding: 16px; }
  .search-card .sc-grid { grid-template-columns: 1fr; }
  .lsec { padding: 52px 0; }
  .lsec .sh { margin-bottom: 28px; }
  .lsec .sh h2 { font-size: 27px; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
  .cta-band h2 { font-size: 25px; }
  .pstats { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth .side { display: none; }
  .footer .fgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .footer .fgrid > :first-child { grid-column: 1 / -1; }
  .profile-hero { flex-direction: column; padding: 20px; gap: 16px; }
  .call-grid { grid-template-columns: 1fr; padding: 0 14px; }
  .call-tile { aspect-ratio: 16 / 9; }
  .dropdown { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 420px) {
  .hero h1, .phero h1 { font-size: 32px; }
  .seg button { padding: 0 10px; font-size: 13px; }
}
