/* =====================================================================
   My Smart GMB – owner pages (login, signup, dashboard)
   Design: indigo night + marigold, glass panels, floating motion.
   Business brand colour aata hai --accent se (head.php).
   ===================================================================== */
:root {
	--night: #1E1B4B;
	--night-2: #2B2770;
	--marigold: #FFB627;
	--porcelain: #F6F5FB;
	--lilac: #DCD7F5;
	--jade: #12B886;
	--rose: #E5484D;
	--ink: #1B1838;
	--ink-2: #4A4766;
	--ink-3: #7C7A96;
	--line: rgba(30, 27, 75, .09);
	--glass: rgba(255, 255, 255, .74);
	--accent: #1E1B4B;
	--on-accent: #fff;
	--ok: #0A7A59;
	--ok-bg: #E3F7EF;
	--bad: #B42318;
	--bad-bg: #FDECEC;
	--r-xl: 28px;
	--r-lg: 20px;
	--r-md: 14px;
	--shadow-float: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -18px rgba(30,27,75,.28), 0 2px 6px rgba(30,27,75,.06);
	--shadow-lift: 0 30px 60px -24px rgba(30,27,75,.38), 0 4px 10px rgba(30,27,75,.08);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);
	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--display: "Bricolage Grotesque", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--body: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh; background: var(--porcelain); color: var(--ink);
	font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; margin: 12px 0 4px; }
p { margin: 0 0 10px; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.center { text-align: center; }
.break { word-break: break-all; }
.warn-text { color: #8A5A00; }
.up { color: var(--ok); }
.down { color: var(--bad); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, white); outline-offset: 2px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
	--b: var(--accent);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px;
	font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .18s var(--ease-spring), box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary {
	background: var(--b); color: var(--on-accent); position: relative; overflow: hidden;
	box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--b) 80%, black), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary::after {
	content: ""; position: absolute; inset: 0; transform: translateX(-120%);
	background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
.btn-night { background: var(--night); color: #fff; }
.btn-light { background: rgba(30,27,75,.06); color: var(--ink); }
.btn-light:hover { background: rgba(30,27,75,.1); }
.btn-danger-light { background: var(--bad-bg); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }
.btn-block { width: 100%; margin-bottom: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; align-items: center; }
.btn-row form { margin: 0; }

/* ---------- Panels (card) ---------- */
.card {
	background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
	border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
	padding: 20px; margin-bottom: 14px;
}
.card > h2:first-child, .card > h1:first-child { margin-top: 0; }

/* ---------- Forms ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset[disabled] { opacity: .6; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field small { display: block; color: var(--ink-3); font-size: .78rem; margin-top: 5px; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"], input[type="number"],
input[type="datetime-local"], select, textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md);
	background: rgba(255,255,255,.88); border: 1px solid var(--line);
	transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
	outline: none; background: #fff; border-color: color-mix(in srgb, var(--accent) 60%, white);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
input:disabled { color: var(--ink-3); background: rgba(30,27,75,.03); }
input[type="color"] { width: 64px; height: 48px; padding: 4px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; cursor: pointer; }
input[type="file"] { font-size: .88rem; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; min-height: 80px; }
.grid-2, .grid-3 { display: grid; gap: 0 12px; }

/* ---------- Alerts, pills, chips ---------- */
.alert { border-radius: var(--r-md); padding: 12px 14px; font-size: .9rem; margin-bottom: 14px; animation: drop .45s var(--ease-spring) both; }
.alert ul { margin: 0; padding-left: 18px; }
.alert a { color: inherit; }
.alert-success { background: var(--ok-bg); color: #075E45; }
.alert-error { background: var(--bad-bg); color: #9B1C1C; }
.alert-warn { background: #FFF4DB; color: #7A4E00; }
.alert-info { background: color-mix(in srgb, var(--night) 7%, white); color: var(--night); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: rgba(30,27,75,.06); color: var(--ink-2); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-warn { background: #FFF4DB; color: #8A5A00; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 13px; border-radius: 999px; background: rgba(30,27,75,.06); color: var(--ink-2); text-decoration: none; font-size: .84rem; font-weight: 600; transition: background .2s; }
.chip:hover { background: rgba(30,27,75,.1); }
.chip.active { background: var(--night); color: #fff; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- Wordmark / logo ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: inherit; text-decoration: none; }
.wordmark i { width: 30px; height: 30px; border-radius: 10px 10px 10px 3px; display: grid; place-items: center; background: var(--marigold); color: var(--night); font-style: normal; font-size: .95rem; flex: 0 0 auto; }
.wordmark img { width: 30px; height: 30px; border-radius: 9px; }
.logo { border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.logo-letter {
	display: inline-grid; place-items: center; border: 0;
	background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: 1.3rem;
	box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--accent) 80%, black);
}
.logo-row { display: flex; gap: 14px; align-items: flex-start; }

/* ---------- One orchestrated entrance ---------- */
.rise > * { animation: rise .7s var(--ease-out) both; }
.rise > *:nth-child(2) { animation-delay: .06s; }
.rise > *:nth-child(3) { animation-delay: .12s; }
.rise > *:nth-child(4) { animation-delay: .18s; }
.rise > *:nth-child(5) { animation-delay: .24s; }
.rise > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }

/* =====================================================================
   AUTH (login, signup, forgot, reset, demo checkout)
   ===================================================================== */
.auth { display: grid; min-height: 100vh; }
.auth-sky {
	position: relative; overflow: hidden; color: #fff; padding: 28px 24px 190px;
	background:
		radial-gradient(120% 80% at 10% 0%, #3A3494 0%, transparent 60%),
		radial-gradient(90% 70% at 100% 100%, #5B2F7E 0%, transparent 55%),
		var(--night);
}
.auth-sky .wordmark { position: relative; z-index: 2; color: #fff; }
.auth-sky h1 { position: relative; z-index: 2; font-size: clamp(1.9rem, 7vw, 3.4rem); max-width: 12ch; margin: 34px 0 12px; color: #fff; }
.auth-sky p { position: relative; z-index: 2; color: #CFCBEF; max-width: 34ch; }
.bubbles {
	position: absolute; inset: 0; pointer-events: none; z-index: 1;
	-webkit-mask-image: linear-gradient(to top, #000 0%, #000 38%, transparent 62%); mask-image: linear-gradient(to top, #000 0%, #000 38%, transparent 62%);
}
.bubble {
	position: absolute; bottom: 60px; max-width: 175px; padding: 8px 11px; border-radius: 18px 18px 18px 6px;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px);
	color: #F2F0FF; font-size: .78rem; line-height: 1.4; opacity: 0;
	--travel: -360px;
	animation: float-up 12s linear infinite;
}
.bubble b { display: block; color: var(--marigold); letter-spacing: 1px; font-size: .74rem; margin-bottom: 2px; }
.bubble:nth-child(n+7) { display: none; }
.bubble:nth-child(1) { left: 4%; animation-delay: 0s; --r: -3deg; --sway: -22px; }
.bubble:nth-child(2) { left: 50%; animation-delay: -2s; --r: 3deg; --sway: 22px; }
.bubble:nth-child(3) { left: 22%; animation-delay: -4s; --r: -3deg; --sway: 18px; }
.bubble:nth-child(4) { left: 62%; animation-delay: -6s; --r: 3deg; --sway: -18px; }
.bubble:nth-child(5) { left: 8%; animation-delay: -8s; --r: -2deg; --sway: 24px; }
.bubble:nth-child(6) { left: 44%; animation-delay: -10s; --r: 2deg; --sway: -24px; }
.bubble:nth-child(7) { left: 70%; animation-delay: -12s; --r: -3deg; --sway: 20px; }
.bubble:nth-child(8) { left: 30%; animation-delay: -14s; --r: 3deg; --sway: -20px; }
.bubble:nth-child(9) { left: 56%; animation-delay: -16s; --r: -2deg; --sway: 22px; }
.bubble:nth-child(10) { left: 14%; animation-delay: -18s; --r: 2deg; --sway: -22px; }
@keyframes float-up {
	0% { transform: translate(0, 0) rotate(var(--r, 0deg)); opacity: 0; }
	10% { opacity: 1; }
	50% { transform: translate(var(--sway, 0), calc(var(--travel) / 2)) rotate(calc(var(--r, 0deg) * -1)); }
	85% { opacity: .9; }
	100% { transform: translate(0, var(--travel)) rotate(var(--r, 0deg)); opacity: 0; }
}

.auth-form { position: relative; z-index: 3; margin: -96px 14px 24px; }
.auth-panel { background: rgba(255,255,255,.94); backdrop-filter: blur(18px); border-radius: var(--r-xl); padding: 26px 22px; box-shadow: var(--shadow-lift); }
.auth-panel h1 { font-size: 1.55rem; margin-bottom: 4px; }
.auth-panel .card { background: transparent; box-shadow: none; border: 0; padding: 0; backdrop-filter: none; }
.auth-panel h2 { padding-top: 16px; margin-top: 8px; border-top: 1px dashed var(--line); font-size: 1rem; }
.auth-switch { text-align: center; margin: 16px 0 0; color: var(--ink-2); font-size: .92rem; }
.auth-switch a { font-weight: 700; color: var(--night); }
.auth-foot { text-align: center; color: var(--ink-3); font-size: .78rem; padding: 6px 16px 24px; }
.auth-foot a { color: var(--ink-2); font-weight: 600; margin-left: 10px; }
.auth .btn-primary { --b: var(--night); color: #fff; }

@media (min-width: 900px) {
	.auth { grid-template-columns: 1.05fr 1fr; position: relative; align-items: start; }
	/* Left side ruka rahe; sirf form scroll ho (heading kabhi na kate). */
	.auth-sky { padding: 44px 48px; position: sticky; top: 0; height: 100vh; min-height: 560px; }
	.auth-sky h1 { margin-top: 90px; }
	.bubbles { -webkit-mask-image: linear-gradient(to top, #000 0%, #000 45%, transparent 70%); mask-image: linear-gradient(to top, #000 0%, #000 45%, transparent 70%); }
	.bubble { max-width: 230px; font-size: .86rem; padding: 10px 14px; bottom: -90px; --travel: -700px; animation-duration: 20s; }
	.bubble:nth-child(n+7) { display: block; }
	.auth-form { margin: 0; display: grid; place-items: center; padding: 40px 40px 72px; min-height: 100vh; }
	.auth-panel { width: 100%; max-width: 440px; background: transparent; box-shadow: none; padding: 0; backdrop-filter: none; }
	.auth-form.wide .auth-panel { max-width: 540px; }
	.auth-foot { position: absolute; bottom: 0; right: 0; width: 48.8%; }
}

/* Plan cards (signup + billing) */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.plans-4 { grid-template-columns: 1fr 1fr; }
.plan { position: relative; cursor: pointer; display: block; }
.plan input { position: absolute; opacity: 0; }
.plan-body {
	display: block; height: 100%; padding: 14px; border-radius: var(--r-md); background: #fff; border: 2px solid var(--line);
	transition: border-color .2s, transform .25s var(--ease-spring), box-shadow .2s;
}
.plan input:checked + .plan-body { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--accent) 70%, black); }
.plan input:focus-visible + .plan-body { outline: 3px solid color-mix(in srgb, var(--accent) 50%, white); }
.plan-body strong { display: block; font-size: .88rem; color: var(--ink-2); }
.plan-price { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { font-family: var(--body); font-size: .76rem; font-weight: 500; color: var(--ink-3); }
.mini-ticks, .ticks { list-style: none; padding: 0; margin: 8px 0 0; }
.mini-ticks { font-size: .76rem; color: var(--ink-2); }
.mini-ticks li, .ticks li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.mini-ticks li::before, .ticks li::before { content: ""; position: absolute; left: 1px; top: .45em; width: 8px; height: 5px; border-left: 2px solid var(--jade); border-bottom: 2px solid var(--jade); transform: rotate(-45deg); }
.ticks { margin: 10px 0 16px; font-size: .94rem; }

/* Signup: chaaron plans */
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 16px; margin-top: 8px; border-top: 1px dashed var(--line); }
.plan-head h2 { border: 0; padding: 0; margin: 0 0 10px; }
.plan-head a { font-size: .86rem; font-weight: 700; color: var(--night); text-decoration: underline; text-underline-offset: 3px; }
.plans-pick { grid-template-columns: 1fr 1fr; gap: 10px; }
.plans-pick .plan-body { padding: 14px 12px 12px; position: relative; overflow: hidden; }
.plans-pick .plan-price { font-size: 1.4rem; margin: 2px 0 6px; }
.plan-trial { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 99px; padding: 2px 8px; }
.plan-note { display: block; margin-top: 8px; font-size: .76rem; line-height: 1.4; color: var(--ink-3); }
.plan-flag { position: absolute; top: 0; right: 0; background: var(--marigold); color: var(--night); font-size: .66rem; font-weight: 800; padding: 3px 9px; border-radius: 0 0 0 10px; }
.plan.is-star .plan-body { background: linear-gradient(160deg, #FFF8E6, #fff 60%); }
.plans-pick .plan input:checked + .plan-body { border-color: var(--night); box-shadow: 0 14px 28px -16px rgba(30,27,75,.6); }

.todo-list li::before { border-color: var(--marigold); }

/* =====================================================================
   APP SHELL (dashboard)
   ===================================================================== */
.app { position: relative; min-height: 100vh; isolation: isolate; }
.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.aura span:nth-child(1) { width: 420px; height: 420px; background: var(--lilac); top: -120px; right: -80px; }
.aura span:nth-child(2) { width: 360px; height: 360px; background: color-mix(in srgb, var(--accent) 30%, white); bottom: 10%; left: -140px; animation-duration: 32s; }
.aura span:nth-child(3) { width: 260px; height: 260px; background: #FFE3A3; top: 40%; right: 20%; opacity: .35; animation-duration: 38s; }
@keyframes drift { to { transform: translate(40px, 60px) scale(1.12); } }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.topbar {
	position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 16px; background: rgba(246,245,251,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.biz-mini { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.biz-mini .logo, .biz-mini .logo-letter { width: 36px; height: 36px; border-radius: 11px; font-size: 1rem; }
.biz-mini strong { display: block; font-family: var(--display); font-size: 1rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.biz-mini small { color: var(--ink-3); font-size: .76rem; }
.top-actions { display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(30,27,75,.06); display: grid; place-items: center; cursor: pointer; position: relative; color: var(--ink); text-decoration: none; }
.icon-btn .badge { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px var(--porcelain); }

.rail { display: none; }
.wrap { padding: 18px 14px 110px; max-width: 1180px; margin: 0 auto; width: 100%; }

.tabbar {
	position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(5, 1fr);
	padding: 6px; border-radius: 22px; background: rgba(30, 27, 75, .94); backdrop-filter: blur(14px);
	box-shadow: 0 18px 40px -16px rgba(30,27,75,.6); padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
.tabbar a, .tabbar button { border: 0; background: none; color: #A9A5D6; display: grid; justify-items: center; gap: 2px; padding: 7px 0; font-size: .68rem; font-weight: 600; border-radius: 16px; cursor: pointer; position: relative; text-decoration: none; }
.tabbar .on { color: #fff; background: rgba(255,255,255,.1); }
.tabbar .on::before { content: ""; position: absolute; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--marigold); }
.tabbar .icon { width: 22px; height: 22px; }
.tabbar .dot { position: absolute; top: 5px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(30,27,75,.35); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet {
	position: fixed; z-index: 41; left: 8px; right: 8px; bottom: 8px; padding: 10px 14px 18px; border-radius: 26px;
	background: #fff; box-shadow: var(--shadow-lift); transform: translateY(115%); transition: transform .45s var(--ease-spring);
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 12px; }
body.sheet-open .sheet { transform: translateY(0); }
body.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sheet-grid a { background: var(--porcelain); border-radius: 16px; padding: 14px 4px 10px; display: grid; justify-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--ink-2); text-decoration: none; text-align: center; }
.sheet-grid a.on { background: var(--night); color: #fff; }
.sheet-grid .icon { width: 22px; height: 22px; color: inherit; }

.toast {
	position: fixed; z-index: 60; left: 50%; top: 16px; transform: translate(-50%, -160%);
	background: var(--night); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem;
	box-shadow: var(--shadow-lift); transition: transform .5s var(--ease-spring); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast.show { transform: translate(-50%, 0); }

@media (min-width: 900px) {
	.app { display: grid; grid-template-columns: 264px 1fr; }
	.rail {
		display: flex; flex-direction: column; gap: 3px; position: sticky; top: 14px; height: calc(100vh - 28px);
		padding: 22px 14px; margin: 14px 0 14px 14px; border-radius: 24px; background: var(--night); color: #CFCBEF; overflow-y: auto; scrollbar-width: none;
	}
	.rail::-webkit-scrollbar { display: none; }
	.rail .wordmark { color: #fff; padding: 2px 10px 18px; }
	.rail-biz { display: flex; gap: 10px; align-items: center; padding: 12px; margin: 0 0 12px; border-radius: 16px; background: rgba(255,255,255,.07); }
	.rail-biz .logo, .rail-biz .logo-letter { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
	.rail-biz strong { color: #fff; font-size: .92rem; display: block; line-height: 1.2; }
	.rail-biz small { font-size: .74rem; }
	.rail a { color: inherit; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-weight: 600; font-size: .9rem; text-decoration: none; }
	.rail a:hover { background: rgba(255,255,255,.06); color: #fff; }
	.rail a.on { background: #fff; color: var(--night); }
	.rail .count { margin-left: auto; background: var(--rose); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 999px; }
	.rail-sep { height: 1px; background: rgba(255,255,255,.1); margin: 8px 6px; flex: 0 0 auto; }
	.rail-foot { margin-top: auto; }
	.topbar { background: transparent; border: 0; backdrop-filter: none; padding: 22px 28px 0; }
	.topbar .biz-mini { visibility: hidden; }
	.wrap { padding: 18px 28px 40px; }
	.tabbar, .sheet, .sheet-backdrop { display: none; }
	.grid-2 { grid-template-columns: 1fr 1fr; }
	.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
	.plans-4 { grid-template-columns: repeat(4, 1fr); }
	.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
	.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
}

/* =====================================================================
   Dashboard content
   ===================================================================== */
.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-title p { margin: 4px 0 0; color: var(--ink-3); }
.hello { font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }

.hero-card {
	position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px; color: #fff; margin-bottom: 14px;
	background:
		radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 70%, #fff) 0%, transparent 55%),
		linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
	box-shadow: var(--shadow-lift);
}
.hero-card h1 { color: #fff; font-size: clamp(1.35rem, 4.5vw, 2rem); position: relative; }
.hero-card p { color: #CFCBEF; margin: 4px 0 14px; max-width: 46ch; position: relative; }
.hero-rating { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; position: relative; }
.hero-rating .big { font-family: var(--display); font-size: 3.4rem; font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.hero-rating .stars { color: var(--marigold); font-size: 1.05rem; letter-spacing: 2px; }
.hero-rating .side { color: #CFCBEF; font-size: .86rem; padding-bottom: 6px; }
.hero-rating .side b { color: #fff; }
.hero-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; position: relative; }
.hero-actions .btn-gold { background: var(--marigold); color: var(--night); }
.hero-actions .btn-glass { background: rgba(255,255,255,.12); color: #fff; }
.floaters span { position: absolute; color: var(--marigold); opacity: .8; animation: bob 6s ease-in-out infinite; font-size: 1.1rem; }
.floaters span:nth-child(1) { top: 9%; right: 6%; }
.floaters span:nth-child(2) { bottom: 18%; right: 10%; font-size: .8rem; animation-delay: -2s; opacity: .55; }
.floaters span:nth-child(3) { bottom: 34%; right: 4%; font-size: .7rem; animation-delay: -4s; opacity: .4; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(12deg); } }

.biz { display: flex; gap: 16px; align-items: center; }
.biz h1 { margin-bottom: 2px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.stat {
	display: block; padding: 16px; color: inherit; text-decoration: none;
	background: var(--glass); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
	transition: transform .3s var(--ease-spring), box-shadow .3s;
}
a.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.stat strong { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; font-weight: 600; font-size: .86rem; margin-top: 6px; color: var(--ink); }
.stat small { display: block; font-size: .76rem; color: var(--ink-3); }
.stat small.up { color: var(--ok); }
.stat small.down { color: var(--bad); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid var(--line); font-size: .78rem; font-weight: 800; color: #fff; }
.checklist li.done .tick { background: var(--jade); border-color: var(--jade); }
.checklist li.done span:last-child { color: var(--ink-3); text-decoration: line-through; }
.checklist a { font-weight: 600; color: var(--ink); text-decoration: none; }
.progress { height: 8px; border-radius: 8px; background: rgba(30,27,75,.07); overflow: hidden; margin: 4px 0 12px; }
.progress i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--marigold)); animation: fill 1.2s var(--ease-out) both; }
@keyframes fill { from { width: 0; } }

/* Charts */
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--ink-2); flex-wrap: wrap; margin-bottom: 6px; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dot-a { background: color-mix(in srgb, var(--accent) 28%, white); }
.dot-b, .dot-a2 { background: var(--accent); }
.dot-c { background: var(--marigold); }
.chart { display: grid; gap: 4px; align-items: end; height: 170px; margin-bottom: 8px; grid-template-columns: repeat(14, 1fr); }
.chart-col { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; position: relative; }
.bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bars.stack { flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: 0; }
.bar { width: 42%; max-width: 16px; min-height: 2px; border-radius: 6px 6px 3px 3px; transform-origin: bottom; animation: grow .9s var(--ease-out) both; }
.bars.stack .bar { width: 62%; border-radius: 0; min-height: 0; }
.bars.stack .bar:last-child { border-radius: 5px 5px 0 0; }
.bar-a { background: color-mix(in srgb, var(--accent) 28%, white); }
.bar-b { background: color-mix(in srgb, var(--accent) 28%, white); }
.bar-a2 { background: var(--accent); }
.bar-c { background: var(--marigold); }
.chart:not(.report) .bar-b { background: var(--accent); }
.chart-col:nth-child(2) .bar { animation-delay: .03s; } .chart-col:nth-child(3) .bar { animation-delay: .06s; } .chart-col:nth-child(4) .bar { animation-delay: .09s; }
.chart-col:nth-child(5) .bar { animation-delay: .12s; } .chart-col:nth-child(6) .bar { animation-delay: .15s; } .chart-col:nth-child(7) .bar { animation-delay: .18s; }
.chart-col:nth-child(n+8) .bar { animation-delay: .21s; }
.chart-label { font-size: .6rem; color: var(--ink-3); margin-top: 4px; white-space: nowrap; transform: rotate(-45deg); height: 16px; }
@keyframes grow { from { transform: scaleY(0); } }
@media (min-width: 900px) { .chart-label { transform: none; } }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; color: var(--ink-3); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 6px; border-bottom: 1px solid var(--line); }
.table tr.me td { background: color-mix(in srgb, var(--accent) 7%, white); }

/* Keywords */
.kw { list-style: none; padding: 0; margin: 0; }
.kw li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kw li strong { font-family: var(--display); }
.kw .barbg { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(30,27,75,.06); overflow: hidden; }
.kw .barbg i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); animation: fill 1s var(--ease-out) both; }

/* Health ring */
@property --v { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring { width: 150px; height: 150px; border-radius: 50%; margin: 6px auto 12px; display: grid; place-items: center; position: relative;
	background: conic-gradient(var(--accent) calc(var(--v, 0) * 1%), rgba(30,27,75,.08) 0); transition: --v 1.4s var(--ease-out); }
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 2px 8px rgba(30,27,75,.06); }
.ring b { position: relative; font-family: var(--display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; }
.ring b small { font-size: .9rem; color: var(--ink-3); font-weight: 600; }
.health-list { list-style: none; padding: 0; margin: 0; }
.health-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.health-list li:last-child { border: 0; }
.health-list li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: .78rem; font-weight: 800; color: #fff; background: var(--jade); }
.health-list li.todo > span { background: var(--marigold); color: var(--night); }
.health-list small { display: block; color: var(--ink-3); }

/* Reviews */
.big-rating { font-size: 1rem; color: var(--ink-3); }
.big-rating strong { font-family: var(--display); font-size: 2rem; color: var(--ink); }
.review { position: relative; }
.review.low { box-shadow: var(--shadow-float), inset 3px 0 0 var(--rose); }
.review-head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-family: var(--display); color: var(--night); background: var(--lilac); flex: 0 0 auto; }
.stars { color: var(--marigold); letter-spacing: 1px; font-size: .9rem; }
.stars.s1, .stars.s2, .stars.s3 { color: var(--rose); }
.review-text { margin: 12px 0; font-size: .96rem; white-space: pre-line; }
.reply-box { background: color-mix(in srgb, var(--accent) 7%, white); border-radius: var(--r-md); padding: 12px 14px; font-size: .92rem; }
.reply-box p { margin: 4px 0 6px; white-space: pre-line; }
.reply-form textarea { margin: 6px 0 8px; min-height: 84px; }
details summary { cursor: pointer; color: var(--accent); font-size: .88rem; font-weight: 600; }
.ai-btn { background: linear-gradient(120deg, #EEE9FF, #FFF1D6) !important; color: var(--night) !important; }
.typing { border-right: 2px solid var(--accent) !important; }

/* QR */
.qr-hero { display: grid; gap: 18px; align-items: center; }
.qr-box {
	width: min(260px, 100%); margin: 8px auto 20px; padding: 18px; border-radius: 26px; background: #fff; position: relative;
	box-shadow: var(--shadow-lift); animation: hover 6s ease-in-out infinite; transition: transform .2s;
}
.qr-box::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -26px; height: 18px; border-radius: 50%; background: rgba(30,27,75,.18); filter: blur(10px); animation: shadow 6s ease-in-out infinite; z-index: -1; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-box .cap { text-align: center; font-family: var(--display); font-weight: 700; margin-top: 10px; color: var(--accent); }
@keyframes hover { 50% { transform: translateY(-10px); } }
@keyframes shadow { 50% { transform: scaleX(.8); opacity: .6; } }
.linkbox { display: flex; gap: 6px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin: 10px 0 14px; }
.linkbox a, .linkbox code { flex: 1; min-width: 0; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); text-decoration: none; font-family: var(--body); }
.designs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.design { padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease-spring), box-shadow .3s; }
.design:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-float); }
.design h3 { font-size: .86rem; margin: 9px 2px 2px; }
.design p { margin: 0 2px 8px; }
.design .btn-row { margin-top: auto; margin-bottom: 0; }
.design-thumb { background: #F1F0F7; border-radius: 12px; padding: 10px; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; }
.design-thumb svg { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 8px 18px -8px rgba(0,0,0,.3); background: #fff; }
@media (min-width: 900px) {
	.qr-hero { grid-template-columns: 300px 1fr; }
	.designs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) { .designs { grid-template-columns: repeat(4, 1fr); } }

/* Posts, competitors, standee, widget */
.festivals { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; margin-bottom: 4px; }
.festivals::-webkit-scrollbar { display: none; }
.fest { flex: 0 0 auto; border: 0; border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: .84rem; cursor: pointer; color: var(--night); background: #FFE3A3; transition: transform .25s var(--ease-spring); }
.fest:nth-child(5n+2) { background: #FFD1E8; } .fest:nth-child(5n+3) { background: #D6F5E3; } .fest:nth-child(5n+4) { background: var(--lilac); } .fest:nth-child(5n) { background: #E3EEFF; }
.fest:hover { transform: translateY(-3px) rotate(-1deg); }
.post-row, .result-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.post-row:last-child, .result-row:last-child { border-bottom: 0; }
.post-row p { margin-bottom: 4px; }
.post-row form, .result-row form { margin: 0; }
.search-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.search-row input[type="text"] { flex: 1; min-width: 200px; }
.search-row select { width: auto; }
.loc-list { display: grid; gap: 10px; margin-bottom: 14px; }
.loc-list .plan-body small { display: block; margin-top: 2px; font-size: .82rem; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 6px; }

/* Locked */
.locked { text-align: center; padding: 36px 20px; }
.lock-icon { width: 74px; height: 74px; border-radius: 24px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 1.8rem; background: linear-gradient(135deg, var(--night), var(--night-2)); color: var(--marigold); box-shadow: var(--shadow-lift); animation: hover 5s ease-in-out infinite; }
.locked .muted { max-width: 38ch; margin: 8px auto 18px; }
.connect-cta { border: 2px dashed color-mix(in srgb, var(--accent) 45%, white); }

.site-foot { text-align: center; color: var(--ink-3); font-size: .78rem; padding: 6px 16px 20px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.bubble { opacity: .9; }
	.bubble:nth-child(n+4) { display: none; }
	.bubble:nth-child(1) { bottom: 140px; } .bubble:nth-child(2) { bottom: 90px; } .bubble:nth-child(3) { bottom: 40px; }
}

/* Health layout + small helpers */
.health { display: grid; gap: 16px; }
.qr-info h2 { margin-top: 0; }
@media (min-width: 900px) { .health { grid-template-columns: 170px 1fr; align-items: start; } }
