:root {
  --bg: #0b1020;
  --bg-2: #111833;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #f97316;
  --primary-2: #fb923c;
  --accent: #22d3ee;
  --danger: #f87171;
  --success: #4ade80;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.app:focus { outline: none; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(34, 211, 238, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  padding-top: max(18px, env(safe-area-inset-top));
  max-width: 1240px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #ef4444); color: #fff;
}
.topnav { display: flex; gap: 8px; }
.topnav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.topnav a:hover { color: var(--text); background: var(--surface-2); }
.topnav a.solid { color: var(--text); border: 1px solid var(--border); }

.app {
  max-width: 1240px; margin: 0 auto;
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
  animation: fade .35s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Welcome ---------- */
.welcome {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; min-height: calc(100dvh - 120px); padding: 24px 0 48px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: #cbd5e1;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
h1 {
  font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 20px 0 16px; font-weight: 800;
}
.grad { background: linear-gradient(90deg, var(--primary), #f43f5e 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0 0 32px; }

.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; }
.cta {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(0); }
.cta-primary { background: linear-gradient(135deg, var(--primary), #ea580c); border-color: transparent; box-shadow: 0 14px 30px -12px rgba(249, 115, 22, 0.7); }
.cta-secondary { background: var(--surface-2); }
.cta-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.cta-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.cta-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cta-text strong { font-size: 16px; }
.cta-text small { font-size: 13px; opacity: .8; }
.cta-arrow { margin-left: auto; font-size: 20px; opacity: .8; transition: transform .2s; }
.cta:hover .cta-arrow { transform: translateX(3px); }

.trust { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.trust strong { color: var(--text); }

/* Map visual */
.welcome-visual { display: flex; flex-direction: column; gap: 16px; }
.map {
  position: relative; aspect-ratio: 1 / 0.9; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #1e2a4d 0%, #121a35 70%);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.map-grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(28deg, transparent 48%, rgba(255,255,255,.08) 49%, rgba(255,255,255,.08) 51%, transparent 52%),
    linear-gradient(-62deg, transparent 48%, rgba(255,255,255,.06) 49%, rgba(255,255,255,.06) 51%, transparent 52%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  transform: rotate(-8deg);
}
.pulse { position: absolute; left: 50%; top: 52%; width: 18px; height: 18px; transform: translate(-50%, -50%); }
.pulse span, .pulse::before, .pulse::after {
  position: absolute; inset: 0; border-radius: 50%; content: "";
}
.pulse span { background: var(--accent); border: 3px solid #fff; z-index: 2; }
.pulse::before, .pulse::after { background: rgba(34, 211, 238, .35); animation: ping 2.4s ease-out infinite; }
.pulse::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(7); opacity: 0; } }

.pin { position: absolute; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); padding: 3px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.4); animation: bob 3s ease-in-out infinite; }
.pin img { width: 100%; height: 100%; border-radius: 50%; transform: rotate(45deg); display: block; }
.p1 { left: 28%; top: 30%; }
.p2 { left: 68%; top: 26%; animation-delay: .5s; }
.p3 { left: 22%; top: 68%; animation-delay: 1s; }
.p4 { left: 72%; top: 66%; animation-delay: 1.5s; }
@keyframes bob { 50% { translate: 0 -6px; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; min-width: 210px;
  background: rgba(15, 23, 42, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px;
}
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc1 { left: 5%; top: 6%; }
.fc2 { right: 5%; bottom: 6%; }
.eta { margin-left: auto; font-weight: 700; font-size: 12px; color: var(--success); background: rgba(74,222,128,.12); padding: 4px 8px; border-radius: 999px; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c, var(--primary)); }
.avatar.big { width: 72px; height: 72px; font-size: 28px; margin: 0 auto 8px; background: linear-gradient(135deg, var(--primary), #ef4444); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: #cbd5e1; }

/* ---------- Auth ---------- */
.auth { display: flex; flex-direction: column; align-items: center; padding: 8px 0 40px; }
.back { align-self: flex-start; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 0; margin-bottom: 8px; }
.back:hover { color: var(--text); }
@media (min-width: 640px) { .back { align-self: center; width: 100%; max-width: 460px; } }

.auth-card {
  width: 100%; max-width: 460px; padding: clamp(20px, 4vw, 36px);
  border-radius: 24px; background: rgba(17, 24, 51, 0.75);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.role-banner {
  --tone: var(--primary);
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
}
.role-banner[data-role="client"] { --tone: var(--accent); }
.role-badge {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: #0b1020; background: var(--tone);
}
.role-banner p { margin: 0; }
.role-banner-title { font-size: 16px; font-weight: 700; }
.role-banner-note { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.auth-head { margin: 0 0 20px; }
.auth-head h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.auth-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label-row label { font-size: 14px; font-weight: 600; color: #cbd5e1; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
input[type="text"], input[type="email"], input[type="password"], select {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
select option { color: #0f172a; }
input::placeholder { color: #64748b; }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18); background: rgba(255,255,255,.07); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 68px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 8px;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }

.hint { font-size: 12px; color: var(--muted); }
.error { font-size: 13px; color: var(--danger); min-height: 0; }
.error:empty { display: none; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }

.link { color: var(--primary-2); font-weight: 600; }
.link:hover { text-decoration: underline; }
.small { font-size: 13px; }

.form-alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 1px solid transparent;
  transition: transform .1s, filter .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #ea580c); box-shadow: 0 12px 26px -12px rgba(249, 115, 22, .8); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.divider { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.switch-mode { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: 14px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Home placeholder ---------- */
.home { display: grid; place-items: center; min-height: calc(100dvh - 140px); }
.home-card { text-align: center; max-width: 440px; width: 100%; padding: 36px 24px; border-radius: 24px; background: rgba(17, 24, 51, .75); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.home-card h2 { margin: 4px 0 0; }
.home-card p { color: var(--muted); margin: 0; line-height: 1.5; }
.home-card .btn { margin-top: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 12px; background: #1e293b; border: 1px solid var(--border);
  font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .25s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .welcome { grid-template-columns: 1fr; min-height: auto; padding-top: 8px; }
  .welcome-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .trust { justify-content: center; }
  .welcome-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .chips { justify-content: center; }
}
@media (max-width: 560px) {
  .topbar { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 14px; }
  .cta-grid { grid-template-columns: 1fr; width: 100%; }
  .cta { text-align: left; }
  .map { aspect-ratio: 1 / 1; border-radius: 22px; }
  .float-card { min-width: 0; font-size: 13px; padding: 8px 10px; }
  .float-card strong { font-size: 13px; }
  .topnav a:not(.solid) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Customer dashboard (demo) ---------- */
.nav-logout { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text); background: none; border: 1px solid var(--border); }
.nav-logout:hover { background: var(--surface-2); }
.nav-switch { padding: 8px 14px; min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), #ea580c); border: 0; }

.dash { display: grid; grid-template-columns: 210px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; padding: 8px 0 48px; }
.dash-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 18px; background: rgba(17, 24, 51, .75); border: 1px solid var(--border); }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.dash-nav a:hover { color: var(--text); background: var(--surface-2); }
.dash-nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary), #ea580c); }
.dash-nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-main { min-width: 0; }

.dash-title { font-size: clamp(26px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; margin: 14px 0 20px; }
.dash-h2 { font-size: 18px; margin: 28px 0 14px; letter-spacing: -0.01em; }
.dash-row { display: flex; align-items: baseline; justify-content: space-between; }
.note, .count { color: var(--muted); font-size: 14px; margin: -8px 0 4px; }
.count { margin: 14px 0; }

.search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(249, 115, 22, .18); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; padding: 10px 0; font: inherit; font-size: 16px; color: var(--text); background: none; border: 0; outline: none; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: #64748b; }
.search .btn { padding: 10px 18px; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; text-align: center; font-size: 14px; font-weight: 600; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .15s, border-color .15s, background .15s; }
.cat:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--surface-2); }
.cat-icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; border-radius: 14px; background: rgba(249, 115, 22, .14); }

.pros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pro, .booking { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: rgba(17, 24, 51, .75); border: 1px solid var(--border); }
.pro-avatar { width: 52px; height: 52px; font-size: 20px; }
.pro-body { flex: 1; min-width: 0; }
.pro-body h3 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pro-meta { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.pro-foot { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 13px; }
.avail { padding: 3px 9px; border-radius: 999px; color: #cbd5e1; background: var(--surface-2); font-weight: 600; }
.avail.now { color: var(--success); background: rgba(74, 222, 128, .12); }
.price { color: var(--muted); }
.demo-tag { padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: rgba(34, 211, 238, .12); }
.pro-book { padding: 10px 16px; font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filter { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #cbd5e1; background: var(--surface); border: 1px solid var(--border); }
.filter:hover { background: var(--surface-2); }
.filter.active { color: #fff; background: linear-gradient(135deg, var(--primary), #ea580c); border-color: transparent; }
.empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted); border-radius: var(--radius); border: 1px dashed var(--border); }

.bookings { display: flex; flex-direction: column; gap: 12px; }
.status { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.status.confirmed { color: var(--success); background: rgba(74, 222, 128, .12); }
.status.pending { color: #fbbf24; background: rgba(251, 191, 36, .12); }

.profile-card { max-width: 480px; padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; border-radius: 24px; background: rgba(17, 24, 51, .75); border: 1px solid var(--border); }
.profile-card h2 { margin: 4px 0 0; }
.facts { width: 100%; margin: 12px 0 8px; text-align: left; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 860px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .pros { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dash { grid-template-columns: 1fr; padding-bottom: 96px; }
  .dash-nav {
    position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; top: auto; flex-direction: row; justify-content: space-around;
    gap: 0; padding: 8px 8px max(8px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; border-width: 1px 0 0;
    background: rgba(11, 16, 32, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .dash-nav a { flex: 1; flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11.5px; text-align: center; }
}
@media (max-width: 480px) {
  .search .btn { display: none; }
  .search { padding-right: 14px; }
  .pro { flex-wrap: wrap; }
  .pro-book { width: 100%; }
}

/* ---------- Search hint, selectable categories ---------- */
.search-hint { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }

button.cat { position: relative; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); }
.cat-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.cat-badge:empty { display: none; }
.cat.suggested { border-color: var(--accent); background: rgba(34, 211, 238, .08); }
.cat.suggested .cat-badge { color: #0b1020; background: var(--accent); }
.cat.selected { border-color: var(--primary); background: rgba(249, 115, 22, .16); box-shadow: 0 0 0 3px rgba(249, 115, 22, .3); }
.cat.selected .cat-icon { background: var(--primary); }
.cat.selected .cat-badge { color: #fff; background: var(--primary); }
.cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.clear-chip { padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.clear-chip:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Location bar ---------- */
/* Every "demo-tag" in the UI marks fictional test content; search for it to find them all. */
.locbar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border-radius: 16px; background: rgba(17, 24, 51, .75); border: 1px solid var(--border); }
.loc-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--primary-2); background: rgba(249, 115, 22, .14); }
.loc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.loc-text small { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.loc-text strong { font-size: 16px; overflow-wrap: anywhere; }
.loc-change { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--primary-2); background: rgba(249, 115, 22, .1); border: 1px solid rgba(249, 115, 22, .45); }
.loc-change:hover { background: rgba(249, 115, 22, .2); }

/* ---------- Professional cards ---------- */
.pro-foot { flex-wrap: wrap; }
.dist { color: var(--accent); font-weight: 600; }
.ver { margin-left: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ver.ok { color: var(--success); background: rgba(74, 222, 128, .12); }
.ver.pending { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.demo-note { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Modals ---------- */
dialog.modal { color-scheme: dark; padding: 0; border: 1px solid var(--border); border-radius: 22px; color: var(--text); background: #111833; box-shadow: var(--shadow); width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; }
dialog.modal[open] { display: flex; flex-direction: column; animation: fade .2s ease; }
dialog.modal::backdrop { background: rgba(5, 8, 20, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; min-height: 0; }
.modal-card h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.modal-sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
@media (min-width: 520px) { .modal-actions { flex-direction: row-reverse; } .modal-actions .btn { flex: 1; } }

.loc-search { width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 16px; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--border); -webkit-appearance: none; appearance: none; }
.loc-search::placeholder { color: #64748b; }
.loc-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(249, 115, 22, .18); }
.loc-list { display: flex; flex-direction: column; gap: 6px; max-height: min(320px, 42dvh); overflow-y: auto; padding-right: 2px; scrollbar-color: #334155 transparent; }
.loc-group { margin: 8px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.loc-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer; background: var(--surface); border: 1px solid var(--border); }
.loc-opt:hover { background: var(--surface-2); }
.loc-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex: none; }
.loc-opt:has(input:checked) { border-color: var(--primary); background: rgba(249, 115, 22, .12); }
.loc-empty { margin: 8px 0; padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 12px; }

/* ---------- Profile verification ---------- */
.profile-wrap { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.profile-wrap .profile-card { max-width: none; }
.verify-card { padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; border-radius: 24px; background: rgba(17, 24, 51, .75); border: 1px solid var(--border); }
.verify-card:focus { outline: none; }
.verify-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verify-head h2 { margin: 0; font-size: 20px; }
.verify-why { margin: 0; color: #cbd5e1; font-size: 14.5px; line-height: 1.55; }
.status.unverified { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.status.verified { color: var(--success); background: rgba(74, 222, 128, .12); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--border); opacity: .8; }
.step-n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.steps strong { display: block; font-size: 14.5px; }
.steps small { color: var(--muted); font-size: 12.5px; }
.verify-card .btn[disabled] { opacity: .55; cursor: not-allowed; }
.verify-card.flash { animation: flash 2.4s ease; }
@keyframes flash {
  0%, 100% { border-color: var(--border); box-shadow: none; }
  15%, 70% { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(249, 115, 22, .3), 0 0 36px rgba(249, 115, 22, .25); }
}

/* ---------- Phase 4: search results, filters and professional profiles ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; padding: 0; list-style: none; }
.tags li { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #cbd5e1; background: var(--surface-2); border: 1px solid var(--border); }
.match { margin: 4px 0 2px; font-size: 13px; font-weight: 600; color: var(--primary-2); }
.match.partial { color: #fbbf24; }
.pro.is-partial { opacity: .92; border-style: dashed; }
.pro[data-pro] { cursor: pointer; }
.pro[data-pro]:hover { border-color: rgba(249, 115, 22, .45); }
.nearby-badge { color: var(--accent); font-weight: 600; }

.chip-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.chip-rows:empty { display: none; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #cbd5e1; background: var(--surface); border: 1px solid var(--border); }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, var(--primary), #ea580c); border-color: transparent; }
.understood { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.understood:empty { display: none; }
.understood strong { color: var(--text); }

.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .28); }
.notice p { margin: 0; font-size: 14px; line-height: 1.5; color: #e2e8f0; flex: 1 1 260px; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty p { margin: 0 0 8px; }
.empty .notice-actions { justify-content: center; margin-top: 12px; }

.back-link { display: inline-block; margin-bottom: 14px; }
.pp-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.pp-avatar { width: 64px; height: 64px; font-size: 24px; }
.pp-id { flex: 1 1 260px; min-width: 0; }
.pp-id h1 { margin: 0 0 4px; font-size: clamp(22px, 4vw, 28px); letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pp-trust { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; }
.pp-intro { margin: 18px 0 0; font-size: 16px; line-height: 1.55; color: #e2e8f0; max-width: 62ch; }
.pp-card { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: rgba(17, 24, 51, .75); border: 1px solid var(--border); }
.pp-card:focus { outline: none; }
.pp-card h2 { margin: 0 0 8px; font-size: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pp-facts { margin: 12px 0 0; }
.pp-facts div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.pp-facts dt { color: var(--muted); flex: none; }
.pp-facts dd { margin: 0; font-weight: 600; text-align: right; }
.pp-more { margin-top: 12px; font-size: 14px; color: #cbd5e1; }
.pp-more summary { cursor: pointer; font-weight: 600; color: var(--primary-2); }
.pp-more ul { margin: 8px 0 0; padding-left: 20px; }

.svc-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; padding: 0; border: 0; min-width: 0; }
.svc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.svc:hover { background: var(--surface-2); }
.svc:has(input:checked) { border-color: var(--primary); background: rgba(249, 115, 22, .1); }
.svc input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.svc-name { flex: 1; font-weight: 600; font-size: 15px; }
.svc-price { font-weight: 800; white-space: nowrap; }
.svc-price small { font-weight: 500; color: var(--muted); }
.form-error { margin: 0 0 12px; color: var(--danger); font-size: 14px; font-weight: 600; }
.next-step { margin-top: 14px; padding: 14px; border-radius: 12px; background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .3); }
.next-step p { margin: 6px 0 0; }

.port { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 10px; }
.port figure { margin: 0; }
.port-img { aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(135deg, var(--c, var(--primary)), #0b1020 130%); opacity: .85; }
.port figcaption { margin-top: 6px; font-size: 13.5px; display: flex; flex-direction: column; }
.port figcaption small { color: var(--muted); }
.review { padding: 12px 0; border-top: 1px solid var(--border); font-size: 14.5px; line-height: 1.5; }
.review:first-of-type { border-top: 0; padding-top: 4px; }
.review p { margin: 0; }
.review-head { margin-bottom: 4px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.review small { color: var(--muted); }
.stars { color: #fbbf24; letter-spacing: 1px; font-size: 13px; }

@media (max-width: 480px) {
  .pp-hero .btn { width: 100%; }
  .pp-facts div { flex-direction: column; gap: 2px; }
  .pp-facts dd { text-align: left; }
  .notice-actions .btn { flex: 1 1 auto; }
}

/* ---------- Phase 5: filter panel, dropdowns, sorting and pricing ---------- */
.fpanel { padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.fpanel:focus { outline: none; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.fld { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld-label { font-size: 12.5px; font-weight: 700; color: #cbd5e1; }
.fld-label small { margin-left: 4px; font-weight: 500; color: var(--muted); }
.fld-select, .dd-btn {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; font: inherit; font-size: 14.5px;
  color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
}
.fld-select {
  appearance: none; -webkit-appearance: none; color-scheme: dark; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' 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 10px center; background-size: 16px;
}
.fld-select option { color: #0b1020; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.dd-btn svg { flex: none; transition: transform .15s; }
.dd.open .dd-btn { border-color: var(--primary); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.fld-select:hover, .dd-btn:hover { background: var(--surface-2); }
.fld-select:focus-visible, .dd-btn:focus-visible, .dd-opt input:focus-visible, .fchip:focus-visible, .fpanel .link:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.dd-panel {
  position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; width: max(100%, 300px); max-height: 400px; overflow: auto;
  padding: 12px 12px 0; border-radius: 14px; background: #151d3b; border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow);
}
.dd-panel[hidden] { display: none; }
.dd-helper { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.dd-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.dd-opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.dd-opt:hover { background: var(--surface-2); }
.dd-opt input { flex: none; width: 20px; height: 20px; accent-color: var(--primary); }
.dd-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; margin: 8px -12px 0; padding: 10px 12px; background: #151d3b; border-top: 1px solid var(--border); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(249, 115, 22, .18); border: 1px solid rgba(249, 115, 22, .5); }
.fchip:hover { background: rgba(249, 115, 22, .3); }
.fnote { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pro-price { margin-top: 8px; }
.price-main { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.price-extra { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.svc-group { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.svc-group:first-of-type { margin-top: 0; }
.svc-match { margin-left: 6px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-style: normal; font-weight: 700; color: var(--accent); background: rgba(34, 211, 238, .12); white-space: nowrap; }
.empty .link { color: var(--primary-2); }

@media (max-width: 760px) {
  /* On phones the open dropdown is a sheet that sits above the fixed bottom navigation. */
  .dd-panel {
    position: fixed; top: auto; left: 12px; right: 12px; width: auto;
    bottom: calc(92px + env(safe-area-inset-bottom)); max-height: min(62vh, 460px);
  }
}
@media (max-width: 480px) {
  .fgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fld-label small { display: block; margin: 0; }
  .fld-select, .dd-btn { padding-left: 10px; font-size: 14px; }
  .svc-price { white-space: normal; text-align: right; }
  .svc-price small { display: block; }
}
.fpanel button.link { padding: 6px 4px; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .fld-sort { grid-column: 1 / -1; } }
.dd-panel { max-height: min(400px, 60vh); }

/* ===== Customer identity verification (verification/ui.js) ===== */
input[type="tel"], input[type="date"] {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color-scheme: dark; -webkit-appearance: none; appearance: none;
}
input[type="tel"]:focus, input[type="date"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18); }
.field.invalid input { border-color: var(--danger); }
.opt { color: var(--muted); font-weight: 500; }
.phone { display: flex; align-items: stretch; }
.phone-pre { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--border); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface-2); color: #cbd5e1; font-weight: 600; }
.phone input { border-radius: 0 12px 12px 0; }

.vs-demo, .status.vs-demo { color: #67e8f9; background: rgba(34, 211, 238, .12); }
.status.vs-in-progress { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.status.vs-unverified { color: var(--muted); background: var(--surface-2); }
.status.vs-verified { color: var(--success); background: rgba(74, 222, 128, .12); }
.status.vs-rejected { color: var(--danger); background: rgba(248, 113, 113, .12); }
.vprog { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; flex: 1; }
.vprog span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .3s; }
.vprog-row { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.vsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vsteps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.vsteps strong { display: block; font-size: 14.5px; }
.vsteps small { color: var(--muted); font-size: 12.5px; }
.vsteps li.vs-completed-demo, .vsteps li.vs-verified { border-color: rgba(34, 211, 238, .35); }
.vsteps li.vs-completed-demo .step-n, .vsteps li.vs-pending .step-n { background: #0e7490; color: #fff; }
.vsteps li.vs-verified .step-n { background: #16a34a; color: #fff; }
.vsteps li.vs-in-progress { border-color: rgba(249, 115, 22, .5); }
.vlink { align-self: flex-start; padding: 6px 0; border: 0; background: none; color: var(--primary-2); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.vscreen { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin: 0 auto; width: 100%; padding-bottom: 24px; }
.vtitle { margin: 0; font-size: clamp(24px, 6vw, 30px); letter-spacing: -0.02em; }
.vtitle:focus { outline: none; }
.vsub { margin: -8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.vsub.strong { color: var(--text); font-weight: 600; }
.vform { display: flex; flex-direction: column; gap: 16px; }
.vcard { padding: 18px; border-radius: 18px; background: rgba(17, 24, 51, .75); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.vcard h2 { margin: 0; font-size: 17px; }
.vcard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.vcard.vdemo { border-color: rgba(34, 211, 238, .4); background: rgba(14, 116, 144, .14); }
.vcard.vwarn { border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .07); }
.vcard.vwarn strong { color: #fbbf24; }
.vcenter { align-items: center; text-align: center; padding: 32px 18px; }
.vlist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.vnotice { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.vnotice dt { font-weight: 700; font-size: 14px; }
.vnotice dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.vactions { display: flex; flex-direction: column; gap: 10px; }
.vactions .btn { width: 100%; }
@media (min-width: 520px) { .vactions:not(.col) { flex-direction: row; } .vactions:not(.col) .btn { flex: 1; } }
.vrow { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.vkey { color: var(--muted); }
.lowconf { font-style: normal; font-size: 12px; font-weight: 700; color: #fbbf24; margin-left: 6px; }
.vsum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.vsum:last-child { border-bottom: 0; }
.vsum small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-word; }
.vladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vladder li { padding: 10px 12px 10px 38px; border-radius: 10px; background: var(--surface); color: var(--muted); position: relative; font-size: 14.5px; }
.vladder li::before { content: "○"; position: absolute; left: 14px; }
.vladder li.on { color: var(--text); }
.vladder li.on::before { content: "✓"; color: #67e8f9; font-weight: 800; }
.vladder small { display: block; font-size: 12.5px; color: var(--muted); }
.vtips, .vhints { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; }
.vhints { color: #fbbf24; }
.cam-tip { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }

.id-cards { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.id-card { display: flex; align-items: center; gap: 14px; padding: 16px; min-height: 76px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; position: relative; }
.id-card input { position: absolute; opacity: 0; }
.id-card:has(input:checked) { border-color: var(--primary); background: rgba(249, 115, 22, .09); }
.id-card:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(249, 115, 22, .3); }
.id-ico { flex: none; width: 56px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.id-ico svg { width: 36px; height: 30px; }
.id-national-id .id-ico { color: #93c5fd; background: rgba(59, 130, 246, .18); }
.id-drivers-license .id-ico { color: #fca5a5; background: rgba(239, 68, 68, .18); }
.id-passport .id-ico { color: #86efac; background: rgba(34, 197, 94, .16); }
.id-text strong { display: block; font-size: 16px; }
.id-text small { color: var(--muted); font-size: 13px; }

.cam-box { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 62vh; border-radius: 18px; overflow: hidden; background: #05080f; border: 1px solid var(--border); display: grid; place-items: center; }
.cam-box video, .cam-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-box.mirror video, .cam-box.mirror img { transform: scaleX(-1); }
.cam-box.idle { padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.cam-box.idle p { margin: 0; position: relative; z-index: 1; margin-top: 90px; }
.cam-box.problem { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.cam-box.problem p { margin: 0; }
.cam-box.problem strong { color: #fbbf24; font-size: 16px; }
.cam-guide { position: absolute; pointer-events: none; border: 3px dashed rgba(255, 255, 255, .85); box-shadow: 0 0 0 999px rgba(5, 8, 15, .45); }
.cam-guide.doc { inset: 14% 8%; border-radius: 14px; aspect-ratio: auto; }
.cam-guide.doc.passport { inset: 8% 18%; }
.cam-guide.face { left: 50%; top: 50%; width: 52%; height: 84%; transform: translate(-50%, -50%); border-radius: 50%; border-color: var(--primary-2); }
.cam-box.idle .cam-guide { opacity: .45; box-shadow: none; }
@media (max-width: 520px) { .cam-box { max-height: 40vh; } .cam-box:has(.cam-guide.face) { max-height: 46vh; } } /* keep the Capture button above the fold */

.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--primary); animation: vspin 1s linear infinite; }
@keyframes vspin { to { transform: rotate(360deg); } }
.vstages { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vstages li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.vdot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.vstages li.now { color: var(--text); }
.vstages li.now .vdot { border-color: var(--primary); border-top-color: transparent; animation: vspin 1s linear infinite; }
.vstages li.done { color: var(--text); }
.vstages li.done .vdot { background: #0e7490; border-color: #0e7490; }
.vguides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vguides span { padding: 10px 6px; text-align: center; font-size: 12.5px; border-radius: 10px; background: var(--surface); color: var(--muted); }

.req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.req-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.req-list li > span { font-size: 22px; }
.req-list small { display: block; color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .spinner, .vstages li.now .vdot { animation: none; } }

/* Provider-created listings (providers/repository.js) */
.src-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #67e8f9; background: rgba(34, 211, 238, .12); vertical-align: middle; }
.ver.none { color: var(--muted); background: var(--surface-2); }

/* Verification status UX */
.vstatus { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; margin: 6px 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.vstatus-verified { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .07); }
.vstatus .btn { width: 100%; }
.vbadges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vbadge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.vbadge.ok { color: #86efac; background: rgba(34, 197, 94, .16); }
.vbadge.no { color: #fbbf24; background: rgba(251, 191, 36, .13); }
.vsubchip { padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.vsubchip.vsub-pending, .status.vs-pending { color: #67e8f9; background: rgba(34, 211, 238, .12); }
.vsubchip.vsub-retry-required, .status.vs-retry-required { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.vsubchip.vsub-rejected { color: #fca5a5; background: rgba(248, 113, 113, .14); }
.status.vs-not-started { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.vtext, .vdate, .vdemo-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.vdate { color: #86efac; font-weight: 600; }
/* Spacing scale for new components (4px base). */
:root { --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; }

/* Verification reminder: one compact row (icon | title + text | action | dismiss). Under 360px the action drops to its own row. */
.vbanner { --vb: #94a3b8; --vb-bg: rgba(148, 163, 184, .08); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "ico body act x"; gap: var(--sp-2); align-items: center; padding: 6px var(--sp-1) 6px var(--sp-3); margin: var(--sp-2) 0 var(--sp-3); border-radius: 14px; border: 1px solid color-mix(in srgb, var(--vb) 35%, transparent); background: var(--vb-bg); }
.vb-ico { grid-area: ico; display: grid; color: var(--vb); }
.vb-body { grid-area: body; min-width: 0; padding: var(--sp-1) 0; }
.vb-body strong { display: block; font-size: 14.5px; line-height: 1.3; }
.vb-body p { margin: 1px 0 0; font-size: 13px; line-height: 1.4; color: #cbd5e1; }
.vb-act { grid-area: act; min-height: 44px; min-width: 56px; padding: 0 var(--sp-3); border-radius: 10px; border: 1px solid color-mix(in srgb, var(--vb) 55%, transparent); font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--text); background: color-mix(in srgb, var(--vb) 16%, transparent); }
.vb-x { grid-area: x; width: 40px; height: 44px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; }
.vb-x:hover, .vb-act:hover { filter: brightness(1.25); }
.vb-act:focus-visible, .vb-x:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.vb-not-started { --vb: #94a3b8; --vb-bg: rgba(148, 163, 184, .08); }
.vb-pending { --vb: #38bdf8; --vb-bg: rgba(56, 189, 248, .07); }
.vb-retry-required { --vb: #fbbf24; --vb-bg: rgba(251, 191, 36, .07); }
.vb-rejected { --vb: #f87171; --vb-bg: rgba(248, 113, 113, .08); }
@media (max-width: 430px) { /* a little tighter on phones so titles wrap less */
  .vbanner { gap: var(--sp-2) 6px; padding-left: 10px; }
  .vb-body strong { font-size: 14px; }
  .vb-act { padding: 0 10px; }
  .vb-x { width: 36px; }
}
@media (max-width: 359px) {
  .vbanner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico body x" "act act act"; align-items: start; padding-bottom: var(--sp-2); }
  .vb-act { justify-self: start; margin-left: calc(22px + var(--sp-2)); }
}
.dash-title { margin-top: 14px; }

/* Provider dashboard */
.pchips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: calc(-1 * var(--sp-2)) 0 var(--sp-3); }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.pchip.ok { color: #86efac; background: rgba(34, 197, 94, .14); }
.pchip.warn { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.pchip.bad { color: #fca5a5; background: rgba(248, 113, 113, .14); }
.pchip .vb-x { width: 28px; height: 28px; margin: -4px -6px -4px 0; font-size: 18px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.pcard { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); margin-bottom: var(--sp-3); border-radius: 18px; background: rgba(17, 24, 51, .75); border: 1px solid var(--border); }
.pcard h2 { margin: 0; font-size: 17px; }
.pcard p { margin: 0; }
.pcheck { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pcheck li { padding: 6px 0 6px 28px; position: relative; color: var(--muted); }
.pcheck li::before { content: "○"; position: absolute; left: 6px; }
.pcheck li.on::before { content: "✓"; color: #86efac; font-weight: 800; }
.pcheck li.on a { color: var(--text); }
.pcheck.missing li { color: #fbbf24; }
.pcheck.missing li::before { content: "•"; }
.pactions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.pactions .btn { min-height: 44px; padding: 0 var(--sp-4); }
.ptabs { display: flex; gap: var(--sp-2); overflow-x: auto; margin: 0 0 var(--sp-3); padding-bottom: var(--sp-1); scrollbar-width: none; }
.ptab { flex: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.ptab.on { color: #fff; background: linear-gradient(135deg, var(--primary), #ea580c); border-color: transparent; }
.pfield { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.pfield legend { font-size: 14px; font-weight: 700; color: #cbd5e1; padding: 0 0 var(--sp-1); }
.pcheckbox { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-size: 15px; cursor: pointer; }
.pcheckbox input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.pbrands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: var(--sp-3); }
.pradios { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.pmore summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.prow { border: 1px solid var(--border); border-radius: 14px; padding: var(--sp-3); margin: 0 0 var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.prow legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 var(--sp-1); }
.prow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }
.pport { align-items: end; }
textarea { width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 16px; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--border); resize: vertical; }
textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(249, 115, 22, .18); }
.pdays { display: flex; flex-direction: column; gap: var(--sp-1); }
.pday { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto auto; gap: var(--sp-2); align-items: center; }
.pday input[type="time"], .pcard input[type="date"] { padding: 8px 10px; min-height: 44px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 15px; color-scheme: dark; width: auto; }
.pdates { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (max-width: 420px) { .pday { grid-template-columns: 1fr auto auto auto; } .pday input[type="time"] { padding: 8px 6px; font-size: 14px; } }
.pver .vstatus { margin: 0; }

/* Bookings */
.bookings-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.bcard { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: 16px; background: rgba(17, 24, 51, .75); border: 1px solid var(--border); min-height: 44px; }
.bcard:hover { border-color: rgba(249, 115, 22, .5); }
.bcard-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14.5px; }
.bcard-main strong { font-size: 16px; }
.bcard-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); flex: none; text-align: right; }
.bcard-cta { font-size: 13px; font-weight: 700; color: var(--primary-2); }
.bstat { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); max-width: 170px; line-height: 1.25; }
.bs-awaiting-confirmation { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.bs-confirmed, .bs-completed { color: #86efac; background: rgba(34, 197, 94, .14); }
.bs-awaiting-completion { color: #7dd3fc; background: rgba(56, 189, 248, .13); }
.bs-cancelled, .bs-declined { color: #cbd5e1; background: rgba(148, 163, 184, .14); }
.bs-customer-no-show, .bs-provider-no-show { color: #fdba74; background: rgba(249, 115, 22, .14); }
.bs-disputed { color: #fca5a5; background: rgba(248, 113, 113, .15); }
.bhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); }
.bhead .dash-title { margin-bottom: var(--sp-2); }
.bdl { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.bdl > div { display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-3); font-size: 14.5px; }
.bdl dt { color: var(--muted); }
.bdl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bhist { margin: var(--sp-2) 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--sp-2); font-size: 14px; }
.bprop { border-color: rgba(56, 189, 248, .4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.bchip { min-height: 44px; padding: 0 var(--sp-3); border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px; }
.bchip[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, var(--primary), #ea580c); border-color: transparent; }
.bchip:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.bsummary h2 { font-size: 16px; }
.pcount { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pcount a { display: block; padding: 6px 0; font-size: 14.5px; min-height: 44px; }
.pcount strong { font-size: 18px; margin-right: 4px; }
.sample-h { margin-top: var(--sp-5); }
select { max-width: 100%; }
fieldset.pcard > legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--sp-1); font-size: 16px; font-weight: 700; color: var(--text); }
fieldset.pcard > legend + * { clear: both; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--sp-1); scrollbar-width: thin; }
.chips-scroll .bchip { flex: none; }

.pcol { flex-direction: column; align-items: stretch; }
.bdispute { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .07); }
.bitem { margin-bottom: var(--sp-2); }

.bc-chargeable { color: #86efac; background: rgba(34, 197, 94, .14); }
.bc-pending { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.bc-on-hold { color: #fca5a5; background: rgba(248, 113, 113, .15); }
.bc-paid { color: #7dd3fc; background: rgba(56, 189, 248, .13); }
.bc-reversed { color: #cbd5e1; background: rgba(148, 163, 184, .14); }

.pnote { padding: var(--sp-3); border-radius: 12px; border: 1px solid rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); font-size: 14px; }
.pnote p { margin: var(--sp-1) 0 0; }

/* Business name edit button and pop-up */
.picon-btn { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--primary-2); }
.picon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.picon-btn:focus-visible, .pback:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.ptitle-row { display: flex; align-items: center; gap: var(--sp-3); margin: 14px 0 20px; }
.ptitle-row .dash-title { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pnamerow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.pname { font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.pdlg-head { display: flex; }
.pback { min-height: 44px; padding: 0 var(--sp-3) 0 0; border: 0; background: none; color: var(--primary-2); font-weight: 700; font-size: 15px; }
.modal-card { overflow-y: auto; }

/* Overview navigation: full-width rows, chevrons, linked cards. Pencils are only for direct editing. */
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.prowlink { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 44px; padding: var(--sp-1) var(--sp-2); border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.prowlink:hover { background: var(--surface-2); }
.prowlink:focus-visible, .ptitle-link:focus-visible, .pcard-link:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.plabel { flex: 1; min-width: 0; }
.pchev { flex: none; color: var(--muted); }
.pind { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; }
.pind.ok { color: #052e16; background: #4ade80; }
.pind.todo { color: #451a03; background: #fbbf24; }
.pneeds { flex: none; font-size: 12px; font-weight: 700; color: #fbbf24; }
.ptitle-link { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 44px; margin: -6px 0; color: inherit; border-radius: 10px; }
.pcard-link { color: inherit; }
.pcard-link:hover { border-color: rgba(249, 115, 22, .5); }
.pcard-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.pcard-head h2 { margin: 0; }
.pview { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--primary-2); white-space: nowrap; }
.pname-title { margin-bottom: var(--sp-3); overflow-wrap: anywhere; }
.pflash { border-radius: 12px; animation: pflash 2.2s ease; }
@keyframes pflash { 0%, 60% { box-shadow: 0 0 0 3px rgba(249, 115, 22, .6); } 100% { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0); } }
@media (prefers-reduced-motion: reduce) { .pflash { animation: none; box-shadow: 0 0 0 3px rgba(249, 115, 22, .6); } }
.bcard-side .pchev { align-self: flex-end; }

.bdl-wide > div { grid-template-columns: 150px 1fr; }
@media (max-width: 380px) { .bdl-wide > div { grid-template-columns: 120px 1fr; } }
