*, *::before, *::after { box-sizing: border-box; }

/* Lucide icons render as inline SVG; default size 20 and inherit colour. */
[data-lucide], svg.lucide {
	width: 20px;
	height: 20px;
	stroke-width: 2;
	vertical-align: middle;
}

:root {
	--brand-accent: #111111;
	--brand-bg: #ffffff;
	--brand-surface: #ffffff;
	--brand-text: #111111;
	--brand-muted: #6b7280;
	--brand-border: #e5e7eb;
	--brand-shell-bg: #f3f4f6;
}

html, body {
	background: var(--brand-shell-bg);
	color: var(--brand-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
	/* pan-x pan-y = allow scrolling, but disable BOTH pinch-zoom and double-tap zoom. */
	touch-action: pan-x pan-y;
	-webkit-text-size-adjust: 100%;
}

/* touch-action is NOT inherited, so apply to everything. This keeps taps instant
   (no 300ms delay) while blocking pinch + double-tap zoom on every element. */
* {
	touch-action: pan-x pan-y;
}

.m-shell {
	max-width: 430px;
	margin: 0 auto;
	min-height: 100vh;
	/* Default app backdrop image (behind the content). A program's own hero image
	   still drives the hero banner. */
	background: var(--brand-bg) url('/images/default-bg.jpg') top center / cover no-repeat;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
}

.m-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--brand-bg);
	border-bottom: 1px solid var(--brand-border);
	position: sticky;
	top: 0;
	z-index: 10;
}

.m-topbar .title {
	font-weight: 600;
	font-size: 16px;
}

.m-icon-btn {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	color: var(--brand-text);
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.m-hero {
	position: relative;
	height: 240px;
	background: var(--brand-accent);
	background-size: cover;
	background-position: center;
}

.m-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
}

.m-hero-actions {
	position: absolute;
	top: 14px;
	left: 14px;
	right: 14px;
	display: flex;
	justify-content: space-between;
	z-index: 1;
}

.m-content {
	padding: 18px 18px 140px;
	background: transparent;
	flex: 1;
}

.m-title {
	font-size: 22px;
	font-weight: 700;
	margin: 4px 0 4px;
}

.m-subtitle {
	color: var(--brand-muted);
	font-size: 14px;
}

.m-section-title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--brand-muted);
	text-transform: uppercase;
	margin: 22px 0 10px;
}

.m-card {
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 14px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	margin-bottom: 10px;
}

.m-card .ico {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--brand-accent) 12%, white);
	color: var(--brand-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.m-card .body {
	flex: 1;
	min-width: 0;
}

.m-card .body .h {
	font-weight: 600;
	font-size: 15px;
}

.m-card .body .s {
	color: var(--brand-muted);
	font-size: 13px;
}

/* Compact member header card (top of Topup page): logo/avatar + name/phone + balance. */
.m-memcard {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 16px;
	padding: 14px 16px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
	margin-bottom: 14px;
}

.m-memcard .pic {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	flex-shrink: 0;
	overflow: hidden;
	background: linear-gradient(135deg, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 60%, #000));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
}

.m-memcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.m-memcard .pic [data-lucide] { width: 24px; height: 24px; }

.m-memcard .info { flex: 1; min-width: 0; }
.m-memcard .info .name { font-weight: 700; font-size: 15px; }
.m-memcard .info .phone { color: var(--brand-muted); font-size: 13px; }

.m-memcard .bal { text-align: right; flex-shrink: 0; }
.m-memcard .bal .n-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.m-memcard .bal .n { font-weight: 800; font-size: 20px; color: var(--brand-accent); line-height: 1.1; }
/* Shift POINTS left so it sits under the number, not under the refresh button. */
.m-memcard .bal .u { font-size: 11px; color: var(--brand-muted); text-transform: uppercase; letter-spacing: 0.03em; padding-right: 32px; }

.m-bal-refresh {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--brand-border);
	background: color-mix(in srgb, var(--brand-accent) 10%, white);
	color: var(--brand-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
}

.m-bal-refresh svg { width: 15px; height: 15px; }
.m-bal-refresh.spin svg { animation: m-spin 0.7s linear infinite; }

@keyframes m-spin { to { transform: rotate(360deg); } }

/* Confetti burst (referral reward). Pieces are created in JS; this just animates them. */
.m-confetti {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 1100;
}

.m-confetti i {
	position: absolute;
	top: -16px;
	display: block;
	width: 8px;
	height: 12px;
	animation-name: m-confetti-fall;
	animation-timing-function: linear;
	animation-fill-mode: forwards;
	will-change: transform, opacity;
}

@keyframes m-confetti-fall {
	0%   { transform: translate3d(0, -16px, 0) rotate(0deg); opacity: 1; }
	80%  { opacity: 1; }
	100% { transform: translate3d(var(--dx, 0px), 110vh, 0) rotate(720deg); opacity: 0; }
}

/* Centered modal (e.g. "you earned a referral fee"). */
.m-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.m-modal-card {
	background: var(--brand-surface, #fff);
	border-radius: 18px;
	padding: 24px 20px;
	width: 100%;
	max-width: 340px;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.m-modal-ico {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	margin: 0 auto 12px;
	background: color-mix(in srgb, var(--brand-accent) 14%, white);
	color: var(--brand-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}

.m-modal-ico svg { width: 28px; height: 28px; }
.m-modal-title { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.m-modal-body { color: var(--brand-muted); font-size: 14px; margin-bottom: 18px; }

.m-modal-sub { margin-bottom: 12px; }
.m-modal-list { text-align: left; max-height: 220px; overflow-y: auto; }

.m-modal-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 0;
	border-top: 1px solid var(--brand-border);
}

/* phone is masked to the last 5 in JS (…30109); keep it on one line. */
.m-modal-row .ph { font-weight: 700; color: var(--brand-text, inherit); flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-modal-row .ph svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--brand-muted); }
.m-modal-sub svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--brand-accent); }
.m-modal-row .pt { font-weight: 800; color: var(--brand-accent); flex: 0 0 auto; text-align: center; white-space: nowrap; }
.m-modal-row .dt { flex: 1 1 0; min-width: 0; text-align: right; font-size: 12px; color: var(--brand-muted); white-space: nowrap; }

/* Member referral section (home, above packages). */
.m-referral {
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.m-referral-head { display: flex; align-items: flex-start; gap: 12px; }

.m-referral-head .ico {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	flex-shrink: 0;
	background: color-mix(in srgb, var(--brand-accent) 12%, white);
	color: var(--brand-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.m-referral-head .earn { font-weight: 800; font-size: 18px; color: var(--brand-accent); }
.m-referral-head .sub { color: var(--brand-muted); font-size: 13px; margin-top: 2px; }

.m-referral-input {
	width: 100%;
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid var(--brand-border);
	border-radius: 12px;
	font-size: 16px;            /* 16px avoids iOS zoom-on-focus */
	background: var(--brand-bg, #fff);
	color: inherit;
	box-sizing: border-box;
}

.m-referral-actions { display: flex; flex-direction: row; gap: 8px; margin-top: 10px; }
/* Referral illustration (one person -> many + a gift), above the buttons. */
.m-referral-illus { margin: 6px 0 4px; }
.m-referral-illus svg { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }

/* ~20% smaller than the default .m-btn (54px/18px/16-22 padding). */
.m-referral-actions .m-btn { margin-top: 0; flex: 1 1 0; min-width: 0; padding: 12px 16px; min-height: 43px; font-size: 14px; }
.m-referral-actions .m-btn svg { width: 18px; height: 18px; }

.m-referral-msg { margin-top: 10px; font-size: 13px; font-weight: 600; text-align: center; }

/* Horizontal swipe carousel (home packages + outlets). Cards are fixed-width and
   snap; the row breaks out of the .m-content gutter so the next card peeks in. */
.m-carousel { position: relative; }

/* Prev / next arrows — only shown on devices with a real pointer (desktop),
   where you can't swipe. On touch screens they stay hidden and swiping works. */
.m-carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--brand-border);
	background: var(--brand-surface);
	color: inherit;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.m-carousel-nav.prev { left: -4px; }
.m-carousel-nav.next { right: -4px; }
.m-carousel-nav:disabled { opacity: 0.3; cursor: default; }
.m-carousel-nav svg { width: 18px; height: 18px; }

@media (hover: hover) and (pointer: fine) {
	.m-carousel-nav { display: inline-flex; }
}

.m-hscroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;            /* Firefox */
	margin: 0 -18px 10px;             /* cancel .m-content side padding */
	padding: 2px 18px 8px;            /* re-add side gutters + room for shadow */
}

.m-hscroll::-webkit-scrollbar { display: none; }   /* Chrome / Safari */

.m-hscroll > .m-card {
	flex: 0 0 auto;
	width: 62%;
	max-width: 230px;
	min-height: 96px;
	margin-bottom: 0;
	scroll-snap-align: start;
}

/* Keep the icon/amount centered, but let the title+text block sit at the top. */
.m-hscroll > .m-card .body {
	align-self: flex-start;
}

/* Package price sits under the name (not beside it) so long names can't overlap it on narrow screens / large system fonts. */
.m-pkg-amt {
	font-weight: 700;
	font-size: 15px;
	margin: 2px 0;
}

/* Narrow carousel cards: let long names/addresses wrap inside the card instead of spilling past its edge. */
.m-hscroll > .m-card .body {
	overflow-wrap: anywhere;
}

.m-pkg-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.m-pkg {
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 14px;
	padding: 14px;
}

.m-pkg .name {
	font-weight: 600;
	font-size: 14px;
}

.m-pkg .price {
	font-size: 22px;
	font-weight: 700;
	color: var(--brand-accent);
	margin: 6px 0 2px;
}

.m-pkg .pts {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #eef2ff;
	background: color-mix(in srgb, var(--brand-accent) 14%, transparent);
	color: var(--brand-accent);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.m-pkg .pts [data-lucide] {
	width: 16px;
	height: 16px;
}

.m-pkg .pts-bonus {
	display: inline-block;
	margin-top: 6px;
	margin-left: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #16a34a;
}

.m-pkg .pts-bonus::before {
	content: "🎁 ";
}

.m-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 999px;
	padding: 16px 22px;
	min-height: 54px;
	font-size: 18px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

.m-btn-primary {
	background: var(--brand-accent);
	color: #fff;
}

.m-btn-outline {
	background: transparent;
	color: var(--brand-accent);
	border: 1px solid var(--brand-accent);
}

.m-btn-block {
	display: flex;
	width: 100%;
}

.m-profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 8px;
}

.m-avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 60%, #000));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: 1px;
	border: 4px solid var(--brand-surface);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
	margin-top: -54px;
	position: relative;
	z-index: 1;
}

.m-avatar [data-lucide] { width: 42px; height: 42px; }

.m-logo {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
	object-fit: cover;
	margin-top: -40px;
	margin-bottom: 10px;
}

.m-prose {
	font-size: 14px;
	line-height: 1.55;
	color: var(--brand-text);
	white-space: pre-wrap;
}

.m-empty {
	text-align: center;
	padding: 40px 12px;
}

.m-empty-ico {
	font-size: 48px;
	margin-bottom: 12px;
}

/* --- QR + step-by-step --- */
.m-qr-wrap {
	display: block;
	margin: 16px auto 6px;
	max-width: 280px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--brand-border);
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.08);
	text-align: center;
	cursor: pointer;
	transition: transform 120ms ease;
}

.m-qr-wrap:active { transform: scale(0.98); }

.m-qr-wrap img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.m-steps {
	list-style: none;
	padding: 0;
	margin: 0;
}

.m-steps li {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--brand-border);
}

.m-steps li:last-child { border-bottom: none; }

.m-steps .n {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--brand-accent) 12%, white);
	color: var(--brand-accent);
	font-weight: 700;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.m-steps .h {
	font-weight: 600;
	font-size: 14px;
}

.m-steps .s {
	color: var(--brand-muted);
	font-size: 13px;
	line-height: 1.45;
}

/* --- picture-forward vertical steps --- */
.m-vsteps {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}

.m-vsteps li {
	position: relative;
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 14px;
	padding: 14px 6px 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.m-vsteps .n {
	position: absolute;
	top: 6px;
	left: 6px;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: var(--brand-accent);
	color: #fff;
	font-weight: 700;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.m-vsteps .ico {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--brand-accent) 12%, white);
	color: var(--brand-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
}

.m-vsteps .ico svg {
	width: 24px;
	height: 24px;
	stroke-width: 2;
}

.m-vsteps .h {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--brand-text);
}

.m-balance {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 62%, #000));
	color: #fff;
	border-radius: 20px;
	padding: 20px;
	margin: 16px 0;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-accent) 28%, transparent);
}

/* subtle decorative sheen */
.m-balance::after {
	content: "";
	position: absolute;
	top: -40px;
	right: -30px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.10);
}

.m-balance .label {
	font-size: 13px;
	opacity: 0.9;
	position: relative;
}

.m-balance .value {
	font-size: 38px;
	font-weight: 800;
	margin-top: 4px;
	position: relative;
}

.m-refresh-btn {
	background: color-mix(in srgb, var(--brand-accent) 12%, white);
	color: var(--brand-accent);
	border: 1px solid var(--brand-accent);
	margin-top: 10px;
}

.m-refresh-btn:hover,
.m-refresh-btn:active {
	background: var(--brand-accent);
	color: #fff;
}

/* --- agree-to-terms checkbox (register/login) --- */
.m-agree {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 4px 0 14px;
	font-size: 13px;
	color: var(--brand-muted);
}
.m-agree input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; }
.m-agree a { color: var(--brand-accent); font-weight: 600; }

/* --- language picker --- */
.m-lang-picker {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.m-lang-pill {
	flex: 1;
	min-width: 90px;
	padding: 12px 14px;
	border-radius: 999px;
	border: 1px solid var(--brand-border);
	background: #fff;
	color: var(--brand-text);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.m-lang-pill.is-active {
	background: var(--brand-accent);
	color: #fff;
	border-color: var(--brand-accent);
}

/* Deliberately quiet logout — we don't want users tapping it by accident. */
.m-logout-link {
	background: none;
	border: none;
	color: var(--brand-muted);
	font-size: 11px;
	text-decoration: underline;
	cursor: pointer;
	padding: 8px;
	opacity: 0.6;
}
.m-logout-link:hover { opacity: 1; }

/* --- +/- pulse stepper (Scan/Machine) --- */
.m-stepper {
	display: grid;
	grid-template-columns: 72px 1fr 72px;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.m-step-btn {
	height: 72px;
	border-radius: 18px;
	border: 1px solid var(--brand-border);
	background: #fff;
	color: var(--brand-accent);
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.m-step-btn:disabled {
	color: var(--brand-muted);
	background: #f3f4f6;
	cursor: not-allowed;
}

.m-step-btn:not(:disabled):active {
	background: var(--brand-accent);
	color: #fff;
	border-color: var(--brand-accent);
}

.m-step-btn svg {
	width: 28px;
	height: 28px;
	stroke-width: 2.5;
}

.m-step-value {
	text-align: center;
	background: color-mix(in srgb, var(--brand-accent) 8%, white);
	border: 1px solid var(--brand-border);
	border-radius: 18px;
	padding: 12px 8px;
}

.m-step-value .qty {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: var(--brand-text);
}

.m-step-value .unit {
	font-size: 12px;
	color: var(--brand-muted);
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.m-form-field {
	margin-bottom: 12px;
}

.m-form-field label {
	display: block;
	font-size: 13px;
	color: var(--brand-muted);
	margin-bottom: 6px;
}

.m-input, .m-select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--brand-border);
	font-size: 15px;
	background: #fff;
}

.m-input:focus, .m-select:focus {
	outline: none;
	border-color: var(--brand-accent);
}

.m-alert {
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 12px;
}

.m-alert-info {
	background: color-mix(in srgb, var(--brand-accent) 8%, white);
	color: var(--brand-text);
	border: 1px solid color-mix(in srgb, var(--brand-accent) 20%, white);
}

.m-alert-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* --- bottom nav --- */
.m-shell { padding-bottom: 120px; }

.m-bottomnav {
	position: fixed;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 28px);
	max-width: 402px;
	background: var(--brand-bg);
	border: 1px solid var(--brand-border);
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 8px 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	z-index: 20;
}

.m-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: var(--brand-muted);
	text-decoration: none;
	font-size: 11px;
	padding: 6px 8px;
	border-radius: 14px;
	min-width: 48px;
}

.m-tab .ico { display: inline-flex; align-items: center; justify-content: center; }
.m-tab .ico svg { width: 22px; height: 22px; }
.m-tab-fab .fab svg { width: 26px; height: 26px; }
.m-card .ico svg { width: 18px; height: 18px; }
.m-activity-item .ico svg { width: 16px; height: 16px; }
.m-empty-ico svg { width: 48px; height: 48px; stroke-width: 1.5; }
.m-icon-btn svg { width: 18px; height: 18px; }
.m-tab .lbl { display: none; }

.m-tab.is-active {
	color: var(--brand-accent);
}

.m-tab.is-active .lbl {
	display: inline;
	font-weight: 600;
}

.m-tab-fab {
	margin-top: -28px;
}

.m-tab-fab .fab {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: var(--brand-accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* --- activity list --- */
.m-activity-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--brand-border);
}

.m-activity-item:last-child { border-bottom: none; }

.m-activity-item .ico {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.m-activity-item .ico-in  { background: #e8f5ee; color: #1f8a4c; }
.m-activity-item .ico-out { background: #fdecec; color: #b91c1c; }

.m-activity-item .body { flex: 1; min-width: 0; }
.m-activity-item .h { font-weight: 600; font-size: 14px; }
.m-activity-item .s { font-size: 12px; color: var(--brand-muted); }

.m-activity-item .amt {
	font-weight: 700;
	font-size: 14px;
}
.m-activity-item .amt-in  { color: #1f8a4c; }
.m-activity-item .amt-out { color: #b91c1c; }
