/* Layout: fixed left rail of sections + a scrolling work area; collapses to a top tab strip on phones.
   Single dark look by design (lagoon at night), with a sunset amber for money and a lagoon teal for action. */
:root {
  --bg: #0b1315;
  --rail: #0e181b;
  --panel: #111d20;
  --panel-2: #162528;
  --line: #22363a;
  --line-soft: #1a2b2e;
  --text: #e6efed;
  --muted: #93a9a6;
  --faint: #627a77;
  --accent: #38c6b4;
  --accent-ink: #03211d;
  --accent-soft: rgba(56, 198, 180, 0.14);
  --sun: #f0a95b;
  --sun-soft: rgba(240, 169, 91, 0.14);
  --good: #63d297;
  --warn: #f1c45a;
  --bad: #ef6f6a;
  --chip: #f4f7f6;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); border-right: 1px solid var(--line-soft); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navgroup > span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--faint); padding: 0 10px 4px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }
.nav svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav:hover { background: var(--panel); color: var(--text); }
.nav.on { background: var(--accent-soft); color: var(--accent); }
.nav .cnt { margin-left: auto; font-family: var(--mono); font-size: 11px; background: var(--panel-2); color: var(--muted); padding: 1px 7px; border-radius: 20px; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.rail-foot p { margin: 0; font-size: 11.5px; color: var(--faint); padding: 0 4px; }

.partner { display: flex; align-items: center; justify-content: center; background: var(--chip); border-radius: 10px; padding: 8px 12px; height: 44px; transition: transform .15s ease, box-shadow .15s ease; }
.partner img { max-height: 24px; width: auto; display: block; }
.partner img[alt="BaliCASH"] { max-height: 32px; }
.partner:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(11, 19, 21, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; padding-block: 12px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); flex-wrap: wrap; }
.top .pick { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 280px; }
.top label { font-size: 12px; color: var(--muted); }
select, input[type=text], input[type=number], input[type=url], textarea { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); outline: none; }
.top select { flex: 1; max-width: 520px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.top .partners-mini { display: flex; gap: 8px; }
.top .partners-mini .partner { height: 34px; padding: 6px 10px; }
.top .partners-mini .partner img { max-height: 18px; }
.top .partners-mini .partner img[alt="BaliCASH"] { max-height: 24px; }

.content { padding-block: 26px 60px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); max-width: 1180px; width: 100%; display: flex; flex-direction: column; gap: 22px; }
.banner { display: flex; gap: 10px; align-items: flex-start; background: var(--sun-soft); border: 1px solid rgba(240, 169, 91, .35); color: #f6d3ab; border-radius: var(--r); padding: 10px 14px; font-size: 13.5px; }
.banner b { color: var(--sun); }

/* Section header with explanation */
.sh { display: flex; flex-direction: column; gap: 8px; max-width: 76ch; }
.sh h1 { font-size: 28px; font-weight: 800; }
.sh p { margin: 0; color: var(--muted); }
details.how { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px; padding: 0 14px; font-size: 13.5px; color: var(--muted); }
details.how summary { cursor: pointer; padding: 9px 0; color: var(--text); font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::before { content: "i"; font-family: var(--mono); font-size: 11px; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
details.how[open] { padding-bottom: 12px; }
details.how p { margin: 0; }

.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px; min-width: 0; }
.card h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.card h2 small { font-family: var(--body); font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lead { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Score hero */
.hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 148px; height: 148px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .v { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .v b { font-family: var(--mono); font-size: 42px; line-height: 1; font-weight: 600; display: block; }
.ring .v small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 220px; }
.hero-meta h2 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.plain::before { display: none; }
.pill.good { color: var(--good); border-color: rgba(99, 210, 151, .3); background: rgba(99, 210, 151, .08); }
.pill.warn { color: var(--warn); border-color: rgba(241, 196, 90, .3); background: rgba(241, 196, 90, .08); }
.pill.bad { color: var(--bad); border-color: rgba(239, 111, 106, .3); background: rgba(239, 111, 106, .08); }
.pill.acc { color: var(--accent); border-color: rgba(56, 198, 180, .3); background: var(--accent-soft); }
.pill.sun { color: var(--sun); border-color: rgba(240, 169, 91, .3); background: var(--sun-soft); }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line-soft); border-radius: 10px; overflow: hidden; }
.facts div { background: var(--panel); padding: 10px 12px; min-width: 0; }
.facts span { display: block; font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.facts b { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }

/* Metric bars */
.mrow { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 7px 0; }
.mrow .nm { font-size: 13.5px; font-weight: 600; }
.bar { height: 8px; background: var(--panel-2); border-radius: 8px; overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: var(--accent); }
.bar i.good { background: var(--good); } .bar i.warn { background: var(--warn); } .bar i.bad { background: var(--bad); }
.mrow .vv { font-family: var(--mono); text-align: right; font-size: 14px; }
.mfull { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.mfull:first-child { border-top: 0; padding-top: 0; }
.mfull .hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mfull .hd h3 { font-size: 15.5px; }
.mfull .hd .num { margin-left: auto; font-size: 20px; }
.mfull p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; max-width: 80ch; }

/* Issue list */
.issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.issues li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.issues .ix { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: rgba(239, 111, 106, .12); color: var(--bad); }
.issues b { display: block; font-size: 14px; }
.issues span { color: var(--muted); font-size: 13px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.ghost { background: none; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.note { font-size: 12.5px; color: var(--faint); }

/* Stat tiles */
.tile { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.tile span { font-size: 12px; color: var(--muted); display: block; }
.tile b { font-family: var(--mono); font-size: 24px; font-weight: 600; display: block; margin-top: 2px; overflow-wrap: anywhere; }
.tile b.sun { color: var(--sun); }
.tile small { color: var(--faint); font-size: 12px; }

/* Demand gauge */
.gauge { display: grid; grid-template-columns: 35fr 20fr 20fr 25fr; gap: 3px; margin: 6px 0 4px; }
.gauge div { height: 12px; background: var(--panel-2); }
.gauge div:first-child { border-radius: 8px 0 0 8px; } .gauge div:last-child { border-radius: 0 8px 8px 0; }
.gauge div.on { background: var(--sun); }
.gauge-l { display: grid; grid-template-columns: 35fr 20fr 20fr 25fr; gap: 3px; font-size: 11.5px; color: var(--faint); }
.marker { position: relative; height: 16px; }
.marker i { position: absolute; top: 0; width: 2px; height: 16px; background: var(--text); }

/* Photos */
.shots { display: flex; flex-wrap: wrap; gap: 6px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.thumb { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel-2); aspect-ratio: 4 / 3; max-width: 100%; }
.thumb img, .thumb .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph { display: grid; place-items: center; color: var(--faint); font-size: 12px; background: repeating-linear-gradient(135deg, #142427 0 10px, #172a2d 10px 20px); }
.thumb label { position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, .55); border-radius: 6px; padding: 2px 4px; display: flex; }
.thumb .meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 6px; padding: 5px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font-size: 11px; font-family: var(--mono); }
.thumb .lr { color: var(--warn); }
.thumb.cover { outline: 2px solid var(--sun); outline-offset: -2px; }

/* Checks */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.ck { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 800; }
.ck.y { background: rgba(99, 210, 151, .15); color: var(--good); }
.ck.n { background: rgba(239, 111, 106, .14); color: var(--bad); }
.titlebox { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.lenbar { position: relative; height: 6px; background: var(--panel-2); border-radius: 6px; margin-top: 10px; }
.lenbar .ok { position: absolute; top: 0; bottom: 0; background: rgba(99, 210, 151, .3); border-radius: 6px; }
.lenbar .at { position: absolute; top: -4px; width: 3px; height: 14px; background: var(--text); border-radius: 2px; }
.sugg { display: flex; flex-direction: column; gap: 8px; }
.sugg div { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 8px 8px 12px; }
.sugg span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.sugg small { font-family: var(--mono); color: var(--faint); }

/* Fixes */
.progress { height: 10px; background: var(--panel-2); border-radius: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--good); border-radius: 10px; transition: width .3s ease; }
.fix { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.fix:first-child { border-top: 0; }
.fix input { width: 20px; height: 20px; accent-color: var(--good); margin-top: 2px; }
.fix h3 { font-size: 15px; font-weight: 700; }
.fix p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.fix.done h3 { text-decoration: line-through; color: var(--faint); }
.fix .side { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--sun); }
.kv { font-size: 11.5px; color: var(--faint); display: flex; gap: 6px; align-items: center; }

/* Tables */
.tw { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; background: var(--panel); }
td { background: var(--bg); }
td.num, th.num { text-align: right; }
td.best { color: var(--good); font-weight: 700; }
tr.gap td { color: var(--sun); background: var(--panel); }
th.col { white-space: normal; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 12.5px; color: var(--text); min-width: 150px; max-width: 220px; vertical-align: top; }
th.col .t { display: block; }
th.col .btn { margin-top: 6px; padding: 2px 8px; font-size: 12px; }

/* Revenue */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.chart .grid line { stroke: var(--line-soft); }
.chart rect { fill: var(--sun); }
.chart rect.peak { fill: #f6c48c; }
.paycard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: linear-gradient(120deg, var(--panel) 0%, #1a2a27 100%); }
.paylinks { display: flex; gap: 10px; flex-wrap: wrap; }
.paylinks .partner { height: 48px; min-width: 150px; }
.paylinks .partner img { max-height: 26px; }
.paylinks .partner img[alt="BaliCASH"] { max-height: 34px; }

/* Reports */
.rep { display: grid; grid-template-columns: minmax(0, 1fr) 120px 60px auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.rep:first-child { border-top: 0; }
.rep b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep svg { width: 120px; height: 34px; }
.rep svg polyline { fill: none; stroke: var(--accent); stroke-width: 2; }
.rep svg circle { fill: var(--accent); }

/* Guide */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }
.inds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.inds div { background: var(--panel-2); border-radius: 10px; padding: 12px; font-weight: 600; font-size: 14px; }
.inds small { display: block; color: var(--faint); font-weight: 400; font-size: 12px; margin-top: 2px; }
.faq details { border-top: 1px solid var(--line-soft); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 6px 0 0; color: var(--muted); }

.featpick { display: flex; flex-wrap: wrap; gap: 6px; }
.featpick label { display: inline-flex; gap: 6px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.featpick input { accent-color: var(--accent); }

.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.foot { border-top: 1px solid var(--line-soft); padding-block: 20px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; margin-top: auto; }
.foot .partner { height: 36px; }
.foot .partner img { max-height: 18px; }
.foot .partner img[alt="BaliCASH"] { max-height: 24px; }

/* v1.1: link analysis, agent program */
.nav.hot { color: var(--sun); }
.nav.hot.on { background: var(--sun-soft); color: var(--sun); }
.btn.sunbtn { background: var(--sun); color: #2a1600; border-color: var(--sun); }
.btn.sunbtn:hover { filter: brightness(1.06); border-color: var(--sun); }
.btn.big { padding: 12px 18px; font-size: 15px; }
.agentbtn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--sun); color: #2a1600; font-weight: 800; font-size: 13.5px; text-decoration: none; border-radius: 10px; padding: 10px 12px; text-align: center; }
.agentbtn:hover { filter: brightness(1.06); }
.agentban { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(110deg, rgba(240, 169, 91, .16), rgba(240, 169, 91, .04) 60%), var(--panel); border-color: rgba(240, 169, 91, .35); }
.agentban h2 { margin-bottom: 4px; }
.agentban p { color: #e9cfae; }
.agenthero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; background: linear-gradient(120deg, rgba(240, 169, 91, .2), rgba(240, 169, 91, .03) 70%), var(--panel); border-color: rgba(240, 169, 91, .4); padding: 24px; }
.agenthero h2 { font-size: 24px; font-weight: 800; margin: 10px 0 6px; }
.agenthero p { color: #ecd6b9; margin: 0 0 16px; max-width: 62ch; }
.bigpartner { height: 84px; width: 220px; }
.bigpartner img[alt="BaliCASH"] { max-height: 56px; }
.quick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-color: rgba(56, 198, 180, .3); }
.seg.big { align-self: flex-start; flex-wrap: wrap; }
.seg.big button { padding: 8px 14px; font-size: 14px; }
.psteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.psteps li { display: flex; gap: 8px; align-items: center; color: var(--faint); }
.psteps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.psteps li.on { color: var(--text); }
.psteps li.on::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.psteps li.ok { color: var(--muted); }
.psteps li.ok::before { background: var(--good); border-color: var(--good); }
@keyframes spin { to { transform: rotate(360deg); } }
.perr { margin: 0; color: var(--bad); font-size: 13.5px; }
.form { display: grid; gap: 12px; }
textarea { resize: vertical; }

@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lead, .g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .rail .brand, .rail-foot, .navgroup > span { display: none; }
  #nav { flex-direction: row !important; gap: 4px !important; }
  .navgroup { flex-direction: row; }
  .nav { white-space: nowrap; width: auto; }
  .top { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .content { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .rep { grid-template-columns: minmax(0, 1fr) auto; }
  .rep svg, .rep .num { display: none; }
  .paycard, .agenthero { grid-template-columns: minmax(0, 1fr); }
  .bigpartner { width: 100%; }
  .mrow { grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) 36px; }
}
@media (max-width: 480px) { .g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sh h1 { font-size: 23px; } .ring { width: 120px; height: 120px; } .ring .v b { font-size: 34px; } .top .partners-mini { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .rail, .top, .foot, .btn, details.how, .banner { display: none !important; }
  .shell { display: block; }
  body, td { background: #fff; color: #111; }
  .card, .tile { border-color: #ccc; background: #fff; }
}

/* v1.2: property business view */
.bizhook { background: linear-gradient(120deg, rgba(240,169,91,.13), rgba(56,198,180,.08)); border-color: rgba(240,169,91,.35); }
.bizhook h2 { font-size: 22px; margin-bottom: 4px; }
.sun { color: var(--sun); }
.issues span.sun { color: var(--sun); font-family: var(--mono); font-weight: 600; }
.fn { margin-bottom: 10px; }
.fnl { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.fnl b { font-family: var(--mono); }
.fnb { height: 10px; background: var(--panel-2); border-radius: 6px; margin: 4px 0 2px; overflow: hidden; }
.fnb i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #2a9e8f); border-radius: 6px; }
.fn small { font-size: 12px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.checks li { display: flex; gap: 8px; align-items: baseline; }
.checks li span { width: 18px; color: var(--faint); font-weight: 700; }
.checks li.ok { color: var(--text); }
.checks li.ok span { color: var(--good); }

/* sponsors with taglines */
.sponsors { display: flex; gap: 10px; flex-wrap: wrap; }
.sponsor { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 6px 12px 6px 6px; min-width: 0; flex: 1 1 260px; }
.sponsor .partner { height: 38px; padding: 6px 10px; flex: none; }
.sponsor .partner img { max-height: 20px; }
.sponsor .partner img[alt="BaliCASH"] { max-height: 26px; }
.sponsor b { display: block; font-size: 13px; }
.sponsor small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.sponsor:hover { border-color: var(--line); }
.foot .sponsors { flex: 1 1 520px; }

/* mobile app chrome (hidden on desktop) */
.mbrand, .tabbar, .sheet, .installbar { display: none; }
@media (max-width: 820px) {
  .rail { display: none; }
  .mbrand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
  .mbrand svg { width: 28px; height: 28px; }
  .mbrand b { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
  .top { padding-top: max(10px, env(safe-area-inset-top, 0px)); padding-bottom: 10px; top: 0; gap: 8px 10px; }
  .top .pick { order: 5; flex: 1 1 100%; }
  .top .pick label { display: none; }
  .top select { max-width: none; min-height: 40px; }
  .top .seg { margin-left: auto; }
  .content { padding-top: 18px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); gap: 16px; }
  .foot { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  input, select, textarea { font-size: 16px !important; }
  .btn { min-height: 44px; padding: 10px 16px; }
  .card { border-radius: 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(14, 24, 27, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px max(6px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-right, 0px)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; color: var(--muted); text-decoration: none; background: none; border: 0; border-radius: 12px; font-size: 11px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; min-width: 0; }
  .tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabbar svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar button svg circle { fill: currentColor; stroke: none; }
  .tabbar .on { color: var(--accent); }
  .tabbar .on svg { background: var(--accent-soft); border-radius: 10px; padding: 3px; width: 34px; height: 28px; }
  .sheet { display: block; position: fixed; inset: 0; z-index: 40; }
  .sheet[hidden] { display: none; }
  .sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: var(--rail); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .22s ease; display: flex; flex-direction: column; gap: 14px; }
  .sheet.open .sheet-bg { opacity: 1; }
  .sheet.open .sheet-panel { transform: none; }
  .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 0; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; }
  .sheet-head h2 { font-size: 18px; }
  .sgroup > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); margin: 0 0 6px; }
  .sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sgrid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 78px; padding: 10px 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
  .sgrid a svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sgrid a.on { border-color: var(--accent); background: var(--accent-soft); }
  .sgrid a.hot { border-color: rgba(240, 169, 91, .5); background: var(--sun-soft); }
  .sgrid a.hot svg { stroke: var(--sun); }
  .installbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 25; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); flex-wrap: wrap; }
  .installbar[hidden] { display: none; }
  .installbar img { border-radius: 10px; flex: none; }
  .installbar > div:nth-child(2) { flex: 1 1 160px; min-width: 0; }
  .installbar b { display: block; font-size: 14px; }
  .installbar small { color: var(--muted); font-size: 12.5px; }
  .installbar .ib { display: flex; gap: 6px; }
  .ishare { width: 16px; height: 16px; vertical-align: -3px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .bizhook h2 { font-size: 19px; }
  .sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 360px) { .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tile { padding: 12px; } .tile b { font-size: 20px; white-space: nowrap; } .tile span { font-size: 11px; } }
@media (max-width: 820px) { .sh h1 { font-size: 24px; } .sh p { font-size: 14px; } .banner { font-size: 13.5px; padding: 10px 12px; } }

/* v1.3 Booking Booster */
.bpick { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.bpick > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bpick .lbl { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.algo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.algo li { display: flex; gap: 10px; align-items: flex-start; background: var(--panel-2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.algo li span { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 600 12px var(--mono); background: var(--accent-soft); color: var(--accent); }
.bwhen { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 18px 0 8px; }
.bsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bsteps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel); }
.bsteps li.mine { border-color: rgba(240, 169, 91, .45); background: linear-gradient(90deg, rgba(240, 169, 91, .07), transparent 60%); }
.bsteps .bn { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 600 13px var(--mono); background: var(--accent); color: var(--accent-ink); }
.bsteps b { display: block; font-size: 15px; margin-bottom: 2px; }
.bsteps p { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.bsteps .pill { white-space: normal; text-align: left; }
.bconc { border-color: rgba(56, 198, 180, .4); background: linear-gradient(120deg, rgba(56, 198, 180, .1), rgba(240, 169, 91, .06)); }
.bconc > p { margin: 0 0 10px; }
.payline { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.payline p { margin: 0; font-size: 14px; }
.payline .row { gap: 8px; }
@media (max-width: 820px) { .tabbar a, .tabbar button { font-size: 10.5px; } .tabbar .on svg { width: 30px; } .payline .btn { flex: 1 1 100%; } }
/* v1.3.1 small phones (360–430 wide, 640–933 tall): one-row header, tighter first screen */
@media (max-width: 480px) {
  .top { flex-wrap: nowrap; gap: 8px; padding-top: max(8px, env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
  .mbrand b { display: none; }
  .mbrand svg { width: 32px; height: 32px; }
  .top .pick { order: 0; flex: 1 1 0; min-width: 0; }
  .top select { min-height: 38px; font-size: 14px !important; padding-block: 6px; text-overflow: ellipsis; }
  .top .seg { margin-left: 0; flex: none; }
  .top .seg button { padding: 6px 9px; }
  .content { padding-top: 14px; gap: 14px; }
  .banner { font-size: 12.5px; padding: 8px 10px; gap: 8px; }
  .sh { gap: 6px; }
  .sh h1 { font-size: 22px; }
  .card { padding: 14px; }
  .bsteps li { padding: 10px; gap: 10px; grid-template-columns: 26px minmax(0, 1fr); }
  .bsteps .bn { width: 26px; height: 26px; }
  .sgrid a { min-height: 70px; }
}
@media (max-width: 480px) and (max-height: 720px) {
  .sh > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
  .sh > p.open { display: block; }
  .tabbar a, .tabbar button { min-height: 46px; }
  .tabbar svg { width: 21px; height: 21px; }
  .content { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 374px) { .tabbar a, .tabbar button { font-size: 10px; } .g4 .tile b { font-size: 18px; } }

/* v1.4 alive: diagnosis, motion, subtle sponsors */
@keyframes rise { from { opacity: .25; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
.btn, .tabbar a, .tabbar button, .sgrid a, .seg button, .nav { transition: transform .12s ease, background-color .2s ease, color .2s ease, border-color .2s ease, filter .2s ease; }
.btn:active, .sgrid a:active, .seg button:active, .pchip:active { transform: scale(.96); }
.tabbar a:active svg, .tabbar button:active svg { transform: scale(.88); }
.tabbar .on svg { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
@media (hover: hover) { .card { transition: border-color .25s ease, transform .25s ease; } .card:hover { border-color: var(--line); } }
.btn.sm { min-height: 34px !important; padding: 6px 12px !important; font-size: 12.5px; }
.diag { position: relative; overflow: hidden; border-color: rgba(56, 198, 180, .35); background: radial-gradient(120% 140% at 100% 0%, rgba(56,198,180,.12), transparent 55%), var(--panel); }
.diag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.05) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 2.8s ease-out .4s 1; pointer-events: none; }
@keyframes sheen { to { transform: translateX(100%); } }
.dhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dhead h2 { margin: 0; font-size: 18px; }
.dpulse { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; color: var(--good); }
.dpulse.warn { background: var(--warn); color: var(--warn); } .dpulse.bad { background: var(--bad); color: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dg { background: var(--panel-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; border-top: 3px solid var(--line); }
.dg.prob { border-top-color: var(--bad); } .dg.sol { border-top-color: var(--accent); } .dg.pred { border-top-color: var(--sun); }
.dk { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.dg b { font-size: 15.5px; line-height: 1.3; }
.dg b.sun { font-family: var(--mono); font-size: 20px; }
.dg small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
@media (max-width: 820px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
/* sponsors: quiet presence */
.payline { border-top-color: var(--line-soft); }
.payline p { font-size: 13px; color: var(--muted); }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 30px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; transition: color .2s, border-color .2s, transform .12s; }
.pchip img { height: 22px; width: auto; max-width: 64px; background: var(--chip); border-radius: 20px; padding: 3px 7px; object-fit: contain; }
.pchip:hover { color: var(--text); border-color: var(--line); }
.partner { opacity: .78; filter: saturate(.75); transition: opacity .2s, filter .2s, transform .15s; }
.partner:hover, .sponsor:hover .partner { opacity: 1; filter: none; }
.foot { font-size: 12px; }
.foot .sponsors { gap: 8px; }
.foot .sponsor { background: transparent; border-color: var(--line-soft); padding: 4px 10px 4px 4px; flex: 0 1 auto; }
.foot .sponsor .partner { height: 30px; padding: 4px 8px; }
.foot .sponsor .partner img { max-height: 16px; } .foot .sponsor .partner img[alt="BaliCASH"] { max-height: 20px; }
.foot .sponsor b { font-size: 12px; } .foot .sponsor small { font-size: 11px; }
.top .partners-mini .partner { height: 30px; }
@media (prefers-reduced-motion: reduce) { .rise, .diag::after, .dpulse, .tabbar .on svg { animation: none !important; } }

/* ===== v1.5 MONEY TIME: separate earning segment (gold for BaliCASH, violet for Xepeng) ===== */
:root { --gold: #ffc65c; --gold-2: #ff9f3d; --gold-ink: #2a1600; --vio: #a493ff; --vio-2: #6f5cff; }
.mt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mthero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 22px 22px; text-align: center; border: 1px solid rgba(255, 198, 92, .45);
  background: radial-gradient(120% 90% at 50% -10%, rgba(255, 198, 92, .38), transparent 60%), radial-gradient(80% 60% at 100% 100%, rgba(164, 147, 255, .22), transparent 70%), linear-gradient(180deg, #221a0c, #120f0a); }
.mtkick { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(255, 198, 92, .12); border: 1px solid rgba(255, 198, 92, .35); border-radius: 999px; padding: 4px 10px; position: relative; }
.mttitle { font: 900 clamp(38px, 11vw, 64px)/1 var(--display); letter-spacing: -.02em; margin: 12px 0 8px; color: #fff4dc; position: relative; text-shadow: 0 4px 30px rgba(255, 170, 60, .45); }
.mttitle b { background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mtshine 3.2s linear infinite; }
@keyframes mtshine { to { background-position: -200% 0; } }
.mthero > p { color: #f0dcbc; max-width: 52ch; margin: 0 auto 16px; position: relative; }
.mttotal { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 198, 92, .4); border-radius: 18px; padding: 12px 22px; max-width: 100%; }
.mttotal span { font-size: 12.5px; color: #f0dcbc; }
.mttotal b { font: 800 clamp(26px, 8vw, 38px)/1.15 var(--display); color: var(--gold); white-space: nowrap; }
.mttotal small { font-size: 11.5px; color: #bfa98a; }
.mtjump { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mtj { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; font: 700 13.5px var(--body); cursor: pointer; border: 1px solid; padding: 8px 10px; }
.mtj img { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; flex: none; }
.mtj.bc { background: rgba(255, 198, 92, .14); border-color: rgba(255, 198, 92, .5); color: var(--gold); }
.mtj.xp { background: rgba(164, 147, 255, .14); border-color: rgba(164, 147, 255, .5); color: var(--vio); }
.mtcoins i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, var(--gold) 45%, #c47a1e); box-shadow: 0 0 12px rgba(255, 198, 92, .6); opacity: .0; animation: mtfloat 6s ease-in-out infinite; }
.mtcoins i:nth-child(1) { left: 8%; top: 70%; animation-delay: 0s; } .mtcoins i:nth-child(2) { left: 88%; top: 60%; animation-delay: 1s; width: 10px; height: 10px; }
.mtcoins i:nth-child(3) { left: 20%; top: 18%; animation-delay: 2s; width: 9px; height: 9px; } .mtcoins i:nth-child(4) { left: 78%; top: 14%; animation-delay: 3s; }
.mtcoins i:nth-child(5) { left: 50%; top: 86%; animation-delay: 4s; width: 8px; height: 8px; } .mtcoins i:nth-child(6) { left: 94%; top: 34%; animation-delay: 5s; width: 7px; height: 7px; }
@keyframes mtfloat { 0% { transform: translateY(14px) scale(.7); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-60px) scale(1); opacity: 0; } }
.mtcard { border-radius: 20px; padding: 20px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-margin-top: 80px; }
.mtcard.bc { border-color: rgba(255, 198, 92, .45); background: linear-gradient(160deg, rgba(255, 198, 92, .16), rgba(255, 198, 92, .02) 55%), #13110c; }
.mtcard.xp { border-color: rgba(164, 147, 255, .45); background: linear-gradient(160deg, rgba(164, 147, 255, .18), rgba(164, 147, 255, .02) 55%), #11101a; }
.mtcard.rcv { border-color: rgba(164, 147, 255, .25); background: #10111a; }
.mthead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mthead > div { flex: 1; min-width: 0; }
.mthead h2 { font-size: 19px; line-height: 1.25; margin: 2px 0 0; }
.mtno { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--display); color: var(--gold-ink); background: var(--gold); }
.xp .mtno, .rcv .mtno { background: var(--vio); color: #140f33; }
.mttag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.xp .mttag, .rcv .mttag { color: var(--vio); }
.mtlogo { flex: none; background: #fff; border-radius: 12px; padding: 6px; display: grid; place-items: center; }
.mtlogo img { height: 28px; width: auto; max-width: 84px; display: block; }
.mtwhy { margin: 0; color: #e6dccb; }
.xp .mtwhy, .rcv .mtwhy { color: #dcd8f2; }
.mtrate { display: flex; align-items: center; gap: 12px; background: rgba(164, 147, 255, .12); border: 1px dashed rgba(164, 147, 255, .55); border-radius: 14px; padding: 10px 14px; }
.mtrate b { font: 900 34px/1 var(--display); color: var(--vio); }
.mtrate span { font-size: 13.5px; color: #dcd8f2; }
.mtlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mtlist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.mtck { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--gold); color: var(--gold-ink); margin-top: 1px; }
.xp .mtck { background: var(--vio); color: #140f33; }
.mtcalc { background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; padding: 14px; }
.mtcalc h3 { font-size: 15px; margin: 0 0 10px; } .mtcalc h3 small { color: var(--faint); font-weight: 500; }
.mtin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xp .mtin { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mtin .field label { font-size: 12px; line-height: 1.3; }
.mtin input { width: 100%; min-width: 0; }
.mtout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; margin-top: 12px; }
.mtout > div { border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .04); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mtout span { font-size: 12px; color: var(--muted); }
.mtout b { font: 800 18px/1.2 var(--display); overflow-wrap: anywhere; }
.mtout small { font-size: 12px; color: var(--muted); }
.mtout .big { background: rgba(255, 198, 92, .14); } .mtout .big b { color: var(--gold); font-size: 21px; }
.xp .mtout .big { background: rgba(164, 147, 255, .16); } .xp .mtout .big b { color: var(--vio); }
.mtnote { font-size: 12px; color: var(--faint); margin: 10px 0 0; }
.mtcta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border-radius: 16px; text-decoration: none; text-align: center; padding: 10px 16px; font: 800 16.5px var(--display); }
.mtcta small { font: 600 12px var(--body); opacity: .8; }
.mtcta.bc { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: var(--gold-ink); box-shadow: 0 10px 30px rgba(255, 159, 61, .3); }
.mtcta.xp { background: linear-gradient(90deg, var(--vio), var(--vio-2)); color: #fff; box-shadow: 0 10px 30px rgba(111, 92, 255, .3); }
.mtcta.ghost { border: 1px solid rgba(164, 147, 255, .55); color: var(--vio); background: rgba(164, 147, 255, .08); }
.mtcta.bc::after, .mtcta.xp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); animation: mtsweep 3.6s ease-in-out infinite; }
@keyframes mtsweep { 60%, 100% { transform: translateX(120%); } }
.mtcta:active { transform: scale(.98); }
.mtflow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: f; }
.mtflow li { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(164, 147, 255, .08); border: 1px solid rgba(164, 147, 255, .2); min-width: 0; }
.mtflow li + li::before { content: "→"; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); color: var(--vio); font-weight: 800; font-size: 13px; }
.mtflow b { font-size: 13.5px; color: #fff; } .mtflow span { font-size: 11.5px; color: #c9c4e8; line-height: 1.3; }
.mtsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.mtsteps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
.mtsteps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--gold); color: var(--gold-ink); }
.mtsteps span { color: var(--muted); font-size: 13.5px; }
/* teaser on analysis pages: one quiet row that only navigates */
.mtban { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; border-radius: 16px; padding: 12px 14px; border: 1px solid rgba(255, 198, 92, .3); background: linear-gradient(100deg, rgba(255, 198, 92, .1), rgba(164, 147, 255, .06)), var(--panel); color: var(--text); font: inherit; }
.mtban-c { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); }
.mtban-c svg { width: 24px; height: 24px; stroke: var(--gold-ink); fill: none; stroke-width: 1.9; stroke-linecap: round; }
.mtban-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mtban-t b { font: 900 15px var(--display); letter-spacing: .02em; } .mtban-t b i { font-style: normal; color: var(--gold); }
.mtban-t small { color: var(--muted); font-size: 12.5px; }
.mtban-go { color: var(--gold); font-size: 20px; font-weight: 800; }
.agentbtn.mtrail { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: var(--gold-ink); letter-spacing: .04em; font-weight: 900; }
/* tab bar: raised centre MONEY TIME button */
@media (max-width: 820px) {
  .tabbar { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); overflow: visible; }
  .tabbar a.mtab { position: relative; color: var(--gold-ink); justify-content: flex-end; padding-bottom: 2px; }
  .tabbar a.mtab i { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--gold), var(--gold-2)); box-shadow: 0 6px 18px rgba(255, 159, 61, .45), 0 0 0 4px var(--rail); animation: mtpulse 2.6s ease-in-out infinite; }
  .tabbar a.mtab i svg { width: 28px; height: 28px; stroke: var(--gold-ink); stroke-width: 2; background: none !important; padding: 0 !important; animation: none !important; }
  .tabbar a.mtab span { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: 9.5px; font-weight: 900; letter-spacing: .06em; color: var(--gold); margin-top: 30px; }
  .tabbar a.mtab span b { font-size: 11px; }
  .tabbar a.mtab.on i { box-shadow: 0 0 0 4px var(--rail), 0 0 0 6px var(--gold); }
}
@keyframes mtpulse { 0%, 100% { box-shadow: 0 6px 18px rgba(255, 159, 61, .45), 0 0 0 4px var(--rail); } 50% { box-shadow: 0 6px 26px rgba(255, 159, 61, .75), 0 0 0 4px var(--rail); } }
@media (max-width: 480px) {
  .mthero { padding: 22px 16px 18px; border-radius: 20px; }
  .mtcard { padding: 16px; }
  .mthead h2 { font-size: 17px; }
  .xp .mtin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp .mtin .field:last-child { grid-column: 1 / -1; }
  .mtlogo img { height: 22px; max-width: 64px; }
  .mtj { font-size: 12.5px; }
}
@media (max-width: 374px) { .tabbar a, .tabbar button { font-size: 9.5px; } .tabbar a.mtab i { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .mttitle b, .mtcoins i, .mtcta::after, .tabbar a.mtab i { animation: none !important; } .mtcoins i { opacity: .6; } }

/* v1.5.1 WhatsApp button + company line */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 22; width: 46px; height: 46px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); text-decoration: none; transition: transform .15s ease; }
.wa svg { width: 26px; height: 26px; } .wa:active { transform: scale(.92); }
.legal { display: block; width: 100%; font-size: 10.5px; color: var(--faint); letter-spacing: .02em; margin-top: 6px; }
@media (max-width: 820px) { .wa { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; } .wa svg { width: 24px; height: 24px; } .installbar:not([hidden]) ~ .wa { display: none; } }
@media print { .wa { display: none; } }

/* ---------- v1.6: start page, sample report, calmer look ---------- */
/* One typeface everywhere; numbers line up with tabular figures instead of a code font. */
:root { --mono: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif; }
body { font-variant-numeric: tabular-nums; }
.dk, .issues .ix, .steps li::before { letter-spacing: 0; }
/* Sponsors already sit in the side rail on desktop; keep the header clean there. */
@media (min-width: 821px) { .top .partners-mini { display: none; } }
.top .pick.off { display: none; }

/* Diagnosis: plain card, no glow, pulse or sheen. */
.diag { background: var(--panel); border-color: var(--line-soft); }
.diag::after { display: none; }
.dhead h2 { font-size: 16px; }
.dg { border-top-width: 2px; }
.dk { font: 600 12.5px var(--body); text-transform: none; color: var(--muted); }
.dg b.sun { font-family: var(--display); font-size: 20px; font-weight: 800; }

/* Start page */
.start { display: flex; flex-direction: column; gap: 12px; max-width: 700px; padding: 6px 0 4px; }
.start .kicker { font-size: 13px; font-weight: 600; color: var(--accent); }
.start h1 { font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.start p { margin: 0; color: var(--muted); font-size: 16px; max-width: 60ch; }
.startform { display: flex; gap: 8px; margin-top: 6px; }
.startform input { flex: 1; min-width: 0; font-size: 16px; padding: 12px 14px; }
.startform .btn { padding: 12px 22px; font-size: 15px; }
.plats { font-size: 13px; color: var(--faint); }
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: h; }
.howto li { counter-increment: h; display: flex; flex-direction: column; gap: 4px; }
.howto li::before { content: counter(h); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.howto b { font-size: 15px; }
.howto span { color: var(--muted); font-size: 14px; }
.card.alt p { margin: 0 0 14px; font-size: 14px; }
.mylist { display: flex; flex-direction: column; }
.myrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.myrow:first-child { border-top: 0; padding-top: 0; }
.myrow .sc { font: 800 20px var(--display); min-width: 36px; text-align: center; }
.myrow > div { flex: 1; min-width: 0; }
.myrow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Empty analysis pages */
.emptys { padding: 24px; }
.emptys p { color: var(--muted); margin: 0 0 16px; }

/* Sample mode bar */
.demobar { display: flex; gap: 10px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--sun-soft); border: 1px solid rgba(240, 169, 91, .35); border-radius: var(--r); padding: 10px 14px; }
.demobar p { margin: 0; font-size: 14px; color: #f6d3ab; }
.demobar b { color: var(--sun); margin-right: 8px; }

/* Copy-the-text steps */
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.tsteps > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.tsteps .sn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.tsteps b { display: block; margin: 4px 0 6px; font-size: 15px; }
.tsteps p { margin: 0 0 10px; }
.tsteps .url { overflow-wrap: anywhere; }
.tsteps textarea, .tsteps input { width: 100%; }

/* Sample report */
.exhead .pill { align-self: flex-start; }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bacol { display: flex; gap: 16px; align-items: center; min-width: 0; }
.bacol .ring { flex: none; }
.bacol .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bacol h3 { font-size: 15px; margin: 4px 0 2px; overflow-wrap: anywhere; }
.chg td { white-space: normal; vertical-align: top; }
.chg td:first-child { color: var(--muted); white-space: nowrap; }
.chg td.up { color: var(--good); }
.cta2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 820px) {
  .howto, .ba, .cta2 { grid-template-columns: minmax(0, 1fr); }
  .start h1 { font-size: 27px; }
  .start p { font-size: 15px; }
}
@media (max-width: 480px) {
  .startform { flex-direction: column; }
  .bacol .ring { width: 88px !important; height: 88px !important; }
  .bacol .ring .v b { font-size: 26px; }
}
.top .seg { margin-left: auto; }
