/* =========================================================================
 * BSN App — layout: chrome (sidebar, top bars, bottom navigation) and page layouts.
 * Phone first; desktop (≥1024px) gets the navy sidebar when signed in.
 * ========================================================================= */

/* ---------- Page frame ---------- */
.app-main { min-height: 60vh; padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 34px); }
.layout-auth .app-main { padding-bottom: 32px; }
@media (min-width: 1024px) {
	.app-main { padding-bottom: var(--s-16); }
	.layout-app .app-frame { margin-left: var(--sidebar-w); min-height: 100vh; }
}

/* ---------- Desktop sidebar ---------- */
.app-sidebar { display: none; }
@media (min-width: 1024px) {
	.app-sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 40;
		display: flex;
		flex-direction: column;
		width: var(--sidebar-w);
		padding: 22px 16px;
		background:
			radial-gradient(120% 50% at 0% 0%, rgba(46, 94, 140, 0.35), transparent 60%),
			linear-gradient(180deg, var(--navy-900), var(--navy-950));
		color: rgba(255, 255, 255, 0.8);
		box-shadow: 1px 0 0 rgba(255, 255, 255, 0.04), 8px 0 30px -18px rgba(0, 0, 0, 0.5);
	}
	.app-sidebar::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 70px;
		height: 120px;
		background: url("../img/kerala-art.svg") center bottom / 240% auto no-repeat;
		opacity: 0.08;
		pointer-events: none;
	}
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; color: var(--white); }
.side-brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(242, 168, 29, 0.6); }
.side-brand span { display: grid; line-height: 1; }
.side-brand strong { font-family: var(--font-sans); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.side-brand small { margin-top: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.side-nav { display: grid; gap: 4px; }
.side-nav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 46px;
	padding: 0 14px;
	border-radius: 12px;
	color: rgba(255, 255, 255, 0.74);
	font-size: var(--fs-15);
	font-weight: 500;
	isolation: isolate;
	transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.side-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.side-nav a[aria-current="page"] { color: var(--white); }
.side-nav a[aria-current="page"] .icon { color: var(--gold); }
.side-nav .tn-pill {
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 3px 0 0 var(--gold);
}
.side-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); color: var(--white); position: relative; z-index: 1; }
.side-user:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.side-user span { display: grid; min-width: 0; line-height: 1.25; }
.side-user strong { font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { font-size: var(--fs-12); color: rgba(255, 255, 255, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Public header (signed out) ---------- */
.public-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border-bottom: 1px solid var(--glass-border);
}
.public-header .wrap { display: flex; align-items: center; gap: var(--s-4); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-900); flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(242, 168, 29, 0.55); }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy-900); }
.brand__sub { margin-top: 3px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.public-nav { display: none; gap: 4px; margin-left: var(--s-8); }
.public-nav a { position: relative; padding: 10px 14px; color: var(--ink-600); font-weight: 500; font-size: var(--fs-15); }
.public-nav a:hover, .public-nav a[aria-current="page"] { color: var(--navy-900); }
.public-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 1px; background: var(--gold); }
.public-actions { display: flex; gap: 8px; margin-left: auto; }
.layout-auth .public-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; position: absolute; left: 0; right: 0; }
@media (max-width: 1023px) {
	.layout-auth .public-header { display: none; }
	.public-actions .btn--outline { display: none; }
}
@media (min-width: 1024px) {
	.public-header .wrap { height: 80px; }
	.public-nav { display: flex; }
}

/* ---------- Page top bar ---------- */
.app-topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border-bottom: 1px solid var(--glass-border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .app-topbar, .public-header { background: var(--glass-bg-strong); } }
.app-topbar .wrap { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); padding-top: 6px; padding-bottom: 6px; }
.topbar-back { margin-left: -10px; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-h { font-family: var(--font-sans); font-size: var(--fs-18); font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sub { display: none; margin: 2px 0 0; font-size: var(--fs-13); color: var(--ink-500); }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-icon { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.topbar-user { display: none; }
.topbar-greet { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.topbar-greet span { display: grid; line-height: 1.2; min-width: 0; }
.topbar-greet small { font-size: var(--fs-13); color: var(--ink-500); }
.topbar-greet strong { font-size: var(--fs-18); font-weight: 600; color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-topbar--greeting { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; position: relative; }
@media (min-width: 1024px) {
	.app-topbar { background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; position: relative; }
	.app-topbar .wrap { padding-top: 26px; padding-bottom: 10px; align-items: flex-start; }
	.topbar-h { font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 700; white-space: normal; }
	.topbar-sub { display: block; }
	.topbar-back { display: none; }
	.topbar-greet { display: none; }
	.topbar-user { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-1); color: var(--navy-900); }
	.topbar-user span { display: grid; line-height: 1.2; }
	.topbar-user strong { font-size: var(--fs-14); }
	.topbar-user small { font-size: var(--fs-12); color: var(--ink-500); }
	.route-directory .topbar-icon { display: none; }
}

/* ---------- Bottom navigation (phones): navy bar, active tab in a gold circle ---------- */
.bottom-nav {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: calc(8px + var(--safe-bottom));
	z-index: 45;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	height: var(--bottom-nav-h);
	padding: 6px 8px;
	border-radius: 24px;
	/* Opaque on purpose: no live blur behind a fixed bar, so scrolling and taps stay smooth. */
	background: linear-gradient(180deg, #10304f, #06172a);
	transform: translateZ(0);
	box-shadow: 0 16px 34px -12px rgba(6, 23, 42, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.bottom-nav a { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; color: rgba(255, 255, 255, 0.7); font-size: 11px; font-weight: 500; }
.bn-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; isolation: isolate; transition: transform var(--t) var(--ease-spring); }
.bn-icon .icon { width: 22px; height: 22px; }
.bn-pill {
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(70% 70% at 35% 25%, #ffd36b, var(--gold) 55%, var(--gold-deep));
	box-shadow: 0 6px 16px -4px rgba(242, 168, 29, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.bottom-nav a[aria-current="page"] { color: var(--gold); }
.bottom-nav a[aria-current="page"] .bn-icon { color: var(--navy-950); transform: translateY(-2px); }
.bn-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) { .bottom-nav { display: none; } }

/* ---------- Footer ---------- */
.app-footer { display: none; color: var(--ink-500); font-size: var(--fs-13); }
.app-footer .wrap { display: flex; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-6); padding-bottom: var(--s-6); border-top: 1px solid var(--border); }
@media (min-width: 1024px) { .app-footer { display: block; } }

.offline-banner { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; gap: 8px; padding: 8px 16px; background: var(--warn-soft); color: #5f4500; font-size: var(--fs-13); font-weight: 600; }

/* =========================================================================
 * Pages
 * ========================================================================= */

/* ---------- Landing (signed out) ---------- */
.landing { position: relative; overflow: hidden; padding: var(--s-6) 0 var(--s-10); background: radial-gradient(60% 50% at 85% 10%, rgba(242, 168, 29, 0.12), transparent 70%), var(--warm-white); }
.landing__art { position: absolute; left: -10%; bottom: -10px; width: 120%; max-width: none; opacity: 0.16; pointer-events: none; }
.landing__grid { position: relative; display: grid; gap: var(--s-8); }
.landing__copy { display: grid; gap: var(--s-5); align-content: start; }
.landing__title { font-family: var(--font-display); font-size: clamp(2.3rem, 7.5vw, 3.9rem); font-weight: 700; line-height: 1.05; color: var(--navy-900); }
.landing__title em { font-style: normal; color: var(--gold-deep); }
.landing__lead { max-width: 52ch; color: var(--ink-600); }
.landing__lead strong { color: var(--navy-900); font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.stat-row div { display: grid; gap: 2px; }
.stat-row dt { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 700; color: var(--navy-900); }
.stat-row dd { margin: 0; font-size: var(--fs-12); color: var(--ink-500); line-height: 1.3; }
.landing__cta .btn { flex: 1 1 160px; }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; gap: 10px; }
.collage__tile { display: block; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow-3); }
.collage__tile img { width: 100%; height: 100%; object-fit: cover; }
.collage__tile--1 { grid-row: span 2; border-radius: 26px 26px 26px 80px; }
.collage__tile--2 { border-radius: 20px 60px 20px 20px; }
.collage__tile--4 { grid-column: span 2; }
.collage__script { position: absolute; right: 8px; bottom: -26px; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--navy-700); transform: rotate(-4deg); }
@media (min-width: 1024px) {
	.landing { padding: var(--s-12) 0 var(--s-16); }
	.landing__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: var(--s-12); }
	.collage { grid-auto-rows: 150px; }
	.collage__script { font-size: 26px; right: -6px; bottom: -36px; }
	.cat-grid--landing { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.landing__cta .btn { flex: 0 0 auto; }
}

/* ---------- Home / dashboard (signed in) ---------- */
.home { padding-top: var(--s-2); }
.dash-welcome { padding: var(--s-2) 0 var(--s-5); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.dash-main > * + * { margin-top: var(--s-5); }
.dash-side > * + * { margin-top: var(--s-4); }
@media (min-width: 1024px) {
	.layout-app .route-home .app-topbar, .route-home.layout-app .app-topbar { position: relative; }
	.dash-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; margin-top: var(--s-5); }
	.home-search { max-width: 760px; }
}
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.stat-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); flex: none; }
.stat-card dt { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy-900); line-height: 1.1; }
.stat-card dd { margin: 0; font-size: var(--fs-12); color: var(--ink-500); }
.stat-card--gold { background: linear-gradient(160deg, #fff6e0, var(--gold-soft)); border-color: rgba(242, 168, 29, 0.35); }
.stat-card--gold .stat-card__icon { background: var(--gold); color: var(--navy-950); }
.action-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.action-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-1); color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); color: inherit; }
.action-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); flex: none; }
.action-card span:last-child { display: grid; min-width: 0; }
.action-card strong { color: var(--navy-900); font-weight: 600; }
.action-card small { color: var(--ink-500); font-size: var(--fs-13); }
.notice-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: linear-gradient(160deg, #fff9ea, var(--gold-soft)); border: 1px solid rgba(242, 168, 29, 0.35); color: inherit; }
.notice-card:hover { color: inherit; }
.notice-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--gold); color: var(--navy-950); flex: none; }
.notice-card > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.notice-card strong { color: var(--navy-900); }
.notice-card small { color: var(--ink-600); font-size: var(--fs-13); }
.promo {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 20px;
	border-radius: var(--r-xl);
	overflow: hidden;
	background: radial-gradient(80% 140% at 100% 0%, rgba(46, 94, 140, 0.55), transparent 60%), linear-gradient(160deg, var(--navy-700), var(--navy-950));
	color: var(--white);
	box-shadow: var(--shadow-3);
}
.promo:hover { color: var(--white); }
.promo__art { position: absolute; right: -10%; bottom: -14px; width: 70%; opacity: 0.22; pointer-events: none; }
.promo__text { position: relative; display: grid; gap: 4px; flex: 1; }
.promo__text strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.promo__text small { color: rgba(255, 255, 255, 0.7); font-size: var(--fs-13); }
.promo__go { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy-950); flex: none; box-shadow: var(--shadow-gold); transition: transform var(--t) var(--ease-spring); }
.promo:hover .promo__go { transform: translateX(4px); }
.your-biz { display: flex; align-items: center; gap: 12px; }
.your-biz div { display: grid; min-width: 0; }
.your-biz strong { color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.your-biz small { color: var(--ink-500); font-size: var(--fs-13); }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.activity li { display: flex; gap: 10px; font-size: var(--fs-14); color: var(--charcoal); }
.activity li > span:last-child { display: grid; }
.activity small { color: var(--ink-400); font-size: var(--fs-12); }
.activity__dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); flex: none; }
.quick-links { display: grid; gap: 4px; }
.quick-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--navy-800); font-weight: 500; font-size: var(--fs-14); }
.quick-links a:hover { background: var(--warm-white); }
.quick-links .icon { color: var(--gold-deep); }

/* ---------- Directory ---------- */
.directory { display: grid; gap: var(--s-4); padding-top: var(--s-2); }
.filter-chips { margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.dir-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.result-count { margin: 0; font-size: var(--fs-14); color: var(--ink-600); }
.result-count strong { color: var(--navy-900); }
.results[aria-busy="true"] .bgrid { opacity: 0.55; transition: opacity var(--t) var(--ease); }

/* Filters & Sort: bottom sheet on phones, inline bar on desktop */
.filters-sheet__scrim { display: none; }
.filters { display: grid; gap: var(--s-4); }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filters__head h2 { flex: 1; text-align: center; font-family: var(--font-sans); font-size: var(--fs-18); font-weight: 600; letter-spacing: 0; }
.filters__reset { font-weight: 600; color: var(--gold-deep); font-size: var(--fs-14); }
.filters__group { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.filters__group legend { margin-bottom: 8px; font-size: var(--fs-14); font-weight: 600; color: var(--navy-900); }
.sort-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sort-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sort-pill span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--white); color: var(--navy-800); font-size: var(--fs-14); font-weight: 500; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.sort-pill input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.sort-pill input:focus-visible + span { box-shadow: var(--focus); }
@media (max-width: 1023px) {
	.filters-sheet { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; }
	.filters-sheet.is-open { visibility: visible; pointer-events: auto; }
	.filters-sheet__scrim { display: block; position: absolute; inset: 0; background: rgba(6, 23, 42, 0.45); opacity: 0; transition: opacity var(--t-slow) var(--ease); }
	.filters-sheet.is-open .filters-sheet__scrim { opacity: 1; }
	.filters {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		max-height: 88dvh;
		overflow: auto;
		padding: 16px 20px calc(20px + var(--safe-bottom));
		border-radius: 26px 26px 0 0;
		background: var(--warm-white);
		box-shadow: 0 -20px 50px -20px rgba(6, 23, 42, 0.5);
		transform: translateY(105%);
		transition: transform var(--t-slow) var(--ease-spring);
	}
	.filters::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 6px; border-radius: 2px; background: var(--border-strong); }
	.filters-sheet.is-open .filters { transform: none; }
	body.sheet-open { overflow: hidden; }
}
@media (min-width: 1024px) {
	.directory { grid-template-columns: minmax(0, 1fr); }
	.filters { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) auto; align-items: end; padding: 16px 18px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
	.filters__head, .filters__apply { display: none; }
	.sort-pills { grid-template-columns: repeat(4, auto); justify-content: start; }
	.sort-pill span { height: 40px; padding: 0 14px; }
	.filters .select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; font-size: var(--fs-15); }
	.filters .switch-row { align-self: center; font-size: var(--fs-14); }
	.filter-chips { display: none; }
}

/* ---------- Business profile ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: var(--s-5); padding-bottom: var(--s-3); font-size: var(--fs-13); color: var(--ink-500); }
.crumbs a { color: var(--ink-600); }
.crumbs [aria-current] { color: var(--navy-900); font-weight: 500; }
.biz-hero { position: relative; height: 240px; overflow: hidden; background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); }
.biz-hero > img { width: 100%; height: 100%; object-fit: cover; }
.biz-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 23, 42, 0.25), transparent 35%, transparent 60%, rgba(6, 23, 42, 0.35)); pointer-events: none; }
.biz-hero__art { position: absolute; inset: 0; display: grid; place-items: end center; }
.biz-hero__art img { width: 140%; max-width: none; opacity: 0.25; margin-bottom: -10px; }
.biz-hero__bar { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top, 0px)); left: 14px; right: 14px; display: flex; justify-content: space-between; }
.biz-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: -52px; padding: 0 0 4px; }
.biz-head .logo-tile--lg { z-index: 2; box-shadow: 0 0 0 4px var(--warm-white), var(--shadow-3); }
.biz-head__id h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; line-height: 1.12; }
.biz-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--ink-600); font-size: var(--fs-14); }
.biz-head__meta .icon { color: var(--gold); }
.biz-head__cat { display: inline-flex; align-items: center; gap: 6px; }
.dotsep::before { content: "•"; margin: 0 6px 0 0; color: var(--ink-400); }
.biz-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }
.biz-thumbs { display: grid; grid-template-columns: repeat(2, 82px); gap: 8px; align-self: center; }
.biz-thumbs button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--slate-50); }
.biz-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: var(--s-4) 0 0; }
.facts div { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--border); text-align: center; }
.facts dt { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--navy-900); }
.facts dd { margin: 0; font-size: var(--fs-12); color: var(--ink-500); }
.round-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: var(--s-4); }
.round-action { display: grid; justify-items: center; gap: 6px; font-size: var(--fs-12); font-weight: 500; color: var(--navy-900); }
.round-action span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gold-soft); border: 1px solid rgba(242, 168, 29, 0.3); color: var(--gold-deep); transition: transform var(--t) var(--ease-spring); }
.round-action:active span { transform: scale(0.92); }
.round-action--wa span { background: #e6f7ed; border-color: #bfe9cf; color: var(--whatsapp); }
.biz-tabs { display: flex; gap: 4px; margin-top: var(--s-5); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.biz-tabs::-webkit-scrollbar { display: none; }
.biz-tabs a { flex: none; padding: 12px 14px; color: var(--ink-500); font-size: var(--fs-14); font-weight: 500; border-bottom: 2px solid transparent; }
.biz-tabs a:hover { color: var(--navy-900); }
.biz-tabs a[aria-current] { color: var(--navy-900); border-bottom-color: var(--gold); }
.biz-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
.biz-desc { color: var(--ink-600); }
.biz-desc p { margin-bottom: var(--s-3); }
.biz-desc.is-clamped { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.svc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); background: var(--warm-white); border: 1px solid var(--border); font-size: var(--fs-14); color: var(--navy-900); }
.svc-chips .icon { color: var(--gold-deep); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery button { padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: var(--slate-50); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li + li { border-top: 1px solid var(--border); }
.contact-list a, .contact-list .row-static { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; color: var(--charcoal); font-size: var(--fs-14); overflow-wrap: anywhere; }
.contact-list a:hover .val { color: var(--gold-deep); }
.contact-list .icon { color: var(--gold-deep); margin-top: 2px; }
.map-card { position: relative; display: block; height: 120px; margin-top: var(--s-3); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #eef3f8, #e3eaf2); }
.map-card img { position: absolute; inset: auto -10% -14px -10%; width: 120%; max-width: none; opacity: 0.4; }
.map-card__pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: var(--gold); box-shadow: var(--shadow-3); }
.map-card__go { position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--gold); color: var(--navy-950); font-size: var(--fs-13); font-weight: 600; box-shadow: var(--shadow-gold); }
.owner-card { display: flex; align-items: center; gap: 12px; color: inherit; }
a.owner-card:hover { border-color: var(--slate-300); color: inherit; }
.owner-card__id { display: grid; flex: 1; min-width: 0; }
.owner-card__id small { font-size: var(--fs-12); color: var(--ink-500); }
.owner-card__id strong { color: var(--navy-900); }
.owner-card__go { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-13); font-weight: 600; color: var(--gold-deep); }
.save-dock { position: fixed; left: 16px; right: 16px; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 18px); z-index: 44; }
.save-dock .btn { min-height: 52px; box-shadow: 0 14px 30px -12px rgba(6, 23, 42, 0.6); }
.route-business .app-main { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 100px); }
@media (min-width: 1024px) {
	.biz-hero { height: 300px; margin: 0 var(--gutter); max-width: calc(var(--maxw) - 2 * var(--gutter)); border-radius: var(--r-2xl); }
	.route-business .wrap.crumbs, .route-business .biz-hero { margin-left: auto; margin-right: auto; }
	.route-business .biz-hero { width: calc(100% - 2 * var(--gutter)); }
	.biz-head { grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 22px; margin-top: -56px; padding: 0 24px; }
	.biz-head .logo-tile--lg { width: 128px; height: 128px; border-radius: 28px; }
	.biz-head__id { padding-bottom: 6px; }
	.biz-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); align-items: start; }
	.biz-aside { position: sticky; top: 24px; }
	.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.facts { max-width: 520px; }
	.route-business .app-main { padding-bottom: var(--s-16); }
}

/* ---------- My Profile ---------- */
.profile-page { padding-top: var(--s-2); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.me-card { display: grid; justify-items: center; gap: 4px; padding: var(--s-6) var(--s-5); border-radius: var(--r-2xl); background: radial-gradient(90% 50% at 50% 0%, rgba(242, 168, 29, 0.12), transparent 70%), var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-2); text-align: center; }
.me-card__photo { position: relative; margin-bottom: 8px; }
.me-card__photo input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.me-card__camera { position: absolute; right: 2px; bottom: 4px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-800); color: var(--white); border: 3px solid var(--white); box-shadow: var(--shadow-2); cursor: pointer; }
.me-card__camera.is-loading { opacity: 0.6; pointer-events: none; }
.me-card__name { font-family: var(--font-display); font-size: clamp(1.4rem, 5vw, 1.8rem); font-weight: 700; }
.me-card__role { margin: 0; color: var(--navy-700); font-weight: 500; }
.me-card__company { margin: 0; color: var(--ink-500); font-size: var(--fs-14); }
.me-card__status { margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; }
.me-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: var(--s-4) 0 0; border-radius: var(--r-lg); background: var(--warm-white); border: 1px solid var(--border); }
.me-stats div { display: grid; gap: 2px; padding: 12px 6px; }
.me-stats div + div { border-left: 1px solid var(--border); }
.me-stats dt { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy-900); }
.me-stats dd { margin: 0; font-size: var(--fs-12); color: var(--ink-500); }
.me-card__actions { display: grid; gap: 8px; width: 100%; margin-top: var(--s-4); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-1); margin-bottom: var(--s-4); }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-600); font-weight: 500; font-size: var(--fs-14); cursor: pointer; white-space: nowrap; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.seg button[aria-selected="true"] { background: var(--gold-soft); color: var(--navy-900); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(242, 168, 29, 0.4); }
.seg--scroll { overflow-x: auto; scrollbar-width: none; }
.seg--scroll::-webkit-scrollbar { display: none; }
.seg--scroll button { flex: 1 0 auto; }
.pane-in { animation: pane-in var(--t-slow) var(--ease-spring); }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } }
.complete-hint { display: grid; gap: 6px; margin-bottom: var(--s-4); padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(160deg, #fff9ea, var(--gold-soft)); color: var(--ink-600); font-size: var(--fs-14); }
.complete-hint .meter { margin-top: 0; background: rgba(255, 255, 255, 0.7); }
.info-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-14); color: var(--ink-600); overflow-wrap: anywhere; }
.info-list .icon { color: var(--gold-deep); margin-top: 3px; }
.my-biz { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-biz__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--warm-white); border: 1px solid var(--border); }
.my-biz__body { display: grid; gap: 6px; min-width: 0; }
.my-biz__body strong { color: var(--navy-900); overflow-wrap: anywhere; }
.my-biz__body .meter { margin-top: 0; }
.my-biz__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.my-biz__actions .btn { flex: 1; }
@media (min-width: 1024px) {
	.profile-layout { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
	.me-card { position: sticky; top: 24px; }
	.my-biz__item { grid-template-columns: auto minmax(0, 1fr) auto; }
	.my-biz__actions { grid-column: auto; }
	.my-biz__actions .btn { flex: none; }
}

/* ---------- Settings ---------- */
.settings-page { padding-top: var(--s-2); }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.user-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-1); color: inherit; }
.user-card:hover { color: inherit; border-color: var(--slate-300); }
.user-card__id { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.user-card__id strong { color: var(--navy-900); font-size: var(--fs-16); }
.user-card__id small { color: var(--ink-500); font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card__id em { font-style: normal; color: var(--gold-deep); font-size: var(--fs-13); font-weight: 600; }
.logout-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: var(--r-xl); background: var(--danger-soft); border: 1px solid #f6cfca; color: var(--danger); font-weight: 600; }
.logout-btn:hover { color: var(--danger); background: #fbe0dd; }
.acct-head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-4); }
.acct-head div { display: grid; }
.acct-head strong { color: var(--navy-900); font-size: var(--fs-16); }
.acct-head small { color: var(--ink-500); }
.kv { display: grid; gap: 0; margin: 0 0 var(--s-4); }
.kv div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.kv dt { color: var(--ink-500); font-size: var(--fs-14); }
.kv dd { margin: 0; color: var(--navy-900); font-weight: 500; overflow-wrap: anywhere; }
.person--lg { width: 72px; height: 72px; }
.person--lg .monogram { font-size: 28px; }
@media (min-width: 1024px) { .settings-layout { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } }

/* ---------- Business editor ---------- */
.editor-page { padding-top: var(--s-2); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.editor__nav { margin-bottom: 0; }
.editor__main { display: grid; gap: var(--s-4); min-width: 0; }
.editor__pane .panel__title { font-family: var(--font-display); font-size: var(--fs-20); font-weight: 700; margin-bottom: var(--s-4); }
.editor .sticky-save { position: sticky; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 18px); z-index: 20; display: flex; gap: 10px; justify-content: flex-end; padding: 10px; border-radius: var(--r-pill); background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--shadow-float); }
.editor .sticky-save .btn--primary { flex: 1; max-width: 260px; }
.logo-card { display: grid; justify-items: center; gap: 12px; }
.todo { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-14); color: var(--ink-600); }
.todo li::before { content: "＋"; margin-right: 8px; color: var(--gold-deep); font-weight: 700; }
@media (min-width: 1024px) {
	.editor { grid-template-columns: 220px minmax(0, 1fr) 280px; align-items: start; gap: var(--s-5); }
	.editor__nav { position: sticky; top: 24px; flex-direction: column; padding: 8px; border-radius: var(--r-xl); }
	.editor__nav button { justify-content: flex-start; min-height: 46px; border-radius: 12px; }
	.editor__side { position: sticky; top: 24px; display: grid; gap: var(--s-4); }
	.editor .sticky-save { bottom: 20px; }
	.editor-page.wrap--wide { max-width: 1240px; }
}
/* Without JavaScript every pane is shown in order. */
.editor:not(.tabs-ready) .editor__nav { display: none; }

/* ---------- Saved ---------- */
.saved-page { display: grid; gap: var(--s-4); padding-top: var(--s-2); }
.saved-tools { display: grid; gap: 10px; }
.saved-item { display: contents; }
.saved-item[hidden] { display: none !important; }
@media (min-width: 1024px) { .saved-tools { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; } }

/* ---------- Auth (login, register, recover, reset) ---------- */
.auth { position: relative; min-height: 100dvh; padding: calc(28px + env(safe-area-inset-top, 0px)) 0 48px; overflow: hidden; background: radial-gradient(70% 45% at 50% 0%, rgba(242, 168, 29, 0.12), transparent 70%), var(--warm-white); }
.auth__art { position: absolute; left: -15%; right: -15%; bottom: -6px; width: 130%; max-width: none; opacity: 0.18; pointer-events: none; }
.auth-card { position: relative; padding: var(--s-6) var(--s-5); border-radius: var(--r-2xl); background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-3); }
@media (min-width: 480px) { .auth-card { padding: var(--s-8); } }
@media (max-width: 479px) { .auth-card { background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: var(--s-2) 0; } }
.auth-card--wide { max-width: 520px; margin: 0 auto; }
.auth-logo { display: block; width: 104px; margin: 0 auto var(--s-4); }
.auth-card h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 6vw, 2.1rem); font-weight: 700; text-align: center; }
.auth-card .sub { margin: 8px auto var(--s-6); max-width: 34ch; text-align: center; color: var(--ink-500); font-size: var(--fs-14); }
.auth-back { position: absolute; top: 14px; left: 10px; }
@media (max-width: 479px) { .auth-back { position: static; margin: 0 0 8px -10px; } }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 var(--s-5); font-size: var(--fs-14); }
.auth-row a { font-weight: 600; color: var(--navy-800); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: var(--s-5) 0; color: var(--ink-400); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.auth-alt { margin: var(--s-4) 0 0; text-align: center; color: var(--ink-500); font-size: var(--fs-14); }
.auth-alt a { color: var(--navy-800); }
.auth .field .input-group { min-height: 54px; }
@media (min-width: 1024px) { .auth { padding-top: 120px; } }

/* ---------- Member page (uses the profile card) ---------- */
.route-member .profile-card { margin-top: var(--s-2); }

/* ---------- Onboarding (phones, first visit) ---------- */
.onboard { position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(70% 40% at 50% 0%, rgba(242, 168, 29, 0.14), transparent 70%), var(--warm-white); animation: fade-in var(--t-slow) var(--ease); }
.onboard.is-leaving { opacity: 0; transform: scale(1.02); transition: opacity 340ms var(--ease), transform 340ms var(--ease); }
.onboard__skip { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 2; padding: 8px 12px; border: 0; background: none; color: var(--navy-800); font-weight: 600; cursor: pointer; }
.onboard__track { display: flex; flex: 1; transition: transform 520ms var(--ease-spring); }
.onboard__slide { flex: 0 0 100%; display: flex; flex-direction: column; padding: calc(72px + env(safe-area-inset-top, 0px)) 26px 0; }
.onboard__title { font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.4rem); font-weight: 700; line-height: 1.12; }
.onboard__lead { margin-top: 12px; color: var(--ink-600); }
.onboard__art { position: relative; flex: 1; display: grid; place-items: center; }
.onboard__art img:first-child { position: relative; z-index: 1; width: 170px; filter: drop-shadow(0 18px 30px rgba(11, 34, 57, 0.2)); animation: logo-breathe 3s ease-in-out infinite; }
.onboard__lines { position: absolute; left: -20%; bottom: 0; width: 140%; max-width: none; opacity: 0.35; }
.onboard__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.onboard__list li { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.onboard__list li > span:last-child { display: grid; }
.onboard__list strong { color: var(--navy-900); }
.onboard__list small { color: var(--ink-500); font-size: var(--fs-13); }
.onboard__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); flex: none; }
.onboard__foot { display: grid; gap: 18px; padding: 20px 26px calc(26px + var(--safe-bottom)); }
.onboard__dots { display: flex; justify-content: center; gap: 6px; }
.onboard__dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--border-strong); transition: width var(--t-slow) var(--ease-spring), background var(--t) var(--ease); }
.onboard__dots span.on { width: 24px; background: var(--gold); }
.onboard__foot .btn { min-height: 56px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes logo-breathe { 50% { transform: scale(1.035); } }
@media (min-width: 1024px) { .onboard { display: none; } }

/* ---------- Narrow phones ---------- */
@media (max-width: 359px) {
	:root { --gutter: 12px; }
	.cat-tile__icon { width: 52px; height: 52px; }
	.bcard { grid-template-columns: 70px minmax(0, 1fr) auto; }
	.bcard__media { width: 70px; height: 70px; }
	.stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Shared bits ---------- */
.wrap--narrow { max-width: 760px; }
.sticky-save { position: sticky; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 18px); z-index: 20; display: flex; gap: 10px; justify-content: flex-end; padding: 10px; border-radius: var(--r-pill); background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--shadow-float); }
.sticky-save .btn--primary { flex: 1; max-width: 260px; }
@media (min-width: 1024px) { .sticky-save { bottom: 20px; } }

/* ---------- Smart search hint ---------- */
.search-hint { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 var(--s-3); padding: 10px 12px; border-radius: var(--r-md); background: var(--gold-soft); color: var(--navy-800); font-size: var(--fs-13); line-height: 1.45; }
.search-hint .icon { flex: none; margin-top: 2px; color: var(--gold-deep); }

/* ---------- People ---------- */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.results.is-loading .pgrid { opacity: 0.55; transition: opacity var(--t) var(--ease); }
.pcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-1); color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.pcard:hover { color: inherit; }
.pcard__body { display: grid; gap: 3px; min-width: 0; }
.pcard__name { font-family: var(--font-display); font-size: var(--fs-18); font-weight: 700; color: var(--navy-900); line-height: 1.2; overflow-wrap: anywhere; }
.pcard__role { font-size: var(--fs-13); font-weight: 500; color: var(--gold-deep); }
.pcard__biz, .pcard__cat { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-13); color: var(--ink-600); }
.pcard__biz .icon, .pcard__cat .icon { flex: none; color: var(--ink-400); }
.pcard__cat { color: var(--ink-500); }
.pcard__chev { color: var(--ink-400); }
.person--lg { width: 68px; height: 68px; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px rgba(201, 162, 39, 0.45); }
.person--lg .monogram { font-size: 26px; }
@media (hover: hover) { .pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); } }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1280px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Member page ---------- */
.member-page { padding-top: var(--s-4); }
.member-contact { width: 100%; margin-top: var(--s-5); }
.member-page .kv { margin-bottom: 0; }

/* ---------- Contact & privacy switches ---------- */
.switch-list { display: grid; gap: 4px; padding: 6px 16px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--border); }
.switch-list .switch-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.switch-list .switch-row:last-child { border-bottom: 0; }
.switch-row small { display: block; margin-top: 2px; font-size: var(--fs-12); font-weight: 400; color: var(--ink-500); }

/* ---------- Cover photo uploader ---------- */
.cover-uploader { display: grid; gap: 10px; margin-bottom: var(--s-6); }
.cover-uploader input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cover-uploader__head { display: grid; gap: 2px; }
.cover-tile { display: block; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--r-lg); background: var(--warm-white); border: 1px solid var(--border); }
.cover-tile img { width: 100%; height: 100%; object-fit: cover; }
.cover-tile--empty { display: grid; place-items: center; color: var(--ink-400); border-style: dashed; }
.cover-tile--empty .icon { width: 34px; height: 34px; }
.cover-uploader .row { display: flex; flex-wrap: wrap; gap: 8px; }
.image-uploader [data-recrop], .logo-card [data-recrop] { margin-top: 4px; }

/* ---------- Photo cropper ---------- */
html.cropper-open, html.cropper-open body { overflow: hidden; }
.cropper { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #05101d; color: var(--white); opacity: 0; transition: opacity 180ms ease-out; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.cropper.is-open { opacity: 1; }
.cropper__top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.cropper__heading { flex: 1; min-width: 0; text-align: center; }
.cropper__heading h2 { margin: 0; font-family: var(--font-sans); font-size: var(--fs-16); font-weight: 600; color: var(--white); }
.cropper__heading small { color: rgba(255, 255, 255, 0.6); font-size: var(--fs-12); }
.cropper__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--white); cursor: pointer; }
.cropper__icon .icon { width: 20px; height: 20px; }
.cropper__done { min-width: 76px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: linear-gradient(180deg, #ffd36b, var(--gold)); color: var(--navy-950); font: 600 var(--fs-15) var(--font-sans); cursor: pointer; }
.cropper__done[disabled] { opacity: 0.7; }
.cropper__stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.cropper__stage:active { cursor: grabbing; }
.cropper__stage:focus-visible .cropper__frame { outline: 2px solid var(--gold); outline-offset: 3px; }
.cropper__img { position: absolute; left: 0; top: 0; max-width: none !important; width: auto; height: auto; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.cropper__frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 9999px rgba(5, 16, 29, 0.66); border: 2px solid rgba(255, 255, 255, 0.9); pointer-events: none; }
.cropper__frame.is-circle { border-radius: 50%; }
.cropper__frame i { position: absolute; background: rgba(255, 255, 255, 0.28); }
.cropper__frame i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.cropper__frame i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.cropper__frame i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; }
.cropper__frame i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }
.cropper__frame.is-circle i { display: none; }
.cropper__tools { display: grid; gap: 12px; justify-items: center; padding: 12px 16px 16px; }
.cropper__ratios { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cropper__ratios[hidden] { display: none; }
.cropper__pill { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r-pill); background: transparent; color: var(--white); font: 500 var(--fs-14) var(--font-sans); cursor: pointer; }
.cropper__pill[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.cropper__zoom { display: flex; align-items: center; gap: 10px; width: min(100%, 420px); }
.cropper__zoom input { flex: 1; accent-color: var(--gold); height: 32px; }
.cropper__row { display: flex; gap: 10px; }
.cropper__tip { margin: 0; font-size: var(--fs-12); color: rgba(255, 255, 255, 0.55); text-align: center; }
@media (min-width: 1024px) { .cropper__tools { padding-bottom: 24px; } }

/* ---------- First sign-in: create your PIN ---------- */
.first-pin__hello { display: grid; justify-items: center; gap: 6px; margin-bottom: var(--s-4); text-align: center; }
.first-pin__badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); border: 1px solid rgba(242, 168, 29, 0.35); }
.first-pin__badge .icon { width: 26px; height: 26px; }
.first-pin__title { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(1.35rem, 5vw, 1.6rem); font-weight: 700; color: var(--navy-900); }
.first-pin__text { margin: 0; color: var(--ink-600); font-size: var(--fs-15); line-height: 1.5; }
.first-pin__number { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 6px 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--border); font-weight: 600; color: var(--navy-900); }
.first-pin__number .link-btn { font-weight: 500; }
.input--pin-big { height: 60px; font-size: 26px; font-weight: 600; letter-spacing: 0.5em; text-align: center; padding-left: 0.5em; }
.input--pin-big::placeholder { letter-spacing: 0.35em; color: var(--ink-400); }
[data-login-step="setup"] .field__label { font-size: var(--fs-15); font-weight: 600; color: var(--navy-900); }
[data-login-step="setup"] .field { margin-bottom: var(--s-4); }

/* ---------- Two-step login ---------- */
.input-group--big { min-height: 60px; }
.input-group--big .input { height: 58px; font-size: 20px; font-weight: 500; letter-spacing: 0.02em; }
.input-group--big .input-group__addon { font-size: var(--fs-16); font-weight: 600; }
.input-group--big .input--pin-big { font-size: 26px; letter-spacing: 0.5em; text-align: left; padding-left: 14px; }
[data-login-part="phone"] .field__label, [data-login-part="pin"] .field__label { font-size: var(--fs-15); font-weight: 600; color: var(--navy-900); }
[data-login-part] .field { margin-bottom: var(--s-4); }
[data-login-part="pin"], [data-login-step="setup"] { animation: fade-up 260ms var(--ease) both; }

/* ---------- Registration fee ---------- */
.fee-box { display: flex; gap: 12px; align-items: flex-start; margin: var(--s-5) 0 var(--s-4); padding: 14px 16px; border-radius: var(--r-lg); background: var(--gold-soft); border: 1px solid rgba(242, 168, 29, 0.35); }
.fee-box__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--gold-deep); }
.fee-box__title { margin: 0; font-size: var(--fs-15); color: var(--navy-900); }
.fee-box__title strong { font-family: var(--font-display); font-size: var(--fs-18); }
.fee-box__text { margin: 4px 0 0; font-size: var(--fs-13); color: var(--ink-600); line-height: 1.45; }
.state__icon--ok { background: #e6f7ed; color: var(--whatsapp); }
.pay-done { margin-top: var(--s-4); }
