/*!
 * SabayApp customer web portal — app.css
 * Dark neon theme (cyan → magenta) from the platform brand tokens.
 * Mobile-first, iOS safe areas, 44px touch targets. No external fonts.
 */

/* ============================================================ tokens & base */
:root {
	--ink: #0A0A12;
	--ink-2: #15151F;
	--ink-3: #22232E;
	--cyan: #4DD4FF;
	--cyan-dim: #1FA9D9;
	--magenta: #FF3D8B;
	--magenta-dim: #D11F6A;
	--on: #F4F6FA;
	--muted: #9C9EAE;
	--ok: #36D399;
	--warn: #FFB547;
	--danger: #FF5C6C;
	--line: rgba(255, 255, 255, .08);
	--line-2: rgba(255, 255, 255, .14);
	--card: rgba(255, 255, 255, .04);
	--card-2: rgba(255, 255, 255, .07);
	--glass-3: rgba(255, 255, 255, .22);
	--bar-bg: rgba(10, 10, 18, .86);
	--bar-bg-2: rgba(10, 10, 18, .92);
	--tab-bg: rgba(21, 21, 31, .97);
	--glow-a: rgba(255, 61, 139, .13);
	--glow-b: rgba(77, 212, 255, .12);
	--shadow: rgba(0, 0, 0, .35);
	--overlay: rgba(21, 21, 31, .92);
	--overlay-2: rgba(21, 21, 31, .85);
	--tabs-bg: rgba(10, 10, 18, .6);
	--grad: linear-gradient(120deg, var(--cyan), var(--magenta));
	--radius: 18px;
	--radius-sm: 12px;
	--font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--sat: env(safe-area-inset-top, 0px);
	--sab: env(safe-area-inset-bottom, 0px);
	--sal: env(safe-area-inset-left, 0px);
	--sar: env(safe-area-inset-right, 0px);
	--map-bg: #0c1018;
	--tab-h: 58px;
	color-scheme: dark;
}

/* Light theme: the logo background as the page, white surfaces, deeper accents for contrast.
   Applied by data-theme="light" (user choice) or the OS preference when nothing is chosen. */
:root[data-theme="light"] {
	--ink: #F6FBFF;
	--ink-2: #FFFFFF;
	--ink-3: #EAF1F8;
	--cyan: #0A76A0;
	--cyan-dim: #075A7A;
	--magenta: #C2185B;
	--magenta-dim: #9A1247;
	--on: #0A0A12;
	--muted: #5B6070;
	--ok: #147A4B;
	--warn: #96600A;
	--danger: #C62839;
	--line: rgba(10, 10, 18, .10);
	--line-2: rgba(10, 10, 18, .16);
	--card: rgba(10, 10, 18, .03);
	--card-2: rgba(10, 10, 18, .06);
	--glass-3: rgba(10, 10, 18, .22);
	--bar-bg: rgba(246, 251, 255, .88);
	--bar-bg-2: rgba(246, 251, 255, .94);
	--tab-bg: rgba(255, 255, 255, .97);
	--glow-a: rgba(194, 24, 91, .08);
	--glow-b: rgba(10, 118, 160, .10);
	--shadow: rgba(10, 10, 18, .12);
	--overlay: rgba(255, 255, 255, .92);
	--overlay-2: rgba(255, 255, 255, .85);
	--tabs-bg: rgba(246, 251, 255, .6);
	--map-bg: #E9EEF3;
	color-scheme: light;
}
:root[data-theme="light"] .leaflet-tile-pane { filter: none !important; }

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
	background: var(--ink);
	color: var(--on);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	overscroll-behavior-y: none;
	touch-action: manipulation;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--cyan); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; border: 0; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ============================================================ app shell */
#app {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background:
		radial-gradient(900px 420px at 92% -12%, var(--glow-a), transparent 60%),
		radial-gradient(800px 420px at -12% 8%, var(--glow-b), transparent 55%),
		var(--ink);
}
#topbar {
	flex: 0 0 auto;
	padding: var(--sat) var(--sar) 0 var(--sal);
	background: var(--bar-bg);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
	z-index: 5;
}
.topbar-row { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 0 8px; }
.topbar-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title.brand { letter-spacing: .14em; font-size: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 2px; }
.topbar-spacer { width: 8px; }
#view {
	flex: 1 1 auto;
	min-height: 0;
	position: relative;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding-left: var(--sal);
	padding-right: var(--sar);
}
#view.no-scroll { overflow: hidden; }
#view.no-topbar { padding-top: var(--sat); }
#tabbar {
	flex: 0 0 auto;
	display: flex;
	padding: 0 var(--sar) var(--sab) var(--sal);
	background: var(--tab-bg);
	border-top: 1px solid var(--line);
	z-index: 5;
}
.tab {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: var(--tab-h);
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	background: none;
	border: 0;
	position: relative;
}
.tab .ic { width: 24px; height: 24px; }
.tab.active { color: var(--cyan); }
.tab.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--grad); }

/* generic page containers */
.page { padding: 12px 16px calc(28px + var(--sab)); }
.page.narrow { max-width: 560px; margin: 0 auto; }
.screen-col { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.screen-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.screen-bottom {
	flex: 0 0 auto;
	padding: 10px 16px calc(12px + var(--sab));
	background: var(--bar-bg-2);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--line);
}
.map-pane { position: relative; flex: 0 0 44%; min-height: 220px; background: var(--map-bg); }
.map-pane.tall { flex: 0 0 40%; }
.map-pane .map { position: absolute; inset: 0; }
.sheet-pane {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--ink-2);
	border-top: 1px solid var(--line);
	border-radius: 22px 22px 0 0;
	margin-top: -18px;
	position: relative;
	z-index: 2;
	padding: 10px 16px calc(28px + var(--sab));
	box-shadow: 0 -12px 30px var(--shadow);
}
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: var(--glass-3); margin: 0 auto 12px; }

/* splash */
.splash { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; }
.splash-logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 16px 40px -18px rgba(77, 212, 255, .7); }
.wordmark { font-weight: 900; font-size: 26px; letter-spacing: .22em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ============================================================ text utilities */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.xbold { font-weight: 800; }
.cyan { color: var(--cyan); }
.magenta { color: var(--magenta); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.danger { color: var(--danger); }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre { white-space: pre-wrap; word-break: break-word; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.start { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.stack > * + * { margin-top: 12px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.section-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin: 18px 2px 8px; }
.h1 { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.h2 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.h3 { font-size: 15px; font-weight: 700; }

/* ============================================================ icons */
.ic { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.ic svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }
.ic-xl { width: 44px; height: 44px; }
.ic-muted { color: var(--muted); }
.emoji { font-size: 20px; line-height: 1; }

/* ============================================================ buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 14px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	color: var(--on);
	background: var(--card-2);
	border: 1px solid var(--line-2);
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	white-space: nowrap;
	transition: opacity .2s ease, transform .1s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.busy { opacity: .5; pointer-events: none; }
.btn-primary {
	color: var(--ink);
	background: var(--grad);
	border-color: transparent;
	box-shadow: 0 10px 26px -12px rgba(255, 61, 139, .65), 0 6px 16px -10px rgba(77, 212, 255, .5);
}
.btn-primary .spin { border-color: rgba(10, 10, 18, .3); border-top-color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--line-2); }
.btn-outline.danger, .btn-danger { color: var(--danger); border-color: rgba(255, 92, 108, .55); background: rgba(255, 92, 108, .08); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--cyan); }
.btn-ghost.muted { color: var(--muted); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.btn-xs { min-height: 34px; padding: 0 10px; font-size: 12.5px; border-radius: 10px; gap: 5px; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: transparent; border-color: transparent; }
.btn-icon.filled { background: var(--ink-3); border-color: var(--line-2); }
.btn-icon.ok { background: var(--ok); color: var(--ink); }
.btn-icon.cyan { color: var(--cyan); }
.btn-icon.danger { color: var(--danger); }
.btn-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fab {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--ink-2);
	border: 1px solid var(--line-2);
	color: var(--cyan);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8);
	z-index: 500;
}

/* ============================================================ spinner */
.spin {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid var(--glass-3);
	border-top-color: var(--cyan);
	border-radius: 50%;
	animation: spin .8s linear infinite;
	flex: 0 0 auto;
}
.spin.sm { width: 15px; height: 15px; }
.spin.lg { width: 30px; height: 30px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.progress::after { content: ""; display: block; height: 100%; width: 40%; background: var(--grad); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ============================================================ state views */
.state-view { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 40px 24px; min-height: 240px; }
.state-title { font-weight: 800; font-size: 16px; }
.state-emoji { font-size: 42px; line-height: 1; }
.state-view .btn { margin-top: 6px; }

/* ============================================================ fields */
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 6px 2px; }
.input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--ink-2);
	border: 1px solid var(--line-2);
	border-radius: 14px;
	min-height: 50px;
	padding: 0 12px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.input-wrap:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(77, 212, 255, .14); }
.input-wrap.error { border-color: var(--danger); }
.input-wrap.textarea { align-items: flex-start; padding-top: 10px; padding-bottom: 6px; }
.input-wrap.textarea .ic { margin-top: 4px; }
.input { flex: 1 1 auto; min-width: 0; width: 100%; background: none; border: 0; outline: 0; color: var(--on); font-size: 16px; padding: 12px 0; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: rgba(156, 158, 174, .7); }
.input[disabled] { color: var(--muted); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.4; padding: 4px 0; }
.field-hint { font-size: 11.5px; color: var(--muted); margin: 5px 2px 0; min-height: 0; }
.field-hint:empty { display: none; }
.field-hint.ok { color: var(--ok); }
.field-hint.error { color: var(--danger); }
.field-suffix { display: flex; align-items: center; gap: 2px; margin-right: -6px; }
.eye-btn { flex: 0 0 auto; width: 36px; height: 36px; margin-right: -8px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; }
.eye-btn:hover, .eye-btn:focus-visible { color: var(--on); background: var(--card-2); outline: none; }
.eye-btn .ic { width: 20px; height: 20px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 2px; font-size: 13.5px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cyan); flex: 0 0 auto; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; }
.switch-row .switch-text { flex: 1; min-width: 0; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 28px; background: var(--ink-3); border: 1px solid var(--line-2); flex: 0 0 auto; transition: background .2s ease; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch.on { background: var(--cyan); border-color: var(--cyan); }
.switch.on::after { transform: translateX(18px); }
.switch[disabled] { opacity: .45; }
.stepper { display: inline-flex; align-items: center; background: var(--ink-3); border: 1px solid rgba(77, 212, 255, .4); border-radius: 999px; }
.stepper button { width: 38px; height: 38px; border: 0; background: none; color: var(--cyan); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.stepper button[disabled] { opacity: .4; }
.stepper .qty { min-width: 26px; text-align: center; font-weight: 800; }
.add-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); color: var(--ink); border: 0; display: flex; align-items: center; justify-content: center; }
.add-btn[disabled] { background: var(--ink-3); color: var(--muted); }

/* ============================================================ cards, pills, chips */
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px;
	position: relative;
}
.card.pad-0 { padding: 0; overflow: hidden; }
.card.tap { cursor: pointer; transition: background .15s ease, transform .1s ease; }
.card.tap:active { background: var(--card-2); transform: scale(.995); }
.card.accent { border-left: 4px solid var(--cyan); }
.card.accent-magenta { border-left-color: var(--magenta); }
.card.accent-warn { border-left-color: var(--warn); }
.card.accent-ok { border-left-color: var(--ok); }
.card.accent-danger { border-left-color: var(--danger); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.card + .card { margin-top: 10px; }
.divider { height: 1px; background: var(--line); margin: 10px 0; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: inherit; }
.list-row:last-child { border-bottom: 0; }
.list-row .ic { color: var(--muted); }
.list-row .chev { color: var(--muted); margin-left: auto; }
.list-row.danger { color: var(--danger); }
.list-row.danger .ic { color: var(--danger); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.3; border: 1px solid; white-space: nowrap; }
.pill.cyan { color: var(--cyan); border-color: rgba(77, 212, 255, .45); background: rgba(77, 212, 255, .1); }
.pill.magenta { color: var(--magenta); border-color: rgba(255, 61, 139, .45); background: rgba(255, 61, 139, .1); }
.pill.ok { color: var(--ok); border-color: rgba(54, 211, 153, .45); background: rgba(54, 211, 153, .1); }
.pill.warn { color: var(--warn); border-color: rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .1); }
.pill.danger { color: var(--danger); border-color: rgba(255, 92, 108, .45); background: rgba(255, 92, 108, .1); }
.pill.muted { color: var(--muted); border-color: var(--line-2); background: var(--card); }
.chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 16px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.chip {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--card-2);
	border: 1px solid var(--line-2);
	color: var(--on);
	font-size: 13px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.chip.active { background: rgba(77, 212, 255, .16); border-color: var(--cyan); color: var(--cyan); }
.chip.sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.seg { display: flex; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 40px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13.5px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.active { background: var(--ink-3); color: var(--on); box-shadow: inset 0 0 0 1px rgba(77, 212, 255, .5); }
.avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--grad);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 15px;
	flex: 0 0 auto;
	overflow: hidden;
	position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.dim::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.type-badge { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; border: 1px solid; }
.type-badge.cyan { background: rgba(77, 212, 255, .14); border-color: rgba(77, 212, 255, .4); }
.type-badge.magenta { background: rgba(255, 61, 139, .14); border-color: rgba(255, 61, 139, .4); }
.type-badge.warn { background: rgba(255, 181, 71, .14); border-color: rgba(255, 181, 71, .4); }
.type-badge.ok { background: rgba(54, 211, 153, .14); border-color: rgba(54, 211, 153, .4); }
.type-badge.sm { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; }
.rating .ic { color: var(--warn); width: 16px; height: 16px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13px; line-height: 1.4; }
.banner .ic { flex: 0 0 auto; margin-top: 1px; }
.banner.cyan { background: rgba(77, 212, 255, .08); border-color: rgba(77, 212, 255, .3); color: var(--on); }
.banner.cyan .ic { color: var(--cyan); }
.banner.magenta { background: rgba(255, 61, 139, .1); border-color: rgba(255, 61, 139, .35); }
.banner.magenta .ic { color: var(--magenta); }
.banner.warn { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .35); }
.banner.warn .ic { color: var(--warn); }
.banner.danger { background: rgba(255, 92, 108, .1); border-color: rgba(255, 92, 108, .35); }
.banner.danger .ic { color: var(--danger); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv .v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.kv.big .k { color: var(--on); font-weight: 800; font-size: 15px; }
.kv.big .v { font-weight: 800; font-size: 16px; }
.money { font-variant-numeric: tabular-nums; font-weight: 800; }
.money.lg { font-size: 20px; }
.money.xl { font-size: 34px; letter-spacing: -.02em; }

/* ============================================================ toasts & modals */
#toasts { position: fixed; top: calc(var(--sat) + 10px); left: 12px; right: 12px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
	margin: 0 auto;
	max-width: 520px;
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 11px 14px;
	border-radius: 14px;
	background: rgba(34, 35, 46, .96);
	border: 1px solid var(--line-2);
	box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .8);
	font-size: 13.5px;
	font-weight: 600;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: auto;
}
.toast.show { opacity: 1; transform: none; }
.toast .ic { color: var(--cyan); }
.toast.error { border-color: rgba(255, 92, 108, .5); }
.toast.error .ic { color: var(--danger); }
.toast.ok .ic { color: var(--ok); }
.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 900;
	background: rgba(4, 4, 10, .66);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .16s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-overlay.closing { opacity: 0; }
.modal {
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--ink-2);
	border: 1px solid var(--line-2);
	border-radius: 20px;
	padding: 18px;
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9);
}
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.modal-body { font-size: 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.modal-actions .btn { min-height: 44px; }
.modal-overlay.sheet { align-items: flex-end; padding: 0; }
.modal-overlay.sheet .modal { max-width: 640px; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + var(--sab)); transform: translateY(20px); transition: transform .18s ease; }
.modal-overlay.sheet.open .modal { transform: none; }
.modal-overlay.full { padding: 0; }
.modal-overlay.full .modal { max-width: none; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; border: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.picker-head { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: var(--sat) 8px 0; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.picker-map { flex: 1 1 auto; position: relative; min-height: 0; background: var(--map-bg); }
.picker-map .map { position: absolute; inset: 0; }
.picker-foot { flex: 0 0 auto; padding: 12px 16px calc(14px + var(--sab)); background: var(--ink-2); border-top: 1px solid var(--line); }
.map-center-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); pointer-events: none; z-index: 500; display: flex; flex-direction: column; align-items: center; }
.map-center-pin .stem { width: 2px; height: 16px; background: #fff; opacity: .9; margin-top: -2px; }
.option-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 6px; min-height: 52px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: left; }
.option-row:last-child { border-bottom: 0; }
.option-row .ic { color: var(--cyan); }
.option-row .sub { color: var(--muted); font-size: 12.5px; }
.stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0 12px; }
.stars button { width: 46px; height: 46px; border: 0; background: none; color: var(--warn); opacity: .35; }
.stars button.on { opacity: 1; }
.stars button .ic { width: 34px; height: 34px; }

/* ============================================================ auth */
.auth-screen { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: calc(24px + var(--sat)) 20px calc(24px + var(--sab)); }
.auth-card { width: 100%; max-width: 440px; }
.auth-logo { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 12px; box-shadow: 0 16px 40px -18px rgba(255, 61, 139, .8); }
.auth-tagline { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 28px; }
.auth-links { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; }

/* ============================================================ home */
.greet { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 138px;
	padding: 14px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--card);
	text-align: left;
	color: inherit;
	position: relative;
	overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--sc, rgba(77, 212, 255, .16)), transparent 70%); pointer-events: none; }
.service-card > * { position: relative; }
.service-card .title { font-weight: 800; font-size: 16px; margin-top: auto; }
.service-card .sub { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.service-card.off { opacity: .5; }
.carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 4px 4px; }
.carousel::-webkit-scrollbar { display: none; }
.promo-card { flex: 0 0 92%; scroll-snap-align: center; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grad); border: 1px solid var(--line); aspect-ratio: var(--aspect, 3 / 1); cursor: pointer; }
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-card .promo-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); display: flex; align-items: center; gap: 8px; color: #fff; }
.promo-card .promo-foot { color: #fff; }
.promo-card .promo-foot .t { font-weight: 800; font-size: 13.5px; }
.promo-card .promo-foot .s { font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.promo-card .pill { position: absolute; top: 8px; left: 8px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(156, 158, 174, .5); transition: width .2s ease, background .2s ease; }
.dots span.on { width: 18px; background: var(--magenta); }
.active-card { display: flex; align-items: center; gap: 12px; }
.active-card .status { font-weight: 800; font-size: 15px; }
.home-foot { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }

/* ============================================================ stores / menu */
.seller-card { display: flex; gap: 12px; align-items: center; padding: 12px; }
.seller-card .avatar { width: 60px; height: 60px; font-size: 18px; }
.seller-card .name { font-weight: 700; font-size: 15px; }
.seller-card .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.seller-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.store-cover { height: 120px; background: linear-gradient(120deg, rgba(77, 212, 255, .25), rgba(255, 61, 139, .25)); }
.store-cover.short { height: 70px; }
.store-cover img { width: 100%; height: 100%; object-fit: cover; }
.store-head { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.store-head .avatar { width: 54px; height: 54px; font-size: 17px; }
.menu-cat { font-weight: 800; font-size: 16px; margin: 14px 4px 8px; }
.menu-item { display: flex; gap: 12px; align-items: center; padding: 10px; }
.menu-item.off { opacity: .55; }
.menu-item .thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--ink-3); object-fit: cover; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; }
.menu-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-item .name { font-weight: 700; }
.menu-item .desc { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line { padding: 12px; }
.cart-line .name { font-weight: 700; }
.cart-line .note { color: var(--cyan); font-size: 12px; }

/* ============================================================ quote panel */
.quote-panel { padding: 12px 14px; border-radius: 12px; background: rgba(77, 212, 255, .07); border: 1px solid rgba(77, 212, 255, .22); font-size: 13.5px; }
.quote-panel .warn-row { display: flex; gap: 6px; align-items: flex-start; color: var(--warn); font-size: 12.5px; margin-top: 6px; }
.quote-panel .warn-row .ic { width: 16px; height: 16px; flex: 0 0 auto; }
.map-hint { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 500; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; border-radius: 12px; background: var(--overlay); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.map-hint .chip { min-height: 30px; padding: 0 10px; font-size: 11.5px; }
.map-status { position: absolute; left: 12px; bottom: 14px; z-index: 500; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); background: var(--overlay-2); padding: 4px 8px; border-radius: 8px; }
.place-field .place-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ============================================================ tracking */
.track-head { display: flex; align-items: flex-start; gap: 12px; }
.status-orb { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid; flex: 0 0 auto; }
.status-orb.cyan { color: var(--cyan); background: rgba(77, 212, 255, .15); border-color: rgba(77, 212, 255, .5); }
.status-orb.ok { color: var(--ok); background: rgba(54, 211, 153, .15); border-color: rgba(54, 211, 153, .5); }
.status-orb.warn { color: var(--warn); background: rgba(255, 181, 71, .15); border-color: rgba(255, 181, 71, .5); }
.status-orb.danger { color: var(--danger); background: rgba(255, 92, 108, .15); border-color: rgba(255, 92, 108, .5); }
.timeline { display: flex; flex-direction: column; }
.tl-row { display: flex; gap: 10px; }
.tl-rail { width: 34px; display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.tl-node { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tl-node .ic { width: 12px; height: 12px; }
.tl-row.current .tl-node { width: 26px; height: 26px; border-width: 2px; box-shadow: 0 0 10px currentColor; }
.tl-row.current .tl-node .ic { width: 14px; height: 14px; }
.tl-line { flex: 1 1 auto; width: 2px; margin: 2px 0; background: var(--line); min-height: 14px; }
.tl-row.done .tl-line { background: rgba(54, 211, 153, .6); }
.tl-row.done .tl-node { color: var(--ok); background: rgba(54, 211, 153, .2); }
.tl-row.current .tl-node { color: var(--cyan); background: rgba(77, 212, 255, .2); }
.tl-row.current.completed .tl-node { color: var(--ok); background: rgba(54, 211, 153, .2); }
.tl-row.bad .tl-node { color: var(--danger); background: rgba(255, 92, 108, .2); }
.tl-row.upcoming .tl-node { color: rgba(156, 158, 174, .5); }
.tl-text { padding: 2px 0 14px; min-width: 0; }
.tl-row:last-child .tl-text { padding-bottom: 0; }
.tl-title { font-weight: 600; font-size: 14px; }
.tl-row.current .tl-title { font-weight: 800; font-size: 15px; }
.tl-row.upcoming .tl-title { color: var(--muted); }
.tl-time { color: var(--muted); font-size: 12px; }
.tl-note { color: var(--danger); font-size: 12.5px; margin-top: 2px; }
.place-row { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.place-row .ic { flex: 0 0 auto; margin-top: 3px; }
.place-row .lbl { color: var(--muted); font-size: 11px; }
.item-row { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-size: 14px; }
.item-row .q { color: var(--cyan); font-weight: 700; min-width: 24px; }
.pay-screen { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 28px 24px calc(28px + var(--sab)); }
.pay-card { width: 100%; max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pay-card .h2 { margin-top: 6px; }
.pay-card .btn { margin-top: 4px; }

/* ============================================================ orders / wallet / profile */
.order-card { display: flex; gap: 12px; align-items: center; padding: 12px; }
.order-card .code { font-weight: 800; }
.order-card .sub { color: var(--muted); font-size: 12.5px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--tabs-bg); position: sticky; top: 0; z-index: 3; }
.tabs button { flex: 1; min-height: 46px; background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 14px; position: relative; }
.tabs button.active { color: var(--on); }
.tabs button.active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: var(--grad); border-radius: 2px; }
.balance-card { padding: 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(77, 212, 255, .22), rgba(255, 61, 139, .22)); border: 1px solid var(--line); }
.ledger-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.ledger-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ledger-icon.ok { background: rgba(54, 211, 153, .14); color: var(--ok); }
.ledger-icon.magenta { background: rgba(255, 61, 139, .14); color: var(--magenta); }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar { width: 60px; height: 60px; font-size: 20px; }
.notif-row { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; text-align: left; }
.notif-row:last-child { border-bottom: 0; }
.notif-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); margin-top: 7px; flex: 0 0 auto; }
.notif-row.read .dot { background: transparent; }
.notif-row .t { font-weight: 700; }
.notif-row .b { color: var(--muted); font-size: 13px; }
.address-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.version-line { text-align: center; color: var(--muted); font-size: 11px; margin-top: 20px; }

/* ============================================================ Leaflet overrides */
.leaflet-container { background: var(--map-bg); font-family: var(--font); font-size: 12px; }
.leaflet-container .leaflet-control-attribution { background: var(--overlay-2); color: var(--muted); font-size: 10px; }
.leaflet-container .leaflet-control-attribution a { color: var(--cyan); }
.leaflet-div-icon { background: none; border: 0; }
.sa-pin-wrap, .sa-rider-wrap { background: none !important; border: 0 !important; }
.sa-pin { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, calc(-100% + 11px)); pointer-events: none; }
.sa-pin.cyan { color: var(--cyan); }
.sa-pin.magenta { color: var(--magenta); }
.sa-pin.warn { color: var(--warn); }
.sa-pin.ok { color: var(--ok); }
.sa-pin-label { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--overlay-2); border: 1px solid currentColor; margin-bottom: 3px; white-space: nowrap; }
.sa-pin-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: currentColor; box-shadow: 0 0 10px currentColor, 0 2px 6px rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; }
.sa-pin-dot .ic { width: 12px; height: 12px; color: var(--ink); }
.sa-pin.pulse .sa-pin-dot::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: currentColor; opacity: .4; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .4; } 100% { transform: scale(2.6); opacity: 0; } }
.sa-rider { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 61, 139, .95); border: 2px solid #fff; box-shadow: 0 0 12px var(--magenta), 0 2px 6px rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; color: #fff; transform: translate(-50%, -50%); }
.sa-rider .ic { width: 19px; height: 19px; transition: transform .4s ease; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; padding: 20px; text-align: center; }

@media (min-width: 640px) {
	.page { padding-left: 24px; padding-right: 24px; }
	.service-grid { grid-template-columns: repeat(4, 1fr); }
	.promo-card { flex-basis: 60%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ---------------------------------------------------------------- chat (support + order threads) */
.chat-page { display: flex; flex-direction: column; min-height: calc(100vh - 140px); }
.chat-list { flex: 1; overflow-y: auto; padding: 8px 0 12px; }
.chat-row { display: flex; justify-content: flex-start; margin: 6px 0; }
.chat-row.mine { justify-content: flex-end; }
.chat-bubble { max-width: 80%; padding: 8px 12px 4px; border-radius: 16px 16px 16px 4px; background: var(--ink-2); border: 1px solid var(--line-2); }
.chat-bubble.mine { border-radius: 16px 16px 4px 16px; background: rgba(77, 212, 255, .14); border-color: rgba(77, 212, 255, .45); }
.chat-bubble.staff { background: rgba(255, 61, 139, .12); border-color: rgba(255, 61, 139, .4); }
.chat-name { font-size: 11px; font-weight: 700; color: var(--cyan); margin-bottom: 2px; }
.chat-body { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.chat-time { font-size: 10px; color: var(--muted); margin-top: 2px; }
.chat-img { max-width: 220px; border-radius: 10px; display: block; margin-bottom: 6px; }
.chat-composer { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: flex-end; padding: 8px 0 12px; background: var(--ink); }
.chat-composer .input { flex: 1; resize: none; min-height: 44px; }

/* Add-ons picker + selectable rows */
.list-row[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--cyan); background: var(--ink-2); }
.list-row[aria-pressed="true"] .small { color: var(--cyan); font-weight: 700; }
.list-row[disabled] { opacity: .45; cursor: not-allowed; }
.pill.muted { background: var(--ink-2); color: var(--muted); }

/* Clickable cards are real buttons (keyboard + screen readers) */
button.card, button.promo-card, button.seller-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.card.order-card { display: block; }

/* One-tap language / theme toggles */
.quick-prefs { display: flex; align-items: center; gap: 2px; }
.quick-prefs .qp-lang { font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 1px; padding: 6px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-2); color: inherit; cursor: pointer; }

/* ---- partner area (merchant / rider dashboards, partner.js) */
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-stat { padding: 12px 14px; }
.p-stat .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.p-stat .num { font-size: 20px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.p-bar { height: 8px; border-radius: 6px; background: var(--ink-2); overflow: hidden; margin-top: 8px; }
.p-bar > i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.p-bar.warn > i { background: var(--warn); }
.p-bar.danger > i { background: var(--danger); }
.p-hours { display: grid; grid-template-columns: 40px 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.p-hours .input { padding: 8px 10px; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.p-actions .btn { flex: 1 1 auto; }
.p-item-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.p-item-row:last-child { border-bottom: 0; }
.p-item-row img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--ink-2); flex: 0 0 auto; }
.p-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--ink-2); }
.p-role-card { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; }
.p-role-card .emoji { font-size: 32px; }
.p-online { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-partner { display: block; margin-bottom: 6px; font-weight: 700; }

/* ---- map provider (Google adapter markers/tooltips) + place search in the picker */
.sm-marker { position: absolute; }
.sm-marker .sm-tip { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); background: var(--overlay); color: var(--on); border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.sm-marker:hover .sm-tip, .sm-marker .sm-tip.is-on { opacity: 1; }
.sm-google .gm-style .gm-style-cc, .sm-google .gmnoprint a { font-family: var(--font); }
.picker-search { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 600; }
.picker-search .input-wrap { min-height: 44px; background: var(--overlay); backdrop-filter: blur(6px); }
.picker-search .input { padding: 9px 0; font-size: 15px; }
.picker-results { max-height: 240px; overflow: auto; margin-top: 6px; border-radius: 14px; background: var(--overlay); border: 1px solid var(--line-2); box-shadow: 0 14px 34px -12px var(--shadow); }
.picker-results:empty { display: none; }
.picker-result { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--on); cursor: pointer; }
.picker-result:last-child { border-bottom: 0; }
.picker-map.has-search .map-hint { top: auto; bottom: 12px; right: 70px; }

/* Map | Satellite switch on Google maps */
.sm-maptype { display: inline-flex; gap: 2px; margin: 10px; padding: 3px; border-radius: 12px; background: var(--overlay); border: 1px solid var(--line-2); box-shadow: 0 8px 20px -10px var(--shadow); }
.sm-maptype button { border: 0; background: transparent; color: var(--muted); font: 700 12.5px var(--font); padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.sm-maptype button.is-on { color: var(--cyan); background: rgba(77, 212, 255, .16); }

/* ---- home discovery strips + balance chip (parity with the app) */
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-card { flex: 0 0 132px; text-align: left; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: inherit; cursor: pointer; }
.strip-card .avatar { width: 48px; height: 48px; margin-bottom: 8px; }
.balance-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--on); font-weight: 800; font-size: 12.5px; cursor: pointer; }
.balance-chip .ic { width: 16px; height: 16px; color: var(--cyan); }

/* ============================================================ map overlays (re-center pill) */
.map-pill {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--ink-2);
	border: 1px solid var(--line-2);
	color: var(--on);
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8);
	cursor: pointer;
}
.map-pill[hidden] { display: none; }
.map-pill svg { color: var(--cyan); }
