:root {
  --bg: #090a0c;
  --surface: #111317;
  --surface-2: #171a1f;
  --line: #252a31;
  --text: #f7f8fa;
  --muted: #9ca4b0;
  --accent: #f04438;
  --accent-2: #ff6b35;
  --success: #42d392;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(0,0,0,.34);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: radial-gradient(circle at 80% -5%, rgba(240,68,56,.12), transparent 27%), var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; min-height: 100dvh; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, .card, .chip, .category-card { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100dvh; max-width: 1080px; margin: 0 auto; padding-bottom: calc(92px + var(--safe-bottom)); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 17px 20px 14px; background: linear-gradient(to bottom, rgba(9,10,12,.98), rgba(9,10,12,.88), rgba(9,10,12,0)); backdrop-filter: blur(14px); }
.brand { border: 0; background: none; display: flex; align-items: center; gap: 9px; padding: 0; cursor: pointer; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: white; font-family: Oswald, sans-serif; font-size: 22px; font-weight: 700; border-radius: 8px 3px 8px 3px; transform: skew(-5deg); box-shadow: 0 8px 24px rgba(240,68,56,.25); }
.brand-word { font-family: Oswald, sans-serif; letter-spacing: .08em; font-size: 24px; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .avatar, .x-btn { border: 1px solid var(--line); background: rgba(17,19,23,.9); cursor: pointer; }
.icon-btn { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; }
.icon-btn svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display:grid; place-items:center; font-size: 12px; font-weight: 800; background: linear-gradient(145deg,#292d35,#14161a); }
#app { padding: 0 18px 24px; outline: none; }
.hero { padding: 8px 1px 18px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Oswald, sans-serif; font-size: clamp(38px, 11vw, 72px); line-height: .95; letter-spacing: -.03em; margin-bottom: 16px; text-transform: uppercase; max-width: 760px; }
.hero p { color: #bac0c9; line-height: 1.6; max-width: 620px; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 14px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-icon { color: var(--muted); font-size: 22px; }
.location-line { display:flex; align-items:center; gap:7px; margin-top: 11px; color: var(--muted); font-size: 13px; }
.location-line strong { color: #d9dde3; }
.section { margin-top: 28px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap: 16px; margin-bottom: 13px; }
.section h2 { font-size: 19px; margin-bottom: 0; }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 700; cursor:pointer; font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.category-card { min-height: 92px; border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface-2), var(--surface)); border-radius: 16px; padding: 13px 10px; display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; text-align:left; }
.category-card:hover { border-color: #39414c; transform: translateY(-1px); }
.category-icon { font-size: 23px; }
.category-name { font-size: 11px; line-height:1.2; font-weight: 700; color: #dfe3e8; }
.horizontal-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 74%); gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; padding: 2px 1px 8px; scrollbar-width:none; }
.horizontal-scroll::-webkit-scrollbar { display:none; }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow:hidden; scroll-snap-align:start; }
.shop-cover { position: relative; height: 150px; background: linear-gradient(135deg,#272b31,#111317); overflow:hidden; }
.shop-cover::before, .shop-cover::after { content:""; position:absolute; }
.shop-cover::before { width: 180px; height: 180px; border: 26px solid rgba(255,255,255,.05); border-radius:50%; right:-48px; top:7px; }
.shop-cover::after { left:0; right:0; bottom:0; height: 4px; background: linear-gradient(90deg,var(--accent),var(--accent-2)); }
.cover-label { position:absolute; left:15px; bottom:16px; z-index:2; font-family:Oswald,sans-serif; font-size:24px; font-weight:700; text-transform:uppercase; max-width:82%; }
.badge { position:absolute; top:12px; right:12px; background: rgba(9,10,12,.78); backdrop-filter: blur(8px); border:1px solid rgba(255,255,255,.1); border-radius: 999px; padding:7px 9px; font-size:11px; font-weight:800; }
.card-body { padding: 14px; }
.card-title-row { display:flex; justify-content:space-between; gap: 8px; align-items:start; }
.card h3 { margin:0; font-size:15px; }
.rating { font-size:12px; font-weight:800; white-space:nowrap; }
.meta { color:var(--muted); font-size:12px; margin:7px 0 0; }
.chip-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.chip { padding:6px 8px; background:#1b1e23; border:1px solid #292e36; border-radius:999px; color:#c9ced6; font-size:10px; }
.promo { padding: 21px; background: linear-gradient(120deg, #17191e, #201517); border: 1px solid #352326; border-radius: 20px; position:relative; overflow:hidden; }
.promo::after { content:"BUILT"; position:absolute; right:-15px; bottom:-25px; font:700 76px Oswald; color:rgba(255,255,255,.035); }
.promo h3 { font: 600 25px Oswald; text-transform:uppercase; margin-bottom:8px; }
.promo p { color:#b8bec7; font-size:13px; line-height:1.5; max-width:430px; }
.primary-btn, .secondary-btn { border: 0; cursor:pointer; border-radius:13px; padding:13px 15px; font-weight:800; }
.primary-btn { background: var(--accent); color:white; box-shadow: 0 9px 25px rgba(240,68,56,.18); }
.secondary-btn { background: #20242a; color:#eef0f3; border:1px solid #303640; }
.promo .primary-btn { margin-top:4px; }
.bottom-nav { position:fixed; z-index:50; left:50%; transform:translateX(-50%); bottom:0; width:min(100%,1080px); height:calc(72px + var(--safe-bottom)); padding: 7px 13px var(--safe-bottom); display:grid; grid-template-columns: repeat(5,1fr); align-items:center; background:rgba(12,13,16,.96); border-top:1px solid var(--line); backdrop-filter:blur(18px); }
.nav-item { border:0; background:none; color:#747d89; display:grid; place-items:center; gap:3px; font-size:10px; cursor:pointer; }
.nav-item.active { color:#f1f3f5; }
.nav-icon { font-size:23px; line-height:1; }
.request-nav { transform: translateY(-9px); }
.request-plus { width:48px; height:48px; border-radius:15px; display:grid; place-items:center; background:var(--accent); color:#fff; font-size:27px; box-shadow:0 10px 30px rgba(240,68,56,.35); }
.page-head { padding: 8px 0 16px; }
.page-head h1 { font-size: 42px; margin-bottom:8px; }
.page-head p { color:var(--muted); }
.filter-row { display:flex; gap:8px; overflow:auto; padding-bottom:8px; scrollbar-width:none; }
.filter-chip { flex:none; border:1px solid var(--line); background:var(--surface); padding:9px 12px; border-radius:999px; color:#bbc1ca; cursor:pointer; font-size:12px; font-weight:700; }
.filter-chip.active { background:#f0f2f4; color:#0d0e10; border-color:#f0f2f4; }
.list { display:grid; gap:11px; margin-top:16px; }
.provider-row { display:grid; grid-template-columns: 76px 1fr auto; align-items:center; gap:12px; border:1px solid var(--line); background:var(--surface); border-radius:16px; padding:10px; cursor:pointer; }
.provider-thumb { width:76px; height:72px; border-radius:12px; background:linear-gradient(145deg,#343942,#171a1e); display:grid; place-items:center; font:700 20px Oswald; color:#eee; }
.provider-row h3 { margin:0 0 6px; font-size:14px; }
.provider-row p { margin:0; font-size:11px; color:var(--muted); line-height:1.35; }
.chev { color:#68717e; font-size:22px; }
.form-card { border:1px solid var(--line); background:var(--surface); border-radius:20px; padding:16px; }
.form-grid { display:grid; gap:14px; }
.field-label { display:block; font-size:12px; font-weight:800; margin-bottom:7px; color:#dfe3e8; }
.text-input, .select-input, .text-area { width:100%; border:1px solid #2a3038; background:#0d0f12; color:#f5f6f8; border-radius:13px; padding:13px 14px; outline:none; }
.text-input:focus, .select-input:focus, .text-area:focus { border-color:#5a6573; box-shadow:0 0 0 3px rgba(120,130,145,.08); }
.text-area { min-height:110px; resize:vertical; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.request-summary { margin-top:13px; padding:13px; border-radius:13px; background:#0d0f12; border:1px solid #242932; color:#aeb5bf; font-size:12px; line-height:1.45; }
.message-list { display:grid; gap:8px; }
.message-row { display:grid; grid-template-columns:48px 1fr auto; gap:11px; align-items:center; padding:12px 2px; border-bottom:1px solid #1c2026; cursor:pointer; }
.message-logo { width:48px; height:48px; border-radius:14px; background:#1b1e23; display:grid; place-items:center; font:700 17px Oswald; }
.message-row h3 { margin:0 0 5px; font-size:14px; }
.message-row p { margin:0; color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:55vw; }
.message-time { color:#737c87; font-size:10px; }
.profile-card { text-align:center; padding:24px 18px; border:1px solid var(--line); border-radius:22px; background:linear-gradient(145deg,#15181c,#0f1114); }
.profile-avatar { width:76px; height:76px; margin:0 auto 12px; border-radius:50%; display:grid; place-items:center; font-weight:900; background:linear-gradient(145deg,#353b44,#15171b); border:3px solid #242a31; }
.profile-card h2 { margin-bottom:5px; }
.profile-card p { color:var(--muted); font-size:12px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:16px; }
.stat { padding:12px 6px; border:1px solid #252a31; border-radius:13px; background:#0c0e11; }
.stat strong { display:block; font-size:17px; }
.stat span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.05em; }
.settings-list { margin-top:17px; border:1px solid var(--line); border-radius:17px; overflow:hidden; }
.setting-row { width:100%; display:flex; justify-content:space-between; align-items:center; border:0; border-bottom:1px solid var(--line); background:var(--surface); padding:15px; text-align:left; cursor:pointer; }
.setting-row:last-child { border-bottom:0; }
.setting-row small { display:block; color:var(--muted); margin-top:4px; }
.toast { position:fixed; z-index:100; left:50%; transform:translateX(-50%) translateY(20px); bottom:100px; background:#eff2f5; color:#0d0f12; border-radius:12px; padding:11px 14px; font-size:12px; font-weight:700; opacity:0; pointer-events:none; transition:.25s ease; box-shadow:var(--shadow); }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.sheet-dialog { border:0; padding:0; background:transparent; color:var(--text); width:min(100%,560px); max-width:none; margin:auto 0 0; left:50%; transform:translateX(-50%); }
.sheet-dialog::backdrop { background:rgba(0,0,0,.66); backdrop-filter:blur(3px); }
.sheet { background:#111317; border:1px solid #2a2f37; border-radius:24px 24px 0 0; padding:12px 18px calc(22px + var(--safe-bottom)); }
.sheet-handle { width:42px; height:4px; border-radius:99px; background:#3c424b; margin:0 auto 17px; }
.sheet-title-row { display:flex; align-items:center; justify-content:space-between; }
.sheet h2 { margin:0; font-size:20px; }
.sheet .muted { color:var(--muted); font-size:12px; margin:7px 0 17px; }
.x-btn { width:36px; height:36px; border-radius:50%; font-size:20px; }
.sheet .primary-btn { width:100%; margin-top:15px; }
.empty-state { padding:38px 18px; text-align:center; border:1px dashed #303640; border-radius:18px; color:#8f97a3; }
.empty-state strong { display:block; color:#e6e9ed; margin-bottom:7px; }
@media (max-width: 680px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap:8px; }
  .category-card { min-height:82px; padding:10px 8px; }
  .category-icon { font-size:20px; }
  .category-name { font-size:10px; }
}
@media (min-width: 760px) {
  #app { padding-left:28px; padding-right:28px; }
  .topbar { padding-left:30px; padding-right:30px; }
  .category-grid { grid-template-columns: repeat(8,1fr); }
  .horizontal-scroll { grid-auto-columns:minmax(280px,32%); }
  .bottom-nav { width:620px; bottom:18px; border:1px solid var(--line); border-radius:24px; height:70px; padding:7px 12px; box-shadow:var(--shadow); }
  .app-shell { padding-bottom:110px; }
  .sheet-dialog { bottom:0; }
}

/* V1.5 refinement — preserve the original premium marketplace DNA */
:root { --accent:#ff4d3d; --accent-2:#ff7a45; --radius:20px; }
body { background: radial-gradient(circle at 88% 0%,rgba(255,77,61,.10),transparent 30%),radial-gradient(circle at 8% 35%,rgba(255,255,255,.025),transparent 25%),#090a0c; }
.topbar { padding-top:19px; }
.brand-mark { border-radius:10px 4px 10px 4px; box-shadow:0 10px 30px rgba(255,77,61,.22); }
.hero { padding-top:18px; }
.hero h1 { text-wrap:balance; }
.hero p { max-width:540px; }
.search-box { background:rgba(17,19,23,.84); backdrop-filter:blur(16px); box-shadow:0 18px 55px rgba(0,0,0,.28); }
.category-card { position:relative; overflow:hidden; transition:.2s ease; }
.category-card::after { content:""; position:absolute; width:55px; height:55px; right:-26px; top:-28px; border:1px solid rgba(255,255,255,.055); border-radius:50%; }
.category-card:hover { transform:translateY(-3px); box-shadow:0 14px 32px rgba(0,0,0,.22); }
.card { box-shadow:0 14px 35px rgba(0,0,0,.18); transition:.2s ease; }
.card:hover { transform:translateY(-2px); border-color:#343b45; }
.shop-cover { height:164px; background:linear-gradient(135deg,#30343b 0%,#1a1d22 48%,#0e1013 100%); }
.shop-cover::before { border-width:18px; opacity:.8; }
.cover-label { letter-spacing:-.01em; text-shadow:0 2px 18px rgba(0,0,0,.5); }
.badge { border-color:rgba(255,255,255,.14); }
.promo { background:radial-gradient(circle at 85% 25%,rgba(255,77,61,.15),transparent 28%),linear-gradient(120deg,#181a1f,#151113); border-color:#382527; }
.primary-btn { transition:transform .15s ease,box-shadow .15s ease; }
.primary-btn:active { transform:scale(.98); }
.bottom-nav { box-shadow:0 -12px 35px rgba(0,0,0,.18); }
.request-plus { border-radius:17px 8px 17px 8px; transform:rotate(-2deg); }
.request-plus > * { transform:rotate(2deg); }
.provider-row { transition:.18s ease; }
.provider-row:hover { border-color:#343b45; background:#14171b; }
.profile-card { position:relative; overflow:hidden; }
.profile-card::after { content:"BUILT"; position:absolute; right:-12px; bottom:-30px; font:700 90px Oswald; color:rgba(255,255,255,.022); pointer-events:none; }
@media (min-width:760px){ .hero { padding-top:34px; } }

/* BUILT V1.6 — functional location layer */
.location-inline-btn { border:0; background:transparent; padding:0; cursor:pointer; font:inherit; }
.location-dot { width:7px; height:7px; border-radius:50%; background:#717985; display:inline-block; box-shadow:0 0 0 3px rgba(113,121,133,.12); }
.location-dot.live { background:#4ee6a8; box-shadow:0 0 0 3px rgba(78,230,168,.12),0 0 14px rgba(78,230,168,.22); }
.live-tag { margin-left:2px; padding:3px 6px; border-radius:999px; font-size:8px; font-weight:800; letter-spacing:.08em; background:rgba(78,230,168,.1); color:#79efbe; border:1px solid rgba(78,230,168,.18); }
.section-sub { margin:5px 0 0; color:var(--muted); font-size:10px; }
.explore-location-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:12px 1px 0; }
.radius-readout { color:var(--muted); font-size:11px; white-space:nowrap; }
.radius-row { display:flex; gap:8px; overflow:auto; margin:12px 0 3px; padding-bottom:2px; scrollbar-width:none; }
.radius-chip { flex:0 0 auto; border:1px solid var(--line); background:#111419; color:#aeb5bf; border-radius:999px; padding:8px 12px; font-size:11px; font-weight:700; cursor:pointer; }
.radius-chip.active { border-color:rgba(240,68,56,.55); background:rgba(240,68,56,.11); color:#fff; }
.nearby-summary { color:#d8dde4; font-size:11px; margin:0 1px 12px; }
.nearby-summary strong { color:#fff; font-size:13px; }
.nearby-summary span { color:var(--muted); }
.distance-accent { color:#fff; font-weight:700; }
.location-primary { display:flex; align-items:center; justify-content:center; gap:9px; margin-top:3px !important; }
.location-target { font-size:18px; line-height:1; }
.location-manual { width:100%; margin-top:10px; background:#1b1f25; color:#f1f3f5; border:1px solid #2e343d; }
.location-status { min-height:0; margin-top:11px; display:grid; gap:4px; }
.location-status:empty { margin-top:0; }
.location-status small { color:var(--muted); font-size:10px; line-height:1.45; }
.status-success { color:#79efbe; font-weight:700; font-size:12px; }
.status-error { color:#ff968e; font-weight:650; font-size:11px; line-height:1.5; }
.location-divider { display:flex; align-items:center; gap:10px; color:#656d79; font-size:10px; text-transform:uppercase; letter-spacing:.1em; margin:16px 0 12px; }
.location-divider::before,.location-divider::after { content:""; height:1px; flex:1; background:#292e36; }
.location-note { color:#727b87; font-size:9px; line-height:1.5; margin:12px 2px 0; }
.location-note strong { color:#9ea6b1; }
.location-spinner { width:14px; height:14px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:location-spin .8s linear infinite; }
@keyframes location-spin { to { transform:rotate(360deg); } }

/* BUILT V1.7 — visible distance control + resolved city/state */
.home-radius-control { margin-top:14px; display:flex; align-items:center; gap:10px; min-width:0; }
.home-radius-control > span { flex:0 0 auto; color:#7f8792; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.home-radius-row { margin:0; flex:1; }
.home-radius-row .radius-chip { padding:7px 10px; }
@media (max-width:520px){ .home-radius-control { align-items:flex-start; flex-direction:column; gap:7px; } .home-radius-row { width:100%; } }

/* V1.8 — Lighting category */
.lighting-feature{margin-top:8px}
.lighting-spotlight{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center;padding:16px;border:1px solid rgba(255,255,255,.09);background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.018));border-radius:22px;cursor:pointer;box-shadow:0 18px 50px rgba(0,0,0,.22)}
.lighting-mark{width:72px;height:72px;border-radius:20px;display:grid;place-items:center;font-weight:900;font-size:22px;letter-spacing:-.04em;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.18),transparent 35%),linear-gradient(145deg,#252525,#101010);border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 0 24px rgba(255,255,255,.04)}
.lighting-copy{min-width:0}.lighting-copy h3{margin:0;font-size:19px}.lighting-copy p{margin:3px 0 10px;color:var(--muted)}.lighting-copy small{display:block;margin-top:9px;color:var(--muted);font-size:11px}.lighting-title-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.lighting-title-row .badge{position:static;display:inline-flex;font-size:10px;padding:5px 8px}.lighting-spotlight .chev{font-size:28px;color:var(--muted)}
@media(max-width:520px){.lighting-spotlight{grid-template-columns:58px 1fr auto;padding:14px;gap:11px}.lighting-mark{width:58px;height:58px;border-radius:17px;font-size:18px}.lighting-copy .chip-row{gap:5px}.lighting-copy .chip{font-size:10px;padding:5px 7px}}


.location-search-wrap{position:relative}
.location-suggestions{
  display:none;
  margin-top:8px;
  border:1px solid rgba(255,255,255,.10);
  background:#111315;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.35);
  max-height:260px;
  overflow-y:auto;
}
.location-suggestions.open{display:block}
.location-suggestion{
  width:100%;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:transparent;
  color:inherit;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  text-align:left;
  cursor:pointer;
}
.location-suggestion:last-child{border-bottom:0}
.location-suggestion:hover,.location-suggestion:focus{background:rgba(255,255,255,.055)}
.location-suggestion strong{display:block;font-size:14px}
.location-suggestion small{display:block;margin-top:3px;color:var(--muted);font-size:11px}


.back-link{border:0;background:transparent;color:var(--muted);padding:4px 0 16px;font-weight:700;cursor:pointer}
.provider-hero{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;padding:22px 0 14px;position:relative}
.provider-hero .badge{grid-column:1/-1;width:max-content}
.provider-logo-large{width:72px;height:72px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(145deg,#23272b,#101214);border:1px solid rgba(255,255,255,.11);font-family:'Oswald',sans-serif;font-size:24px;font-weight:700}
.provider-hero h1{margin:3px 0 3px;font-size:34px;line-height:1}
.provider-hero p{margin:0;color:var(--muted)}
.provider-rating-line{display:flex;gap:14px;align-items:center;padding:12px 0;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08);color:var(--muted)}
.provider-description{font-size:15px;line-height:1.6;color:#d7dade;max-width:700px;margin:18px 0}
.provider-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.detail-panel{padding:16px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.025);display:flex;flex-direction:column;gap:5px}
.detail-panel strong{font-size:14px;line-height:1.45}
.detail-panel small{color:var(--muted);line-height:1.4}
.detail-wide{grid-column:1/-1}
.service-pill-grid{display:flex;flex-wrap:wrap;gap:8px}
.service-pill{padding:9px 11px;border-radius:999px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);font-size:12px}
.provider-cta-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 30px}
.provider-link-btn{text-decoration:none;text-align:center;box-sizing:border-box}
@media(max-width:520px){.provider-detail-grid{grid-template-columns:1fr}.detail-wide{grid-column:auto}.provider-cta-row{grid-template-columns:1fr}}


.location-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 14px}
.location-mode-chip{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.025);color:var(--muted);border-radius:12px;padding:10px 12px;font-weight:700;cursor:pointer}
.location-mode-chip.active{background:#f3f3f3;color:#0d0f10;border-color:#f3f3f3}
.location-mode-hint{margin:10px 2px 0;color:var(--muted);font-size:12px;line-height:1.45}

.location-suggestion.street-only{opacity:.45;cursor:not-allowed}
.location-suggestion.street-only:hover,.location-suggestion.street-only:focus{background:transparent}


.verification-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.shop-cover .verification-badges{
  position:absolute;
  top:12px;
  right:12px;
  justify-content:flex-end;
  max-width:75%;
}
.verification-badges .badge{
  position:static;
  width:max-content;
}
.badge-built{
  background:rgba(255,255,255,.94);
  color:#111315;
  border:1px solid rgba(255,255,255,.95);
}
.badge-google{
  background:#15181b;
  color:#f4f5f6;
  border:1px solid rgba(255,255,255,.18);
}
.badge-google::first-letter{
  font-weight:900;
}
.provider-hero .verification-badges{
  grid-column:1/-1;
}

.verification-key{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  padding:10px 0 2px;
  color:var(--muted);
  font-size:11px;
}
.verification-key strong{color:#e8eaed}

/* V1.24 verification hierarchy */
.badge-built{
  background:#ff3b30 !important;
  color:#fff !important;
  border-color:#ff3b30 !important;
}
.badge-google{
  background:#f4f4f4 !important;
  color:#111315 !important;
  border-color:#f4f4f4 !important;
}
.shop-cover .verification-badges{
  top:12px;
  right:12px;
  flex-direction:row;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
  max-width:92%;
}


/* V1.26 business branding */
.shop-cover{
  overflow:hidden;
}
.shop-brand-art{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px 42px 42px;
  pointer-events:none;
}
.provider-logo-card{
  width:min(78%, 290px);
  height:100%;
  max-height:145px;
  object-fit:contain;
  object-position:center;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.42));
  opacity:.92;
}
.shop-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(8,10,12,.05) 0%,rgba(8,10,12,.08) 55%,rgba(8,10,12,.62) 100%);
  pointer-events:none;
}
.shop-cover .cover-label,
.shop-cover .verification-badges{
  z-index:2;
}
.provider-avatar{
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.provider-logo-avatar{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:5px;
}
.provider-logo-fallback{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  font:800 22px/1 inherit;
}
.logo-fallback .provider-logo-fallback{
  display:flex;
}

.provider-logo-large,
.provider-thumb{
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.provider-logo-large .provider-logo-avatar{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:5px;
}
.provider-logo-thumb{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:3px;
}


/* V1.27 shop card branding treatment */
.shop-cover{
  background:#000 !important;
}
.shop-brand-art{
  inset:0 !important;
  padding:14px 18px 28px !important;
  background:#000 !important;
}
.provider-logo-card{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center !important;
  opacity:1 !important;
  filter:none !important;
}
.shop-cover::after{
  background:linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 58%,
    rgba(0,0,0,.50) 100%
  ) !important;
}


/* V1.28 universal provider-branding system */
.shop-brand-art,
.provider-logo-large,
.provider-avatar,
.provider-thumb{
  background:#000 !important;
}

.provider-logo-large{
  width:72px;
  height:72px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  flex:0 0 72px;
  padding:0 !important;
}

.provider-logo-large .provider-logo-avatar,
.provider-avatar .provider-logo-avatar,
.provider-thumb .provider-logo-thumb{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center !important;
  padding:5px !important;
  background:#000 !important;
}

.shop-brand-art .provider-logo-card{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#000 !important;
}

.provider-logo-fallback{
  background:#000;
  color:#fff;
}

/* Any future provider logo field resolved by providerLogoMarkup
   automatically receives these same card/profile treatments. */


/* V1.29 role architecture */
.account-switcher-shell{
  margin:12px auto 4px;
  max-width:1040px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(17,19,22,.94);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.account-switcher-copy{display:flex;flex-direction:column;gap:2px}
.account-switcher-copy strong{font-size:15px}
.account-switcher{display:flex;gap:6px;flex-wrap:wrap}
.account-mode-chip{
  border:1px solid rgba(255,255,255,.12);
  background:#111417;
  color:#cfd3d7;
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  font-size:12px;
}
.account-mode-chip.active{
  background:#fff;
  color:#111;
  border-color:#fff;
}
.role-page{padding:10px 0 110px}
.role-hero{
  position:relative;
  overflow:hidden;
  padding:28px 22px;
  margin-bottom:16px;
  border:1px solid var(--border);
  border-radius:24px;
  background:linear-gradient(145deg,#14171b,#0b0d0f);
}
.role-hero::after{
  content:"";
  position:absolute;
  width:180px;height:180px;
  border-radius:50%;
  right:-60px;top:-80px;
  border:28px solid rgba(255,59,48,.08);
}
.role-hero h1{font-size:30px;line-height:1.02;margin:8px 0 10px;max-width:650px}
.role-hero p{color:var(--muted);max-width:680px;line-height:1.55}
.role-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.role-grid,
.member-dashboard-grid,
.business-dashboard-grid,
.business-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.role-card,
.dashboard-card,
.business-tool-card,
.metric-card,
.member-strip,
.business-management-note{
  border:1px solid var(--border);
  border-radius:18px;
  background:#101316;
}
.role-card{padding:18px}
.role-card>span{font-size:11px;color:#ff4a40;font-weight:900}
.role-card h3{margin:8px 0 6px}
.role-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.dashboard-card,
.business-tool-card{
  width:100%;
  padding:15px;
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:12px;
  color:#fff;
  text-align:left;
}
.dashboard-card div,
.business-tool-card div{display:flex;flex-direction:column;gap:3px}
.dashboard-card small,
.business-tool-card small{color:var(--muted);font-size:11px}
.dashboard-icon{
  width:42px;height:42px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:#080a0c;
  overflow:hidden;
}
.dashboard-icon img{width:100%;height:100%;object-fit:contain}
.member-strip,
.business-management-note{margin-top:14px;padding:18px}
.member-strip{display:flex;align-items:center;justify-content:space-between;gap:18px}
.member-strip p,
.business-management-note p{color:var(--muted);margin:6px 0 0}
.business-status-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.business-status-dot{font-size:12px;color:#8fe5a5;font-weight:800}
.metric-card{padding:16px;display:flex;flex-direction:column;gap:4px}
.metric-card small,.metric-card span{color:var(--muted)}
.metric-card strong{font-size:28px}
.business-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}
.role-locked{
  margin:28px auto 120px;
  max-width:620px;
  padding:34px 24px;
  text-align:center;
  border:1px solid var(--border);
  border-radius:24px;
  background:#111417;
}
.role-lock-icon{font-size:28px;margin-bottom:8px}
.role-locked h2{margin:8px 0}
.role-locked p{color:var(--muted);line-height:1.55;margin:0 auto 18px;max-width:480px}
.built-role-fab{
  position:fixed;
  z-index:80;
  right:14px;
  bottom:84px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background:#fff;
  color:#111;
  padding:9px 13px;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1;
}
.built-role-fab span{font-weight:950;font-size:12px}
.built-role-fab small{font-size:9px;margin-top:3px;opacity:.6}
@media(max-width:720px){
  .account-switcher-shell{align-items:flex-start;flex-direction:column}
  .account-switcher{width:100%}
  .account-mode-chip{flex:1}
  .role-grid,.member-dashboard-grid,.business-metrics,.business-dashboard-grid{grid-template-columns:1fr}
  .role-hero h1{font-size:25px}
  .member-strip{align-items:flex-start;flex-direction:column}
}


/* V1.30 guest-first authentication flow */
.account-entry-bar{
  max-width:1040px;
  margin:12px auto 6px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#101316;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.account-entry-bar>div:first-child{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.account-entry-bar strong{font-size:14px}
.login-entry-btn,
.logout-btn{
  border-radius:999px;
  padding:9px 14px;
  font-weight:900;
  font-size:12px;
}
.login-entry-btn{
  background:#fff;
  color:#111;
  border:1px solid #fff;
}
.logout-btn{
  background:transparent;
  color:#cdd1d5;
  border:1px solid rgba(255,255,255,.16);
}
.account-entry-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.login-page{
  padding:18px 0 120px;
}
.login-intro{
  padding:26px 4px 20px;
  max-width:690px;
}
.login-intro h1,
.login-panel h1{
  font-size:36px;
  line-height:1;
  margin:8px 0 10px;
}
.login-intro p,
.login-panel p{
  color:var(--muted);
  line-height:1.55;
}
.login-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.login-choice-card{
  position:relative;
  overflow:hidden;
  padding:24px;
  min-height:320px;
  border:1px solid var(--border);
  border-radius:24px;
  background:#101316;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.login-choice-card::after{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  border-radius:50%;
  border:28px solid rgba(255,255,255,.035);
  right:-70px;
  top:-80px;
  pointer-events:none;
}
.member-login-card{
  border-color:rgba(255,255,255,.12);
}
.business-login-card{
  border-color:rgba(255,59,48,.28);
}
.login-choice-icon{
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#080a0c;
  margin-bottom:22px;
  font-size:24px;
}
.login-choice-card h2{
  font-size:28px;
  margin:6px 0 8px;
}
.login-choice-card p{
  color:var(--muted);
  line-height:1.55;
  min-height:72px;
  margin:0 0 20px;
}
.login-choice-card .primary{
  width:100%;
  margin-top:auto;
}
.text-action{
  width:100%;
  margin-top:10px;
  border:0;
  background:transparent;
  color:#d8dadd;
  font-weight:800;
  padding:8px;
}
.continue-guest-btn{
  display:block;
  margin:16px auto 0;
  border:0;
  background:transparent;
  color:var(--muted);
  font-weight:800;
  padding:10px 16px;
}
.login-panel{
  max-width:620px;
  margin:28px auto;
  padding:30px;
  border:1px solid var(--border);
  border-radius:24px;
  background:#101316;
}
@media(max-width:720px){
  .login-choice-grid{grid-template-columns:1fr}
  .login-intro h1,.login-panel h1{font-size:30px}
  .account-entry-bar{align-items:flex-start}
  .account-entry-actions{flex-wrap:wrap;justify-content:flex-end}
}

.account-switcher-shell,
.built-role-fab{display:none !important;}


/* V1.31 guest-first header authentication */
.header-login-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.18);
  background:#fff;
  color:#111315;
  border-radius:999px;
  padding:9px 15px;
  min-height:36px;
  font-size:12px;
  font-weight:950;
  letter-spacing:.01em;
  white-space:nowrap;
}
.header-login-btn:hover{
  transform:translateY(-1px);
}
.header-account-avatar{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:50%;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:#15181b;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  font-size:12px;
}
.business-account-avatar{
  background:#000;
}
.provider-logo-header{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  padding:3px;
  background:#000;
}


/* V1.33: no legacy avatar while browsing as Guest */
body[data-account-mode="guest"] .avatar,
body[data-account-mode="guest"] .profile-avatar,
body[data-account-mode="guest"] .user-avatar,
body[data-account-mode="guest"] .header-account-avatar{
  display:none !important;
}


/* V1.34 full prototype authentication forms */
.auth-form-shell{
  max-width:520px;
  margin:24px auto 110px;
  padding:28px;
  border:1px solid var(--border);
  border-radius:24px;
  background:#101316;
}
.auth-form-shell h1{
  font-size:34px;
  margin:8px 0 8px;
}
.auth-form-shell>p{
  color:var(--muted);
  line-height:1.5;
  margin:0 0 22px;
}
.auth-back-btn{
  border:0;
  background:transparent;
  color:#b8bdc2;
  padding:0 0 18px;
  font-weight:800;
}
.auth-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.auth-form label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  font-weight:850;
  color:#e4e7ea;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"]{
  width:100%;
  border:1px solid rgba(255,255,255,.13);
  border-radius:13px;
  background:#0a0c0e;
  color:#fff;
  padding:13px 14px;
  font-size:14px;
  outline:none;
}
.auth-form input:focus{
  border-color:rgba(255,59,48,.7);
  box-shadow:0 0 0 3px rgba(255,59,48,.09);
}
.terms-check{
  flex-direction:row !important;
  align-items:flex-start;
  gap:9px !important;
  color:var(--muted) !important;
  font-weight:650 !important;
  line-height:1.4;
}
.terms-check input{
  margin-top:2px;
}
.auth-link-btn,
.auth-footer button{
  border:0;
  background:transparent;
  color:#fff;
  font-weight:850;
}
.auth-link-btn{
  align-self:center;
  padding:2px 8px;
  font-size:12px;
}
.auth-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:20px 0 14px;
  color:#747b82;
  font-size:11px;
}
.auth-divider::before,
.auth-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(255,255,255,.09);
}
.oauth-btn{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  background:#fff;
  color:#111;
  border-radius:13px;
  padding:12px 14px;
  font-weight:900;
}
.auth-footer{
  margin:18px 0 0 !important;
  text-align:center;
  font-size:12px;
}
.auth-footer button{
  padding:0;
}
.auth-inline-message{
  border-radius:12px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.4;
}
.auth-inline-message.error{
  border:1px solid rgba(255,59,48,.35);
  background:rgba(255,59,48,.08);
  color:#ffaaa4;
}
.auth-inline-message.info{
  border:1px solid rgba(126,176,255,.25);
  background:rgba(126,176,255,.07);
  color:#b7d2ff;
}


/* V1.35 email confirmation gate */
.verification-shell{
  text-align:center;
}
.verification-icon{
  width:58px;
  height:58px;
  margin:0 auto 16px;
  border-radius:18px;
  background:#080a0c;
  border:1px solid rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:25px;
}
.verification-shell .auth-back-btn{
  display:block;
  text-align:left;
}
.verification-shell>p strong{
  color:#fff;
}
.verification-notice{
  margin:18px 0;
  padding:13px 14px;
  border-radius:14px;
  border:1px solid rgba(255,59,48,.25);
  background:rgba(255,59,48,.07);
  color:#cfd3d7;
  font-size:12px;
  line-height:1.5;
}
.verification-shell .primary,
.verification-shell .secondary{
  width:100%;
  margin-top:9px;
}
