/* Bloop v2 — dark neon theme */
:root {
  --bg: #070b1f;
  --bg2: #0c1230;
  --card: rgba(22, 30, 70, .72);
  --card-solid: #141b42;
  --line: rgba(150, 160, 255, .16);
  --line-strong: rgba(150, 160, 255, .3);
  --text: #f3f4ff;
  --muted: #9ba3cc;
  --purple: #9b4dff;
  --violet: #7a5cff;
  --blue: #3d8bff;
  --green: #1fbf62;
  --green-bg: #0f8a45;
  --amber: #f5a524;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #a64dff 0%, #7a5cff 50%, #3d8bff 100%);
  --glow: 0 0 24px rgba(140, 90, 255, .45);
  --radius: 18px;
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); overflow: hidden; -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; }
input, select, textarea { font: inherit; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ico.fill { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Views ---------- */
.view {
  position: fixed; left: 0; right: 0; top: 0; bottom: calc(var(--tabbar) + var(--safe-b));
  overflow-y: auto; overflow-x: hidden; display: none;
  background: radial-gradient(120% 60% at 50% 0%, #161a4a 0%, var(--bg) 60%);
}
.view.active { display: block; }
#view-map.active { display: flex; flex-direction: column; overflow: hidden; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 4px; }
.logo img { height: 40px; filter: drop-shadow(0 0 10px rgba(140, 90, 255, .6)); }
.wordmark {
  font-weight: 900; font-style: italic; letter-spacing: -1.5px; font-size: 2rem; line-height: 1;
  color: #fff; text-shadow: 0 2px 12px rgba(120, 90, 255, .45);
}

/* ---------- Home ---------- */
.hero { position: relative; height: 330px; overflow: hidden; }
.hero svg.skyline { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, rgba(7, 11, 31, 0), var(--bg) 92%);
}
.hero-inner {
  position: relative; z-index: 2; text-align: center; padding-top: calc(28px + var(--safe-t));
}
.hero .logo img { height: 92px; }
.hero .wordmark { font-size: 4rem; }
.hero .domain { color: #e5e7ff; font-weight: 500; margin: 2px 0 0 70px; display: inline-block; font-size: 1rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.home-head { position: relative; z-index: 3; text-align: center; margin-top: -78px; padding: 0 16px; }
.home-head h1 { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -.3px; }
.home-head p { margin: 6px 0 0; color: #dfe2ff; font-size: 1.05rem; }
.home-head p span { margin: 0 8px; opacity: .7; }

.bloop-now-wrap { display: grid; place-items: center; margin: 26px 0 8px; }
.bloop-now {
  width: 210px; height: 210px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 35%, #8a5dff 0%, #5a35e8 45%, #2c1aa8 100%);
  box-shadow: 0 0 0 6px rgba(140, 100, 255, .18), 0 0 0 14px rgba(140, 100, 255, .08), 0 0 60px rgba(130, 80, 255, .75), inset 0 -10px 30px rgba(0, 0, 0, .35), inset 0 6px 20px rgba(255, 255, 255, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: transform .15s;
}
.bloop-now:active { transform: scale(.96); }
.bloop-now::before {
  content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 2px solid rgba(150, 110, 255, .35);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
.bloop-now .toilet { width: 64px; height: 64px; }
.bloop-now b { font-size: 2.1rem; font-weight: 900; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.now-sub { text-align: center; color: #dfe2ff; margin: 18px 0 20px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px 24px; max-width: 560px; margin: 0 auto; }
.cat {
  background: linear-gradient(180deg, rgba(40, 48, 100, .65), rgba(20, 26, 64, .75));
  border: 1px solid var(--line-strong); border-radius: 18px; height: 88px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.cat .ico { width: 30px; height: 30px; }
.cat:active { background: rgba(122, 92, 255, .35); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(10, 14, 38, .96); border-top: 1px solid var(--line); backdrop-filter: blur(14px);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #c5c9e8; font-size: .78rem; }
.tab .ico { width: 26px; height: 26px; }
.tab.active { color: #c48bff; }
.tab.active .ico { filter: drop-shadow(0 0 8px rgba(180, 110, 255, .8)); }

/* ---------- Map view ---------- */
.map-top { padding: calc(10px + var(--safe-t)) 14px 10px; background: linear-gradient(to bottom, #0b1030, rgba(11, 16, 48, .95)); z-index: 600; position: relative; }
.map-top .logo { display: flex; justify-content: center; margin-bottom: 10px; }
.map-top .logo img { height: 36px; }
.map-top .wordmark { font-size: 1.9rem; }
.searchbar {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); border-radius: 26px;
}
.searchbar input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 1rem; }
.searchbar input::placeholder { color: #aab0d6; }
.searchbar button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.searchbar button.listening { background: var(--red); }
.search-results {
  position: absolute; left: 14px; right: 14px; top: calc(100% - 52px); z-index: 700;
  background: var(--card-solid); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.search-results button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-results button:last-child { border-bottom: none; }
.search-results .sr-main { font-weight: 600; }
.search-results .sr-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 20px; font-weight: 600; font-size: .92rem; color: #e6e8ff;
}
.chip .ico { width: 18px; height: 18px; }
.chip.active { background: var(--grad); border-color: transparent; box-shadow: var(--glow); color: #fff; }
.chips.flash .chip { animation: flash 1s; }
@keyframes flash { 50% { border-color: #c48bff; box-shadow: 0 0 14px rgba(196, 139, 255, .7); } }

.map-area { position: relative; flex: 1; min-height: 0; }
#map { position: absolute; inset: 0; background: #0a1030; }
.leaflet-container { background: #0a1030 !important; font: inherit; }
.tiles-dark { filter: sepia(1) hue-rotate(195deg) saturate(4) brightness(1.1) contrast(1.1); }
.leaflet-control-attribution { background: rgba(7, 11, 31, .7) !important; color: #8890bb !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #aab3ff !important; }

.map-fabs { position: absolute; right: 14px; bottom: calc(38vh + 14px); z-index: 450; display: flex; flex-direction: column; gap: 12px; transition: bottom .25s; }
body.panel-expanded .map-fabs { bottom: calc(72vh + 14px); }
.fab {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 18, 50, .92); border: 1px solid var(--line-strong); box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
}
.fab .ico { width: 24px; height: 24px; }
.pill-btn {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 450;
  background: var(--grad); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 22px; box-shadow: var(--glow); white-space: nowrap;
}

/* Pins */
.pin { width: 40px; height: 50px; position: relative; transition: transform .15s; transform-origin: 50% 100%; }
.pin svg { width: 100%; height: 100%; overflow: visible; }
.pin.p-public { filter: drop-shadow(0 0 8px rgba(160, 80, 255, .85)); }
.pin.p-business { filter: drop-shadow(0 0 8px rgba(61, 139, 255, .85)); }
.pin.p-community { filter: drop-shadow(0 0 8px rgba(31, 191, 98, .85)); }
.pin.sel { transform: scale(1.3); z-index: 999; }
.me { position: relative; width: 22px; height: 22px; }
.me::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3da0ff; border: 3px solid #fff; box-shadow: 0 0 12px #3da0ff; }
.me::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(61, 160, 255, .6); animation: pulse 2s ease-out infinite; }
.crosshair { position: absolute; left: 50%; top: 50%; z-index: 440; width: 44px; height: 55px; transform: translate(-50%, -100%); pointer-events: none; }
.place-bar { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 470; display: flex; gap: 10px; }
.place-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 470; background: var(--card-solid); border: 1px solid var(--line-strong); padding: 9px 16px; border-radius: 20px; font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* List panel */
.list-panel {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; z-index: 460;
  background: rgba(10, 14, 38, .97); border-top: 1px solid var(--line-strong); border-radius: 26px 26px 0 0;
  display: flex; flex-direction: column; transition: height .25s; box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
}
.list-panel.expanded { height: 72vh; }
body.adding .list-panel, body.adding .map-fabs { display: none; }
.panel-handle { padding: 10px 0 4px; display: grid; place-items: center; }
.panel-handle span { width: 48px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.panel-head { display: flex; align-items: baseline; gap: 6px; padding: 4px 18px 8px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.panel-head span { font-size: 1.2rem; color: #c9cdf0; }
.status { padding: 8px 18px 0; font-size: .9rem; color: var(--muted); }
.status:empty { display: none; }
.list { list-style: none; margin: 0; padding: 0 0 20px; overflow-y: auto; flex: 1; }

/* Rows */
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.row:active, .row.selected { background: rgba(122, 92, 255, .12); }
.thumb { width: 110px; height: 76px; border-radius: 12px; flex: 0 0 auto; overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-main { flex: 1; min-width: 0; }
.row-name { font-weight: 700; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: #d5d8f5; font-size: .92rem; margin-top: 2px; }
.row-feat { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.row-feat .ico { width: 20px; height: 20px; color: #e8eaff; }
.row-side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.heart { display: grid; place-items: center; width: 34px; height: 34px; }
.heart .ico { width: 26px; height: 26px; }
.heart.on .ico { fill: #ff4d8d; stroke: #ff4d8d; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: .82rem; font-weight: 700; background: var(--green-bg); color: #fff; white-space: nowrap; }
.status-pill.closed { background: #8a1c2b; }
.status-pill.unknown { background: rgba(255, 255, 255, .1); color: #c9cdf0; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .3px; }
.badge.public { background: #136b3c; color: #c8ffd9; }
.badge.business { background: #1c3f8a; color: #cfe0ff; }
.badge.paid { background: #7a4b05; color: #ffe1a8; }
.empty { padding: 26px 20px; text-align: center; color: var(--muted); }

/* Category art (thumb + hero placeholder) */
.art { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .28), transparent 55%); }
.art .ico { width: 40%; height: 40%; max-width: 64px; max-height: 64px; color: #fff; stroke-width: 1.7; position: relative; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }

/* ---------- Detail ---------- */
.detail {
  position: fixed; inset: 0; z-index: 900; background: var(--bg); overflow-y: auto;
  padding-bottom: calc(96px + var(--safe-b)); animation: slidein .22s ease-out;
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.d-head { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 48px 1fr 48px 48px; align-items: center; padding: calc(8px + var(--safe-t)) 8px 8px; background: rgba(7, 11, 31, .92); backdrop-filter: blur(10px); }
.d-head .logo { justify-content: center; }
.d-head .logo img { height: 32px; }
.d-head .wordmark { font-size: 1.7rem; }
.d-head button { width: 44px; height: 44px; display: grid; place-items: center; }
.d-head .ico { width: 26px; height: 26px; }
.d-hero { margin: 0 12px; height: 200px; border-radius: 18px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.d-hero img { width: 100%; height: 100%; object-fit: cover; }
.d-hero .count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); padding: 4px 10px; border-radius: 10px; font-size: .85rem; display: flex; gap: 6px; align-items: center; }
.d-hero .count .ico { width: 16px; height: 16px; }
.d-hero .add-photo { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .45); padding: 8px 12px; border-radius: 12px; font-size: .88rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.d-hero .nav { position: absolute; top: 0; bottom: 0; width: 40%; }
.d-hero .nav.prev { left: 0; } .d-hero .nav.next { right: 0; }
.d-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 18px 6px; }
.d-top h1 { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.d-top .sub { color: #d5d8f5; margin: 6px 0 10px; }
.score { border-left: 1px solid var(--line-strong); padding-left: 16px; min-width: 128px; }
.score small { font-weight: 700; color: #e5e7ff; }
.score .num { font-size: 2.2rem; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.score .num .ico { width: 26px; height: 26px; color: #fbbf24; }
.score .num span { font-size: 1rem; font-weight: 500; color: #d5d8f5; }
.score .bar { height: 8px; background: rgba(255, 255, 255, .12); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.score .bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); border-radius: 4px; }
.actions { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 10px; padding: 14px 16px 4px; }
.act { height: 76px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.act .ico { width: 26px; height: 26px; }
.act.primary { background: var(--grad); border: none; box-shadow: var(--glow); font-size: 1rem; }
.act.on .ico { fill: #ff4d8d; stroke: #ff4d8d; }
.act.disabled { opacity: .4; pointer-events: none; }
.card { margin: 14px 16px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card h3 { margin: 0 0 6px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.card h3 .ico { width: 24px; height: 24px; }
.card h3 a, .card h3 button.link { margin-left: auto; color: #c48bff; font-size: .95rem; font-weight: 600; text-decoration: none; }
.feat { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.feat:last-child { border-bottom: none; }
.feat .ico { width: 22px; height: 22px; color: #dfe2ff; }
.feat .lbl { flex: 1; }
.feat .yes .ico { color: #4ade80; stroke-width: 2.6; } .feat .no .ico { color: #8a91bb; } .feat .unk { color: #6b7299; font-size: .78rem; font-weight: 700; letter-spacing: .4px; }
.info-line { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: #dfe2ff; font-size: .95rem; }
.info-line .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--muted); }
.note-box { background: rgba(122, 92, 255, .15); border: 1px solid rgba(122, 92, 255, .35); border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: .95rem; }
.review { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #3a4170; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.review b { display: block; }
.stars-row { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars-row .ico { width: 18px; height: 18px; color: #fbbf24; }
.stars-row .ico.off { color: #59608a; }
.review p { margin: 4px 0 0; color: #e3e5ff; font-size: .95rem; }
.d-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 910; padding: 12px 16px calc(14px + var(--safe-b)); background: linear-gradient(to bottom, rgba(7, 11, 31, 0), var(--bg) 40%); }
.btn-grad { width: 100%; height: 58px; border-radius: 30px; background: var(--grad); box-shadow: var(--glow); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; }
.btn-grad .ico { width: 26px; height: 26px; }
.btn { height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.grad { background: var(--grad); border: none; box-shadow: var(--glow); color: #fff; }

/* ---------- Sheets ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 1000; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; max-height: 90vh; overflow-y: auto;
  background: var(--card-solid); border: 1px solid var(--line-strong); border-bottom: none; border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(22px + var(--safe-b)); animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h2 { margin: 0 40px 4px 0; font-size: 1.35rem; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.field { display: block; margin-top: 14px; font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 400; outline: none;
}
.field textarea { resize: vertical; min-height: 80px; }
.field select option { background: var(--card-solid); }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.toggle { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; font-weight: 600; font-size: .9rem; }
.toggle input { display: none; }
.toggle .ico { width: 20px; height: 20px; }
.toggle:has(input:checked) { background: rgba(122, 92, 255, .3); border-color: #a07bff; }
.rate-big { display: flex; gap: 6px; margin-top: 8px; }
.rate-big button .ico { width: 40px; height: 40px; color: #59608a; }
.rate-big button.on .ico { color: #fbbf24; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .6)); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.seg button { height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); font-weight: 600; font-size: .9rem; }
.seg button.on { background: var(--grad); border-color: transparent; }
.photo-pick { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.photo-pick img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.sheet .btn-grad { margin-top: 20px; }

/* ---------- Saved / Account ---------- */
.page-head { padding: calc(16px + var(--safe-t)) 18px 6px; display: flex; align-items: center; gap: 12px; }
.page-head h1 { margin: 0; font-size: 1.7rem; }
.acct-top { display: flex; align-items: center; gap: 14px; margin: 10px 16px 0; }
.acct-top .avatar { width: 64px; height: 64px; font-size: 1.6rem; background: var(--grad); box-shadow: var(--glow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.stats-grid b { display: block; font-size: 1.4rem; }
.stats-grid span { font-size: .78rem; color: var(--muted); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.mini-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.mini-seg button { padding: 8px 14px; font-weight: 600; font-size: .88rem; }
.mini-seg button.on { background: var(--grad); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 20px + var(--safe-b)); transform: translateX(-50%); z-index: 3000; background: #1d2556; border: 1px solid var(--line-strong); padding: 12px 18px; border-radius: 14px; font-size: .95rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: 90vw; text-align: center; }

/* ---------- Tablet & desktop ---------- */
@media (min-width: 768px) {
  .hero { height: 360px; }
  .cat-grid { gap: 14px; }
  .list-panel { left: auto; top: 0; width: 400px; height: auto !important; border-radius: 0; border-top: none; border-left: 1px solid var(--line-strong); }
  .panel-handle { display: none; }
  .panel-head { padding-top: 16px; }
  .map-area #map { right: 400px; }
  .map-area .pill-btn, .map-area .place-hint, .map-area .place-bar, .map-area .crosshair { margin-left: -200px; }
  .map-fabs { right: 414px; bottom: 20px !important; }
  .map-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .map-top .logo { margin: 0; }
  .map-top .searchbar { flex: 1; min-width: 300px; }
  .map-top .chips { flex-basis: 100%; margin-top: 2px; }
  .detail { left: auto; width: 460px; border-left: 1px solid var(--line-strong); box-shadow: -20px 0 40px rgba(0, 0, 0, .5); bottom: calc(var(--tabbar) + var(--safe-b)); padding-bottom: 96px; }
  .d-cta { left: auto; width: 460px; bottom: calc(var(--tabbar) + var(--safe-b)); }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 480px; border-radius: 24px; border-bottom: 1px solid var(--line-strong); animation: none; }
  .view:not(#view-map) > * { max-width: 760px; margin-left: auto; margin-right: auto; }
  .view .hero { max-width: none; }
}
