/* =========================================================================
   Península GO — Design system & app shell
   ========================================================================= */
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Instrument'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }

:root {
  --bg: #F3F6F3;
  --bg-2: #E9EFEA;
  --surface: #FFFFFF;
  --surface-2: #F0F4F1;
  --surface-3: #E4EBE6;
  --text: #0E1A16;
  --text-2: #3D4E47;
  --muted: #6B7A74;
  --line: rgba(14, 26, 22, .08);
  --line-2: rgba(14, 26, 22, .14);
  --brand: #0F6559;
  --brand-2: #178C7A;
  --brand-3: #22A892;
  --brand-deep: #083F38;
  --brand-soft: #DDEFEA;
  --brand-tint: rgba(15, 101, 89, .10);
  --accent: #E9B44C;
  --accent-2: #F6D48A;
  --accent-deep: #B7791F;
  --danger: #D6455B;
  --ok: #2E9E6B;
  --shadow: 0 1px 2px rgba(14, 26, 22, .04), 0 10px 30px -14px rgba(8, 63, 56, .22);
  --shadow-lg: 0 2px 4px rgba(14, 26, 22, .05), 0 24px 48px -20px rgba(8, 63, 56, .35);
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --tab-h: 64px; --top-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A1311; --bg-2: #0F1B18; --surface: #121F1B; --surface-2: #182823; --surface-3: #1F312B;
  --text: #EAF2EE; --text-2: #C2D0CA; --muted: #8FA39B;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --brand-soft: #143B35; --brand-tint: rgba(34, 168, 146, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1311; --bg-2: #0F1B18; --surface: #121F1B; --surface-2: #182823; --surface-3: #1F312B;
    --text: #EAF2EE; --text-2: #C2D0CA; --muted: #8FA39B;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
    --brand-soft: #143B35; --brand-tint: rgba(34, 168, 146, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg-2);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.45;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
::-webkit-scrollbar { width: 0; height: 0; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- App shell -------------------------------------------------- */
.app {
  position: relative; max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg);
  display: flex; flex-direction: column;
}
@media (min-width: 640px) {
  body { background: radial-gradient(1200px 600px at 20% -10%, #d9ece6 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #f6e9c9 0%, transparent 55%), var(--bg-2); }
  :root[data-theme="dark"] body { background: radial-gradient(1200px 600px at 20% -10%, #123129 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #2a2415 0%, transparent 55%), var(--bg-2); }
  .app { box-shadow: 0 30px 80px -30px rgba(8, 63, 56, .45); min-height: 100dvh; }
}
.topbar {
  position: sticky; top: 0; z-index: 30; height: calc(var(--top-h) + var(--safe-t)); padding-top: var(--safe-t);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-inline: 16px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-3), var(--brand-deep)); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px; box-shadow: 0 6px 14px -6px rgba(8, 63, 56, .6); }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.3px; line-height: 1; }
.brand-name em { font-style: normal; color: var(--brand); }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.brand-sub .ic { width: 12px; height: 12px; }
.top-actions { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--line); position: relative; transition: transform .15s, background .15s; }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.icon-btn.ghost { background: transparent; border-color: transparent; }
.icon-btn.brand { background: var(--brand); color: #fff; border-color: transparent; }

.view { flex: 1; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); animation: fade .25s ease; min-height: 60vh; }
.view.map-view { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 40;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; position: relative; transition: color .15s; }
.tab .ic { width: 22px; height: 22px; transition: transform .2s; }
.tab.active { color: var(--brand); }
.tab.active .ic { transform: translateY(-1px); }
.tab.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.tab.tab-map .tab-bubble { width: 48px; height: 48px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-3), var(--brand-deep)); color: #fff; margin-top: -22px; box-shadow: 0 10px 20px -8px rgba(8, 63, 56, .7); border: 3px solid var(--surface); }
.tab.tab-map .tab-bubble .ic { width: 22px; height: 22px; }
.tab.tab-map.active::before { display: none; }

/* ---------- Icons ------------------------------------------------------ */
.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fill { fill: currentColor; stroke: none; }

/* ---------- Typography & sections ------------------------------------- */
.section { padding: 8px 16px 0; margin-top: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.kicker.gold { color: var(--accent-deep); }
.h2 { font-size: 21px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.h2 em, .h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.12em; }
.h1 { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1.08; }
.h3 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.sub { color: var(--muted); font-size: 13.5px; }
.link { color: var(--brand); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.link .ic { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.px { padding-inline: 16px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Buttons ---------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 15px; font-weight: 700; font-size: 14px; background: var(--brand); color: #fff; transition: transform .15s, filter .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); filter: brightness(.95); }
.btn .ic { width: 18px; height: 18px; }
.btn.block { width: 100%; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn.xs { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.btn.lg { height: 54px; font-size: 15px; border-radius: 18px; }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.gold { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #3B2A05; }
.btn.white { background: #fff; color: var(--brand-deep); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.glass { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .25); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- Cards ------------------------------------------------------ */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.card.pad { padding: 16px; }
.card.flat { box-shadow: none; }
.card-press { transition: transform .15s; }
.card-press:active { transform: scale(.985); }
.art { position: relative; overflow: hidden; background: var(--surface-2); }
.art svg { width: 100%; height: 100%; display: block; }
.art.h-120 { height: 120px; } .art.h-140 { height: 140px; } .art.h-160 { height: 160px; } .art.h-200 { height: 200px; } .art.h-240 { height: 240px; }
.art .art-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; background: linear-gradient(to top, rgba(6, 20, 17, .55), transparent 60%); color: #fff; }

/* ---------- Badges / chips -------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge .ic { width: 12px; height: 12px; }
.badge.demo { background: #FFF1D6; color: #8A5A00; border: 1px dashed #E0B45B; }
:root[data-theme="dark"] .badge.demo { background: #3A2E12; color: #F3D08A; border-color: #7A5C1E; }
.badge.ok { background: #DDF5E7; color: #146B3E; }
.badge.closed { background: #FDE3E7; color: #9B2032; }
.badge.soon { background: #FFF1D6; color: #8A5A00; }
.badge.brand { background: var(--brand); color: #fff; }
.badge.gold { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #3B2A05; }
.badge.glass { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.badge.dark { background: rgba(6, 20, 17, .55); color: #fff; }
:root[data-theme="dark"] .badge.ok { background: #14382A; color: #7BD9A5; }
:root[data-theme="dark"] .badge.closed { background: #3E1A22; color: #F29AA8; }
:root[data-theme="dark"] .badge.soon { background: #3A2E12; color: #F3D08A; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.chip .ic { width: 16px; height: 16px; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip:active { transform: scale(.96); }
.chip.sm { height: 30px; padding: 0 11px; font-size: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.chips > * { scroll-snap-align: start; }
.chips.inline { padding: 0; flex-wrap: wrap; overflow: visible; }

/* ---------- Horizontal scrollers -------------------------------------- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scroll-padding-left: 16px; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.hscroll::after { content: ''; flex: none; width: 4px; }

/* ---------- Hero (Home) ------------------------------------------------ */
.hero { margin: 8px 16px 0; border-radius: var(--r-xl); position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #0F6559 0%, #0B4F46 55%, #083F38 100%); box-shadow: var(--shadow-lg); min-height: 300px; isolation: isolate; }
.hero .hero-art { position: absolute; inset: 0; z-index: -1; }
.hero .hero-art svg { width: 100%; height: 100%; }
.hero-body { padding: 20px 20px 18px; position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.greeting { font-size: 13px; font-weight: 600; opacity: .85; display: flex; align-items: center; gap: 6px; }
.greeting .ic { width: 14px; height: 14px; }
.hero .h1 { margin-top: 8px; font-size: 32px; text-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.hero .h1 em { color: var(--accent-2); }
.hero p.lead { margin-top: 10px; font-size: 14px; opacity: .92; max-width: 30ch; }
.weather-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .22); min-width: 92px; }
.weather-pill .ic { width: 24px; height: 24px; }
.weather-pill .temp { font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.weather-pill .wdesc { font-size: 10.5px; opacity: .85; font-weight: 600; line-height: 1.1; margin-top: 2px; }
.hero-search { margin-top: 18px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 16px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); width: 100%; text-align: left; }
.hero-search .ic { width: 20px; height: 20px; color: var(--muted); }
.hero-search span { flex: 1; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-search .go { height: 36px; padding: 0 14px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.hero-scene { height: 90px; position: relative; }
.hero-scene svg { width: 100%; height: 100%; position: absolute; bottom: 0; }

/* ---------- Quick access ---------------------------------------------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px; margin-top: 16px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s; }
.quick-item:active { transform: scale(.95); }
.quick-item .tile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.quick-item .tile .ic { width: 22px; height: 22px; }
.quick-item span { font-size: 11.5px; font-weight: 700; color: var(--text-2); text-align: center; line-height: 1.1; }

/* ---------- Live strip ------------------------------------------------ */
.live { margin: 16px 16px 0; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.live-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-item .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.live-item .lbl .ic { width: 12px; height: 12px; }
.live-item .val { font-size: 15px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-item .val.ok { color: var(--ok); }
.live-item + .live-item { border-left: 1px solid var(--line); padding-left: 10px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(46, 158, 107, .6); animation: pulse 1.8s infinite; margin-right: 4px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 158, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 158, 107, 0); } }

/* ---------- Coupon cards ---------------------------------------------- */
.coupon { width: 232px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; text-align: left; position: relative; }
.coupon .art { height: 110px; }
.coupon .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.coupon .cvalue { position: absolute; right: 12px; top: 78px; background: #fff; color: var(--brand-deep); font-weight: 800; font-size: 14px; padding: 6px 10px; border-radius: 12px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .coupon .cvalue { background: var(--surface-3); color: var(--accent-2); }
.coupon .cbody { padding: 14px 14px 12px; }
.coupon .ctitle { font-weight: 800; font-size: 14.5px; letter-spacing: -.2px; line-height: 1.25; }
.coupon .cpartner { color: var(--muted); font-size: 12px; margin-top: 3px; }
.coupon .cfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.coupon .cfoot b { color: var(--brand); }
.coupon.grid { width: auto; }
.coupon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.coupon-grid .coupon .art { height: 96px; }
.coupon-grid .coupon .cvalue { top: 66px; font-size: 12.5px; padding: 5px 8px; }
.coupon-grid .coupon .ctitle { font-size: 13.5px; }
.coupon .redeemed-tag { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 101, 89, .55); color: #fff; font-weight: 800; backdrop-filter: blur(2px); }

/* ---------- Place cards ----------------------------------------------- */
.place-card { width: 250px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.place-card .art { height: 150px; }
.place-card .pbody { padding: 12px 14px 14px; }
.place-card .pname { font-weight: 800; font-size: 15px; letter-spacing: -.2px; }
.place-card .psub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.place-card .pmeta { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.place-row { display: flex; gap: 12px; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; width: 100%; align-items: stretch; }
.place-row .art { width: 92px; height: 92px; border-radius: 14px; flex: none; }
.place-row .pbody { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.place-row .pname { font-weight: 800; font-size: 15px; letter-spacing: -.2px; line-height: 1.2; }
.place-row .psub { color: var(--muted); font-size: 12.5px; }
.place-row .pmeta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.place-row .pmeta .dist { font-size: 11.5px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.place-row .pmeta .dist .ic { width: 12px; height: 12px; }
.list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.cat-dot { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.cat-dot .ic { width: 14px; height: 14px; }

/* ---------- Event cards ----------------------------------------------- */
.event-card { display: flex; gap: 12px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; width: 100%; align-items: center; }
.event-card .date { width: 54px; height: 62px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.event-card .date .d { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.event-card .date .m { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; margin-top: 3px; }
.event-card .date.today { background: var(--brand); color: #fff; }
.event-card .ebody { flex: 1; min-width: 0; }
.event-card .etitle { font-weight: 800; font-size: 14.5px; line-height: 1.25; letter-spacing: -.2px; }
.event-card .emeta { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.event-card .emeta .ic { width: 12px; height: 12px; }
.event-card .chev { color: var(--muted); }
.event-card .chev .ic { width: 18px; height: 18px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 16px; }
.week button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.week button .dw { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.week button .dn { font-size: 16px; letter-spacing: -.3px; }
.week button .dots { height: 5px; display: flex; gap: 2px; }
.week button .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.week button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.week button.active .dw { color: rgba(255, 255, 255, .8); }
.week button.active .dots i { background: var(--accent-2); }
.day-head { display: flex; align-items: center; gap: 8px; padding: 18px 16px 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.day-head .line { flex: 1; height: 1px; background: var(--line-2); }

/* ---------- Numbers --------------------------------------------------- */
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.numbers.cols-3 { grid-template-columns: repeat(3, 1fr); }
.num { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.num .n { font-size: 24px; font-weight: 800; letter-spacing: -1px; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.num .n small { font-size: 13px; font-weight: 800; letter-spacing: 0; margin-left: 2px; }
.num .l { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; line-height: 1.2; }
.num.dark { background: linear-gradient(150deg, var(--brand-2), var(--brand-deep)); color: #fff; border-color: transparent; }
.num.dark .n, .num.dark .l { color: #fff; }
.num.dark .l { opacity: .85; }

/* ---------- Fact cards ------------------------------------------------ */
.fact { width: 260px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(150deg, #1D3F38, #0B2A25); color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.fact::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 180, 76, .35), transparent 70%); }
.fact .ficon { width: 40px; height: 40px; border-radius: 13px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: var(--accent-2); }
.fact .ficon .ic { width: 20px; height: 20px; }
.fact p { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-top: 14px; letter-spacing: -.1px; }
.fact .fk { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: var(--accent-2); opacity: .9; }
.fact-grid { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 16px; }
.fact-grid .fact { width: auto; min-height: 0; }
.fact-grid .fact p { margin-top: 10px; }

/* ---------- Article cards --------------------------------------------- */
.article-hero { margin: 0 16px; border-radius: var(--r-xl); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); text-align: left; width: calc(100% - 32px); }
.article-hero .art { height: 240px; }
.article-hero .art-overlay { padding: 18px; background: linear-gradient(to top, rgba(6, 20, 17, .82) 0%, rgba(6, 20, 17, .2) 60%, transparent 100%); }
.article-hero .atitle { font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; margin-top: 8px; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.article-hero .alead { font-size: 13px; opacity: .9; margin-top: 6px; }
.article-row { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.article-row .art { width: 86px; height: 86px; border-radius: 14px; flex: none; }
.article-row .abody { flex: 1; min-width: 0; }
.article-row .atitle { font-weight: 800; font-size: 14.5px; line-height: 1.25; letter-spacing: -.2px; }
.article-row .ameta { color: var(--muted); font-size: 11.5px; margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.article-row .ameta .tag { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; font-size: 10.5px; }
.article-card { width: 240px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.article-card .art { height: 130px; }
.article-card .abody { padding: 12px 14px 14px; }
.article-card .atitle { font-weight: 800; font-size: 14.5px; line-height: 1.25; letter-spacing: -.2px; }
.article-card .ameta { color: var(--muted); font-size: 11.5px; margin-top: 6px; display: flex; gap: 6px; }
.article-card .ameta .tag { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; font-size: 10.5px; }
.reader { padding: 0 20px 24px; }
.reader .reader-title { font-size: 26px; font-weight: 800; letter-spacing: -.8px; line-height: 1.12; margin-top: 14px; }
.reader .reader-lead { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--text-2); margin-top: 12px; }
.reader .reader-meta { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 12px; }
.reader p.body { font-size: 15.5px; line-height: 1.65; margin-top: 16px; color: var(--text); }
.reader .reader-meta + p.body::first-letter { font-family: var(--serif); font-size: 3.1em; float: left; line-height: .85; margin: 4px 8px 0 0; color: var(--brand); }
.reader .sources { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* ---------- Business CTA --------------------------------------------- */
.cta-dark { margin: 0 16px; padding: 22px 20px; border-radius: var(--r-xl); background: linear-gradient(150deg, #142B27 0%, #0A1F1B 100%); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-dark::before { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 168, 146, .5), transparent 70%); }
.cta-dark::after { content: ''; position: absolute; width: 180px; height: 180px; left: -60px; bottom: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 180, 76, .35), transparent 70%); }
.cta-dark > * { position: relative; }
.cta-dark .h2 { font-size: 24px; }
.cta-dark .h2 em { color: var(--accent-2); }
.cta-dark p { font-size: 13.5px; opacity: .88; margin-top: 8px; max-width: 34ch; }
.cta-dark .btn { margin-top: 16px; }

/* ---------- Install banner ------------------------------------------- */
.install { margin: 18px 16px 0; padding: 14px; border-radius: var(--r-lg); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); display: flex; align-items: center; gap: 12px; }
.install .app-ico { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-3), var(--brand-deep)); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; box-shadow: 0 8px 16px -8px rgba(8, 63, 56, .6); }
.install .t { font-weight: 800; font-size: 14px; }
.install .s { font-size: 12px; color: var(--text-2); }

/* ---------- Search overlay ------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; animation: fade .2s; }
.overlay-head { display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--safe-t)) 12px 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.search-field { flex: 1; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line-2); }
.search-field input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; min-width: 0; }
.search-field .ic { width: 18px; height: 18px; color: var(--muted); }
.overlay-body { flex: 1; overflow-y: auto; padding-bottom: 40px; }
.result-group { padding: 14px 16px 0; }
.result-group .rg-title { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.result { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.result .r-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.result .r-ico .ic { width: 18px; height: 18px; }
.result .r-title { font-weight: 700; font-size: 14px; }
.result .r-sub { color: var(--muted); font-size: 12px; }
.result mark { background: var(--accent-2); color: #3B2A05; border-radius: 3px; padding: 0 1px; }

/* ---------- Bottom sheet / modal ------------------------------------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(6, 20, 17, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 51; background: var(--bg); border-radius: 28px 28px 0 0; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: up .3s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.sheet.full { max-height: 100dvh; height: 100dvh; border-radius: 0; }
@media (min-width: 640px) { .sheet.full { height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 28px 28px 0 0; } }
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 10px auto 0; flex: none; }
.sheet .sheet-body { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; padding-bottom: calc(24px + var(--safe-b)); }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 8px 20px; flex: none; }
.sheet .sheet-head .h3 { font-size: 17px; }
.sheet .close { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.sheet .close .ic { width: 18px; height: 18px; }
.sheet-art { position: relative; height: 220px; flex: none; }
.sheet-art .art { height: 100%; }
.sheet-art .float-actions { position: absolute; top: calc(10px + var(--safe-t)); left: 12px; right: 12px; display: flex; justify-content: space-between; }
.sheet-art .float-actions .icon-btn { background: rgba(255, 255, 255, .85); border-color: transparent; color: var(--brand-deep); }
.sheet-art .float-actions .icon-btn.on { color: var(--danger); }
.sheet-art .float-actions .icon-btn.on .ic { fill: currentColor; }
.sheet-art .float-actions .right { display: flex; gap: 6px; }
.sheet.full .sheet-art { height: 260px; }
.detail { padding: 16px 20px 0; }
.detail .dtitle { font-size: 24px; font-weight: 800; letter-spacing: -.6px; line-height: 1.12; }
.detail .dsub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.detail .dmeta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 16px 20px 0; }
.action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.action .ic { width: 20px; height: 20px; color: var(--brand); }
.action.primary { background: var(--brand); color: #fff; border-color: transparent; }
.action.primary .ic { color: #fff; }
.action:active { transform: scale(.95); }
.info-block { margin: 16px 20px 0; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.info-block .ib-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.info-block .ib-title .ic { width: 14px; height: 14px; }
.hours-table { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.hours-table .today { color: var(--brand); font-weight: 800; }
.hours-table .closed { color: var(--muted); }
.desc { padding: 16px 20px 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 0; }
.tags span { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 5px 10px; border-radius: 999px; }
.mini-map { margin: 16px 20px 0; height: 160px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; z-index: 0; isolation: isolate; background: var(--surface-2); }
.mini-map .leaflet-container { height: 100%; }
.mini-map .mm-btn { position: absolute; right: 10px; bottom: 10px; z-index: 500; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 20px 0; padding: 12px 14px; border-radius: 16px; font-size: 13px; line-height: 1.4; color: var(--text-2); background: var(--surface-2); }
.note .ic { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 1px; }
.note.warn { background: #FFF6E3; color: #6B4600; }
.note.warn .ic { color: #B7791F; }
:root[data-theme="dark"] .note.warn { background: #3A2E12; color: #F3D08A; }

/* ---------- Coupon detail / QR --------------------------------------- */
.coupon-detail .cvalue-big { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; color: var(--brand); line-height: 1; }
.qr-box { margin: 16px 20px 0; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px dashed var(--line-2); text-align: center; position: relative; }
.qr-box canvas, .qr-box img { margin: 0 auto; border-radius: 12px; }
.qr-box .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 800; letter-spacing: 3px; margin-top: 12px; color: var(--text); }
.qr-box .qr-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.qr-box::before, .qr-box::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); top: 50%; margin-top: -11px; }
.qr-box::before { left: -11px; } .qr-box::after { right: -11px; }
.countdown { display: inline-flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums; }

/* ---------- Forms ----------------------------------------------------- */
.form { padding: 4px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.seg button { flex: 1; height: 38px; border-radius: 11px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }

/* ---------- Services -------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.svc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.svc .tile { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.svc .tile .ic { width: 20px; height: 20px; }
.svc .sname { font-weight: 800; font-size: 13.5px; line-height: 1.15; letter-spacing: -.2px; }
.svc .scount { font-size: 11px; color: var(--muted); margin-top: 3px; }
.now-card { margin: 0 16px; padding: 18px; border-radius: var(--r-xl); background: linear-gradient(150deg, var(--brand-2), var(--brand-deep)); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.now-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.now-card .h2 { font-size: 22px; }
.now-card p { font-size: 13.5px; opacity: .9; margin-top: 6px; }
.profile-demo { margin: 0 16px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.avatar { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 18px; flex: none; }
.seals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.seal { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); }
.seal .ic { width: 13px; height: 13px; }
.seal.gold { background: #FFF1D6; color: #8A5A00; }
:root[data-theme="dark"] .seal.gold { background: #3A2E12; color: #F3D08A; }
.stars { color: var(--accent); display: inline-flex; gap: 1px; }
.stars .ic { width: 14px; height: 14px; fill: currentColor; }
.rec { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.rec b { color: var(--brand); }

/* ---------- Classifieds ----------------------------------------------- */
.cls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.cls { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; position: relative; }
.cls .art { height: 110px; }
.cls .cbody { padding: 10px 12px 12px; }
.cls .ctitle { font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.cls .cprice { font-weight: 800; color: var(--brand); font-size: 15px; margin-top: 4px; letter-spacing: -.3px; }
.cls .cwhere { font-size: 11px; color: var(--muted); margin-top: 3px; }
.cls .badge { position: absolute; top: 8px; left: 8px; }

/* ---------- Business -------------------------------------------------- */
.biz-hero { margin: 8px 16px 0; padding: 26px 22px; border-radius: var(--r-xl); background: linear-gradient(160deg, #142B27, #0A1F1B 70%); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.biz-hero::before { content: ''; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 168, 146, .55), transparent 70%); }
.biz-hero::after { content: ''; position: absolute; width: 220px; height: 220px; left: -90px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 180, 76, .4), transparent 70%); }
.biz-hero > * { position: relative; }
.biz-hero .h1 { font-size: 30px; }
.biz-hero .h1 em { color: var(--accent-2); }
.biz-hero p { margin-top: 10px; font-size: 14px; opacity: .9; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.stat { padding: 10px 8px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); text-align: center; }
.stat .v { font-weight: 800; font-size: 16px; letter-spacing: -.4px; }
.stat .l { font-size: 10px; opacity: .8; font-weight: 600; margin-top: 2px; }
.product { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.product .tile { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.product .tile .ic { width: 18px; height: 18px; }
.product .pt { font-weight: 800; font-size: 14px; }
.product .pd { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.plan { width: 220px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.plan.hl { background: linear-gradient(160deg, var(--brand-2), var(--brand-deep)); color: #fff; border-color: transparent; }
.plan .pname { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }
.plan .pprice { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-top: 6px; line-height: 1; }
.plan .pprice small { font-size: 13px; font-weight: 600; letter-spacing: 0; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--ok); flex: none; }
.plan.hl li .ic { color: var(--accent-2); }
.plan .pbadge { position: absolute; top: -10px; right: 14px; }
.plan .btn { margin-top: 16px; }
.metrics { margin: 0 16px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.metric { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.metric .ic { width: 18px; height: 18px; color: var(--brand); }
.metric .ml { font-size: 13px; font-weight: 600; color: var(--text-2); }
.metric .bar { height: 8px; border-radius: 4px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.metric .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand-3), var(--brand)); width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.metric .mv { font-weight: 800; font-size: 16px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.faq { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 14px; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .fa { padding: 0 0 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

/* ---------- Menu list (Mais) ------------------------------------------ */
.menu { margin: 0 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi { width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; flex: none; }
.menu-item .mi .ic { width: 17px; height: 17px; }
.menu-item .mt { font-weight: 700; font-size: 14px; }
.menu-item .ms { font-size: 12px; color: var(--muted); }
.menu-item .chev { color: var(--muted); margin-left: auto; }
.menu-item .chev .ic { width: 18px; height: 18px; }
.menu-item .count { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }
.profile-card { margin: 8px 16px 0; padding: 18px; border-radius: var(--r-xl); background: linear-gradient(150deg, var(--brand-2), var(--brand-deep)); color: #fff; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden; }
.profile-card::after { content: ''; position: absolute; right: -50px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.profile-card .avatar { background: rgba(255, 255, 255, .18); color: #fff; }
.profile-card .pn { font-weight: 800; font-size: 17px; }
.profile-card .ps { font-size: 12.5px; opacity: .85; }
.profile-card .edit { margin-left: auto; position: relative; }

/* ---------- Phones list ---------------------------------------------- */
.phone-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.phone-row .pi { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); flex: none; }
.phone-row .pi.urgent { background: #FDE3E7; color: #9B2032; }
:root[data-theme="dark"] .phone-row .pi.urgent { background: #3E1A22; color: #F29AA8; }
.phone-row .pi .ic { width: 18px; height: 18px; }
.phone-row .pn { font-weight: 700; font-size: 14px; }
.phone-row .pp { font-size: 12.5px; color: var(--muted); }
.phone-row .call { margin-left: auto; }

/* ---------- Toast ----------------------------------------------------- */
.toast-root { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 14px); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 440px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #10201C; color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); animation: up2 .25s cubic-bezier(.2, .8, .2, 1); pointer-events: auto; }
.toast .ic { width: 18px; height: 18px; color: var(--accent-2); flex: none; }
.toast.ok .ic { color: #7BD9A5; }
@keyframes up2 { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Onboarding ----------------------------------------------- */
.onb { position: fixed; inset: 0; z-index: 100; max-width: 480px; margin: 0 auto; background: #083F38; color: #fff; display: flex; flex-direction: column; }
.onb .onb-art { flex: 1; position: relative; min-height: 45vh; }
.onb .onb-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.onb .onb-body { padding: 26px 26px calc(24px + var(--safe-b)); background: linear-gradient(to top, #083F38 70%, transparent); margin-top: -80px; position: relative; }
.onb .h1 { font-size: 32px; }
.onb .h1 em { color: var(--accent-2); }
.onb p { margin-top: 12px; font-size: 15px; opacity: .9; line-height: 1.5; }
.onb .dots { display: flex; gap: 6px; margin-top: 22px; }
.onb .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: width .2s, background .2s; }
.onb .dots i.on { width: 24px; background: var(--accent-2); }
.onb .onb-actions { display: flex; gap: 10px; margin-top: 22px; align-items: center; }
.onb .skip { color: rgba(255, 255, 255, .75); font-weight: 700; font-size: 14px; padding: 0 12px; }
.onb .logo { position: absolute; top: calc(18px + var(--safe-t)); left: 24px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.onb .logo .brand-mark { background: #fff; color: var(--brand-deep); }

/* ---------- Map view -------------------------------------------------- */
.map-wrap { position: relative; z-index: 0; isolation: isolate; height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); }
#map { position: absolute; inset: 0; background: var(--surface-2); }
.map-top { position: absolute; top: 10px; left: 0; right: 0; z-index: 500; }
.map-top .chips { padding-bottom: 0; }
.map-top .chip { box-shadow: var(--shadow); }
.map-fab { position: absolute; right: 14px; bottom: 14px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.map-fab .icon-btn { box-shadow: var(--shadow-lg); width: 44px; height: 44px; }
.map-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; animation: up2 .25s; }
.map-card .art { width: 66px; height: 66px; border-radius: 14px; flex: none; }
.map-card .mb { flex: 1; min-width: 0; }
.map-card .mn { font-weight: 800; font-size: 14.5px; }
.map-card .ms { font-size: 12px; color: var(--muted); }
.map-card .mactions { display: flex; gap: 6px; margin-top: 8px; }
.pin { width: 34px; height: 34px; border-radius: 12px 12px 12px 3px; transform: rotate(-45deg); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .45); border: 2px solid #fff; }
.pin .ic { width: 16px; height: 16px; transform: rotate(45deg); }
.pin-wrap { position: relative; width: 34px; height: 34px; }
.pin-wrap .pin { position: absolute; left: 0; top: -14px; }
.pin-wrap.sel .pin { transform: rotate(-45deg) scale(1.18); border-color: var(--accent-2); }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(255, 255, 255, .7) !important; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2F80ED; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 128, 237, .25); }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Quiz ----------------------------------------------------- */
.quiz-card { margin: 0 16px; padding: 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.quiz-card .progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.quiz-card .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-3), var(--brand)); transition: width .3s; }
.quiz-card .q { font-size: 19px; font-weight: 800; letter-spacing: -.4px; line-height: 1.25; margin-top: 16px; }
.quiz-card .opts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.quiz-card .opt { text-align: left; padding: 13px 14px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; transition: background .15s, border-color .15s; }
.quiz-card .opt .ic { width: 18px; height: 18px; }
.quiz-card .opt.right { background: #DDF5E7; border-color: #2E9E6B; color: #146B3E; }
.quiz-card .opt.wrong { background: #FDE3E7; border-color: #D6455B; color: #9B2032; }
:root[data-theme="dark"] .quiz-card .opt.right { background: #14382A; color: #7BD9A5; }
:root[data-theme="dark"] .quiz-card .opt.wrong { background: #3E1A22; color: #F29AA8; }
.quiz-card .why { margin-top: 12px; font-size: 13.5px; color: var(--text-2); padding: 12px; border-radius: 12px; background: var(--brand-soft); }
.score-ring { width: 120px; height: 120px; border-radius: 50%; margin: 10px auto 0; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; }
.score-ring::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.score-ring b { position: relative; font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--brand); }

/* ---------- Notifications list -------------------------------------- */
.notif { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 0 16px 8px; }
.notif .ni { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.notif .ni .ic { width: 18px; height: 18px; }
.notif .nt { font-weight: 700; font-size: 13.5px; }
.notif .ns { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.notif .nw { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ---------- Empty states --------------------------------------------- */
.empty { padding: 36px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .ic { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--line-2); stroke-width: 1.5; }
.empty b { color: var(--text); display: block; margin-bottom: 4px; font-size: 15px; }

/* ---------- Skeleton ------------------------------------------------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Page header (subviews) ----------------------------------- */
.page-head { padding: 12px 16px 0; display: flex; align-items: center; gap: 10px; }
.page-head .back { width: 40px; height: 40px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.page-head .back .ic { width: 20px; height: 20px; }
.page-title { padding: 14px 16px 0; }
.page-title .h1 { font-size: 28px; }
.page-title .sub { margin-top: 4px; }

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