/* AsanReview design system */
:root {
  color-scheme: light;
  --ink: #0d0f0e;
  --ink-2: #2f3432;
  --muted: #6a716d;
  --bg: #f7f8f7;
  --card: #ffffff;
  --line: #e6e8e6;
  --line-2: #f0f1f0;
  --brand: #0b8a52;
  --brand-2: #10a765;
  --brand-dark: #07693e;
  --brand-soft: #e7f7ee;
  --deep: #062b1d;
  --gold: #f5a524;
  --gold-soft: #fff5dd;
  --red: #c4321f;
  --red-soft: #fdecea;
  --blue: #1d5fd1;
  --blue-soft: #e9f1ff;
  --amber-ink: #8a5a00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 20, .05), 0 1px 3px rgba(12, 26, 20, .04);
  --shadow: 0 1px 2px rgba(12, 26, 20, .04), 0 8px 24px -8px rgba(12, 26, 20, .10);
  --shadow-lg: 0 2px 4px rgba(12, 26, 20, .04), 0 24px 48px -16px rgba(12, 26, 20, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15.5px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
small { font-size: .82rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 28px; padding-bottom: 56px; min-height: 72vh; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 10px 22px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 6px 12px rgba(6, 106, 62, .35)); transition: transform .2s; }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.04); }
.logo-text { display: grid; line-height: 1; }
.logo-word { font: 800 1.28rem/1 var(--display); letter-spacing: -.035em; }
.logo-word b { font-weight: 800; background: linear-gradient(120deg, #0a9a5c, #13c47a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-tag { margin-top: 4px; font: 600 .6rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.on-dark .logo-word { color: #fff; }
.on-dark .logo-word b { background: linear-gradient(120deg, #4ff0a8, #b7f7d6); -webkit-background-clip: text; background-clip: text; }
.on-dark .logo-tag { color: rgba(255, 255, 255, .55); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a:not(.btn) { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 13px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; transition: background .15s, color .15s; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--line-2); }
.nav a.on { color: var(--brand-dark); background: var(--brand-soft); }
.nav.right { justify-content: flex-end; gap: 6px; }
.who { display: flex; align-items: center; gap: 10px; }
.who-chip { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; max-width: 220px; }
.who-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: #fff; font: 700 .78rem var(--display); flex: none; }
.who-name { font-weight: 600; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; padding: 10px 18px;
  font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; color: #fff;
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -8px rgba(10, 143, 85, .8);
  transition: transform .12s, box-shadow .12s, filter .12s, background .12s;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--line-2); filter: none; }
.btn.ghost.danger { color: var(--red); }
.btn.dark { background: var(--ink); box-shadow: 0 8px 18px -10px rgba(12, 26, 20, .8); }
.btn.light { background: #fff; color: var(--deep); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.btn.small { padding: 6px 12px; font-size: .86rem; border-radius: 9px; }
.nav.right { gap: 10px; }
.nav.right .btn.small { padding: 8px 16px; font-size: .9rem; border-radius: 10px; }
/* navbar Log in: outline button that suits a white or a dark header */
.btn.login { background: #fff; color: var(--brand-dark); border-color: #b9dcc8; box-shadow: var(--shadow-sm); }
.btn.login:hover, .btn.login.on { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand-dark); filter: none; }
.btn.big { padding: 14px 26px; font-size: 1.02rem; border-radius: 13px; }
.btn.block { width: 100%; }
:focus-visible { outline: 3px solid rgba(18, 183, 106, .45); outline-offset: 2px; }

/* ---------- cards, grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2 { display: flex; align-items: center; gap: 9px; }
.card-head form { margin: 0; }
.card-sub { color: var(--muted); font-size: .9rem; margin: -8px 0 16px; }
.narrow-left { max-width: 680px; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid > .card { margin-bottom: 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-head form { margin: 0; }
.count { font: 600 .8rem var(--font); letter-spacing: 0; color: var(--muted); background: var(--line-2); padding: 3px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }

.stat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--muted); font-size: .86rem; font-weight: 500; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); }
.stat-icon.gold { background: var(--gold-soft); color: var(--amber-ink); }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat-value { font: 800 1.9rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat.feature { background: linear-gradient(135deg, var(--deep), #0b5a3a); border-color: transparent; color: #fff; }
.stat.feature .stat-label { color: rgba(255, 255, 255, .72); }
.stat.feature .stat-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.stat-link { color: inherit; font-size: .84rem; font-weight: 600; opacity: .9; }

/* ---------- forms ---------- */
.stack { display: grid; gap: 15px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: 400 .97rem var(--font); color: var(--ink); background: #fff; border: 1px solid #d5ddd8; border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #9aa8a1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(18, 183, 106, .16); }
textarea { resize: vertical; line-height: 1.5; }
input[type=file] { padding: 9px; background: var(--bg); border-style: dashed; }
input[type=file]::file-selector-button { font: 600 .85rem var(--font); margin-right: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.inline { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline select, .inline input { padding: 7px 10px; font-size: .88rem; }
.inline select { width: auto; }
.w-amount { width: 130px; }
.w-note { width: 140px; }
.search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.search input { width: 260px; max-width: 100%; padding: 8px 12px; }

/* ---------- notices, pills ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 12px; margin-bottom: 18px; font-size: .94rem; border: 1px solid transparent; }
.notice.ok { background: var(--brand-soft); color: var(--brand-dark); border-color: #c8ecd8; }
.notice.error { background: var(--red-soft); color: #8f1d14; border-color: #f8cfca; }
.notice.warn { background: var(--gold-soft); color: var(--amber-ink); border-color: #fbe3ac; }
.notice.info { background: var(--blue-soft); color: #17458f; border-color: #cfe0fb; }
.notice a { color: inherit; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.delivered, .pill.read, .pill.approved { background: var(--brand-soft); color: var(--brand-dark); }
.pill.failed, .pill.rejected { background: var(--red-soft); color: var(--red); }
.pill.pending, .pill.sent { background: var(--gold-soft); color: var(--amber-ink); }
.pill.opened { background: var(--blue-soft); color: var(--blue); }
.pill.none { background: transparent; color: var(--muted); border: 1px dashed #cdd6d1; }
.pill.plan { background: var(--deep); color: #fff; }
.pill.plan::before { background: var(--gold); opacity: 1; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 0 -22px -22px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 22px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; background: #fafbfa; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafcfb; }
tbody tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }
.out { color: var(--red); font-weight: 600; }
.in { color: var(--brand-dark); font-weight: 600; }
.actions { white-space: nowrap; text-align: right; }
.actions form { display: inline-block; margin: 0 0 0 6px; }
.person { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-dark); font: 700 .82rem var(--display); text-transform: uppercase; }
.person small { display: block; font-weight: 400; color: var(--muted); }
.table-note { color: var(--muted); font-size: .86rem; margin: 16px 0 0; }
.table-scroll + .table-note { margin-top: 38px; }
.empty { text-align: center; padding: 34px 16px 12px; color: var(--muted); }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--brand-soft); color: var(--brand-dark); }
.empty-icon .ico { width: 26px; height: 26px; }
.empty strong { display: block; color: var(--ink); font: 700 1.02rem var(--display); margin-bottom: 4px; }

/* ---------- wallet ---------- */
.wallet-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: 20px; margin-bottom: 18px; color: #fff; background: radial-gradient(600px 240px at 90% -20%, rgba(18, 183, 106, .55), transparent 60%), linear-gradient(135deg, var(--deep), #0a5236); box-shadow: var(--shadow); }
.wallet-hero .stat-label { color: rgba(255, 255, 255, .72); }
.balance { font: 800 2.6rem/1.05 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.wallet-meta { text-align: right; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.wallet-meta strong { display: block; color: #fff; font: 700 1.3rem var(--display); }
.step-num { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: #fff; font: 700 .8rem var(--display); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plain li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; overflow-wrap: anywhere; font-weight: 500; }
.plain li .ico { color: var(--brand-dark); }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: 980px; margin: 18px auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.auth-form { padding: 42px 44px; }
.auth-form h1 { margin-bottom: 6px; }
.auth-form > p { color: var(--muted); margin-bottom: 24px; }
.auth-side { position: relative; padding: 44px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 22px; background: radial-gradient(500px 300px at 100% 0%, rgba(18, 183, 106, .6), transparent 60%), linear-gradient(150deg, var(--deep), #0a5236); }
.auth-side h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .88); }
.ticks .ico { color: #6ee7a8; margin-top: 2px; width: 20px; height: 20px; }
.auth-alt { margin-top: 20px; color: var(--muted); font-size: .92rem; }

/* ---------- landing ---------- */
.section { padding: 76px 0; }
.section.tint { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* light-section helpers (used further down the page) */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; }
.step::before { counter-increment: step; content: "0" counter(step); font: 800 2.4rem/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px #b9d9c8; display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .stat-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.feature .stat-icon .ico { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.biz { margin-top: 44px; text-align: center; }
.biz h3 { font-size: 1.3rem; margin-bottom: 6px; }
.biz p { color: var(--muted); margin-bottom: 20px; }
.biz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.biz-chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 18px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; box-shadow: var(--shadow-sm); }
.plan-card.popular { background: linear-gradient(160deg, var(--deep), #0a5236); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan-tag { position: absolute; top: -12px; left: 24px; background: var(--gold); color: #3d2a00; font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.plan-name { font: 700 1.05rem var(--display); }
.plan-for { color: var(--muted); font-size: .88rem; margin: 2px 0 18px; }
.plan-card.popular .plan-for { color: rgba(255, 255, 255, .7); }
.price { font: 800 2.2rem/1 var(--display); letter-spacing: -.03em; }
.price small { display: block; margin-top: 8px; font: 500 .88rem var(--font); letter-spacing: 0; color: var(--muted); }
.plan-card.popular .price small { color: rgba(255, 255, 255, .7); }
.plan-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: .93rem; flex: 1; }
.plan-list li { display: flex; gap: 9px; align-items: flex-start; }
.plan-list .ico { color: var(--brand); margin-top: 3px; }
.plan-card.popular .plan-list .ico { color: #6ee7a8; }
.plans-note { text-align: center; color: var(--muted); margin: 26px 0 0; font-size: .93rem; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 1rem var(--display); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font); color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta-band { margin: 0 auto; padding: 56px 40px; border-radius: 28px; text-align: center; color: #fff; background: radial-gradient(700px 300px at 80% -20%, rgba(18, 183, 106, .7), transparent 60%), linear-gradient(135deg, var(--deep), #0a5236); box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .8); font-size: 1.06rem; margin-bottom: 26px; }

.foot { border-top: 1px solid var(--line); background: #fff; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; color: var(--muted); font-size: .88rem; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

.message-card { max-width: 480px; margin: 60px auto; text-align: center; }

/* five menu items: keep the app header on one line */
.is-app .top .logo-tag { display: none; }
.is-app .nav a:not(.btn) { padding: 8px 10px; }
@media (max-width: 1180px) { .is-app .who-chip { display: none; } }
@media (max-width: 720px) { .is-app .nav a:not(.btn) { padding: 7px 6px; font-size: .82rem; } }
@media (max-width: 380px) { .is-app .nav a:not(.btn) { padding: 6px 3px; font-size: .74rem; } }

.lang-switch { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: .86rem; }
.lang-switch span { padding: 0 6px; }
.lang-switch button { border: 0; background: transparent; font: 600 .86rem var(--font); color: var(--muted); padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.lang-switch button.on { background: var(--deep); color: #fff; }
textarea[dir=rtl] { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", Tahoma, sans-serif; line-height: 2; }

.mb { margin-bottom: 18px; }

/* ---------- rank grid on a map ---------- */
.rank-map, .pin-map { height: 300px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 12px; z-index: 0; background: var(--line-2); }
.pin-map { height: 320px; cursor: crosshair; }
.rank-dot { display: grid !important; place-items: center; border-radius: 50%; font: 800 .8rem var(--display); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.rank-dot.pin { font-size: 1rem; }
.rank-callouts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
details.pin-card > summary { list-style: none; cursor: pointer; }
details.pin-card > summary::-webkit-details-marker { display: none; }
details.pin-card > summary .card-head { margin-bottom: 0; }
details.pin-card[open] > summary .card-head { margin-bottom: 16px; }

/* ---------- API settings, rank trend ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 20px; }
code.copy { font-size: .85em; background: var(--line-2); padding: 2px 7px; border-radius: 6px; user-select: all; overflow-wrap: anywhere; }
span.check.mini { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 500; color: var(--muted); }
span.check.mini input { width: 14px; height: 14px; }
.stack.tight { gap: 8px; }
.rank-trend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .86rem; }
.trend-point { padding: 2px 8px; border-radius: 6px; background: var(--line-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.rank-list li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rank-list strong { font: 800 1.1rem var(--display); }

/* ---------- plan, agency, report, rank, legal ---------- */
.plan-card.current { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(18, 183, 106, .15); }
.plan-card form { margin: 0; }
label.check.mini { font-size: .78rem; font-weight: 500; color: var(--muted); gap: 5px; align-items: center; white-space: nowrap; }
label.check.mini input { width: 14px; height: 14px; margin: 0; }
.acting-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--deep); color: #fff; }
.acting-bar .btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.report-page { background: #fff; }
.report-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 28px; margin: 14px 0 18px; border-radius: 20px; color: #fff; background: radial-gradient(600px 240px at 90% -20%, rgba(18, 183, 106, .55), transparent 60%), linear-gradient(135deg, var(--deep), #0a5236); }
.report-head h1 { font-size: 2rem; margin: 12px 0 6px; }
.report-head p { margin: 0; color: rgba(255, 255, 255, .8); }
.report-brand { text-align: right; color: rgba(255, 255, 255, .75); font-size: .86rem; }
.report-brand strong { color: #fff; font: 700 1.1rem var(--display); }
.report-foot { font-size: .84rem; margin-top: 18px; }
.rank-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end; margin: 0; }
.rank-grid { display: grid; gap: 6px; max-width: 420px; margin: 0 auto; }
.rank-row { display: flex; gap: 6px; }
.rank-row span, .rank-key { flex: 1; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font: 700 .95rem var(--display); font-variant-numeric: tabular-nums; }
.rank-key { display: inline-grid; aspect-ratio: auto; padding: 2px 8px; font-size: .75rem; border-radius: 6px; }
.r-top { background: #12a55f; color: #fff; }
.r-mid { background: #f5c543; color: #3d2a00; }
.r-low { background: #f08a3c; color: #fff; }
.r-out { background: #d9483b; color: #fff; }
.legal { max-width: 820px; margin: 0 auto; padding: 32px; }
.legal h1 { margin-top: 6px; }
.legal h2 { margin: 26px 0 8px; font-size: 1.1rem; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.foot-links { flex-wrap: wrap; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 720px) {
  .rank-form { grid-template-columns: 1fr; }
  .legal { padding: 22px 18px; }
  .report-head { padding: 22px; }
  .report-brand { text-align: left; }
}
@media print {
  .no-print { display: none !important; }
  .report-page .wrap { max-width: none; padding: 0; }
  .stat, .card, .report-head { break-inside: avoid; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Google area ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; box-shadow: var(--shadow-sm); }
.tabs a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; }
.tabs a:hover { color: var(--ink); background: var(--line-2); }
.tabs a.on { background: var(--deep); color: #fff; }
.tabs a.on .count { background: rgba(255, 255, 255, .18); color: #fff; }
.upsell, .connect { text-align: center; max-width: 640px; margin: 24px auto; padding: 36px 28px; display: grid; gap: 14px; justify-items: center; }
.upsell .empty-icon, .connect .empty-icon { margin: 0; }
.upsell h2, .connect h2 { font-size: 1.4rem; }
.ticks.dark { text-align: left; }
.ticks.dark li { color: var(--ink-2); }
.ticks.dark .ico { color: var(--brand); }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.choice small { display: block; }
.mt { margin-top: 16px; }
.feed { display: grid; gap: 14px; }
.feed-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; background: #fff; }
.feed-item header { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.feed-item header > div { display: grid; gap: 1px; margin-right: auto; }
.feed-item .stars { font-size: .95rem; letter-spacing: 1px; }
.feed-item p { margin: 0; }
.feed-item form { margin: 0; }
.feed-item .inline { flex-wrap: wrap; }
.quote { padding: 10px 14px; background: var(--bg); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; white-space: pre-line; overflow-wrap: anywhere; }
.reply-done { padding: 10px 14px; background: var(--brand-soft); border-radius: 10px; white-space: pre-line; overflow-wrap: anywhere; }
.feed-item.post { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.post-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.post-body { display: grid; gap: 10px; min-width: 0; }
.post-body p { white-space: pre-line; overflow-wrap: anywhere; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.photo-grid img { display: block; width: 100%; height: 140px; object-fit: cover; }
.photo-grid figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: .8rem; color: var(--muted); }
.photo-grid form { margin: 0; }
fieldset.choices { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; display: grid; gap: 10px; min-width: 0; }
fieldset.choices legend { font-weight: 700; font-size: .9rem; padding: 0 6px; color: var(--ink-2); }
.star-picks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lock { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--amber-ink); white-space: nowrap; }
.save-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
@media (max-width: 720px) {
  .feed-item.post { grid-template-columns: 1fr; }
  .post-photo { width: 100%; height: 180px; }
  .tabs { width: 100%; }
  .tabs { justify-content: space-between; }
  .tabs a { padding: 8px 8px; font-size: .86rem; }
  .card-head .inline input { width: 100%; }
}

/* ---------- admin: own WhatsApp number ---------- */
.grid.tight { gap: 12px; margin-bottom: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: .92rem; }
.steps-list code { font-size: .85em; background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
.wa-cell { display: grid; gap: 4px; justify-items: start; }
.wa-cell a { font-size: .84rem; font-weight: 600; }

/* ---------- home header: dark glass over the hero, white after it ---------- */

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .75s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .22s; }
.hero-copy > :nth-child(5) { animation-delay: .28s; }
.hero-copy > :nth-child(6) { animation-delay: .34s; }
.hero-copy > :nth-child(7) { animation-delay: .4s; }
.shot { animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms); }
.reveal.shown { opacity: 1; transform: none; }

/* ---------- fact strip under the hero ---------- */
.strip { position: relative; z-index: 2; margin-top: -44px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.strip-grid > div { padding: 24px 22px; display: grid; gap: 4px; border-left: 1px solid var(--line-2); }
.strip-grid > div:first-child { border-left: 0; }
.strip-grid b { font: 800 1.9rem/1.05 var(--display); letter-spacing: -.03em; background: linear-gradient(120deg, #0a9a5c, #13c47a 60%, #d99a14); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip-grid span { color: var(--muted); font-size: .9rem; }

/* ---------- richer cards ---------- */
.feature { position: relative; overflow: hidden; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.feature::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(135deg, #22e08f, rgba(34, 224, 143, 0) 40%, rgba(255, 224, 138, 0) 60%, #f5a524);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.feature::after { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 224, 143, .13), transparent 70%); transition: transform .5s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature:hover::before { opacity: 1; }
.feature:hover::after { transform: scale(1.5); }
.feature .stat-icon { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.feature:hover .stat-icon { transform: translateY(-3px) rotate(-8deg); }
.steps { position: relative; }
.step { z-index: 1; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #bfe5cf; }
.step:hover::before { -webkit-text-stroke-color: #22c47a; }
.step::before { transition: -webkit-text-stroke-color .25s; }
@media (min-width: 901px) {
  .steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 54px; border-top: 2px dashed #c6e3d3; z-index: 0; }
}
.plan-card { transition: transform .25s, box-shadow .25s; }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.popular { transform: scale(1.03); }
.plan-card.popular:hover { transform: scale(1.03) translateY(-6px); }
.faq details { transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: #bfe5cf; box-shadow: var(--shadow); }
.faq details[open] p { animation: rise .35s ease both; }
.biz-chips span { transition: transform .2s, border-color .2s, box-shadow .2s; }
.biz-chips span:hover { transform: translateY(-3px); border-color: #9fdcbc; box-shadow: var(--shadow); }
.cta-band { position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 224, 138, .12), transparent 30%); animation: spin 14s linear infinite; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- public footer ---------- */
/* centred on every screen: logo, line about us, WhatsApp, links, payment, copyright */
.site-foot { position: relative; overflow: hidden; background: radial-gradient(700px 260px at 50% 0%, rgba(34, 224, 143, .12), transparent 70%), #06120d; color: rgba(255, 255, 255, .7); padding-top: 64px; }
.foot-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.foot-center > .brand .logo-mark { width: 48px; height: 48px; }
.foot-center > .brand .logo-word { font-size: 1.5rem; }
.foot-about { max-width: 440px; margin: 18px auto 22px; line-height: 1.7; font-size: .98rem; }
.foot-links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; margin: 34px 0 0; padding: 22px 0; width: 100%; max-width: 760px; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-links-row a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 14px; border-radius: 999px; transition: color .15s, background .15s; }
.foot-links-row a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.foot-pay { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 26px; }
.foot-label { font: 700 .72rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.pay-chips { justify-content: center; }
.foot-wa { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 12px; background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .3); color: #86f2b4; text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .2s; }
.foot-wa:hover { background: rgba(37, 211, 102, .2); }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chips span { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: #fff; border-radius: 999px; padding: 6px 13px; font-size: .84rem; font-weight: 500; }
.foot-bottom { display: flex; justify-content: center; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 30px; padding: 0 0 30px; font-size: .85rem; color: rgba(255, 255, 255, .5); }
.foot-help { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.foot-help:hover { text-decoration: underline; }
.foot-row { justify-content: center; text-align: center; }

/* ---------- install-the-app popup ---------- */
.install { position: fixed; z-index: 60; left: 50%; bottom: 18px; width: min(430px, calc(100% - 24px)); display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 18px;
  color: #fff; background: linear-gradient(160deg, rgba(14, 40, 29, .97), rgba(6, 18, 13, .97)); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .2), 0 0 60px -20px rgba(34, 224, 143, .35);
  transform: translate(-50%, 150%); transition: transform .5s cubic-bezier(.2, .9, .25, 1.1); }
.install[hidden] { display: none; }
.install.open { transform: translate(-50%, 0); }
.install .logo-mark { width: 58px; height: 58px; }
.install h3 { color: #fff; font-size: 1.05rem; margin: 3px 0 4px; padding-right: 22px; }
.install p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .88rem; line-height: 1.5; }
.install-perks { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.install-perks li { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #b7f7d6; }
.install-perks .ico { width: 14px; height: 14px; }
.install-ios { grid-column: 1 / -1; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .2); border-radius: 14px; padding: 11px 13px; font-size: .88rem; line-height: 1.55; }
.install-ios[hidden] { display: none; }
.install-ios .ico { color: #4ff0a8; }
.install-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.install-actions .btn { flex: 1; }
.install-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.install-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }
@media (min-width: 900px) {
  .install { left: auto; right: 24px; bottom: 24px; transform: translateY(150%); }
  .install.open { transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 1120px) {
  .who-chip { display: none; }
}
@media (max-width: 1000px) {
  .is-app .nav .ico { display: none; }
  .is-app .nav a:not(.btn) { padding: 8px 10px; }
  .is-public .nav:not(.right) { display: none; }
  .is-public .nav.right { flex: 1; }
  .top .logo-tag { display: none; }
}
@media (max-width: 900px) {
  .hero { padding: 52px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .shot { max-width: 640px; margin: 0 auto; width: 100%; }
  .toast.rv { right: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top-row { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .is-app .who-chip { display: none; }
  .is-app .who { margin-left: auto; }
  .is-app .nav { order: 3; flex-basis: 100%; overflow-x: auto; justify-content: space-between; gap: 2px; scrollbar-width: none; }
  .is-app .nav a:not(.btn) { padding: 7px 10px; font-size: .88rem; }
  .is-app .nav .ico { display: none; }
  .top .logo-tag { display: none; }
  .top .logo-mark { width: 34px; height: 34px; }
  .is-public .nav:not(.right) { display: none; }
  .is-public .nav.right { flex: 1; }
  .grid.four { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 1.45rem; }
  .card { padding: 18px; }
  .table-scroll { margin: 0 -18px -18px; }
  th, td { padding: 12px 18px; }
  .auth-form { padding: 28px 22px; }
  .wallet-hero { padding: 22px; }
  .balance { font-size: 2.1rem; }
  .wallet-meta { text-align: left; }
  .cta-band { padding: 40px 22px; border-radius: 22px; }
  .actions form { margin-left: 4px; }
  .strip { margin-top: -30px; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid > div { padding: 18px 16px; border-left: 0; border-top: 1px solid var(--line-2); }
  .strip-grid > div:nth-child(-n+2) { border-top: 0; }
  .strip-grid > div:nth-child(even) { border-left: 1px solid var(--line-2); }
  .strip-grid b { font-size: 1.5rem; }
  .site-foot { padding-top: 48px; }
  .foot-about { font-size: .93rem; margin: 14px auto 18px; }
  .foot-links-row { margin-top: 28px; padding: 16px 0; gap: 2px; }
  .foot-links-row a { font-size: .9rem; padding: 6px 10px; }
  .foot-bottom { flex-direction: column; gap: 4px; margin-top: 24px; padding-bottom: 32px; }
  .foot-dot { display: none; }
  .plan-card.popular, .plan-card.popular:hover { transform: none; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-stats { grid-template-columns: 1fr 1fr; }
  .hero-links { gap: 22px; }
  .toast { font-size: .76rem; padding: 8px 11px; }
  .stage, .shot:hover .stage { transform: rotateX(7deg) rotateY(-10deg) rotateZ(2deg); padding: 26px 0 54px 52px; }
  .hero-grid { gap: 44px; }
  .app-alert { display: none; }
  .tablet { border-radius: 18px; padding: 9px; }
  .tablet::after { inset: 9px; }
  .app-main { padding: 10px; gap: 8px; }
  .app-row:nth-child(4) { display: none; }
  .phone3d { width: 128px; border-radius: 22px; padding: 6px; left: 8px; transform: translateZ(50px); }
  .phone3d::after { inset: 6px; border-radius: 16px; }
  .phone-notch { top: 10px; width: 38px; height: 10px; margin-left: -19px; }
  .wa { border-radius: 16px; font-size: .5rem; }
  .wa-top { padding: 20px 8px 6px; gap: 6px; }
  .wa-top .avatar { width: 20px; height: 20px; font-size: .5rem; }
  .wa-top strong { font-size: .6rem; }
  .wa-top small { display: none; }
  .wa-chat { min-height: 150px; padding: 8px 6px 12px; }
  .shot-caption { padding-left: 52px; }
  .toast.rv { top: 14px; right: 4px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  .is-app .nav a:not(.btn) { padding: 6px 5px; font-size: .8rem; }
  .is-public .nav.right { gap: 2px; }
  .is-public .nav.right a:not(.btn) { padding: 6px 7px; font-size: .86rem; }
  .is-public .nav.right .btn.small { padding: 6px 10px; font-size: .82rem; }
  .is-public .nav.right .arrow { display: none; }
  .brand { gap: 7px; }
  .top .logo-mark { width: 30px; height: 30px; }
  .logo-word { font-size: 1.02rem; }
  .hero h1 { font-size: 2.3rem; }
  .page-head .btn, .page-head form, .page-head form .btn { width: 100%; white-space: normal; }
  .grid.four { grid-template-columns: 1fr; }
  .strip-grid b { font-size: 1.3rem; }
  .stage, .shot:hover .stage { padding-left: 40px; }
  .phone3d { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- filters, dashboard feeds, checklist, AI writer ---------- */
.chips { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); max-width: 100%; overflow-x: auto; }
.chips a { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.chips a.on { background: var(--deep); color: #fff; }
.chips a.on .count { background: rgba(255, 255, 255, .18); color: #fff; }
.chips .count { font-size: .74rem; padding: 2px 7px; }
.mini-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.mini-feed li + li { border-top: 1px solid var(--line-2); padding-top: 14px; }
.mini-feed img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.mini-feed p { margin: 3px 0 4px; overflow-wrap: anywhere; }
.mini-feed .stars { color: #e0a100; letter-spacing: 1px; font-size: .9rem; white-space: nowrap; }
.checklist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font-weight: 600; }
.checklist li.done { color: var(--muted); font-weight: 500; text-decoration: line-through; }
.checklist .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .78rem; text-decoration: none; }
.checklist li.done .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.checklist a { text-decoration: none; }
.ai-box { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--brand); border-radius: 14px; background: var(--brand-soft); }
.ai-box strong { display: flex; align-items: center; gap: 8px; }
.ai-box small { display: block; }
.why { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); font-size: .9rem; }
.why .ico { flex: none; color: var(--brand-dark); margin-top: 2px; }
details.preview { margin-bottom: 14px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; background: var(--bg); }
details.preview summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
details.preview summary::-webkit-details-marker { display: none; }
details.preview .bubble { margin: 12px 0 8px; padding: 12px 14px; max-width: 520px; background: #dcf8c6; color: #0b1f14; border-radius: 4px 14px 14px 14px; overflow-wrap: anywhere; }
.plain li > span { flex: 1; min-width: 0; }
.plain li .copy { flex: none; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- phones: the menu sits at the bottom of the screen, under the thumb ---------- */
@media (max-width: 720px) {
  .is-app .top { backdrop-filter: none; background: #fff; }
  .is-app .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; order: 0; flex: none; flex-basis: auto; display: flex; justify-content: space-around; gap: 0; overflow-x: auto; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(6, 18, 13, .08); }
  .is-app .nav a:not(.btn) { flex: 1 0 auto; min-width: 54px; flex-direction: column; gap: 3px; padding: 6px 4px; font-size: .68rem; border-radius: 10px; }
  .is-app .nav .ico { display: block; width: 20px; height: 20px; }
  body.is-app { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .is-app .save-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .is-app .install { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media print { .is-app .nav { display: none; } body.is-app { padding-bottom: 0; } }

/* ---------- local ranking report (rank grid) ---------- */
.rk-label { display: block; font: 700 .68rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: #c2540a; }
.rk-search { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 14px 18px; border: 1px solid #f6dcc3; background: #fff6ec; border-radius: 14px; margin-bottom: 14px; }
.rk-search strong { font: 800 1.1rem var(--display); }
.rk-search .muted { margin-left: auto; font-size: .86rem; }
.rk-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.rk-tiles > div { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.rk-tiles .rk-label { color: var(--muted); }
.rk-value { font: 800 1.7rem/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rk-value.top, .rk-top { color: #12a55f; } .rk-value.mid, .rk-mid { color: #c98e00; } .rk-value.low, .rk-low { color: #e0731d; } .rk-value.out, .rk-out { color: #d9483b; }
.rk-tiles small, .rk-bands small, .rk-leaders small { color: var(--muted); font-size: .8rem; }
.rk-h { font: 800 1.15rem var(--display); margin: 22px 0 2px; }
.rk-sub { margin: 0 0 12px; font-size: .9rem; }
.rank-map { height: 440px; max-width: 640px; margin-left: auto; margin-right: auto; }
.rank-dot { border: 3px solid #fff; }
.r-top { background: #12a55f; color: #fff; } .r-mid { background: #f5c543; color: #3d2a00; } .r-low { background: #f08a3c; color: #fff; } .r-out { background: #d9483b; color: #fff; }
.rk-legend { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 16px; font-size: .84rem; color: var(--muted); }
.rk-legend i { width: min(320px, 45%); height: 8px; border-radius: 99px; background: linear-gradient(90deg, #12a55f, #e5b420, #f08a3c, #d9483b); }
.rk-bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rk-bands > div { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.rk-bands strong { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.rk-bands .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rk-bands p { margin: 6px 0 2px; color: var(--muted); } .rk-bands p b { font: 800 1.5rem var(--display); color: var(--ink); margin-right: 4px; }
.rk-summary { margin: 14px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-weight: 700; }
.rk-summary.good { color: #0e8a4f; } .rk-summary.bad { color: #c53a2e; } .rk-summary.mixed { color: #a86a00; }
.table-scroll.flat { margin: 0; border: 1px solid var(--line); border-radius: 14px; }
.rk-table { font-size: .9rem; } .rk-table td small { font-size: .8rem; }
.rk-table tr.you { background: #fff6ec; }
.rk-table .win { color: #12a55f; font-weight: 800; } .rk-table .lose { color: #d9483b; font-weight: 800; }
.you-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #e0580c; color: #fff; font: 800 .66rem var(--font); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.rk-leaders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.rk-leaders > div { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.rk-leaders > div.you { background: #fff6ec; border-color: #f6dcc3; }
.rk-leaders strong { overflow-wrap: anywhere; }
.rk-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.rk-insights > div { border-radius: 16px; padding: 16px 18px; border: 1px solid; }
.rk-insights h4 { margin: 0 0 10px; font: 800 1rem var(--display); }
.rk-insights .beat { background: #fdf0ef; border-color: #f6d3cf; } .rk-insights .beat h4 { color: #c53a2e; }
.rk-insights .good { background: #edf9f2; border-color: #c9ecd9; } .rk-insights .good h4 { color: #0e8a4f; }
.rk-insights .next { background: #fff6ec; border-color: #f6dcc3; } .rk-insights .next h4 { color: #c2540a; }
.rk-insights ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.rk-insights li strong { display: block; } .rk-insights li span { color: #47524c; font-size: .9rem; }
.report-stars { margin-top: 8px !important; } .report-stars span { color: #ffc531; letter-spacing: 2px; }
@media (max-width: 900px) { .rk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rk-insights { grid-template-columns: 1fr; } .rk-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rk-tiles, .rk-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rk-search .muted { margin-left: 0; } .rank-map { height: 340px; } .rk-value { font-size: 1.4rem; } }
@media print { .report-card { break-after: page; border: 0; box-shadow: none; padding: 0; } .rk-h.break { break-before: page; } .rk-tiles > div, .rk-bands > div, .rk-insights > div, .rk-leaders > div, .rk-table tr { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .rank-map { height: 420px; } }

[hidden] { display: none !important; }

/* ---------- the saved location, always in view ---------- */
.pin-card { scroll-margin-top: 90px; }
.pin-now { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.pin-now.set { border-color: #c9ecd9; background: #edf9f2; }
.pin-now > div { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.pin-now strong { font: 800 1.05rem var(--display); }
.pin-star { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #12a55f; color: #fff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.pin-new { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fff6ec; border: 1px solid #f6dcc3; font-weight: 600; }


/* ==========================================================================
   v3: calmer, denser, quieter. One typeface, hairlines, a side menu on wide screens.
   ========================================================================== */
body { font-size: 15px; letter-spacing: -.006em; font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.035em; }
h2 { font-size: 1.02rem; font-weight: 600; }
h3 { font-size: .98rem; font-weight: 600; }
::selection { background: rgba(16, 167, 101, .22); }

.btn { border-radius: 9px; padding: 9px 16px; font-weight: 500; font-size: .92rem; background: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 1px 2px rgba(13, 15, 14, .2); transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { filter: none; transform: none; background: #262a28; }
.btn:active { transform: scale(.985); }
.btn.ghost { box-shadow: 0 1px 1px rgba(13, 15, 14, .04); }
.btn.ghost:hover { background: #f4f5f4; border-color: #d6dad7; }
.btn.small { padding: 6px 11px; font-size: .84rem; border-radius: 8px; }
.btn.big { padding: 12px 22px; font-size: .98rem; border-radius: 11px; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #f1f3f2; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .08); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn .arrow { display: none; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: .9rem; }

.card, .stat { border-radius: var(--radius); box-shadow: 0 1px 2px rgba(13, 15, 14, .03); }
.card { padding: 22px 24px; }
.stat { padding: 18px 20px; gap: 8px; }
.stat-value { font-weight: 600; font-size: 1.85rem; letter-spacing: -.04em; }
.stat-label { font-size: .84rem; }
.stat-icon { width: 30px; height: 30px; border-radius: 8px; }
.stat-icon .ico { width: 16px; height: 16px; }
.stat.feature, .wallet-hero { background: radial-gradient(520px 220px at 100% -10%, rgba(61, 220, 151, .3), transparent 62%), #0b0d0c; }
.balance { font-weight: 600; letter-spacing: -.045em; }
.wallet-meta strong { font-weight: 600; }
.page-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head p { font-size: .94rem; }
.card-head h2 .ico { color: var(--muted); }

input, select, textarea { border-color: #dcdfdc; border-radius: 9px; padding: 10px 12px; font-size: .94rem; box-shadow: 0 1px 1px rgba(13, 15, 14, .03); }
input:hover, select:hover, textarea:hover { border-color: #c8cdc9; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(16, 167, 101, .16); }
label { font-weight: 500; font-size: .88rem; }

th { background: transparent; font-size: .72rem; letter-spacing: .04em; font-weight: 500; padding-top: 11px; padding-bottom: 11px; }
td { font-size: .93rem; }
tbody tr:hover { background: #fafbfa; }
.avatar, .who-avatar, .step-num { font-weight: 600; }
.pill { font-weight: 500; font-size: .76rem; padding: 2px 9px; }
.pill.plan { background: var(--ink); }
.notice { border-radius: 10px; font-size: .92rem; padding: 11px 14px; }
.empty-icon { border-radius: 14px; background: #f1f3f2; color: var(--ink-2); }
.empty strong { font-weight: 600; }
.auth-form h1 { font-size: 1.7rem; }
.auth-side h2 { font-weight: 600; letter-spacing: -.03em; }
.count { font-weight: 500; }

.is-app .logo-mark { width: 30px; height: 30px; filter: none; }
.is-app .logo-word { font-size: 1.06rem; font-weight: 700; }
.is-app .logo-word b { font-weight: 700; background: none; color: var(--brand); -webkit-text-fill-color: currentColor; }
.is-app .nav a:not(.btn) { font-weight: 500; color: var(--ink-2); }
.is-app .nav a.on { background: rgba(13, 15, 14, .06); color: var(--ink); }
.is-app .nav a.on .ico { color: var(--brand); }
.foot { background: transparent; }

/* wide screens: the menu becomes a side bar, like a desktop app */
@media (min-width: 1001px) {
  body.is-app { padding-left: 236px; }
  .is-app .top { position: fixed; inset: 0 auto 0 0; width: 236px; border-bottom: 0; border-right: 1px solid var(--line); background: #fbfcfb; backdrop-filter: none; }
  .is-app .top-row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; height: 100%; min-height: 0; padding: 18px 12px 14px; max-width: none; }
  .is-app .top .brand { padding: 2px 8px; }
  .is-app .nav { flex-direction: column; align-items: stretch; gap: 2px; overflow-y: auto; }
  .is-app .nav a:not(.btn) { padding: 8px 10px; font-size: .9rem; border-radius: 8px; gap: 10px; }
  .is-app .nav .ico { display: block; width: 17px; height: 17px; color: var(--muted); }
  .is-app .who { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
  .is-app .who-chip { display: flex; max-width: none; border: 0; background: transparent; padding: 4px 6px; }
  .is-app .logout .btn { width: 100%; justify-content: flex-start; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); padding: 8px 10px; }
  .is-app .logout .btn:hover { background: rgba(13, 15, 14, .05); color: var(--ink); }
  .is-app .wrap { max-width: 1160px; padding: 0 32px; }
  .is-app .page { padding-top: 34px; }
}
@media print { body.is-app { padding-left: 0; } .is-app .top { position: static; width: auto; border: 0; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); }
.skip:focus { left: 8px; }
@media (max-width: 1000px) { .is-app .nav a.nav-wide { display: none; } }


/* ==========================================================================
   v4: the brand back in the app. Deep-green side bar, green actions, fuller cards.
   ========================================================================== */
h1 { font-weight: 800; font-size: 1.75rem; letter-spacing: -.03em; }
h2 { font-weight: 700; font-size: 1.08rem; }
h3 { font-weight: 700; }
body.is-app { background: radial-gradient(900px 420px at 100% -10%, rgba(18, 183, 106, .07), transparent 60%), #f4f7f5; }

.btn { color: #fff; font-weight: 600; background: linear-gradient(180deg, #14b86d, #0a8f55); border-radius: 10px; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 18px -10px rgba(10, 143, 85, .9); }
.btn:hover { background: linear-gradient(180deg, #17c476, #0b9a5c); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--ink); font-weight: 600; }
.btn.ghost:hover { background: #f1f6f3; border-color: #c9ddd1; transform: none; }
.btn.dark { background: #0c1a14; }
.btn.light { background: #fff; color: #062b1d; }
.btn.light:hover { background: #eefaf3; }
.btn.outline-light { background: transparent; }

.card, .stat { border: 1px solid #e2eae5; border-radius: 18px; box-shadow: 0 1px 2px rgba(12, 26, 20, .04), 0 12px 28px -22px rgba(12, 26, 20, .28); }
.card { padding: 24px 26px; }
.card-head h2 .ico { color: var(--brand); }
.stat { padding: 20px 22px; gap: 10px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(12, 26, 20, .04), 0 22px 36px -24px rgba(12, 26, 20, .4); }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #22e08f, #0a8f55); opacity: .0; transition: opacity .15s; }
.stat:hover::after { opacity: 1; }
.stat-value { font: 800 2.1rem/1 var(--display); letter-spacing: -.035em; }
.stat-label { font-size: .86rem; font-weight: 600; color: var(--muted); }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; }
.stat-icon .ico { width: 20px; height: 20px; }
.stat-link { color: var(--brand-dark); text-decoration: none; }
.stat-link:hover { text-decoration: underline; }
.stat.feature, .wallet-hero { background: radial-gradient(520px 240px at 100% -10%, rgba(34, 224, 143, .45), transparent 62%), linear-gradient(135deg, #062b1d, #0a5236); }
.stat.feature .stat-link, .wallet-hero a { color: #fff; }
.page-head { align-items: center; padding: 22px 26px; margin-bottom: 22px; border: 1px solid #e2eae5; border-radius: 20px; background: radial-gradient(520px 200px at 100% 0%, rgba(34, 224, 143, .16), transparent 65%), #fff; box-shadow: 0 12px 28px -24px rgba(12, 26, 20, .3); }
.page-head p { margin-top: 8px; }
.pill.plan { background: linear-gradient(135deg, #062b1d, #0a5236); }
th { background: #f7faf8; font-weight: 700; color: #54645c; }
.avatar, .who-avatar { font-weight: 700; }
.empty-icon { background: var(--brand-soft); color: var(--brand-dark); }
.notice { border-radius: 14px; padding: 13px 16px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(18, 183, 106, .16); }

.checklist ol { counter-reset: none; }
.checklist li { border-radius: 12px; }

@media (min-width: 1001px) {
  body.is-app { padding-left: 252px; }
  .is-app .top { width: 252px; border-right: 0; background: radial-gradient(420px 300px at 0% 0%, rgba(34, 224, 143, .18), transparent 60%), linear-gradient(180deg, #06120d, #0a1d15); box-shadow: 8px 0 30px -20px rgba(6, 18, 13, .6); }
  .is-app .top-row { padding: 22px 14px 16px; gap: 26px; }
  .is-app .top .logo-mark { width: 36px; height: 36px; }
  .is-app .top .logo-word { color: #fff; font-size: 1.2rem; font-weight: 800; }
  .is-app .top .logo-word b { color: #4ff0a8; font-weight: 800; }
  .is-app .nav { gap: 4px; }
  .is-app .nav a:not(.btn) { color: rgba(255, 255, 255, .72); padding: 10px 12px; font-size: .93rem; font-weight: 600; border-radius: 11px; gap: 12px; }
  .is-app .nav a:not(.btn) .ico { color: rgba(255, 255, 255, .55); width: 18px; height: 18px; }
  .is-app .nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .is-app .nav a.on { color: #fff; background: linear-gradient(90deg, #0a9a5c, #12b76a); box-shadow: 0 10px 20px -12px rgba(18, 183, 106, .9); }
  .is-app .nav a.on .ico { color: #fff; }
  .is-app .who { border-top-color: rgba(255, 255, 255, .1); }
  .is-app .who-chip { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 8px 10px; }
  .is-app .who-avatar { background: linear-gradient(135deg, #22e08f, #0a8f55); color: #04130c; width: 32px; height: 32px; }
  .is-app .who-name { color: #fff; }
  .is-app .logout .btn { color: rgba(255, 255, 255, .6); }
  .is-app .logout .btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .is-app .wrap { max-width: 1200px; padding: 0 36px; }
}
@media (max-width: 1000px) {
  .is-app .nav a.on { background: var(--brand-soft); color: var(--brand-dark); }
  .page-head { padding: 18px; }
}

/* sign in and sign up */
.auth { max-width: 1040px; border-radius: 26px; border: 1px solid #e2eae5; box-shadow: 0 40px 90px -50px rgba(6, 43, 29, .55); }
.auth-form { padding: 52px 48px; }
.auth-form h1 { font-size: 2rem; }
.auth-form .btn.big { padding: 14px 22px; }
.auth-side { padding: 44px 44px 0; justify-content: flex-start; gap: 18px; overflow: hidden; }
.auth-side h2 { font: 800 1.7rem/1.18 var(--display); letter-spacing: -.03em; }
.auth-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.auth-trust span { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
@media (max-width: 900px) { .auth-shot { display: none; } .auth-side { padding-bottom: 36px; } }


/* ==========================================================================
   v5: dashboard like a modern admin panel: floating rail, hero banner, KPI
   cards with change chips, area chart, donut, progress bars.
   ========================================================================== */
body.is-app { background: radial-gradient(1000px 520px at 12% -10%, rgba(18, 183, 106, .16), transparent 62%), radial-gradient(900px 520px at 100% 0%, rgba(245, 165, 36, .08), transparent 60%), #f1f6f3; background-attachment: fixed; }
.card, .stat, .kpi { background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -28px rgba(6, 43, 29, .35); }

.dash-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 30px 34px; margin-bottom: 18px; border-radius: 26px; color: #fff;
  background: radial-gradient(520px 260px at 92% 0%, rgba(79, 240, 168, .38), transparent 62%), radial-gradient(420px 240px at 0% 100%, rgba(245, 165, 36, .16), transparent 60%), linear-gradient(135deg, #06120d, #0a3a27); box-shadow: 0 30px 60px -34px rgba(6, 43, 29, .8); }
.dash-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(600px 300px at 80% 20%, #000, transparent 75%); mask-image: radial-gradient(600px 300px at 80% 20%, #000, transparent 75%); }
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero-text { flex: 1 1 420px; min-width: 0; }
.dash-hello { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 600; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.dash-hello .pill.plan { background: rgba(255, 255, 255, .12); }
.dash-hero h1 { font: 800 clamp(1.5rem, 2.6vw, 2.15rem)/1.15 var(--display); letter-spacing: -.035em; color: #fff; margin: 0 0 10px; }
.dash-hero h1 em { font-style: italic; font-weight: 700; color: #4ff0a8; }
.dash-sub { color: rgba(255, 255, 255, .72); margin: 0 0 20px; max-width: 560px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-actions .btn { border-radius: 999px; padding: 9px 16px; font-size: .9rem; }
.dash-actions .btn.light { background: #c9f55b; color: #0c1a14; box-shadow: 0 10px 24px -12px rgba(201, 245, 91, .9); }
.dash-actions .btn.light:hover { background: #d6fa76; }
.dash-actions .btn.outline-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.dash-hero-side { display: flex; align-items: center; gap: 20px; padding: 16px 22px 16px 16px; border-radius: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.dash-ring { width: 108px; height: 108px; display: block; }
.dash-hero-side > div { display: grid; gap: 1px; }
.dash-hero-side strong { font: 800 1.5rem/1.1 var(--display); letter-spacing: -.03em; }
.dash-hero-side span { color: rgba(255, 255, 255, .6); font-size: .8rem; margin-bottom: 8px; }
.donut.ring .dn-total { fill: #fff; font-size: 26px; }
.donut.ring .dn-cap { fill: rgba(255, 255, 255, .6); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: grid; gap: 6px; padding: 18px 20px; color: var(--ink); text-decoration: none; transition: transform .18s, box-shadow .18s; }
a.kpi:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 26px 44px -26px rgba(6, 43, 29, .5); }
.kpi-top { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.kpi-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); flex: none; }
.kpi-icon .ico { width: 16px; height: 16px; }
.kpi-icon.gold { background: var(--gold-soft); color: var(--amber-ink); }
.kpi-icon.blue { background: var(--blue-soft); color: var(--blue); }
.kpi b { font: 800 2rem/1.1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: .8rem; min-height: 1.3em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi.dark { color: #fff; border-color: transparent; background: radial-gradient(260px 160px at 100% 0%, rgba(79, 240, 168, .4), transparent 65%), linear-gradient(135deg, #06120d, #0a3a27); }
.kpi.dark .kpi-top, .kpi.dark small { color: rgba(255, 255, 255, .7); }
.kpi.dark .kpi-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.delta { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.delta.up { background: #e3f8ec; color: #067647; }
.delta.down { background: #fdecea; color: #b42318; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.dash-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-grid > .card { margin-bottom: 0; }
.chart-card .card-head { align-items: flex-start; margin-bottom: 6px; }
.chart-total { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chart-total b { font: 800 1.9rem/1 var(--display); letter-spacing: -.04em; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #eef3f0; }
.seg a { padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.seg a.on { background: #0c1a14; color: #fff; }
.chart { display: block; width: 100%; height: 250px; }
.ch-grid { stroke: #e6ece8; stroke-width: 1; }
.ch-axis { fill: #8a9690; font: 500 11px var(--font); }
.ch-line { fill: none; stroke: #0a8f55; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ch-before { fill: none; stroke: #9aa8a1; stroke-width: 1.6; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.ch-dot { fill: #fff; stroke: #0a8f55; stroke-width: 3; }
.chart-key { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.chart-key span { display: inline-block; width: 18px; height: 0; border-top: 3px solid #0a8f55; border-radius: 2px; }
.chart-key .k-before { border-top: 2px dashed #9aa8a1; margin-left: 12px; }
.donut-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.dn-total { font: 800 30px var(--display); fill: var(--ink); letter-spacing: -1px; }
.dn-cap { font: 500 11px var(--font); fill: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1 1 140px; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.dot-key { width: 10px; height: 10px; flex: none; }
.donut-note { font-size: .82rem; margin: 16px 0 0; }
.progress { display: block; width: 100%; height: 8px; margin: -4px 0 16px; border-radius: 999px; }
.pg-bg { fill: #e8efeb; }
.pg-fill { fill: #12b76a; }
.pg-fill.gold { fill: #f5a524; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.bars .bar { width: 100%; height: 8px; border-radius: 999px; }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }
.bars-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.bars-note b { color: var(--ink); }
.grow-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 30px; margin-bottom: 18px; border-radius: 24px; color: #fff; background: radial-gradient(420px 200px at 100% 0%, rgba(201, 245, 91, .3), transparent 60%), linear-gradient(135deg, #062b1d, #0a5236); }
.grow-card h2 { font-size: 1.25rem; color: #fff; margin-bottom: 6px; }
.grow-card p { margin: 0; color: rgba(255, 255, 255, .75); max-width: 640px; }
.rail-install { display: none; }

@media (min-width: 1001px) {
  /* a floating rail: icon above, small label below */
  body.is-app { padding-left: 124px; }
  .is-app .top { inset: 14px auto 14px 14px; width: 96px; border-radius: 30px; background: radial-gradient(200px 220px at 50% 0%, rgba(79, 240, 168, .22), transparent 70%), linear-gradient(180deg, #06120d, #0a2318); box-shadow: 0 30px 60px -24px rgba(6, 18, 13, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
  .is-app .top-row { padding: 18px 8px 12px; gap: 18px; align-items: center; }
  .is-app .top .brand { padding: 0; justify-content: center; }
  .is-app .top .logo-text { display: none; }
  .is-app .top .logo-mark { width: 42px; height: 42px; }
  .is-app .nav { width: 100%; gap: 4px; scrollbar-width: none; }
  .is-app .nav::-webkit-scrollbar { display: none; }
  .is-app .nav a:not(.btn) { flex-direction: column; gap: 5px; padding: 9px 2px 7px; font-size: .66rem; font-weight: 600; line-height: 1.15; text-align: center; white-space: normal; border-radius: 16px; color: rgba(255, 255, 255, .62); }
  .is-app .nav a:not(.btn) .ico { width: 20px; height: 20px; padding: 9px; box-sizing: content-box; border-radius: 50%; color: rgba(255, 255, 255, .7); transition: background .15s, color .15s, transform .15s; }
  .is-app .nav a:not(.btn):hover { background: transparent; color: #fff; }
  .is-app .nav a:not(.btn):hover .ico { background: rgba(255, 255, 255, .1); color: #fff; }
  .is-app .nav a.on { background: transparent; box-shadow: none; color: #fff; }
  .is-app .nav a.on .ico { background: #fff; color: #0a8f55; box-shadow: 0 8px 20px -6px rgba(79, 240, 168, .8); transform: scale(1.04); }
  .is-app .who { width: 100%; align-items: center; gap: 4px; padding-top: 10px; }
  .is-app .who-chip { background: transparent; padding: 0; justify-content: center; }
  .is-app .who-name { display: none; }
  .is-app .who-avatar { width: 38px; height: 38px; font-size: .9rem; }
  .is-app .logout .btn { flex-direction: column; gap: 3px; font-size: .64rem; padding: 6px 2px; justify-content: center; }
  .rail-install:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 6px 2px; border: 0; background: transparent; color: #c9f55b; font: 600 .64rem var(--font); cursor: pointer; border-radius: 12px; }
  .rail-install:hover { background: rgba(255, 255, 255, .08); }
  .rail-install .ico { width: 18px; height: 18px; }
  .is-app .wrap { max-width: 1280px; padding: 0 30px 0 10px; }
  .is-app .page { padding-top: 22px; }
}
@media (max-width: 1100px) { .dash-grid, .dash-grid.three { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .dash-hero { padding: 22px 20px; border-radius: 22px; }
  .dash-hero-side { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 1.6rem; }
  .chart { height: 200px; }
}
@media print { .is-app .top { display: none; } body.is-app { padding-left: 0; } }

.dash-ring .donut { width: 108px; height: 108px; }
.dash-hero h1 em { padding: 0 .1em 0 .04em; }
.dash-hero-side { flex: 0 1 auto; }
.dash-hero-side > div { min-width: 150px; }

/* wordmark: tight display type, and a dot that pings */
.logo-word { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; text-transform: none; display: inline-flex; align-items: baseline; }
.logo-word b, .is-public .logo-word b, .is-app .logo-word b { font-weight: 800; background: linear-gradient(100deg, #0a9a5c, #1fd486); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.logo-word i { position: relative; display: inline-block; width: .26em; height: .26em; margin-left: .12em; border-radius: 50%; background: #12b76a; }
.logo-word i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid currentColor; color: #12b76a; animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(3.4); opacity: 0; } }
.logo-mark { filter: drop-shadow(0 6px 14px rgba(10, 143, 85, .45)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.on-dark .logo-word b, .m-foot .logo-word b, body:has(.hero) .top:not(.scrolled) .logo-word b { background: linear-gradient(100deg, #4ff0a8, #d4ff5c); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.on-dark .logo-word i, .m-foot .logo-word i, body:has(.hero) .top:not(.scrolled) .logo-word i { background: #d4ff5c; }
.on-dark .logo-word i::after, .m-foot .logo-word i::after, body:has(.hero) .top:not(.scrolled) .logo-word i::after { color: #d4ff5c; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(36px) scale(.97); filter: blur(8px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms), transform .9s cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms), filter .9s ease var(--delay, 0ms); }
.reveal.shown { opacity: 1; transform: none; filter: none; }
/* a soft light that follows the pointer across a card */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(18, 183, 106, .16), transparent 62%); }
.spot:hover::after { opacity: 1; }
.btn { position: relative; overflow: hidden; }
.btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: left .7s ease; pointer-events: none; }
.btn:hover::before { left: 130%; }
.btn.ghost::before { background: linear-gradient(90deg, transparent, rgba(18, 183, 106, .14), transparent); }

/* dashboard: things arrive, lines draw themselves */
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { transform: rotate(-90deg) scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-4%, 6%) scale(1.12); } }
.dash-hero { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.dash-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 240, 168, .42), transparent 65%); animation: drift 12s ease-in-out infinite; pointer-events: none; }
.kpis > *, .dash-grid > .card { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.kpis > :nth-child(1) { animation-delay: .08s; } .kpis > :nth-child(2) { animation-delay: .14s; } .kpis > :nth-child(3) { animation-delay: .2s; } .kpis > :nth-child(4) { animation-delay: .26s; } .kpis > :nth-child(5) { animation-delay: .32s; }
.dash-grid > .card:nth-child(1) { animation-delay: .3s; } .dash-grid > .card:nth-child(2) { animation-delay: .38s; } .dash-grid > .card:nth-child(3) { animation-delay: .46s; }
.ch-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.2s cubic-bezier(.3, .7, .2, 1) .5s forwards; }
.chart path[fill^="url"] { animation: fade 1.2s ease 1.3s both; }
.ch-dot { animation: fade .4s ease 2.2s both; }
.donut { transform-origin: center; animation: sweep 1s cubic-bezier(.2, .8, .2, 1) .45s both; }
.pg-fill { transform-origin: left center; transform-box: fill-box; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) .5s both; }
.kpi-icon, .stat-icon { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.kpi:hover .kpi-icon, .stat:hover .stat-icon { transform: scale(1.14) rotate(-8deg); }
.is-app .nav a .ico { transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .15s, color .15s; }
.is-app .nav a:hover .ico { transform: scale(1.1); }
.card { transition: box-shadow .4s, transform .4s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; filter: none; } .ch-line { stroke-dashoffset: 0; } }

/* ---------- footer inside the app ---------- */
.foot { border-top: 0; background: transparent; padding: 10px 0 20px; }
.foot-card { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 28px; padding: 30px 32px; border-radius: 24px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 40px -28px rgba(6, 43, 29, .35); }
.foot-brand .logo-tag { display: none; }
.foot-brand p { margin: 14px 0 0; color: var(--muted); font-size: .9rem; max-width: 300px; }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-card h2 { font: 700 .78rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; width: fit-content; }
.foot-col a:hover { color: var(--brand); }
.foot-help-box { padding: 20px; border-radius: 18px; background: radial-gradient(260px 160px at 100% 0%, rgba(79, 240, 168, .35), transparent 65%), linear-gradient(135deg, #06120d, #0a3a27); color: #fff; display: grid; gap: 10px; align-content: start; }
.foot-help-box h2 { color: #fff; font: 700 1.05rem var(--display); letter-spacing: -.02em; text-transform: none; margin: 0; }
.foot-help-box p { margin: 0 0 4px; color: rgba(255, 255, 255, .7); font-size: .88rem; }
.foot-help-box .btn { justify-content: center; }
.foot-help-box .btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.foot-row { justify-content: space-between; padding: 18px 6px 8px; }
@media (max-width: 1100px) { .foot-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot-card { grid-template-columns: 1fr; padding: 22px; } .foot-row { justify-content: center; } }
@media print { .foot { display: none; } }

/* ==========================================================================
   v7: pill buttons (Material / Fluent manners), rounder fields, tidier rail
   ========================================================================== */
.btn { height: 42px; padding: 0 22px; border-radius: 999px; flex-shrink: 0; gap: 8px; font: 600 .92rem/1 var(--font); letter-spacing: .005em; color: #fff; background: #0b8a52; border: 1px solid transparent; box-shadow: none; transition: background .2s, box-shadow .2s, border-color .2s, color .2s, transform .12s; }
.btn .ico { width: 18px; height: 18px; }
.btn:hover { background: #0a7a48; transform: none; box-shadow: 0 1px 2px rgba(6, 43, 29, .3), 0 2px 6px 2px rgba(6, 43, 29, .15); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn:focus-visible { outline: 3px solid rgba(18, 183, 106, .45); outline-offset: 2px; }
.btn.ghost { background: #fff; color: #0b6b41; border-color: #c5d3cb; box-shadow: none; }
.btn.ghost:hover { background: #eef8f2; border-color: #0b8a52; color: #07502f; box-shadow: none; }
.btn.ghost.danger { color: #b42318; border-color: #f0c9c4; }
.btn.ghost.danger:hover { background: #fdecea; border-color: #e5484d; color: #912018; }
.btn.tonal { background: #d7f3e3; color: #07502f; }
.btn.tonal:hover { background: #c6ecd6; }
.btn.dark { background: #0c1a14; }
.btn.dark:hover { background: #1b2a23; }
.btn.light { background: #fff; color: #062b1d; }
.btn.light:hover { background: #eefaf3; }
.btn.outline-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn.outline-light:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.btn.small { height: 34px; padding: 0 15px; font-size: .84rem; border-radius: 999px; }
.btn.small .ico { width: 15px; height: 15px; }
.btn.big { height: 54px; padding: 0 30px; font-size: 1.02rem; border-radius: 999px; }
.btn.block { width: 100%; }
.btn[disabled], .btn:disabled { background: #e6ebe8; color: #8b968f; border-color: transparent; box-shadow: none; cursor: default; opacity: 1; }
.dash-actions .btn { height: 40px; padding: 0 18px; }
.dash-actions .btn.light { background: #c9f55b; color: #0c1a14; }
.dash-actions .btn.light:hover { background: #d6fa76; }
.hero .btn.big, .is-public .btn.big { height: 56px; padding: 0 30px; border-radius: 999px; }
.is-public .nav.right .btn.small { height: 38px; padding: 0 18px; border-radius: 999px; }
.inline .btn, .search .btn, .card-head .btn { white-space: nowrap; }
.card-head form, .card-head .inline { flex-wrap: wrap; }

.tabs { border-radius: 999px; padding: 5px; }
.tabs a { border-radius: 999px; padding: 8px 18px; }
.tabs a.on { background: #0b8a52; }
.seg a.on { background: #0b8a52; }
.pill { border-radius: 999px; padding: 4px 11px; font-weight: 600; }

input, select, textarea { min-height: 46px; border-radius: 14px; padding: 11px 15px; border: 1px solid #d3ddd7; background: #fff; }
textarea { border-radius: 16px; }
input[type=checkbox], input[type=radio] { min-height: 0; }
input[type=file] { border-radius: 16px; padding: 10px; }
input[type=file]::file-selector-button { border-radius: 999px; padding: 7px 14px; }
.inline select, .inline input, .search input { min-height: 38px; border-radius: 999px; padding: 7px 14px; }
label { gap: 7px; }
.plain li { border-radius: 16px; }
.notice { border-radius: 16px; }

@media (min-width: 1001px) {
  .is-app .top-row { padding: 24px 8px 14px; }
  .is-app .top .brand { padding-top: 2px; }
  .is-app .top .logo-mark { width: 44px; height: 44px; }
  .is-app .top .logout .btn, .is-app .top .logout .btn:hover { height: auto; background: transparent; border: 0; box-shadow: none; padding: 6px 2px; color: rgba(255, 255, 255, .6); border-radius: 12px; }
  .is-app .top .logout .btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .is-app .who { padding-bottom: 6px; }
}
@media (max-width: 1000px) { .is-app .top .logout .btn { height: 34px; } }

/* rail: the mark sits in its own space; account, install and log out form a small dock */
@media (min-width: 1001px) {
  .is-app .top-row { padding: 22px 8px 14px; gap: 14px; }
  .is-app .top .brand { width: 64px; margin: 0 auto; padding: 2px 0 18px; justify-content: center; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .is-app .top .logo-mark { width: 46px; height: 46px; filter: drop-shadow(0 8px 18px rgba(47, 245, 160, .45)); }
  .is-app .who { width: 58px; margin: 0 auto; padding: 8px 0; gap: 8px; align-items: center; border: 1px solid rgba(255, 255, 255, .1); border-radius: 30px; background: rgba(255, 255, 255, .06); }
  .is-app .who-chip { order: 1; }
  .is-app .who-avatar { width: 40px; height: 40px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .16); }
  .is-app .who .rail-install { order: 2; }
  .is-app .who .logout { order: 3; width: auto; }
  .is-app .top .logout .btn, .is-app .top .logout .btn:hover { width: 40px; height: 40px; padding: 0; gap: 0; font-size: 0; border-radius: 50%; justify-content: center; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); border: 0; }
  .is-app .top .logout .btn:hover { background: #e5484d; color: #fff; }
  .is-app .top .logout .btn .ico { width: 18px; height: 18px; }
  .rail-install:not([hidden]) { width: 40px; height: 40px; padding: 0; gap: 0; font-size: 0; border-radius: 50%; justify-content: center; background: rgba(201, 245, 91, .14); }
  .rail-install:not([hidden]):hover { background: #c9f55b; color: #0c1a14; }
  .rail-install span { display: none; }
}
.card-head .inline { flex-wrap: nowrap; }
.card-head .inline input { flex: 1 1 200px; min-width: 0; }
@media (max-width: 720px) { .card-head .inline { flex-wrap: wrap; width: 100%; } }
.plan-list { align-content: start; }
.foot-row a { color: var(--brand-dark); font-weight: 600; }


/* ---------- today's job ---------- */
.today { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.today-main { position: relative; overflow: hidden; padding: 28px 30px; border-radius: 24px; background: linear-gradient(135deg, #fffbe9, #fff 55%); border: 1px solid #f3e3ae; box-shadow: 0 18px 40px -28px rgba(138, 90, 0, .45); }
.today-main::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 165, 36, .28), transparent 65%); pointer-events: none; }
.today-main.done { background: linear-gradient(135deg, #e9f9f0, #fff 55%); border-color: #c8ecd8; }
.today-label { display: inline-flex; align-items: center; gap: 8px; font: 700 .72rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: #8a5a00; }
.today-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 4px rgba(245, 165, 36, .25); }
.today-main.done .today-label { color: var(--brand-dark); }
.today-main.done .today-label::before { background: #12b76a; box-shadow: 0 0 0 4px rgba(18, 183, 106, .22); }
.today-main h2 { font: 800 clamp(1.35rem, 2.2vw, 1.8rem)/1.15 var(--display); letter-spacing: -.03em; margin: 12px 0 8px; }
.today-main p { color: var(--ink-2); margin: 0 0 18px; max-width: 460px; }
.today-side { display: grid; gap: 10px; align-content: start; }
.today-next { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 14px 30px -26px rgba(6, 43, 29, .4); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.today-next:hover { transform: translateX(4px); box-shadow: 0 18px 34px -24px rgba(6, 43, 29, .5); }
.today-next strong { display: block; font-size: .96rem; }
.today-next small { color: var(--muted); }
.today-next b { flex: none; font-size: .84rem; color: var(--brand-dark); white-space: nowrap; }
.today-count { display: flex; align-items: center; justify-content: space-around; gap: 12px; padding: 18px; border-radius: 18px; color: #fff; background: radial-gradient(260px 160px at 100% 0%, rgba(79, 240, 168, .35), transparent 65%), linear-gradient(135deg, #06120d, #0a3a27); }
.today-count div { display: flex; align-items: center; gap: 12px; }
.today-count b { font: 800 2rem/1 var(--display); letter-spacing: -.04em; }
.today-count span { font-size: .78rem; line-height: 1.3; color: rgba(255, 255, 255, .7); }
.today-count i { font-style: normal; font-size: 1.4rem; color: #c9f55b; }
.today-note { margin: 0; font-size: .76rem; color: var(--muted); text-align: center; }
@media (max-width: 1000px) { .today { grid-template-columns: 1fr; } }

/* ---------- QR poster ---------- */
.qr-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.qr-poster { text-align: center; padding: 34px 30px 28px; border-radius: 28px; color: #fff; background: radial-gradient(420px 260px at 50% 0%, rgba(79, 240, 168, .35), transparent 65%), linear-gradient(160deg, #06120d, #0a3a27); box-shadow: 0 40px 80px -40px rgba(6, 43, 29, .8); }
.qr-kicker { margin: 0; color: #ffc83d; letter-spacing: 6px; font-size: 1.3rem; }
.qr-poster h2 { font: 800 1.9rem/1.1 var(--display); letter-spacing: -.035em; color: #fff; margin: 10px 0 6px; }
.qr-sub { color: rgba(255, 255, 255, .78); margin: 0 0 20px; }
.qr-code { width: 250px; max-width: 100%; margin: 0 auto; padding: 16px; border-radius: 22px; background: #fff; }
.qr-code svg { display: block; width: 100%; height: auto; }
.qr-name { margin: 20px 0 2px; font: 800 1.25rem var(--display); letter-spacing: -.02em; }
.qr-urdu { margin: 0; color: #c9f55b; font-weight: 600; font-size: .92rem; }
.qr-note { margin: 16px 0 10px; }
@media (max-width: 900px) { .qr-grid { grid-template-columns: 1fr; } }
@media print { body.is-app { background: #fff !important; } .page-head, .qr-tips, .notice, .install { display: none !important; } .qr-grid { display: block; } .qr-poster { margin: 0 auto; max-width: 480px; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- staff ---------- */
.staff-list li { justify-content: flex-start; }
.staff-remove { margin-left: auto !important; }
.staff-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-top: 16px; }
@media (max-width: 900px) { .staff-form { grid-template-columns: 1fr; } }

/* ---------- "get notified on this device" ---------- */
.push-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border-radius: 18px; color: #fff; background: radial-gradient(320px 160px at 100% 0%, rgba(79, 240, 168, .35), transparent 65%), linear-gradient(135deg, #06120d, #0a3a27); box-shadow: 0 18px 40px -28px rgba(6, 43, 29, .7); animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.push-bar > span:not(.push-ico) { flex: 1 1 260px; font-size: .92rem; color: rgba(255, 255, 255, .82); }
.push-bar strong { color: #fff; }
.push-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #c9f55b; color: #0c1a14; flex: none; }
.push-bar .btn:not(.ghost) { background: #c9f55b; color: #0c1a14; }
.push-bar .btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.push-bar.on { background: linear-gradient(135deg, #07693e, #0b8a52); }

.logo-tag { letter-spacing: .1em; }
.auth-sub { margin: -6px 0 4px; color: rgba(255, 255, 255, .8); font-size: 1rem; }
.m-foot-about strong, .foot-brand strong { color: inherit; font-weight: 700; }
.m-foot-about strong { color: #fff; }


/* ==========================================================================
   v8: admin clients as cards (no sideways scrolling), and loose ends tidied
   ========================================================================== */
.clients { display: grid; gap: 14px; }
.client { padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid #e2eae5; transition: box-shadow .25s, border-color .25s, transform .25s; }
.client:hover { border-color: #c9ddd1; box-shadow: 0 22px 44px -30px rgba(6, 43, 29, .45); transform: translateY(-1px); }
.client-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar.big { width: 48px; height: 48px; font-size: 1.1rem; border-radius: 16px; background: linear-gradient(135deg, #d7f3e3, #b7ebcf); color: #07502f; }
.client-id { flex: 1 1 220px; min-width: 0; }
.client-id h3 { font-size: 1.12rem; margin: 0 0 2px; }
.client-id p { margin: 0; color: var(--muted); font-size: .86rem; }
.client-wallet { text-align: right; padding-left: 16px; border-left: 1px solid var(--line); }
.client-wallet small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.client-wallet b { font: 800 1.35rem var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.client-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.client-stats div { padding: 12px 14px; border-radius: 14px; background: #f5f8f6; }
.client-stats dt { color: var(--muted); font-size: .74rem; font-weight: 600; margin-bottom: 2px; }
.client-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.client-manage { margin-top: 14px; }
.client-manage summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid #c5d3cb; color: #0b6b41; font-weight: 600; font-size: .86rem; transition: background .2s, border-color .2s; }
.client-manage summary::-webkit-details-marker { display: none; }
.client-manage summary::after { content: "+"; font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.client-manage[open] summary::after { transform: rotate(45deg); }
.client-manage summary:hover { background: #eef8f2; border-color: #0b8a52; }
.client-forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.client-forms > * { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fbfcfb; margin: 0; }
.client-forms h4 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 .92rem var(--display); }
.client-forms h4 .ico { color: var(--brand); }
.client-forms .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.client-forms input, .client-forms select { min-height: 40px; padding: 8px 12px; border-radius: 12px; font-size: .9rem; }
.client-forms .btn { justify-self: start; }
.client-forms p { margin: 0; font-size: .86rem; }
.card-head .search input { width: 280px; max-width: 100%; }
@media (max-width: 1100px) { .client-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .client-forms { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .client-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .client-wallet { border-left: 0; padding-left: 0; text-align: left; flex-basis: 100%; } }

/* tables: calmer headings, rounder rows, and never a scroll bar where a wrap will do */
th { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 700; color: #54645c; }
.table-scroll { scrollbar-width: thin; scrollbar-color: #c9d6cf transparent; }
.card-sub { margin: -6px 0 16px; }
.check.mini { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; }
.check.mini input { width: 18px; height: 18px; accent-color: #0b8a52; }
.empty { padding: 40px 16px 20px; }
.empty-icon { width: 64px; height: 64px; border-radius: 20px; }
.plain li { background: #f5f8f6; border-color: transparent; }
.wallet-hero { border-radius: 24px; padding: 30px 32px; }
.plan-card { border-radius: 22px; }

/* ---------- social links ---------- */
.social { display: flex; gap: 8px; margin: 16px 0 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #07502f; background: #e7f7ee; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s; }
.social a:hover { transform: translateY(-3px); background: #0b8a52; color: #fff; }
.social svg { width: 19px; height: 19px; display: block; }
.m-foot .social a { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.m-foot .social a:hover { background: #c9f55b; color: #0c1a14; border-color: transparent; }

/* ==========================================================================
   v9: gloss, phone-width fixes, list pager
   ========================================================================== */
/* glossy primary button: light from above, soft coloured glow below */
.btn:where(:not(.ghost, .tonal, .dark, .light, .outline-light, .off, [disabled])) { background: linear-gradient(180deg, #1fc980 0%, #0d9659 48%, #087a47 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(0, 0, 0, .14), 0 8px 18px -8px rgba(11, 138, 82, .75); text-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.btn:where(:not(.ghost, .tonal, .dark, .light, .outline-light, .off, [disabled])):hover { background: linear-gradient(180deg, #2bd68c 0%, #0fa463 48%, #088850 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .14), 0 12px 26px -10px rgba(11, 138, 82, .9), 0 0 0 4px rgba(31, 201, 128, .14); }
.btn.dark { background: linear-gradient(180deg, #24382f, #0c1a14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 18px -10px rgba(6, 43, 29, .8); }
.btn.dark:hover { background: linear-gradient(180deg, #2f473c, #13251d); }
.btn.light { background: linear-gradient(180deg, #fff, #eef6f1); box-shadow: inset 0 1px 0 #fff, 0 8px 20px -10px rgba(0, 0, 0, .55); }
.btn.light:hover { background: linear-gradient(180deg, #fff, #e2f3e9); box-shadow: inset 0 1px 0 #fff, 0 12px 26px -10px rgba(0, 0, 0, .6); }
.btn.tonal { background: linear-gradient(180deg, #e2f8eb, #cdefdb); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.btn.ghost { background: linear-gradient(180deg, #fff, #f6faf8); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(6, 43, 29, .06); }
.btn.outline-light { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.dash-actions .btn.light { background: linear-gradient(180deg, #e2ff8a 0%, #c4f24f 60%, #b4e63c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 20px -8px rgba(201, 245, 91, .7); }
.dash-actions .btn.light:hover { background: linear-gradient(180deg, #ebffa3 0%, #cff760 60%, #bdec47 100%); }
.btn.off { opacity: .45; pointer-events: none; }
/* cards: a fine light edge on top, a deeper and softer shadow */
.is-app .card { background-image: linear-gradient(180deg, #fff 0%, #fff 60%, #fbfdfc 100%); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(6, 43, 29, .045), 0 1px 2px rgba(6, 43, 29, .04), 0 18px 36px -24px rgba(6, 43, 29, .28); }
/* list pager */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 38px; }
.pager-at { color: var(--muted); font-size: .88rem; text-align: center; }
.pager-at b { color: var(--ink); }
/* long links never push the page sideways */
.no-print .num, .share-link { white-space: normal; overflow-wrap: anywhere; }
/* phone width: nothing may be wider than the screen */
.grid > *, .card, .rk-tiles > *, .rk-bands > * { min-width: 0; }
@media (max-width: 640px) {
  .is-app .card { max-width: 100%; }
  .is-app .card > table, .is-app .card .rk-table { display: block; overflow-x: auto; max-width: 100%; }
  .inline, .page-head .inline { flex-wrap: wrap; }
  .inline input, .inline select { min-width: 0; flex: 1 1 140px; }
  .page-head .btn { white-space: normal; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
  .pin-map, .rank-map, .leaflet-container { max-width: 100%; }
  .btn.small { height: 38px; }
  .pager { flex-wrap: wrap; justify-content: center; }
  .pager-at { order: -1; flex: 1 0 100%; }
}
@media (max-width: 380px) { .is-public .wrap { padding: 0 16px; } }

/* ---------- post all replies ---------- */
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 14px; border-radius: 18px; background: linear-gradient(135deg, #e9f9f0, #f7fcf9); border: 1px solid #c8ecd8; }
.bulk-bar p { margin: 0; flex: 1 1 320px; color: var(--ink-2); font-size: .93rem; }
.bulk-bar.end { margin: 14px 0 0; }
.feed-item:target { border-color: #1fc980; box-shadow: 0 0 0 4px rgba(31, 201, 128, .14); scroll-margin-top: 90px; }
.feed-item { scroll-margin-top: 90px; }

/* ---------- rail: every menu item stays on screen on shorter laptops ---------- */
@media (min-width: 1001px) {
  .is-app .nav { flex: 1 1 auto; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
}
@media (min-width: 1001px) and (max-height: 920px) {
  .is-app .top-row { padding: 14px 6px 10px; gap: 8px; }
  .is-app .top .brand { padding: 0 0 10px; }
  .is-app .top .logo-mark { width: 38px; height: 38px; }
  .is-app .nav { gap: 1px; }
  .is-app .nav a:not(.btn) { gap: 2px; padding: 4px 2px 3px; font-size: .62rem; border-radius: 12px; }
  .is-app .nav a:not(.btn) .ico { width: 18px; height: 18px; padding: 7px; }
  .is-app .who { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 84px; padding: 6px; gap: 6px; border-radius: 22px; }
  .is-app .who-avatar, .is-app .top .logout .btn, .is-app .top .logout .btn:hover, .rail-install:not([hidden]) { width: 32px; height: 32px; }
  .is-app .who-avatar { font-size: .8rem; }
}
@media (min-width: 1001px) and (max-height: 720px) {
  .is-app .top { inset: 8px auto 8px 14px; }
  .is-app .top-row { padding: 10px 6px 8px; gap: 6px; }
  .is-app .top .brand { padding-bottom: 8px; }
  .is-app .top .logo-mark { width: 34px; height: 34px; }
  .is-app .nav a:not(.btn) { padding: 3px 2px 2px; font-size: .58rem; gap: 1px; }
  .is-app .nav a:not(.btn) .ico { width: 17px; height: 17px; padding: 5px; }
}
/* phone and tablet: every menu item is in the bar; it slides sideways when there are many */
@media (max-width: 1000px) {
  .is-app .nav a.nav-wide { display: flex; }
  .is-app .nav { justify-content: flex-start; scroll-snap-type: x proximity; }
  .is-app .nav a:not(.btn) { scroll-snap-align: start; white-space: nowrap; }
}
@media (max-width: 720px) { .is-app .nav a:not(.btn) { min-width: 62px; } }

.tag-opt { font-weight: 500; font-size: .78rem; color: var(--muted); margin-left: 6px; }

/* ---------- business details card and field limits ---------- */
.details-card { margin-bottom: 18px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.details-grid .wide { grid-column: 1 / -1; }
.details-grid textarea { min-height: 0; }
small.limit { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: right; }
small.limit.near { color: #b54708; font-weight: 600; }
@media (max-width: 720px) { .details-grid { grid-template-columns: 1fr; } }
