:root {
  color-scheme: dark;
  --bg: #03050a;
  --surface: #080c16;
  --surface-2: #111726;
  --surface-3: #171f31;
  --border: #1a2131;
  --border-strong: #263048;
  --text: #f1f3f8;
  --text-2: #b3bacb;
  --muted: #7f889c;
  --accent: #2f6bff;
  --accent-hover: #4a7fff;
  --good: #22c55e;
  --warn: #fab219;
  --bad: #ef5b5b;
  --grid: #1c2232;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
  --radius: 24px;
  --gutter: 16px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --bg-rgb: 3, 5, 10; --surface-rgb: 8, 12, 22; --accent-rgb: 47, 107, 255; --ink-rgb: 255, 255, 255;
  --info-bg: #0b1530; --info-border: #1c3470; --info-text: #bcd0ff; --hero-border: #1d2742; --scrub: #cfe0ff; --on-accent: #fff;
  --demo-bg: #1d1606; --demo-text: #f5c451; --demo-border: #3a2c08; --warn-bg: #1a1405; --warn-border: #3d2f0a; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --red-text: var(--red-text); --danger-text: #ff8a8a; --danger-border: #4a2227; --danger-bg: #2a1317;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
/* a barra de rolagem não aparece/some ao trocar de aba: o menu e os botões não mudam de lugar na hora do clique */
@media (min-width: 1100px) {html { scrollbar-gutter: stable; overflow-y: scroll; }}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + var(--sab) + 20px);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .num { font-family: var(--font-display); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--sat)) max(var(--gutter), env(safe-area-inset-right)) 10px max(var(--gutter), env(safe-area-inset-left));
  background: rgba(var(--bg-rgb), 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 19px; min-width: 0; }
.brand img { border-radius: 11px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span.has-wm { overflow: visible; }
/* o nome em lettering: o "g" desce abaixo da linha e não pode ser cortado */
.top-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.topbar .brand { flex: 1 1 auto; }
@media (max-width: 430px) {.topbar { gap: 8px; }
.top-actions { gap: 1px; }
.topbar .icon-btn { width: 38px; height: 38px; border-radius: 12px; }
.topbar .icon-btn svg { width: 20px; height: 20px; }
.brand { gap: 8px; font-size: 16px; }}
@media (max-width: 360px) {.brand span { display: none; }}
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: none; border: 0; color: var(--text-2);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn .ic-off { display: none; }
.icon-btn[aria-pressed="false"] .ic-on { display: none; }
.icon-btn[aria-pressed="false"] .ic-off { display: block; }
.icon-btn[aria-pressed="true"] { color: var(--text); }
.icon-btn[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 0 2px var(--bg);
}
.nav-desktop { display: none; gap: 4px; }
.nav-desktop a { padding: 9px 16px; border-radius: 999px; color: var(--text-2); font-weight: 500; }
.nav-desktop a:hover { color: var(--text); background: var(--surface-2); }
.nav-desktop a.active { color: var(--text); background: var(--surface-3); }
/* ---------- tab bar (celular) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + var(--sab)) max(8px, env(safe-area-inset-left));
  background: rgba(var(--surface-rgb), 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--border);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border-radius: 16px; color: var(--muted); font-size: 11.5px; font-weight: 500;
}
.tabbar a.active { color: var(--text); }
.tabbar a.active svg { color: var(--accent-hover); }
.tabbar a:active { background: var(--surface-2); }
.demo-bar {
  background: var(--demo-bg); color: var(--demo-text); text-align: center; font-size: 13px; padding: 7px 16px;
  border-bottom: 1px solid var(--demo-border);
}
main { max-width: 1240px; margin: 0 auto; padding: 22px var(--gutter) 24px; }
/* ---------- page head */
.page-head h1 { font-size: 32px; margin: 0 0 4px; font-weight: 700; }
.page-head p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.updated { color: var(--muted); font-size: 12.5px; flex-basis: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 20px; border-radius: 16px;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text);
  font-size: 15.5px; font-weight: 500;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.btn svg { flex: none; }
.btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ---------- cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.section { margin-top: 30px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-title h2 { font-size: 20px; margin: 0; font-weight: 600; }
.section-title span { color: var(--muted); font-size: 13px; text-align: right; }
/* ---------- filters */
.filters { padding: 16px 0 16px; overflow: hidden; }
.filters > * { padding-left: 16px; padding-right: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  min-height: 42px; border: 0; background: var(--surface-2); color: var(--text-2);
  padding: 9px 18px; border-radius: 999px; font-size: 15.5px; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip:hover { color: var(--text); background: var(--surface-3); }
.chip.active { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -6px rgba(var(--accent-rgb), .65); }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.filters hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; padding: 0; }
.chip-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 14px 0 8px; }
.custom-range { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.input, select.input {
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 12px; padding: 11px 12px; min-height: 44px; font: inherit; font-size: 16px; min-width: 0;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.banner {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 16px; padding: 14px 16px; border-radius: 18px;
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-size: 14px;
}
.banner a { text-decoration: underline; color: var(--warn-link); }
.banner.info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); align-items: center; }
.banner.info .banner-actions { display: flex; gap: 8px; margin-left: auto; flex: none; }
.banner .grow { flex: 1; min-width: 0; }
/* ---------- hero + stats */
.hero {
  position: relative; overflow: hidden;
  margin-top: 16px; padding: 26px 24px 22px;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(var(--accent-rgb), .20), transparent 58%),
    radial-gradient(90% 90% at 100% 100%, rgba(144, 133, 233, .10), transparent 60%),
    var(--surface);
  border-color: var(--hero-border);
}
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.hero-value { font-family: var(--font-display); font-size: clamp(44px, 12.5vw, 64px); font-weight: 500; line-height: 1.05; margin: 8px 0 10px; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--text-2); font-size: 15.5px; max-width: 560px; }
.spark { display: block; width: calc(100% + 48px); height: 64px; margin: 16px -24px -22px; }
.spark path.line { fill: none; stroke: var(--accent-hover); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(var(--ink-rgb), .07); }
.hero-split div { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.hero-split strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: clamp(15px, 4.2vw, 20px); color: var(--text); font-weight: 500; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.stat { padding: 18px 18px 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(var(--ink-rgb), .025), transparent 55%), var(--surface); }
.stat .label { color: var(--text-2); font-size: 14px; }
.stat .value { font-family: var(--font-display); font-size: clamp(21px, 6vw, 30px); font-weight: 500; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
/* ---------- chart */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chart-head h2 { font-size: 20px; margin: 0; font-weight: 600; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; color: var(--text-2); padding: 8px 14px; min-height: 36px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.seg button.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.chart-wrap { position: relative; width: 100%; }
.chart-wrap svg { display: block; width: 100%; height: 260px; overflow: visible; }
.chart-wrap rect[data-i] { touch-action: pan-y; }
.chart-wrap .axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart-empty { height: 200px; display: grid; place-items: center; color: var(--muted); }
.tooltip {
  position: fixed; z-index: 50; pointer-events: none;
  background: #0f1422; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; min-width: 180px; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.tooltip .t-title { color: var(--text-2); margin-bottom: 6px; }
.tooltip .t-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-variant-numeric: tabular-nums; }
.tooltip .t-row span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.tooltip .t-total { border-top: 1px solid var(--border-strong); margin-top: 6px; padding-top: 6px; font-weight: 600; }
/* ---------- model + partner cards */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.model-card { padding: 0; overflow: hidden; }
.model-card > summary, .model-card > .m-static { list-style: none; padding: 18px 20px; cursor: pointer; display: block; }
.model-card > summary::-webkit-details-marker { display: none; }
.model-card > .m-static { cursor: default; }
.m-body { padding: 0 20px 18px; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.model-card h3 { margin: 0; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; min-width: 0; }
.model-card h3 .swatch { width: 12px; height: 12px; border-radius: 4px; }
.chev { flex: none; color: var(--muted); transition: transform .2s; }
.model-card[open] .chev { transform: rotate(180deg); }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.m-value { font-family: var(--font-display); font-size: 32px; font-weight: 500; margin: 12px 0 2px; letter-spacing: -0.02em; }
.m-caption { color: var(--muted); font-size: 13px; }
.rows { display: grid; gap: 0; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.row span:first-child { color: var(--text-2); }
.row span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.row.strong span { color: var(--text); font-weight: 600; }
.bar-split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 4px 0 8px; background: var(--surface-2); }
.bar-split i { display: block; height: 100%; }
.split-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
/* ---------- lists */
.list { padding: 4px 0; }
.list-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 20px; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: 0; }
.list-row .l-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.list-row .l-main strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .l-sub { grid-column: 1 / -1; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.list-row .l-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 16px; }
.status { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.paid { color: var(--good); background: rgba(34,197,94,.1); }
.status.pending { color: var(--warn); background: rgba(250,178,25,.1); }
.status.failed { color: var(--muted); background: var(--surface-2); }
.status.refunded { color: var(--bad); background: rgba(239,91,91,.1); }
.meter { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; grid-column: 1 / -1; }
.meter i { display: block; height: 100%; background: var(--series-1); border-radius: 999px; }
/* ---------- loading */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border: 1px solid var(--border); }
.sk-hero { height: 220px; margin-top: 16px; }
.sk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.sk-grid .skeleton { height: 96px; border-radius: 22px; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* ---------- webhooks + config */
.stack { display: grid; gap: 14px; }
.url-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.url-row:first-of-type { border-top: 0; }
.url-row .who { font-weight: 600; font-size: 14px; grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.url-row code {
  font-size: 12.5px; color: var(--text-2); background: var(--surface-2); padding: 11px 12px; border-radius: 10px;
  overflow-x: auto; white-space: nowrap; display: block; min-width: 0;
}
.plat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.plat-head h3 { margin: 0; font-size: 18px; }
.help { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.help code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; color: var(--text-2); }
details.event { border-top: 1px solid var(--border); }
details.event summary { list-style: none; cursor: pointer; padding: 13px 20px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
details.event summary::-webkit-details-marker { display: none; }
details.event summary .e-res { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
details.event pre {
  margin: 0 20px 14px; padding: 12px; background: var(--surface-2); border-radius: 12px;
  font-size: 12px; color: var(--text-2); overflow-x: auto; max-height: 340px;
}
.form-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.field .input { width: 100%; }
.model-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.model-form:first-of-type { border-top: 0; padding-top: 4px; }
.model-form .full { grid-column: 1 / -1; }
.pct-note { font-size: 12px; color: var(--muted); grid-column: 1 / -1; margin-top: -4px; }
.plat-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.plat-form h3 { grid-column: 1 / -1; margin: 0; font-size: 16px; }
.name-field { grid-column: 1 / -1; }
.fee-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.fee-title { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--text); margin-top: 4px; }
.fee-title small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.fee-grid label:nth-of-type(3) { grid-column: 1 / -1; }
.toggle { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; font-size: 15px; color: var(--text-2); min-height: 44px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.alert-opts { display: grid; gap: 2px; margin: 6px 0 14px; }
.alert-opts .toggle { grid-column: auto; }
.perm { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.save-bar {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--sab) + 10px); padding: 12px 0;
  background: linear-gradient(transparent, var(--bg) 40%); display: flex; gap: 12px; justify-content: flex-end;
}
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--sab) + 18px); transform: translateX(-50%); z-index: 60;
  background: rgba(17, 26, 46, .94); color: #fff; border: 1px solid rgba(255, 255, 255, .14); padding: 12px 20px; border-radius: 18px; font-size: 14.5px; font-weight: 500; line-height: 1.35;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 34px -10px rgba(5, 10, 30, .55);
  max-width: calc(100vw - 32px); text-align: center; pointer-events: none;
}
.empty { padding: 28px 22px; color: var(--muted); text-align: center; }
/* ---------- aviso de venda */
.sale-toasts {
  position: fixed; z-index: 70; left: 0; right: 0; top: calc(var(--sat) + 10px);
  display: grid; gap: 8px; justify-items: center; padding: 0 12px; pointer-events: none;
}
.sale-toast {
  pointer-events: auto; width: min(420px, 100%);
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 20px;
  background: rgba(var(--surface-rgb), .94); border: 1px solid var(--info-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(var(--accent-rgb), .15);
  animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.sale-toast .t-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(34, 197, 94, .14); color: var(--good); }
.sale-toast strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.2; }
.sale-toast small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.sale-toast button { background: none; border: 0; color: var(--muted); width: 32px; height: 32px; border-radius: 10px; font-size: 20px; line-height: 1; }
.sale-toast.out { opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
/* ---------- login */
.login-body { display: grid; place-items: center; padding: 16px; padding-bottom: 16px; }
.login-card { width: 100%; max-width: 380px; display: grid; gap: 14px; text-align: center; justify-items: center; }
.login-card h1 { margin: 6px 0 0; font-size: 24px; }
.login-card p { margin: 0; }
.login-card .input, .login-card .btn { width: 100%; justify-content: center; }
.error { color: var(--bad); }
/* ---------- celular grande (iPhone Pro Max ≈ 440pt) */
@media (min-width: 400px) {:root { --gutter: 18px; }
.stat { padding: 20px 20px 18px; }}
/* ---------- tablet e computador */
@media (min-width: 760px) {:root { --gutter: 28px; }
body { padding-bottom: 48px; font-size: 15.5px; }
.topbar { padding-top: 12px; padding-bottom: 12px; }
main { padding-top: 34px; }
.page-head h1 { font-size: 36px; }
.head-actions { flex-wrap: nowrap; }
.updated { flex-basis: auto; margin-left: 6px; }
.filters { padding: 20px 0; }
.filters > * { padding-left: 22px; padding-right: 22px; }
.chips { flex-wrap: wrap; overflow: visible; }
.card { padding: 24px; }
.hero { padding: 34px 36px 30px; }
.hero-split { max-width: 640px; }
.spark { position: absolute; right: 0; bottom: 0; width: 46%; height: 150px; margin: 0; opacity: .95; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-wrap svg { height: 320px; }
.toast, .save-bar { bottom: 24px; }
.save-bar { bottom: 0; }
.sale-toasts { justify-items: end; padding: 0 24px; top: 74px; }
.model-form { grid-template-columns: 2fr 1.4fr 1fr; align-items: end; }
.model-form .full { grid-column: auto; }
.plat-form { grid-template-columns: 1fr 1fr; align-items: end; }
.plat-form h3 { grid-column: 1 / -1; align-self: center; }
.fee-grid { grid-template-columns: repeat(3, 1fr); }
.fee-grid label:nth-of-type(3) { grid-column: auto; }
.toggle { grid-column: auto; }
.model-card > summary { cursor: default; pointer-events: none; }
.chev { display: none; }
.list-row { padding: 14px 24px; }}
@media (min-width: 1100px) {.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat .value { font-size: 28px; }}
@media (max-width: 759px) {.grid-3 { grid-template-columns: 1fr; }
.filters .chips { margin: 0; padding-left: 0; padding-right: 0; }
.filters > .chips { padding-left: 16px; padding-right: 16px; }}
@media (min-width: 760px) {.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 380px) {.chip { padding: 8px 14px; font-size: 15px; }
.hero { padding: 22px 18px 20px; }
.spark { width: calc(100% + 36px); margin-left: -18px; margin-right: -18px; margin-bottom: -20px; }}
@media (prefers-reduced-motion: reduce) {* { animation-duration: .01ms !important; transition-duration: .01ms !important; }}
/* ---------- gráfico interativo ---------- */
html { scroll-behavior: smooth; }
.view-in { animation: viewin .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chart-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chart-head { align-items: flex-start; }
.legend { align-items: center; gap: 8px; }
.lg {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid transparent; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; transition: opacity .2s, background .2s, border-color .2s, transform .1s;
}
.lg:hover { background: var(--surface-3); }
.lg:active { transform: scale(.97); }
.lg[aria-pressed="false"] { opacity: .45; }
.lg[aria-pressed="false"] .swatch { background: transparent !important; box-shadow: inset 0 0 0 2px var(--muted); }
.lg-hint { color: var(--muted); font-size: 12px; margin-left: 4px; }
.chart-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.chart-sum:empty { display: none; }
.chart-sum > div { background: var(--surface-2); border-radius: 16px; padding: 11px 14px; min-width: 0; }
.chart-sum span { display: block; font-size: 11.5px; color: var(--muted); }
.chart-sum strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(15px, 4.4vw, 21px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-sum small { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 1px; }
.chart-wrap svg { outline: none; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.chart-wrap svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.chart-wrap .ov { touch-action: pan-y; }
.chart-wrap .hl { fill: rgba(120, 150, 255, .10); transition: opacity .12s; pointer-events: none; }
.chart-wrap .pinhl { fill: none; stroke: var(--accent-hover); stroke-width: 1.5; pointer-events: none; }
.chart-wrap .xh { stroke: rgba(180, 195, 230, .45); stroke-width: 1; stroke-dasharray: 3 4; pointer-events: none; }
.chart-wrap .dot { stroke: var(--surface); stroke-width: 2.5; pointer-events: none; }
.chart-wrap .ln { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart-wrap .area { opacity: .12; }
.chart-wrap .end { stroke: var(--surface); stroke-width: 2.5; }
.chart-wrap g.bar { transition: opacity .15s; }
.chart-wrap.has-hot g.bar:not(.hot) { opacity: .42; }
.chart-wrap svg.anim g.bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .6s cubic-bezier(.2, .85, .25, 1) both; animation-delay: calc(var(--i) * 16ms); }
.chart-wrap svg.anim .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s cubic-bezier(.3, .6, .2, 1) forwards; animation-delay: calc(var(--k) * 90ms); }
.chart-wrap svg.anim .end, .chart-wrap svg.anim .area { animation: fadein .5s ease both; animation-delay: .8s; }
@keyframes grow { from { transform: scaleY(0); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }
.tooltip { transition: opacity .1s; backdrop-filter: blur(10px); background: rgba(var(--surface-rgb), .94); }
.tooltip .t-total em { font-style: normal; font-size: 11.5px; margin-left: 6px; }
.tooltip .up { color: var(--good); }
.tooltip .down { color: var(--bad); }
.day-detail { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.day-hint { color: var(--muted); font-size: 13px; text-align: center; padding: 4px 8px; }
.dd-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dd-head strong { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.dd-x { background: var(--surface-2); border: 0; color: var(--text-2); width: 34px; height: 34px; border-radius: 11px; font-size: 20px; line-height: 1; }
.dd-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.dd-kpis > div { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.dd-kpis span { display: block; font-size: 11.5px; color: var(--muted); }
.dd-kpis strong { font-family: var(--font-display); font-weight: 500; font-size: 17px; white-space: nowrap; }
.dd-rows { display: grid; }
.dd-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.dd-row span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dd-row span:nth-child(2), .dd-row span:nth-child(3), .dd-me { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.dd-row span:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
.dd-row span:nth-child(3) { grid-column: 1; grid-row: 2; }
.dd-me { grid-column: 2; grid-row: 2; text-align: right; }
@media (min-width: 760px) {.dd-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dd-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.dd-row span:nth-child(2), .dd-row span:nth-child(3), .dd-me { grid-column: auto; grid-row: auto; text-align: left; }
.dd-me { text-align: right; }
.chart-head { align-items: center; }}
@media (hover: hover) {.card { transition: border-color .25s, transform .25s; }
.stat:hover, .model-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }}
/* ---------- abas, tabelas e porcentagens ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 16px 0 12px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 14px; color: var(--text-2); font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tab-n { font-size: 12px; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.tab-n:empty { display: none; }
.tab.active .tab-n { color: var(--text); }
.vstats { margin-top: 0; }
.vsearch { margin: 14px 0 12px; }
.vsearch .input { width: 100%; }
.vmore { display: grid; place-items: center; padding: 16px 0 4px; color: var(--muted); font-size: 13px; }
.l-sub .me { color: var(--text); }
.l-sub .vid { color: var(--muted); font-variant-numeric: tabular-nums; }
.stackbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--surface-2); margin: 6px 0 14px; }
.stackbar i { display: block; height: 100%; min-width: 3px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.stack-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.stack-legend > div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.stack-legend strong { color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.stack-legend small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.dotc { width: 11px; height: 11px; border-radius: 4px; margin-top: 5px; flex: none; }
.s-paid { background: #22c55e; }
.s-pending { background: #fab219; }
.s-refunded { background: #ef5b5b; }
.s-failed { background: #596176; }
.m-mine { background: var(--accent); }
.m-partner { background: #9085e9; }
.m-bot { background: #d95926; }
.m-gw { background: #c98500; }
.tbl-wrap { padding: 6px 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: right; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { text-align: right; padding: 13px 16px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; vertical-align: middle; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl td:first-child { white-space: nowrap; }
.tbl td.strong, .tbl td strong { color: var(--text); font-weight: 600; }
.tbl tfoot td { border-top: 1px solid var(--border-strong); font-weight: 600; color: var(--text); }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl .swatch { margin-right: 8px; }
.rate { position: relative; display: inline-block; width: 120px; height: 24px; border-radius: 8px; background: var(--surface-2); overflow: hidden; vertical-align: middle; text-align: left; }
.rate i { position: absolute; inset: 0 auto 0 0; background: rgba(var(--accent-rgb), .45); border-radius: 8px; }
.rate span { position: relative; padding-left: 9px; font-size: 12.5px; line-height: 24px; color: var(--text); font-weight: 500; }
@media (max-width: 759px) {.stack-legend { grid-template-columns: 1fr; }
.tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
.tbl thead { display: none; }
.tbl tbody tr { padding: 14px 18px; border-top: 1px solid var(--border); }
.tbl tbody tr:first-child { border-top: 0; }
.tbl td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
.tbl td:first-child { font-size: 16px; padding-bottom: 8px; justify-content: flex-start; }
.tbl td::before { content: attr(data-l); color: var(--muted); font-size: 13px; text-align: left; }
.tbl td:first-child::before { display: none; }
.tbl td.act { justify-content: flex-end; padding-top: 10px; }
.tbl td.act::before { display: none; }
.tbl tfoot tr { padding: 14px 18px; border-top: 1px solid var(--border-strong); display: block; }
.tbl tfoot td { display: flex; justify-content: space-between; border: 0; padding: 3px 0; }
.tbl tfoot td::before { content: attr(data-l); color: var(--muted); font-weight: 400; font-size: 13px; }
.rate { width: 150px; }}
/* ---------- saques ---------- */
.partner-card { padding: 20px; }
.pc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.pc-kpis > div { background: var(--surface-2); border-radius: 16px; padding: 11px 14px; }
.pc-kpis span { display: block; font-size: 12px; color: var(--muted); }
.pc-kpis strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 4.6vw, 22px); }
.pc-kpis strong.warn, .wd-prev .warn { color: var(--warn); }
.partner-card .tbl-wrap { padding: 0; }
.row-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn.danger { color: var(--danger-text); border-color: var(--danger-border); }
.btn.danger:hover { background: var(--danger-bg); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.dlg { border: 1px solid var(--border-strong); border-radius: 26px; background: var(--surface); color: var(--text); padding: 0; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px rgba(0, 0, 0, .65); }
.dlg::backdrop { background: rgba(2, 4, 10, .72); backdrop-filter: blur(6px); }
.dlg[open] { animation: viewin .25s cubic-bezier(.2, .9, .3, 1.1) both; }
.dlg-body { padding: 22px; display: grid; gap: 14px; }
.dlg-body h3 { margin: 0; font-size: 21px; }
.dlg-body p { margin: 0; font-size: 14px; }
.dlg-body .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.wd-prev { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; display: grid; gap: 4px; color: var(--text-2); }
.wd-prev b { color: var(--text); }
.bulk-list { display: grid; gap: 2px; max-height: 240px; overflow-y: auto; }
.bulk-list .toggle b { margin-left: auto; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {.pc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }}
/* ---------- cartão principal interativo ---------- */
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.seg-sm button { padding: 6px 13px; min-height: 32px; font-size: 13px; }
.hero-value { transition: color .15s; }
.hero-value.scrub { color: var(--scrub); }
.hero-delta { min-height: 26px; font-size: 14px; margin: -2px 0 8px; }
.chip-d { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; margin-right: 6px; }
.chip-d.up { color: var(--good); background: rgba(34, 197, 94, .13); }
.chip-d.down { color: var(--bad); background: rgba(239, 91, 91, .13); }
.hero .eyebrow { transition: opacity .15s; }
.spark-wrap { position: relative; height: 156px; margin: 14px -24px -6px; touch-action: pan-y; cursor: crosshair; outline: none; }
.spark-wrap.empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; cursor: default; }
.spark-wrap .spark { display: block; position: static; width: 100%; height: 100%; margin: 0; }
.spark-wrap:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 12px; }
.spark-line { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(190, 205, 235, .45); opacity: 0; pointer-events: none; transition: opacity .12s; }
.spark-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent-hover); border: 3px solid var(--surface); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .2); opacity: 0; pointer-events: none; transition: opacity .12s; }
.spark-tip { position: absolute; top: 2px; transform: translateX(-50%); padding: 5px 11px; border-radius: 11px; background: rgba(var(--surface-rgb), .95); border: 1px solid var(--border-strong); font-size: 12.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.spark-wrap.on .spark-line, .spark-wrap.on .spark-dot, .spark-wrap.on .spark-tip { opacity: 1; }
/* gráfico principal: grade fina, datas embaixo e o ponto de pico marcado */
.spk-grid line { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 2 6; opacity: .85; }
.spark-x { position: absolute; left: 24px; right: 24px; bottom: 8px; display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .03em; color: var(--muted); pointer-events: none; font-variant-numeric: tabular-nums; }
.spark-pk { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); pointer-events: none; transition: opacity .2s; }
.spark-pkl { position: absolute; margin: 0 0 0 12px; transform: translateY(-50%); display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(var(--accent-rgb), .12); color: var(--text); font-size: 11.5px; white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.spark-pkl.l { margin: 0 12px 0 0; transform: translate(-100%, -50%); }
.spark-pkl small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spark-pkl b { font-weight: 700; }
.spark-pkl em { font-style: normal; color: var(--muted); font-size: 10.5px; }
.spark-wrap.on .spark-pkl, .spark-wrap.on .spark-pk { opacity: 0; }
@media (min-width: 760px) {.spark-wrap { position: absolute; right: 0; bottom: 0; width: 50%; height: 240px; margin: 0; }
.spark-x { left: 14px; right: 14px; }
.spark-wrap.empty { display: none; }
.hero { min-height: 300px; }}
@media (max-width: 380px) {.spark-wrap { margin-left: -18px; margin-right: -18px; margin-bottom: -6px; }
.spark-x { left: 18px; right: 18px; }}
/* ---------- conta, Telegram e acessos ---------- */
.partner-row { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.partner-row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 760px) {.partner-row { grid-template-columns: 1fr 1.6fr; }}
.steps { margin: 6px 0 14px; padding-left: 20px; color: var(--text-2); font-size: 14px; display: grid; gap: 6px; }
.steps code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3a4560; margin-right: 10px; }
.online-dot.on { background: var(--good); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.tbl .act .btn { margin: 2px 0 2px 4px; }
/* ---------- animação fluida e sem seleção azul ---------- */
.hero, .hero *, #chart-card, #chart-card *, .spark-wrap, .chart-wrap {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.hero ::selection, #chart-card ::selection, .spark-wrap ::selection { background: transparent; }
.spark-wrap svg, .chart-wrap svg { -webkit-user-drag: none; pointer-events: auto; }
.spark-wrap .spark { pointer-events: none; }
.spark-wrap .line.dim { fill: none; stroke: rgba(122, 156, 255, .26); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark-wrap .spark path.line { stroke: var(--accent-hover); stroke-width: 2.7; }
.spark-wrap .spark path.line.dim { stroke: rgba(122, 156, 255, .26); stroke-width: 2; }
.spark-line, .spark-dot, .spark-tip { left: 0; will-change: transform; }
.spark-line { transition: opacity .18s; }
.spark-dot { top: 0; transition: opacity .18s; }
.spark-tip { transition: opacity .18s; }
.spark-wrap.on .spark-dot { animation: dotpulse 1.4s ease-in-out infinite; }
@keyframes dotpulse { 50% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), .08); } }
.hero-value { font-variant-numeric: tabular-nums; }
.tooltip { left: 0; top: 0; transition: transform .14s cubic-bezier(.2, .8, .2, 1), opacity .12s; will-change: transform; }
.chart-wrap .hl, .chart-wrap .pinhl, .chart-wrap .xh, .chart-wrap .dot { transition: transform .2s cubic-bezier(.2, .85, .25, 1), opacity .16s; }
.chart-wrap g.bar { transition: opacity .18s, filter .18s; }
.chart-wrap g.bar.hot { filter: brightness(1.22); }
/* ---------- interruptor Líquido / Meu valor ---------- */
.view-switch { margin: -4px 0 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.vs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vs-label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.vs-help { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.view-switch .seg button { min-height: 38px; padding: 8px 18px; font-size: 14.5px; }
/* ---------- filtros escondidos atrás de botões ---------- */
.scope-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; align-items: center; }
.scope-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid transparent; color: var(--text-2); font-size: 14.5px;
  transition: background .18s, border-color .18s, transform .1s;
}
.scope-btn:hover { background: var(--surface-3); }
.scope-btn:active { transform: scale(.98); }
.scope-btn b { color: var(--text); font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-btn.on { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .12); }
.scope-btn[aria-expanded="true"] { border-color: var(--accent-hover); background: var(--surface-3); }
.scope-btn .chv, .fold-btn .chv { transition: transform .22s; color: var(--muted); flex: none; }
.scope-btn[aria-expanded="true"] .chv, .fold-btn[aria-expanded="true"] .chv { transform: rotate(180deg); }
.scope-panel { padding: 12px 16px 2px; animation: viewin .22s ease both; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.filters .scope-panel .chips { padding-left: 0; padding-right: 0; }
.fold-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; margin-bottom: 12px;
  transition: border-color .2s, background .2s;
}
.fold-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.fold-btn b { font-family: var(--font-display); font-size: 20px; font-weight: 600; display: block; }
.fold-btn small { color: var(--muted); font-size: 13px; }
.fold-btn[aria-expanded="false"] { margin-bottom: 0; }
.fold-btn + [hidden] { display: none !important; }
/* ---------- reembolsos em vermelho e vendas ao vivo ---------- */
.hero-refund { min-height: 26px; margin: -2px 0 6px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.rf-red { color: var(--red-text); background: rgba(239, 91, 91, .13); padding: 3px 11px; border-radius: 999px; font-weight: 500; transition: background .2s; }
.rf-red b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rf-red:hover { background: rgba(239, 91, 91, .22); }
.rf-before, .rf-none { color: var(--muted); font-size: 13px; }
.spark-rf { position: absolute; bottom: 4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 3px rgba(255, 90, 90, .2); pointer-events: none; }
.spark-live { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--good); opacity: 0; pointer-events: none; }
.spark-live.go { animation: livepulse 1.6s ease-out; }
@keyframes livepulse { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { opacity: 1; box-shadow: 0 0 0 22px rgba(34, 197, 94, 0); } 100% { opacity: 0; box-shadow: 0 0 0 22px rgba(34, 197, 94, 0); } }
.chart-wrap g.bar.bump { transform-box: fill-box; transform-origin: 50% 100%; animation: bump .8s cubic-bezier(.2, .9, .3, 1.15); }
.chart-wrap .end.bump { animation: endbump .9s ease-out; }
@keyframes bump { 0% { transform: scaleY(.9); filter: brightness(1.7); } 55% { transform: scaleY(1.05); } 100% { transform: none; filter: none; } }
@keyframes endbump { 0% { r: 4.5; } 40% { r: 9; } 100% { r: 4.5; } }
.tooltip .t-row.rf { color: var(--red-text); }
.dd-rf { margin: 10px 0 0; color: var(--red-text); background: rgba(239, 91, 91, .1); padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; }
/* ---------- como dividir o saque ---------- */
.split-note { margin-top: 14px; padding: 13px 15px; background: var(--surface-2); border-radius: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-size: 14.5px; color: var(--text-2); }
.split-note b { color: var(--text); }
.split-note em { font-style: normal; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
/* ---------- reembolso discreto; opção própria "Reembolsos" ---------- */
.rf-red { background: none; padding: 0; border-radius: 0; color: var(--red-text); font-weight: 500; font-size: 13.5px; }
.rf-red:hover { background: none; text-decoration: underline; }
.spark-rf { display: none; }
.spark-wrap.refund .spark path.line { stroke: #ff6b6b; }
.spark-wrap.refund .spark path.line.dim { stroke: rgba(255, 107, 107, .26); }
.spark-wrap.refund .spark-dot { background: #ff6b6b; box-shadow: 0 0 0 6px rgba(255, 107, 107, .2); }
.spark-wrap.refund .spark-line { background: rgba(255, 140, 140, .45); }
/* ---------- 5 opções cabem sem quebrar ---------- */
.seg button { white-space: nowrap; }
.seg-sm { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-sm::-webkit-scrollbar { display: none; }
@media (max-width: 480px) {.seg-sm button { padding: 6px 11px; font-size: 12.5px; }}
/* ---------- topo compacto: o gráfico principal aparece logo de cara ---------- */
main { padding-top: 12px; }
.filters { padding: 10px 0 12px; margin-bottom: 0; }
.filters .scope-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.filters .scope-row .scope-btns { padding: 0; flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filters .scope-row .scope-btns::-webkit-scrollbar { display: none; }
.scope-btn { min-height: 40px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.scope-btn b { max-width: 110px; }
.chip.clear { padding: 8px 13px; flex: none; }
.tools { display: flex; align-items: center; gap: 0; flex: none; }
.icon-btn.sm { width: 40px; height: 40px; }
.icon-btn.spinning svg { animation: spin .8s linear infinite; }
.hero { margin-top: 10px; padding: 18px 18px 16px; }
.hero-value { margin: 4px 0 6px; font-size: clamp(40px, 11.5vw, 60px); }
.hero-sub, #hero-sub { font-size: 13.5px; }
.hero p { font-size: 14px; }
.hero-delta { margin-bottom: 4px; }
.spark-wrap { height: 104px; margin-top: 8px; }
.hero-split { margin-top: 14px; padding-top: 12px; gap: 8px; }
.hero-split:has(> div:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats { margin-top: 10px; }
.updated { text-align: center; margin: 22px 0 0; }
@media (min-width: 760px) {main { padding-top: 18px; }
.hero { padding: 26px 30px 24px; }}
#eye .ic-on, #eye .ic-off { width: 22px; height: 22px; }
/* ---------- tutorial ---------- */
.guide { display: grid; gap: 10px; }
.g-step { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.g-step[open] { border-color: var(--border-strong); }
.g-step summary { display: flex; align-items: center; gap: 12px; padding: 16px 16px; cursor: pointer; list-style: none; font-size: 16px; }
.g-step summary::-webkit-details-marker { display: none; }
.g-step summary b { flex: 1; font-weight: 600; }
.g-step summary .chv { color: var(--muted); transition: transform .22s; }
.g-step[open] summary .chv { transform: rotate(180deg); }
.g-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(var(--accent-rgb), .16); color: var(--accent-hover); font-family: var(--font-display); font-weight: 600; flex: none; }
.g-body { padding: 2px 18px 18px 18px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.g-body p { margin: 0 0 10px; }
.g-body ol, .g-body ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 7px; }
.g-body b { color: var(--text); font-weight: 600; }
.g-body code { background: var(--surface-2); padding: 2px 7px; border-radius: 7px; font-size: 13px; color: var(--scrub); word-break: break-all; }
.g-tip { background: rgba(var(--accent-rgb), .09); border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 14px; padding: 10px 14px; }
#eye::after { display: none !important; }
@media (max-width: 759px) {#hero-sub { display: none; }
.scope-btn { padding: 6px 10px; font-size: 13.5px; gap: 6px; }
.scope-btn b { max-width: 78px; }
.hero-top { gap: 8px; }}
/* ---------- saúde das vendas e webhooks ---------- */
.health { padding: 18px; border-color: var(--border-strong); }
.health.ok { background: radial-gradient(120% 140% at 0% 0%, rgba(34, 197, 94, .09), transparent 60%), var(--surface); }
.health.warn { background: radial-gradient(120% 140% at 0% 0%, rgba(250, 178, 25, .10), transparent 60%), var(--surface); border-color: rgba(250, 178, 25, .35); }
.health-state { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-top: 4px; }
.h-list { margin-top: 12px; display: grid; gap: 2px; }
.h-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.h-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.h-dot.ok { background: var(--good); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.h-dot.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(250, 178, 25, .15); }
.h-main { flex: 1; min-width: 0; display: grid; }
.h-main small, .h-n small { color: var(--muted); font-size: 12.5px; }
.h-n { text-align: right; display: grid; }
.h-n b { font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.h-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.inline-set { display: block; margin-top: 12px; color: var(--text-2); font-size: 14px; }
.inline-set .input { width: 70px; min-height: 38px; padding: 6px 10px; display: inline-block; margin: 0 4px; text-align: center; }
.inline-set small { color: var(--muted); }
.url-card { padding: 0; overflow: hidden; }
.url-card > summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; cursor: pointer; list-style: none; }
.url-card > summary::-webkit-details-marker { display: none; }
.url-card > summary h3 { margin: 0; font-size: 18px; }
.url-card > summary .chv { color: var(--muted); transition: transform .22s; }
.url-card[open] > summary .chv { transform: rotate(180deg); }
.url-card > :not(summary) { margin-left: 18px; margin-right: 18px; }
.url-card > :last-child { margin-bottom: 18px; }
.org-field { margin-bottom: 8px; }
.sp-card { border-color: rgba(250, 178, 25, .35); }
.sp-item { padding: 12px 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.sp-cands { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.l-main small { font-size: 12.5px; }
/* ---------- controle financeiro ---------- */
.pay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pay-actions .btn { min-height: 44px; padding: 8px 16px; font-size: 14.5px; flex: 1 1 auto; }
.pay-actions .btn.primary { flex: 2 1 160px; }
.pcard .m-value { font-size: 30px; }
.pcard .btn { margin-top: 12px; width: 100%; }
.seg-full { display: flex; width: 100%; margin: 4px 0 12px; }
.seg-full button { flex: 1; }
@media (min-width: 760px) {.pay-actions .btn { flex: 0 0 auto; }
.pay-actions .btn.primary { flex: 0 0 auto; }
.pcard .btn { width: auto; }}
/* ---------- login / cadastro ---------- */
.link-btn { background: none; border: 0; color: var(--accent-hover); font-size: 14px; padding: 8px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.ok-msg { color: var(--good); font-size: 14px; margin: 0; text-align: center; }
.warn { color: var(--warn); }
@media (max-width: 420px) {.filters .scope-row { gap: 4px; }
.scope-btn { padding: 6px 8px; font-size: 13px; gap: 5px; min-height: 38px; }
.scope-btn b { max-width: 52px; }
.scope-btn .chv { width: 14px; height: 14px; }
.filters .scope-row .scope-btns { gap: 5px; }
.icon-btn.sm { width: 36px; height: 36px; }}
/* ---------- botão "Modelos" no gráfico ---------- */
.lg-models { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 600; }
.lg-models .chv { width: 16px; height: 16px; color: var(--muted); transition: transform .22s; }
.lg-models.on { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .14); }
.lg-models.on .chv { transform: rotate(180deg); }
/* ---------- painel de outra pessoa (só leitura) e primeiros passos ---------- */
.view-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px var(--gutter); background: var(--info-bg); border-bottom: 1px solid var(--info-border); color: var(--info-text); font-size: 13.5px; }
.g-row { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.g-row p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; }
/* =====================================================================
   TEMAS: escuro (padrão), azul, claro, esmeralda, violeta e os especiais hot, mk, guarujá, class e fogo forte. Escolha em Ajustes › Aparência.
   ===================================================================== */
html[data-theme="claro"] {
  color-scheme: light;
  --bg: #f2f4f9; --surface: #ffffff; --surface-2: #eef1f7; --surface-3: #e3e8f2;
  --border: #dde3ee; --border-strong: #c5cfe2;
  --text: #0f1626; --text-2: #3c4760; --muted: #67718b;
  --accent: #2563eb; --accent-hover: #1d4fd0;
  --good: #15803d; --warn: #a76a06; --bad: #d03a3a; --grid: #e2e7f0;
  --bg-rgb: 242, 244, 249; --surface-rgb: 255, 255, 255; --accent-rgb: 37, 99, 235; --ink-rgb: 15, 22, 38;
  --info-bg: #eaf1ff; --info-border: #b9cdf5; --info-text: #1d3f91; --hero-border: #cfdaf0; --scrub: #1d4fd0; --on-accent: #fff;
  --demo-bg: #fff6df; --demo-text: #8a5a00; --demo-border: #f0dca6; --warn-bg: #fff6df; --warn-border: #f0dca6; --warn-text: #7a5200; --warn-link: #5c3d00;
  --red-text: #c62f2f; --danger-text: #c62f2f; --danger-border: #f0c4c4; --danger-bg: #fdeeee;
}
html[data-theme="claro"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(var(--accent-rgb), .13), transparent 58%), radial-gradient(90% 90% at 100% 100%, rgba(144, 133, 233, .10), transparent 60%), var(--surface); box-shadow: 0 10px 30px -18px rgba(30, 50, 100, .35); }
html[data-theme="claro"] .card, html[data-theme="claro"] .stat { box-shadow: 0 6px 22px -16px rgba(30, 50, 100, .30); }
html[data-theme="claro"] .skeleton { background: linear-gradient(90deg, #e9edf5 25%, #f4f6fb 50%, #e9edf5 75%); background-size: 200% 100%; }
html[data-theme="claro"] .dlg::backdrop, html[data-theme="claro"] dialog::backdrop { background: rgba(20, 28, 48, .45); }
html[data-theme="claro"] .rf-red, html[data-theme="claro"] .dd-rf, html[data-theme="claro"] .tooltip .t-row.rf { color: #c62f2f; }
html[data-theme="claro"] .brand img { box-shadow: 0 4px 14px -6px rgba(120, 90, 20, .5); }
html[data-theme="claro"] .tooltip, html[data-theme="claro"] .spark-tip { box-shadow: 0 10px 28px -10px rgba(30, 50, 100, .35); }
/* MK Neumórfico (tema principal): claro, macio e lavanda, com azul e ciano, no estilo do ícone da marca */
html[data-theme="neo"] {
  color-scheme: light;
  --bg: #dfe6fd; --surface: #f7f9ff; --surface-2: #eef2ff; --surface-3: #e1e8fc;
  --border: #d4dcf8; --border-strong: #b9c6f2;
  --text: #0d1530; --text-2: #33406b; --muted: #56659a;
  --accent: #0160fd; --accent-hover: #0a4fd1;
  --good: #0f8f4e; --warn: #a76a06; --bad: #d03a3a; --grid: #d6def8;
  --bg-rgb: 223, 230, 253; --surface-rgb: 247, 249, 255; --accent-rgb: 1, 96, 253; --ink-rgb: 13, 21, 48;
  --info-bg: #e6f0ff; --info-border: #b5ccf8; --info-text: #16409a; --hero-border: #cdd9fa; --scrub: #0a4fd1; --on-accent: #fff;
  --demo-bg: #fff6df; --demo-text: #8a5a00; --demo-border: #f0dca6; --warn-bg: #fff6df; --warn-border: #f0dca6; --warn-text: #7a5200; --warn-link: #5c3d00;
  --red-text: #c62f2f; --danger-text: #c62f2f; --danger-border: #f0c4c4; --danger-bg: #fdeeee;
}
html[data-theme="neo"] body { background: linear-gradient(180deg, #c3d0fe 0, #d9e1fd 34%, #e4e9fe 100%) fixed; }
html[data-theme="neo"] .card, html[data-theme="neo"] .stat { background: linear-gradient(180deg, #ffffff, #f3f6ff); border-color: rgba(255, 255, 255, .85); box-shadow: 0 22px 44px -28px rgba(76, 98, 205, .55), 0 2px 5px -2px rgba(80, 100, 200, .14), inset 0 1px 0 #fff; }
html[data-theme="neo"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(1, 96, 253, .10), transparent 58%), radial-gradient(90% 90% at 100% 100%, rgba(1, 219, 254, .16), transparent 60%), linear-gradient(180deg, #ffffff, #f1f4ff); border-color: rgba(255, 255, 255, .9); box-shadow: 0 28px 54px -30px rgba(76, 98, 205, .6), inset 0 1px 0 #fff; }
html[data-theme="neo"] .btn.primary { background: linear-gradient(180deg, #2f8aff, #0160fd); border-color: transparent; box-shadow: 0 12px 24px -12px rgba(1, 96, 253, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-theme="neo"] .btn.primary:hover { background: linear-gradient(180deg, #2a7ff0, #0a4fd1); }
html[data-theme="neo"] .btn:not(.primary), html[data-theme="neo"] .scope-btn, html[data-theme="neo"] .chip { box-shadow: 0 8px 18px -14px rgba(76, 98, 205, .55), inset 0 1px 0 #fff; }
html[data-theme="neo"] .topbar { background: rgba(223, 230, 253, .78); border-bottom-color: rgba(255, 255, 255, .7); }
html[data-theme="neo"] .tabbar { background: rgba(247, 249, 255, .84); border-top-color: rgba(255, 255, 255, .8); box-shadow: 0 -14px 34px -22px rgba(76, 98, 205, .55); }
html[data-theme="neo"] .tabbar a.active { background: linear-gradient(180deg, #ffffff, #e9efff); color: var(--accent); box-shadow: 0 10px 20px -14px rgba(76, 98, 205, .6), inset 0 1px 0 #fff; }
html[data-theme="neo"] .tabbar a.active svg { color: var(--accent); }
html[data-theme="neo"] .brand img { border-radius: 0; box-shadow: none; }
html[data-theme="neo"] .skeleton { background: linear-gradient(90deg, #e3e9fc 25%, #f1f4ff 50%, #e3e9fc 75%); background-size: 200% 100%; }
html[data-theme="neo"] .dlg::backdrop, html[data-theme="neo"] dialog::backdrop { background: rgba(28, 40, 96, .42); }
html[data-theme="neo"] .rf-red, html[data-theme="neo"] .dd-rf, html[data-theme="neo"] .tooltip .t-row.rf { color: #c62f2f; }
html[data-theme="neo"] .tooltip, html[data-theme="neo"] .spark-tip { box-shadow: 0 12px 30px -12px rgba(50, 70, 170, .4); }
.tp-neo { background: linear-gradient(180deg, #c3d0fe, #e4e9fe); }
.tp-neo i { background: #ffffff; box-shadow: 0 3px 6px -3px rgba(76, 98, 205, .5); }
.tp-neo .tp-body i:first-child { background: linear-gradient(135deg, #0160fd, #01d9fe); }
/* Tema Padrão Escuro: o mesmo estilo macio do tema claro, em azul-noite, com azul e ciano */
html[data-theme="neod"] {
  color-scheme: dark;
  --bg: #0b1021; --surface: #141b33; --surface-2: #1a2340; --surface-3: #232d52;
  --border: #243055; --border-strong: #34437a;
  --text: #eef2ff; --text-2: #b5c0e2; --muted: #7f8bb6;
  --accent: #2f8aff; --accent-hover: #5aa2ff;
  --good: #34d399; --warn: #fbbf24; --bad: #f87171; --grid: #1e2849;
  --bg-rgb: 11, 16, 33; --surface-rgb: 20, 27, 51; --accent-rgb: 47, 138, 255; --ink-rgb: 238, 242, 255;
  --info-bg: #111a38; --info-border: #2a3a73; --info-text: #bcd3ff; --hero-border: #2a3764; --scrub: #cfe0ff; --on-accent: #ffffff;
  --demo-bg: #17151f; --demo-text: #d9d6e6; --demo-border: #2e2c3e; --warn-bg: #1c170b; --warn-border: #4a3c14; --warn-text: #f3da8c; --warn-link: #ffe9a0;
  --series-1: #5aa2ff; --series-2: #01d9fe; --series-3: #34d399; --series-4: #f472b6; --series-5: #a78bfa; --series-6: #fbbf24; --series-7: #38bdf8; --series-8: #fb923c;
}
html[data-theme="neod"] body { background: linear-gradient(180deg, #0a0f1f 0, #101731 46%, #0c1226 100%) fixed; }
html[data-theme="neod"] .card, html[data-theme="neod"] .stat { background: linear-gradient(180deg, #19213f, #131a32); border-color: rgba(120, 150, 255, .14); box-shadow: 0 24px 46px -28px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07); }
html[data-theme="neod"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(47, 138, 255, .20), transparent 58%), radial-gradient(90% 90% at 100% 100%, rgba(1, 219, 254, .12), transparent 60%), linear-gradient(180deg, #1a2342, #131a33); border-color: rgba(120, 150, 255, .18); box-shadow: 0 30px 56px -32px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08); }
html[data-theme="neod"] .btn.primary { background: linear-gradient(180deg, #3d95ff, #0a5cff); border-color: transparent; color: #fff; box-shadow: 0 12px 26px -12px rgba(47, 138, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
html[data-theme="neod"] .btn.primary:hover { background: linear-gradient(180deg, #4a9dff, #1766ff); }
html[data-theme="neod"] .btn:not(.primary), html[data-theme="neod"] .scope-btn, html[data-theme="neod"] .chip { box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }
html[data-theme="neod"] .topbar { background: rgba(11, 16, 33, .78); border-bottom-color: rgba(120, 150, 255, .12); }
html[data-theme="neod"] .tabbar { background: rgba(20, 27, 51, .86); border-top-color: rgba(120, 150, 255, .14); box-shadow: 0 -16px 36px -22px rgba(0, 0, 0, .8); }
html[data-theme="neod"] .tabbar a.active { background: linear-gradient(180deg, #232d52, #1a2340); color: #8fc0ff; box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08); }
html[data-theme="neod"] .tabbar a.active svg { color: #8fc0ff; }
html[data-theme="neod"] .brand img { border-radius: 0; box-shadow: none; }
html[data-theme="neod"] .skeleton { background: linear-gradient(90deg, #172041 25%, #1f2a50 50%, #172041 75%); background-size: 200% 100%; }
html[data-theme="neod"] .dlg::backdrop, html[data-theme="neod"] dialog::backdrop { background: rgba(3, 6, 16, .66); }
html[data-theme="neod"] .tooltip, html[data-theme="neod"] .spark-tip { box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .8); }
.tp-neod { background: linear-gradient(180deg, #0a0f1f, #131a33); }
.tp-neod i { background: #1c2547; box-shadow: 0 3px 6px -3px rgba(0, 0, 0, .8); }
.tp-neod .tp-body i:first-child { background: linear-gradient(135deg, #2f8aff, #01d9fe); }
/* MK Azul e MK Vermelho: a cor da marca como cor principal (fundo, barras, ícone) e o resto branco (cartões, botões, textos sobre a cor).
   As duas usam as mesmas regras; só as variáveis --mk-* mudam. Dentro dos cartões (brancos) as variáveis voltam ao normal: texto escuro e destaque na cor da marca. */
html[data-theme="azul"] {
  --mk-bg: #0a47d8; --mk-bg-rgb: 10, 71, 216; --mk-grad: linear-gradient(180deg, #0a52ee 0, #0a45d2 50%, #0838b0 100%);
  --mk-s1: #1458ee; --mk-s2: #1d65fa; --mk-s3: #2f77ff; --mk-b1: #3d7cf6; --mk-b2: #6a9bff; --mk-s1-rgb: 20, 88, 238;
  --mk-tint: #f0f5ff; --mk-tint2: #dce7ff; --mk-on: #0a3fbd; --mk-i: #b9dcff; --mk-dark-rgb: 4, 24, 110;
  --mk-main: #0a56ff; --mk-main-l: #2a6bff; --mk-main-d: #0847d6; --mk-main-rgb: 10, 86, 255;
  --mk-ink: #0b1b4d; --mk-ink2: #33457f; --mk-mut: #4b5f94; --mk-ink-rgb: 11, 27, 77; --mk-line: #dbe5fb; --mk-line2: #c2d3f8; --mk-soft: #f1f5ff; --mk-soft2: #e4ecff;
  --mk-series: #0a56ff, #01a8e8, #6c8cff, #7c5cff, #10b981, #f59e0b, #ef4444, #ec4899;
  --mk-bad: #c62828; --mk-warn-bg: #fff6df; --mk-warn-line: #f0dca6; --mk-warn-text: #7a5200; --mk-warn-link: #5c3d00;
}
html[data-theme="vermelho"] {
  --mk-bg: #c8121f; --mk-bg-rgb: 200, 18, 31; --mk-grad: linear-gradient(180deg, #e0212f 0, #c4141f 50%, #9d0c18 100%);
  --mk-s1: #cc202e; --mk-s2: #d52f3c; --mk-s3: #de4350; --mk-b1: #e8626c; --mk-b2: #f79aa1; --mk-s1-rgb: 204, 32, 46;
  --mk-tint: #fff1f2; --mk-tint2: #ffe3e5; --mk-on: #b4121f; --mk-i: #ffc9ce; --mk-dark-rgb: 70, 4, 12;
  --mk-main: #d9192b; --mk-main-l: #e0303f; --mk-main-d: #b4121f; --mk-main-rgb: 217, 25, 43;
  --mk-ink: #2b0b10; --mk-ink2: #6b2a33; --mk-mut: #7a4650; --mk-ink-rgb: 43, 11, 16; --mk-line: #f7d7da; --mk-line2: #efb8bd; --mk-soft: #fff3f3; --mk-soft2: #ffe2e4;
  --mk-series: #d9192b, #f59e0b, #0ea5e9, #7c5cff, #10b981, #ec4899, #64748b, #f97316;
  --mk-bad: #8a0b17; --mk-warn-bg: #fff6df; --mk-warn-line: #f0dca6; --mk-warn-text: #7a5200; --mk-warn-link: #5c3d00;
}
html:is([data-theme="azul"], [data-theme="vermelho"]) {
  color-scheme: dark;
  --bg: var(--mk-bg); --surface: var(--mk-s1); --surface-2: var(--mk-s2); --surface-3: var(--mk-s3);
  --border: var(--mk-b1); --border-strong: var(--mk-b2);
  --text: #ffffff; --text-2: var(--mk-tint); --muted: var(--mk-tint2);
  --accent: #ffffff; --accent-hover: #ffffff; --on-accent: var(--mk-on);
  --good: #a6ffd0; --warn: #ffe08a; --bad: #ffd0d0; --grid: rgba(255, 255, 255, .22);
  --bg-rgb: var(--mk-bg-rgb); --surface-rgb: var(--mk-s1-rgb); --accent-rgb: 255, 255, 255; --ink-rgb: 255, 255, 255;
  --info-bg: rgba(255, 255, 255, .12); --info-border: rgba(255, 255, 255, .3); --info-text: #ffffff; --hero-border: rgba(255, 255, 255, .3); --scrub: #ffffff;
  --demo-bg: rgba(255, 255, 255, .14); --demo-text: #ffffff; --demo-border: rgba(255, 255, 255, .3);
  --warn-bg: rgba(var(--mk-dark-rgb), .38); --warn-border: rgba(255, 224, 138, .5); --warn-text: #ffeeb8; --warn-link: #fff8dc;
  --series-1: #0a56ff; --series-2: #01a8e8; --series-3: #6c8cff; --series-4: #7c5cff; --series-5: #10b981; --series-6: #f59e0b; --series-7: #ef4444; --series-8: #ec4899;
}
html[data-theme="vermelho"] { --series-1: #d9192b; --series-2: #f59e0b; --series-3: #0ea5e9; --series-4: #7c5cff; --series-5: #10b981; --series-6: #ec4899; --series-7: #64748b; --series-8: #f97316; }
/* cartões brancos, texto escuro e destaque na cor da marca */
html:is([data-theme="azul"], [data-theme="vermelho"]) .card, html:is([data-theme="azul"], [data-theme="vermelho"]) .stat, html:is([data-theme="azul"], [data-theme="vermelho"]) .hero, html:is([data-theme="azul"], [data-theme="vermelho"]) dialog, html:is([data-theme="azul"], [data-theme="vermelho"]) .dlg, html:is([data-theme="azul"], [data-theme="vermelho"]) .tooltip, html:is([data-theme="azul"], [data-theme="vermelho"]) .spark-tip, html:is([data-theme="azul"], [data-theme="vermelho"]) .more-menu, html:is([data-theme="azul"], [data-theme="vermelho"]) .sale-toast, html:is([data-theme="azul"], [data-theme="vermelho"]) .ach-pop-card, html:is([data-theme="azul"], [data-theme="vermelho"]) .ach-card, html:is([data-theme="azul"], [data-theme="vermelho"]) .g-step, html:is([data-theme="azul"], [data-theme="vermelho"]) .tp-row, html:is([data-theme="azul"], [data-theme="vermelho"]) .tp-pod, html:is([data-theme="azul"], [data-theme="vermelho"]) .rk-row, html:is([data-theme="azul"], [data-theme="vermelho"]) .rk-pod, html:is([data-theme="azul"], [data-theme="vermelho"]) .top-row {
  --surface: #ffffff; --surface-2: var(--mk-soft); --surface-3: var(--mk-soft2); --border: var(--mk-line); --border-strong: var(--mk-line2);
  --text: var(--mk-ink); --text-2: var(--mk-ink2); --muted: var(--mk-mut);
  --accent: var(--mk-main); --accent-hover: var(--mk-main-d); --accent-rgb: var(--mk-main-rgb); --on-accent: #ffffff;
  --bg-rgb: 255, 255, 255; --surface-rgb: 255, 255, 255; --ink-rgb: var(--mk-ink-rgb); --grid: var(--mk-line); --scrub: var(--mk-main-d);
  --good: #09703f; --warn: #8a5a0c; --bad: var(--mk-bad);
  --info-bg: var(--mk-soft); --info-border: var(--mk-line2); --info-text: var(--mk-ink2); --hero-border: var(--mk-line2);
  --demo-bg: var(--mk-soft); --demo-text: var(--mk-ink2); --demo-border: var(--mk-line2);
  --warn-bg: var(--mk-warn-bg); --warn-border: var(--mk-warn-line); --warn-text: var(--mk-warn-text); --warn-link: var(--mk-warn-link);
  color: var(--text);
}
html:is([data-theme="azul"], [data-theme="vermelho"]) body { background: var(--mk-grad) fixed; color: #fff; }
html:is([data-theme="azul"], [data-theme="vermelho"]) .card, html:is([data-theme="azul"], [data-theme="vermelho"]) .stat, html:is([data-theme="azul"], [data-theme="vermelho"]) .hero, html:is([data-theme="azul"], [data-theme="vermelho"]) .ach-card, html:is([data-theme="azul"], [data-theme="vermelho"]) .g-step, html:is([data-theme="azul"], [data-theme="vermelho"]) .tp-row, html:is([data-theme="azul"], [data-theme="vermelho"]) .tp-pod, html:is([data-theme="azul"], [data-theme="vermelho"]) .rk-row, html:is([data-theme="azul"], [data-theme="vermelho"]) .rk-pod, html:is([data-theme="azul"], [data-theme="vermelho"]) .top-row { background: #ffffff; border-color: rgba(255, 255, 255, .75); box-shadow: 0 22px 44px -26px rgba(var(--mk-dark-rgb), .8), inset 0 1px 0 #fff; }
html:is([data-theme="azul"], [data-theme="vermelho"]) .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(var(--mk-main-rgb), .13), transparent 58%), #ffffff; }
html:is([data-theme="azul"], [data-theme="vermelho"]) .topbar { background: rgba(var(--mk-bg-rgb), .84); border-bottom-color: rgba(255, 255, 255, .2); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tabbar { background: rgba(var(--mk-bg-rgb), .88); border-top-color: rgba(255, 255, 255, .24); box-shadow: 0 -16px 36px -22px rgba(var(--mk-dark-rgb), .8); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tabbar a.active, html:is([data-theme="azul"], [data-theme="vermelho"]) .nav-desktop a.active { background: #ffffff; color: var(--mk-main); box-shadow: 0 10px 20px -14px rgba(var(--mk-dark-rgb), .9); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tabbar a.active svg, html:is([data-theme="azul"], [data-theme="vermelho"]) .nav-desktop a.active svg { color: var(--mk-main); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tabs { background: rgba(var(--mk-dark-rgb), .3); border-color: rgba(255, 255, 255, .18); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tab.active { background: #ffffff; color: var(--mk-main); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .rw-line.on b { color: #8a5a00; }
html:is([data-theme="azul"], [data-theme="vermelho"]) .dash-ach .da-pct { color: #ffeeb8; }
html:is([data-theme="azul"], [data-theme="vermelho"]) :is(.card, .stat, .hero, .ach-card) .da-pct { color: var(--accent-hover); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .btn.primary { background: #ffffff; color: var(--mk-on); border-color: transparent; box-shadow: 0 12px 26px -12px rgba(var(--mk-dark-rgb), .65); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .btn.primary:hover { background: #f1f6ff; }
html:is([data-theme="azul"], [data-theme="vermelho"]) :is(.card, .stat, .hero, dialog, .dlg) .btn.primary { background: linear-gradient(180deg, var(--mk-main-l), var(--mk-main)); color: #ffffff; box-shadow: 0 12px 24px -12px rgba(var(--mk-main-rgb), .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
html:is([data-theme="azul"], [data-theme="vermelho"]) :is(.card, .stat, .hero, dialog, .dlg) .btn.primary:hover { background: linear-gradient(180deg, var(--mk-main-l), var(--mk-main-d)); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .btn:not(.primary), html:is([data-theme="azul"], [data-theme="vermelho"]) .scope-btn, html:is([data-theme="azul"], [data-theme="vermelho"]) .chip { box-shadow: 0 10px 20px -14px rgba(var(--mk-dark-rgb), .6); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .brand img { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55), 0 8px 20px -8px rgba(var(--mk-dark-rgb), .8); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .wm { --wm-accent: var(--mk-i); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .skeleton { background: linear-gradient(90deg, var(--mk-s1) 25%, var(--mk-s2) 50%, var(--mk-s1) 75%); background-size: 200% 100%; }
html:is([data-theme="azul"], [data-theme="vermelho"]) :is(.card, .stat, .hero) .skeleton { background: linear-gradient(90deg, var(--mk-soft2) 25%, var(--mk-soft) 50%, var(--mk-soft2) 75%); background-size: 200% 100%; }
html:is([data-theme="azul"], [data-theme="vermelho"]) .dlg::backdrop, html:is([data-theme="azul"], [data-theme="vermelho"]) dialog::backdrop { background: rgba(var(--mk-dark-rgb), .66); }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tooltip, html:is([data-theme="azul"], [data-theme="vermelho"]) .spark-tip { box-shadow: 0 14px 34px -12px rgba(var(--mk-dark-rgb), .6); }
.tp-azul { background: linear-gradient(180deg, #0a52ee, #0838b0); }
.tp-azul i { background: #ffffff; box-shadow: 0 3px 6px -3px rgba(4, 24, 110, .6); }
.tp-azul .tp-body i:first-child { background: #ffffff; }
.tp-vermelho { background: linear-gradient(180deg, #e0212f, #9d0c18); }
.tp-vermelho i { background: #ffffff; box-shadow: 0 3px 6px -3px rgba(70, 4, 12, .6); }
.tp-vermelho .tp-body i:first-child { background: #ffffff; }
/* escuro: mais escuro que o azul, minimalista (sem brilhos, só linhas finas) */
html[data-theme="escuro"] {
  color-scheme: dark;
  --bg: #010102; --surface: #09090b; --surface-2: #101013; --surface-3: #17171b;
  --border: #19191e; --border-strong: #2a2a31;
  --text: #ececf0; --text-2: #a2a2ac; --muted: #8b8b96;
  --accent: #7f93f5; --accent-hover: #a3b2ff;
  --good: #4ade80; --warn: #f2b630; --bad: #ef6b6b; --grid: #17171c;
  --bg-rgb: 1, 1, 2; --surface-rgb: 9, 9, 11; --accent-rgb: 127, 147, 245; --ink-rgb: 236, 236, 240;
  --info-bg: #0d0d12; --info-border: #26263a; --info-text: #c9d1ff; --hero-border: #1d1d24; --scrub: #dfe4ff; --on-accent: #0a0b14;
  --demo-bg: #0f0f13; --demo-text: #d4d4dc; --demo-border: #26262d; --warn-bg: #17140a; --warn-border: #3d3314; --warn-text: #f0d98a; --warn-link: #ffe9a0;
  --series-1: #8ea2ff; --series-2: #e8a23a; --series-3: #4ade9a; --series-4: #ee7a9c; --series-5: #b7a6f5; --series-6: #d9d46a; --series-7: #55c7d6; --series-8: #ef7b6b;
}
html[data-theme="escuro"] .hero { background: var(--surface); box-shadow: none; }
html[data-theme="escuro"] .card, html[data-theme="escuro"] .stat { box-shadow: none; }
html[data-theme="escuro"] .brand img { box-shadow: none; }
html[data-theme="esmeralda"] {
  color-scheme: dark;
  --bg: #030a07; --surface: #08130e; --surface-2: #0e1d16; --surface-3: #152b20;
  --border: #14291f; --border-strong: #1f3d2e;
  --text: #eaf7f0; --text-2: #aecbbb; --muted: #76917f;
  --accent: #19b37a; --accent-hover: #3ed69a;
  --good: #4ade80; --warn: #f2b630; --bad: #ef6b6b; --grid: #14291f;
  --bg-rgb: 3, 10, 7; --surface-rgb: 8, 19, 14; --accent-rgb: 25, 179, 122; --ink-rgb: 230, 255, 242;
  --info-bg: #0a1d15; --info-border: #17503a; --info-text: #b6f0d6; --hero-border: #173a2b; --scrub: #c6ffe6; --on-accent: #02150d;
  --demo-bg: #14200f; --demo-text: #cbe88a; --demo-border: #2c4417; --warn-bg: #1d1a0a; --warn-border: #4a3f14; --warn-text: #f3dc8a; --warn-link: #ffe9a0;
  --series-1: #3ed69a; --series-2: #e8a23a; --series-3: #5aa9f0; --series-4: #e3668f; --series-5: #a592f0; --series-6: #d9d46a; --series-7: #55c7d6; --series-8: #ef7b6b;
}
html[data-theme="esmeralda"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(var(--accent-rgb), .20), transparent 58%), radial-gradient(90% 90% at 100% 100%, rgba(60, 200, 220, .08), transparent 60%), var(--surface); }
/* ---------- temas especiais: hot, mk, guarujá, class, fogo forte ---------- */
html[data-theme="mk"] {
  color-scheme: dark;
  --bg: #070706; --surface: #100f0c; --surface-2: #18160f; --surface-3: #221f15;
  --border: #26221a; --border-strong: #3d3626;
  --text: #f6f1e4; --text-2: #cdc4a8; --muted: #8c846c;
  --accent: #e3bc5f; --accent-hover: #f5d98a;
  --good: #7ccf8a; --warn: #f0b429; --bad: #ef6b5b; --grid: #26221a;
  --bg-rgb: 7, 7, 6; --surface-rgb: 16, 15, 12; --accent-rgb: 227, 188, 95; --ink-rgb: 246, 241, 228;
  --info-bg: #1b1608; --info-border: #4a3b14; --info-text: #f3d48a; --hero-border: #26221a; --scrub: #fff0c0; --on-accent: #1a1204;
  --demo-bg: #1b1608; --demo-text: #f3d48a; --demo-border: #4a3b14; --warn-bg: #1f190a; --warn-border: #4a3b14; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --series-1: #f5d98a; --series-2: #c9c9c9; --series-3: #7ccf8a; --series-4: #6aa8e8; --series-5: #d9784a; --series-6: #a999f0; --series-7: #d86d9a; --series-8: #e66767;
}
html[data-theme="mk"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(227,188,95,.22), transparent 55%), radial-gradient(90% 90% at 100% 100%, rgba(255,255,255,.06), transparent 60%), rgba(var(--surface-rgb), .72); }
html[data-theme="lancha"] { color-scheme: dark; --bg: #03140f; --surface: #072620; --surface-2: #0c352d; --surface-3: #124840; --border: #0f4038; --border-strong: #1a6f60; --text: #ecfbf8; --text-2: #b4d9d2; --muted: #6fa398; --accent: #2ec4b0; --accent-hover: #5ff0d8; --good: #4ade9a; --warn: #ffb454; --bad: #ff5a36; --grid: #0f4038; --bg-rgb: 3, 20, 15; --surface-rgb: 7, 38, 32; --accent-rgb: 46, 196, 176; --ink-rgb: 236, 251, 248; --info-bg: #08241f; --info-border: #1b6358; --info-text: #bff3ec; --hero-border: #12372f; --scrub: #d2fffa; --on-accent: #02201c; --demo-bg: #0b2a24; --demo-text: #bff3ec; --demo-border: #1b6358; --warn-bg: #241b0a; --warn-border: #4a3b14; --warn-text: #f3d48a; --warn-link: #ffe2a0; --series-1: #5fe0d6; --series-2: #ff7a4d; --series-3: #ffd166; --series-4: #7ab8ff; --series-5: #f08a5d; --series-6: #9be564; --series-7: #e3668f; --series-8: #e0a56a; }
html[data-theme="lancha"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(63,200,188,.26), transparent 55%), radial-gradient(100% 100% at 100% 100%, rgba(255,122,77,.20), transparent 60%), rgba(var(--surface-rgb), .72); }
html[data-theme="class"] {
  color-scheme: dark;
  --bg: #05030d; --surface: #0c0819; --surface-2: #150f27; --surface-3: #201738;
  --border: #241a3d; --border-strong: #3b2a63;
  --text: #f4f0ff; --text-2: #c0b6e0; --muted: #8579ad;
  --accent: #00e5ff; --accent-hover: #5cf0ff;
  --good: #39f5a0; --warn: #ffd23f; --bad: #ff4fa0; --grid: #241a3d;
  --bg-rgb: 5, 3, 13; --surface-rgb: 12, 8, 25; --accent-rgb: 0, 229, 255; --ink-rgb: 244, 240, 255;
  --info-bg: #0a0a2a; --info-border: #0c5a73; --info-text: #a8f5ff; --hero-border: #241a3d; --scrub: #d6fcff; --on-accent: #00161a;
  --demo-bg: #0a0a2a; --demo-text: #a8f5ff; --demo-border: #0c5a73; --warn-bg: #1f190a; --warn-border: #4a3b14; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --series-1: #00e5ff; --series-2: #ff3df0; --series-3: #b9ff3d; --series-4: #ffd23f; --series-5: #8b5cff; --series-6: #ff6a3d; --series-7: #3dffb0; --series-8: #ff4fa0;
}
html[data-theme="class"] .hero { background: radial-gradient(110% 130% at 0% 0%, rgba(0,229,255,.22), transparent 55%), radial-gradient(100% 100% at 100% 100%, rgba(255,61,240,.20), transparent 60%), rgba(var(--surface-rgb), .72); }
html[data-theme="grafite"] {
  color-scheme: dark;
  --bg: #0b0c0f; --surface: #131519; --surface-2: #1b1e24; --surface-3: #252931;
  --border: #262a32; --border-strong: #3a3f4a;
  --text: #f2f3f6; --text-2: #c0c4cd; --muted: #878d9a;
  --accent: #c7ccd8; --accent-hover: #e4e8f0;
  --good: #4ade80; --warn: #f2b630; --bad: #ef6b6b; --grid: #262a32;
  --bg-rgb: 11, 12, 15; --surface-rgb: 19, 21, 25; --accent-rgb: 199, 204, 216; --ink-rgb: 242, 243, 246;
  --info-bg: #16181d; --info-border: #3a3f4a; --info-text: #dfe3ec; --hero-border: #262a32; --scrub: #ffffff; --on-accent: #0b0c0f;
  --demo-bg: #16181d; --demo-text: #dfe3ec; --demo-border: #3a3f4a; --warn-bg: #1f190a; --warn-border: #4a3b14; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --series-1: #c7ccd8; --series-2: #7aa2f7; --series-3: #4ade9a; --series-4: #f0b429; --series-5: #ee7a9c; --series-6: #a99bf0; --series-7: #55c7d6; --series-8: #ef7b6b;
}
html[data-theme="grafite"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(199,204,216,.14), transparent 58%), radial-gradient(90% 90% at 100% 100%, rgba(122,162,247,.08), transparent 60%), var(--surface); }
/* ---------- escolha do tema (Ajustes › Aparência) ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-opt { display: grid; gap: 8px; padding: 10px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface-2); text-align: left; cursor: pointer; transition: border-color .15s, transform .1s; }
.theme-opt:active { transform: scale(.98); }
.theme-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.theme-opt b { font-size: 14px; font-weight: 600; color: var(--text); }
.theme-opt small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.theme-prev { height: 58px; border-radius: 12px; display: grid; grid-template-rows: 14px 1fr; gap: 5px; padding: 6px; border: 1px solid rgba(128, 128, 128, .25); }
.theme-prev i { display: block; border-radius: 6px; }
.theme-prev .tp-top { height: 8px; width: 55%; }
.theme-prev .tp-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5px; }
.theme-prev .tp-body i:first-child { height: 100%; }
.tp-escuro { background: #010102; }
.tp-escuro i { background: #18181c; }
.tp-escuro .tp-body i:first-child { background: #8ea2ff; }
.tp-claro { background: #f2f4f9; }
.tp-claro i { background: #dfe5f0; }
.tp-claro .tp-body i:first-child { background: #2563eb; }
.tp-esmeralda { background: #030a07; }
.tp-esmeralda i { background: #152b20; }
.tp-esmeralda .tp-body i:first-child { background: #19b37a; }
.tp-grafite { background: #0b0c0f; }
.tp-grafite i { background: #252931; }
.tp-grafite .tp-body i:first-child { background: #c7ccd8; }
.tp-mk { background: #070706; }
.tp-mk i { background: #221f15; }
.tp-mk .tp-body i:first-child { background: #e3bc5f; }
.tp-lancha { background: #03140f; }
.tp-class { background: #05030d; }
.tp-class i { background: #201738; }
.tp-class .tp-body i:first-child { background: linear-gradient(135deg,#00e5ff,#ff3df0); }
@media (max-width: 420px) {.theme-grid { gap: 7px; }
.theme-opt { padding: 8px; }
.theme-opt small { display: none; }}
@media (min-width: 1000px) {.theme-grid { max-width: 640px; }}
.nt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 6px 0 12px; }
.nt-prev { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.nt-ic { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(145deg, #f3d48a, #b98a1f); color: #2a1c02; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.nt-prev strong { display: block; font-size: 14px; }
.nt-prev span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; word-break: break-word; }
@media (max-width: 420px) {.nt-grid { grid-template-columns: 1fr; }}
/* ---------- campo de senha com olho ---------- */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--text); background: var(--surface-3); }
.pw-eye.on { color: var(--accent-hover); }
.partner-del { display: flex; justify-content: flex-end; margin-top: 2px; }
.sp-reg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.sp-reg .muted { flex-basis: 100%; font-size: 13px; }
.sp-reg select.input { width: auto; min-height: 40px; padding: 6px 10px; flex: 1 1 120px; }
/* =====================================================================
   TELA DE ABERTURA
   ===================================================================== */
#splash { position: fixed; inset: 0; z-index: 9999; overflow: hidden; color: #eef3ff; --ld-ease: cubic-bezier(.2, .85, .25, 1); --ld-rgb: 47, 138, 255; --ld-s: clamp(96px, 30vmin, 148px); --ld-c: clamp(24px, 8.82vmin, 46px); }
/* --ld-s e --ld-c: tamanhos da logo e do nome, os mesmos da imagem de abertura do iPhone (30% e 50% da menor medida da tela) */
html.no-splash #splash { display: none; }
/* fundo escuro de marca (igual à imagem de abertura do iPhone), com o brilho na cor do tema */
.ld-bg { position: absolute; inset: 0; background: radial-gradient(110% 78% at 50% 36%, rgba(var(--ld-rgb), .28), transparent 62%), radial-gradient(90% 55% at 50% 112%, rgba(var(--ld-rgb), .16), transparent 70%), #04070f; transition: opacity .5s ease .08s; }
.ld-orb { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; background: radial-gradient(circle, rgba(var(--ld-rgb), .38), transparent 66%); opacity: .55; animation: ld-drift 9s ease-in-out infinite alternate; pointer-events: none; transition: opacity .3s ease; }
.ld-orb.a { left: -26vmax; top: -24vmax; }
.ld-orb.b { right: -28vmax; bottom: -28vmax; animation-duration: 12s; animation-delay: -5s; }
.ld-center { position: absolute; left: 0; right: 0; top: calc((100% - var(--ld-s) * 1.2 - var(--ld-c) * 1.33) / 2 - 2%); display: grid; justify-items: center; gap: calc(var(--ld-s) * .2); }
/* a logo e o nome ficam no mesmo lugar da imagem de abertura do iPhone: a troca de uma para a outra não pisca */
.ld-logo { position: relative; width: var(--ld-s); aspect-ratio: 1; opacity: 0; transform: scale(.7); filter: blur(10px); animation: ld-pop .7s var(--ld-ease) .05s forwards; will-change: transform; }
.ld-logo::before { content: ""; position: absolute; inset: -26%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(var(--ld-rgb), .5), transparent 64%); animation: ld-halo 2.6s ease-in-out infinite; }
.ld-logo img, .ld-logo > svg { position: relative; display: block; width: 100%; height: 100%; }
.ld-logo img { border-radius: 22%; box-shadow: 0 22px 60px -14px rgba(var(--ld-rgb), .7); }
.ld-logo::after { content: ""; position: absolute; inset: 0; border-radius: 22%; pointer-events: none; z-index: 2; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .8) 50%, transparent 62%); background-size: 260% 100%; background-position: 160% 0; animation: ld-shine 1s ease .55s 1 both; }
/* o nome: letras claras (o desenho da marca) */
.ld-name { color: #eef3ff; }
.ld-name .wm { --cap: var(--ld-c); --wm-2: currentColor; --wm-3: #3fd9ff; --wm-4: #3fd9ff; }
/* letras brancas e o "i" ciano, como na imagem de abertura do iPhone */
.ld-name .wm-anim .wl { animation-delay: calc(.6s + var(--i) * .04s); }
.ld-tag { margin: 0; color: rgba(214, 226, 255, .62); font-size: 13.5px; letter-spacing: .08em; opacity: 0; animation: ld-rise .6s ease .95s forwards; }
.ld-foot { position: absolute; left: 0; right: 0; bottom: calc(40px + var(--sab, 0px)); display: grid; justify-items: center; gap: 12px; transition: opacity .28s ease; }
.ld-bar { position: relative; width: 148px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ld-bar i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--ld-rgb), .55), #fff); transform-origin: left; transform: scaleX(var(--ld-p, .12)); transition: transform .6s var(--ld-ease); box-shadow: 0 0 12px rgba(var(--ld-rgb), .8); overflow: hidden; }
.ld-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); transform: translateX(-100%); animation: ld-sweep 1.3s ease-in-out infinite; }
.ld-st { margin: 0; min-height: 1.3em; font-size: 12.5px; letter-spacing: .02em; color: rgba(214, 226, 255, .58); text-align: center; padding-inline: 24px; }
.ld-st.slow { color: #ffd479; }
/* a logo se monta (quadrado, M, braço do K, perna do K) quando é da família MK */
#splash.ld-build .ld-logo { animation: none; opacity: 1; transform: none; filter: none; }
#splash.ld-build .ld-logo::after { display: none; }
#splash.ld-build .ld-logo > svg { overflow: visible; }
#splash.ld-build .ld-logo > svg > path, #splash.ld-build .ld-logo > svg > g:not(:has(polygon)) { transform-origin: 256px 256px; transform-box: view-box; animation: ld-tile .5s var(--ld-ease) both; }
#splash.ld-build .ld-logo polygon { opacity: 0; animation: ld-piece .5s var(--ld-ease) both; }
#splash.ld-build .ld-logo polygon:nth-of-type(1) { --fx: -90px; --fy: 0px; animation-delay: .14s; }
#splash.ld-build .ld-logo polygon:nth-of-type(2) { --fx: 60px; --fy: -70px; animation-delay: .28s; }
#splash.ld-build .ld-logo polygon:nth-of-type(3) { --fx: 40px; --fy: 90px; animation-delay: .4s; }
#splash.ld-build .ld-logo::before { animation-delay: .3s; opacity: 0; animation-fill-mode: both; }
@media (display-mode: standalone) {#splash .ld-logo { animation: none; opacity: 1; transform: none; filter: none; }
#splash .ld-name .wm-anim .wl { animation: none; opacity: 1; transform: none; }
#splash .ld-logo::after { animation-delay: .35s; }
#splash .ld-tag { animation-delay: .3s; }}
/* saída: o fundo e os textos somem e a logo voa até o lugar dela no topo */
#splash.out .ld-bg { opacity: 0; }
#splash.out .ld-orb, #splash.out .ld-name, #splash.out .ld-tag, #splash.out .ld-foot { opacity: 0 !important; transition: opacity .26s ease; animation: none; }
#splash.out .ld-logo::before, #splash.out .ld-logo::after { opacity: 0; transition: opacity .2s ease; }
html.ld-fly .brand img { opacity: 0; }
@keyframes ld-pop { to { opacity: 1; transform: scale(1); filter: none; } }
@keyframes ld-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes ld-halo { 0%, 100% { opacity: .5; transform: scale(.94); } 50% { opacity: .95; transform: scale(1.08); } }
@keyframes ld-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(7vmax, 5vmax) scale(1.12); } }
@keyframes ld-shine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes ld-sweep { to { transform: translateX(100%); } }
@keyframes ld-tile { from { opacity: 0; transform: scale(.82); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ld-piece { from { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.92); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }
html[data-lite="1"] .ld-orb { display: none; }
@media (prefers-reduced-motion: reduce) {.ld-orb, .ld-logo::before, .ld-bar i::after { animation: none; }
.ld-logo, .ld-tag { animation-duration: .01s; animation-delay: 0s; }
.ld-logo::after, #splash.ld-build .ld-logo polygon, #splash.ld-build .ld-logo > svg > path { animation: none; opacity: 1; }
#splash.ld-build .ld-logo::before { display: none; }
.ld-logo::after { opacity: 0; }}
html.no-splash #splash { display: none; }
/* o anel girando era um quadrado rodando em volta da logo (parecia bugado no celular): agora é um círculo, e na logo neumórfica some */
.login-card { animation: login-in .5s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes login-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
/* =====================================================================
   ANÁLISES
   ===================================================================== */
.ins-list { display: grid; gap: 8px; }
.ins { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--muted); }
.ins p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.ins.good { border-left-color: var(--good); }
.ins.warn { border-left-color: var(--warn); }
.ins.info { border-left-color: var(--accent-hover); }
.ins-ic { flex: none; font-size: 16px; line-height: 1.4; }
.hbars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 130px; padding-top: 8px; }
.hb { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.hb i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: rgba(var(--accent-rgb), .45); transition: background .15s; min-height: 3px; }
.hb.top i { background: var(--accent-hover); }
.hb:hover i { background: var(--accent-hover); }
.hb span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); }
.wdbars { display: grid; gap: 7px; margin-top: 30px; }
.wb { display: grid; grid-template-columns: 34px 1fr 34px; gap: 8px; align-items: center; font-size: 13px; }
.wb-l { color: var(--muted); }
.wb-n { text-align: right; color: var(--text-2); }
.wb-t { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.wb-t i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .5), var(--accent-hover)); }
.heat-wrap { padding: 14px; overflow-x: auto; }
.heat { min-width: 520px; display: grid; gap: 3px; }
.heat-row { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat-row b { font-size: 11px; font-weight: 500; color: var(--muted); }
.heat-row i { display: block; height: 20px; border-radius: 5px; background: rgba(var(--accent-rgb), calc(.07 + var(--a) * .85)); }
.heat-x span { text-align: center; font-size: 10px; color: var(--muted); }
.tr-up { color: var(--good); font-weight: 600; }
.tr-down { color: var(--bad); font-weight: 600; }
.ann-bar { display: flex; align-items: center; gap: 10px; padding: 10px var(--gutter); background: rgba(var(--accent-rgb), .14); border-bottom: 1px solid rgba(var(--accent-rgb), .35); color: var(--text); font-size: 14px; }
.ann-bar .ann-t { flex: 1; min-width: 0; line-height: 1.4; }
textarea.input { resize: vertical; min-height: 84px; font-family: inherit; }
/* ---------- funil por modelo ---------- */
.funnels { display: grid; gap: 10px; }
@media (min-width: 760px) {.funnels { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
.fn-card { padding: 16px; }
.fn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fn-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.fn-row { display: grid; grid-template-columns: 104px 1fr 86px; gap: 10px; align-items: center; margin: 7px 0; font-size: 13.5px; }
.fn-l { color: var(--text-2); }
.fn-n { text-align: right; font-weight: 600; }
.fn-n small { color: var(--muted); font-weight: 500; }
.fn-t { height: 12px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.fn-t i { display: block; height: 100%; border-radius: 8px; }
.fn-t i.g { background: rgba(var(--accent-rgb), .45); }
.fn-t i.p { background: var(--good); }
.fn-t i.r { background: var(--bad); }
.fn-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.hide-name { margin-top: 6px; font-size: 13.5px; }
@media (max-width: 420px) {.fn-row { grid-template-columns: 96px 1fr 70px; gap: 7px; font-size: 13px; }}
/* ---------- atalho discreto para as Análises ---------- */
.an-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 14px; }
.an-link b { color: var(--text); font-weight: 600; }
.an-link i { font-style: normal; color: var(--muted); }
@media (hover: hover) {.an-link:hover { background: var(--surface-2); }}
/* ---------- análises: indicadores e gráficos ---------- */
.an-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.an-total small { font-size: 14px; color: var(--muted); font-family: var(--font-body); }
.an-delta { font-size: 13px; color: var(--muted); font-family: var(--font-body); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) {.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (min-width: 1100px) {.kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }}
@media (min-width: 760px) {.kpis.k8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }}
.kpi { position: relative; padding: 14px 15px; }
.kpi-ic { position: absolute; top: 12px; right: 13px; font-size: 18px; opacity: .85; }
.kpi-l { font-size: 12.5px; color: var(--muted); margin-right: 26px; }
.kpi-v { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 4px 0 2px; letter-spacing: -.01em; }
.kpi-s { font-size: 12px; color: var(--text-2); line-height: 1.35; }
.toph { display: grid; gap: 6px; margin-top: 14px; }
.toph-i { display: grid; grid-template-columns: 30px 82px 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.toph-i b { color: var(--accent-hover); }
.toph-i em { font-style: normal; color: var(--muted); text-align: right; font-size: 12.5px; }
.wb.top .wb-t i { background: var(--accent-hover); }
.wb.top .wb-l, .wb.top .wb-n { color: var(--text); font-weight: 600; }
.wb-n small { color: var(--muted); font-weight: 400; }
.wdbars .wb { grid-template-columns: 34px 1fr 62px; }
.dchart { width: 100%; height: 150px; display: block; }
.dchart rect { fill: rgba(var(--accent-rgb), .5); }
.dchart rect.dbest { fill: var(--good); }
.dchart rect:hover { fill: var(--accent-hover); }
.dchart .dma { fill: none; stroke: var(--warn); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.dlegend i { display: inline-block; vertical-align: middle; margin-right: 5px; }
.lg-bar { width: 10px; height: 10px; border-radius: 3px; background: rgba(var(--accent-rgb), .5); }
.lg-best { width: 10px; height: 10px; border-radius: 3px; background: var(--good); }
.lg-line { width: 14px; height: 3px; border-radius: 2px; background: var(--warn); }
.hl { display: grid; gap: 9px; }
.hl-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hl-l small { color: var(--muted); }
.hl-n { text-align: right; font-weight: 600; white-space: nowrap; }
.hl-n small { color: var(--muted); font-weight: 400; }
.hl-t { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.hl-t i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .45), var(--accent-hover)); }
@media (max-width: 420px) {.hl-row { grid-template-columns: 82px 1fr auto; gap: 8px; }}
/* ---------- análises mais limpas ---------- */
.an-tabs { margin: 6px 0 14px; position: sticky; top: calc(var(--sat) + 62px); z-index: 5; background: var(--bg); }
.an-sec { margin-top: 22px; }
.an-sec .section-title h2 { font-size: 17px; }
.an-note { margin-top: 22px; text-align: center; }
.more-btn { margin-top: 10px; width: 100%; }
.ins { padding: 11px 14px; }
.kpi-v { font-size: 24px; }
/* ---------- análises interativas ---------- */
.hb { cursor: pointer; outline: none; }
.hb i { transform-origin: bottom; animation: bar-up .5s cubic-bezier(.2, .8, .3, 1) both; }
.hb:hover i, .hb:focus-visible i { background: var(--accent-hover); filter: brightness(1.1); }
.hb.sel i { background: var(--text); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .6); }
.hb.sel span { color: var(--text); font-weight: 700; }
@keyframes bar-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hf { display: grid; gap: 4px; margin-bottom: 4px; }
.hf-l { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hf .chips { padding-bottom: 2px; }
.hf .chip { padding: 7px 13px; font-size: 13px; }
.hd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 15px; }
.hd-sub { margin: 12px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hd-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 70px; }
.hd-wd div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.hd-wd i { display: block; border-radius: 4px 4px 2px 2px; background: rgba(var(--accent-rgb), .55); }
.hd-wd span { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.toph-i { cursor: pointer; transition: background .15s; }
.toph-i:hover { background: var(--surface-3); }
.wb { cursor: pointer; border-radius: 10px; padding: 2px 4px; margin: 0 -4px; outline: none; transition: background .15s; }
.wb:hover, .wb:focus-visible { background: var(--surface-2); }
.wb.sel { background: rgba(var(--accent-rgb), .16); }
.dwrap { position: relative; touch-action: pan-y; }
.dchart { cursor: crosshair; }
.dchart rect.dsel { fill: var(--text); }
.dcursor { position: absolute; top: 0; bottom: 4px; width: 1px; background: rgba(var(--ink-rgb), .45); pointer-events: none; opacity: 0; transition: opacity .12s; }
.heat i[data-hc] { cursor: pointer; transition: transform .1s; }
.heat i[data-hc]:hover { transform: scale(1.25); position: relative; z-index: 2; }
.heat i.sel { outline: 2px solid var(--text); outline-offset: 1px; }
.th-sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; white-space: nowrap; }
.th-sort:hover { color: var(--text); }
.th-sort.on { color: var(--accent-hover); }
@media (prefers-reduced-motion: reduce) {.hb i { animation: none; }}
#names-btn::after { display: none !important; }
/* =====================================================================
   COMPUTADOR (telas largas): menu lateral + páginas em colunas
   ===================================================================== */
@media (min-width: 1100px) {:root { --side-w: 252px; --gutter: 36px; }
body { padding-left: var(--side-w); }
.topbar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 40; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px;
    padding: 24px 16px 18px; border-right: 1px solid var(--border); border-bottom: 0; background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; overflow-y: auto; }
.brand { padding: 2px 8px 14px; border-bottom: 1px solid var(--border); font-size: 20px; }
.nav-desktop { flex-direction: column; align-items: stretch; gap: 3px; flex: 1; }
.nav-desktop a { display: flex; align-items: center; padding: 11px 14px; border-radius: 14px; font-size: 15px; color: var(--text-2); transition: background .15s, color .15s; }
.nav-desktop a:hover { background: var(--surface-2); color: var(--text); }
.nav-desktop a.active { background: rgba(var(--accent-rgb), .14); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.top-actions { flex-wrap: wrap; justify-content: flex-start; gap: 2px; padding-top: 14px; border-top: 1px solid var(--border); }
main { max-width: 1500px; padding: 30px var(--gutter) 48px; }
.page-head h1 { font-size: 34px; }
.save-bar { left: var(--side-w); }
.toast { left: calc(50% + var(--side-w) / 2); }
.view-bar, .ann-bar { padding-left: var(--gutter); padding-right: var(--gutter); }
#dash { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 22px; align-items: start; }
#dash > * { grid-column: 1 / -1; margin-top: 0; }
#dash > .card.hero { grid-column: 1; align-self: stretch; margin-top: 0; min-height: 0; }
#dash > .stats { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; gap: 12px; }
#dash .stat { padding: 16px 18px; }
#dash > .section { margin-top: 6px; }
.hero-value { font-size: clamp(54px, 5vw, 76px); }
.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.stack > .card.wide, .stack > .wide { grid-column: 1 / -1; }
#an-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
#an-body > * { grid-column: 1 / -1; }
#an-body > .an-sec:not(.full) { grid-column: auto; }
.an-tabs { top: 0; max-width: 820px; }
.funnels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (min-width: 1500px) {#dash { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.funnels { grid-template-columns: repeat(4, minmax(0, 1fr)); }}
/* telas médias (tablet / janela pequena): mais respiro, mesma organização do celular */
@media (min-width: 760px) and (max-width: 1099px) {main { max-width: 980px; }
#an-body .an-sec { margin-top: 24px; }}
/* =====================================================================
   PERSONALIZAÇÃO + FLUIDEZ
   ===================================================================== */
#dash { display: grid; }
@media (max-width: 1099px) {#dash { grid-template-columns: minmax(0, 1fr); }}
/* no computador valem as duas colunas definidas lá em cima */
#dash > .hero, #dash > .stats { margin-top: 12px; }
#dash > .banner { margin-top: 0; }
#dash.fade-in { animation: dash-in .4s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes dash-in { from { opacity: .0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1100px) {#dash > .hero, #dash > .stats { margin-top: 0; }
#dash.no-stats > .card.hero { grid-column: 1 / -1; }}
/* suavidade geral */
.card, .stat, .btn, .chip, .scope-btn, .tab, .list-row, .theme-opt, .nav-desktop a, .tabbar a, .icon-btn { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .15s ease, box-shadow .2s ease, opacity .2s ease; }
@media (hover: hover) {.card.stat:hover, .stat:hover { transform: translateY(-2px); }}
.card, .stat { contain: layout paint; }
.view-in { animation: view-fade .28s ease both; }
@keyframes view-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.list-row, .an-sec, .hl-row { content-visibility: auto; contain-intrinsic-size: auto 64px; }
html { scroll-behavior: smooth; }
/* densidade */
html[data-density="compact"] { --gutter: 12px; }
html[data-density="compact"] .card { padding: 14px; }
html[data-density="compact"] .stat { padding: 12px 14px; }
html[data-density="compact"] .list-row { padding: 9px 14px; }
html[data-density="compact"] .section { margin-top: 18px; }
html[data-density="compact"] .stats { gap: 8px; }
html[data-density="compact"] .hero { padding: 16px 16px 14px; }
html[data-density="compact"] .chip { padding: 8px 14px; }
html[data-density="compact"] .btn { min-height: 40px; }
/* tamanho do texto */
html[data-text="small"] body { zoom: .93; }
html[data-text="large"] body { zoom: 1.1; }
/* cantos */
:root { --r-card: 24px; --r-ctl: 16px; }
html[data-radius="sharp"] { --r-card: 10px; --r-ctl: 8px; }
.card, .stat, .hero, .dlg, .tabs, .filters, .ins, .kpi, .health, .an-link { border-radius: var(--r-card); }
.btn, .scope-btn, .input, select.input, .theme-opt { border-radius: var(--r-ctl); }
html[data-radius="sharp"] .chip, html[data-radius="sharp"] .seg, html[data-radius="sharp"] .seg button { border-radius: 10px; }
/* animações reduzidas */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
/* modo leve */
html[data-lite="1"] *, html[data-lite="1"] *::before, html[data-lite="1"] *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; text-shadow: none !important; }
html[data-lite="1"] .topbar, html[data-lite="1"] .tabbar { background: var(--surface) !important; }
/* conteúdo largo no PC */
@media (min-width: 1100px) {html[data-wide="1"] main { max-width: 1900px; }}
/* editor de aparência */
.ui-label { margin: 16px 0 8px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ui-label small { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0; }
.ui-row > span { font-size: 14.5px; color: var(--text-2); }
.acc-row { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); box-shadow: 0 0 0 1px var(--border-strong) inset; transition: transform .12s, box-shadow .15s; }
.acc-dot:hover { transform: scale(1.1); }
.acc-def { background: var(--surface-2); }
.acc-dot.on { border-color: var(--text); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .35); }
.blk-list { display: grid; gap: 6px; }
.blk { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.blk .toggle { margin: 0; }
.blk-mv { display: flex; gap: 2px; }
.blk-mv .icon-btn { width: 34px; height: 34px; font-size: 17px; color: var(--text-2); }
.blk-mv .icon-btn:disabled { opacity: .3; cursor: default; }
.blk-fixed { font-size: 12px; color: var(--muted); }
.stack > #theme-card { grid-column: 1 / -1; }
/* =====================================================================
   BARRA DE FILTROS ENXUTA + MENU LATERAL ORGANIZADO
   ===================================================================== */
.nav-desktop svg, .nav-h { display: none; }
.side-foot { display: none; }
.chip.more { display: inline-flex; align-items: center; gap: 4px; }
.chip.more .chv { width: 16px; height: 16px; transition: transform .2s; }
.chip.more[aria-expanded="true"] .chv { transform: rotate(180deg); }
.filters { padding-top: 10px; padding-bottom: 12px; }
.filters .chips .chip { padding: 8px 14px; font-size: 14px; }
@media (min-width: 760px) {.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; }
.filters > * { padding-left: 0; padding-right: 0; }
.filters .chips { flex-wrap: nowrap; overflow: visible; padding-bottom: 0; }
.filters .scope-row { margin: 0 0 0 auto; flex: 0 0 auto; }
.filters .scope-panel, .filters .custom-range { flex-basis: 100%; }}
@media (min-width: 1100px) {.nav-desktop svg { display: block; flex: none; }
.nav-desktop a { gap: 12px; }
.nav-h { display: block; padding: 14px 14px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav-h:first-child { padding-top: 4px; }
.nav-desktop a.active svg { color: var(--accent-hover); }
.side-foot { display: grid; gap: 8px; margin-top: auto; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.su-av { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: rgba(var(--accent-rgb), .2); color: var(--accent-hover); flex: none; }
.su-t { display: grid; min-width: 0; }
.su-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-t small { color: var(--muted); font-size: 12px; }
.side-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: none; color: var(--text-2); font-size: 13.5px; cursor: pointer; }
.side-toggle:hover { background: var(--surface-2); color: var(--text); }
.side-toggle svg { transition: transform .25s; flex: none; }
.nav-desktop { flex: 1 1 auto; }
.top-actions { margin-top: 4px; }
html[data-side="mini"] { --side-w: 78px; }
html[data-side="mini"] .topbar { padding-left: 10px; padding-right: 10px; align-items: center; }
html[data-side="mini"] .brand { padding: 2px 0 12px; justify-content: center; border-bottom: 0; }
html[data-side="mini"] .brand span, html[data-side="mini"] .nl, html[data-side="mini"] .nav-h, html[data-side="mini"] .su-t { display: none; }
html[data-side="mini"] .nav-desktop { width: 100%; align-items: center; }
html[data-side="mini"] .nav-desktop a { justify-content: center; padding: 12px; width: 48px; height: 48px; }
html[data-side="mini"] .nav-desktop a.active { box-shadow: none; }
html[data-side="mini"] .nav-desktop .nav-h + a { margin-top: 0; }
html[data-side="mini"] .top-actions { flex-direction: column; align-items: center; border-top: 1px solid var(--border); width: 100%; }
html[data-side="mini"] .side-user { padding: 6px; justify-content: center; background: none; border: 0; }
html[data-side="mini"] .side-toggle { justify-content: center; padding: 10px; }
html[data-side="mini"] .side-toggle svg { transform: rotate(180deg); }
html[data-side="mini"] .nav-desktop a { position: relative; }
.topbar, body { transition: padding-left .25s ease, width .25s ease; }}
/* opções que só existem no computador */
@media (max-width: 1099px) {.desk-only { display: none !important; }}
/* ---------- modo app (celular e tablet): a tela não rola, só o conteúdo; menu de cima e de baixo ficam parados */
@media (max-width: 1099px) {html, body { height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--bg); }
body {
    position: fixed; inset: 0 0 auto 0; height: 100%; height: 100vh; height: 100dvh; height: var(--app-h, 100dvh); display: flex; flex-direction: column; min-height: 0; padding-bottom: 0;
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  }
input, textarea, select, [contenteditable], code, pre, .sel { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
a, button, summary, label, .seg button, .chip, .tab { touch-action: manipulation; }
img, svg { -webkit-user-drag: none; }
.topbar { position: relative; flex: none; z-index: 30; }
.view-bar, .ann-bar, .demo-bar { flex: none; }
main#app {
    flex: 1 1 auto; min-height: 0; width: 100%;
    overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; scrollbar-width: none;
    padding-bottom: calc(24px + var(--sab));
  }
main#app::-webkit-scrollbar { display: none; }
.tabbar { position: relative; flex: none; z-index: 30; background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.an-tabs { top: 0; padding-top: 6px; }
.toast, .sale-toasts { bottom: calc(var(--sab) + var(--tabbar-h) + 14px); }
.dlg { overflow-y: auto; overscroll-behavior: contain; }
html, main#app { scroll-behavior: auto; }
main#app, main#app * { overflow-anchor: none; }
.save-bar { bottom: 0; padding-bottom: 10px; }
.btn:active, .icon-btn:active { transform: scale(.97); }
.chart-ctl, .seg { min-width: 0; max-width: 100%; }
.seg { overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }}
/* ---------- toque interativo (celular) */
#ptr { position: fixed; left: 50%; top: calc(var(--sat) + 70px); z-index: 45; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border-strong); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .6);
  transform: translate(-50%, -44px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .2s ease; }
#ptr.ready { color: var(--accent-hover); border-color: var(--accent); }
#ptr.spin svg { animation: ptrspin .7s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }
@media (min-width: 1100px) {#ptr { display: none; }}
@media (max-width: 1099px) {.tapped { transform: scale(.95); transition: transform .12s ease; }
.tabbar a svg { transition: transform .22s cubic-bezier(.3, 1.6, .5, 1), color .15s; }
.tabbar a.active svg { transform: translateY(-2px) scale(1.12); }
.tabbar a.active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-hover); position: absolute; top: 2px; left: 50%; margin-left: -2px; }
.tabbar a { position: relative; }
.card.stat:active, .list-row:active, .an-link:active { transform: scale(.985); transition: transform .1s; }}
html[data-motion="reduced"] .tapped { transform: none; }
.theme-sub { margin: 14px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
/* ---------- fundos dos temas especiais (desenhos leves em SVG; somem no modo leve) ---------- */
.theme-sub small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; font-size: 12px; }
html[data-theme="mk"] body::before, html[data-theme="lancha"] body::before, html[data-theme="class"] body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-repeat: repeat; background-size: 400px 400px; }
html[data-theme="lancha"] body::before { background-image: var(--lancha-img); }
html[data-theme="lancha"] body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: clamp(60px, 13vh, 130px); z-index: 0; pointer-events: none; }
html[data-theme="mk"] main, html[data-theme="lancha"] main, html[data-theme="class"] main { position: relative; z-index: 1; }
html[data-theme="mk"] .card, html[data-theme="lancha"] .card, html[data-theme="class"] .card { background: rgba(var(--surface-rgb), .74); }
html[data-theme="mk"] .tabbar, html[data-theme="lancha"] .tabbar, html[data-theme="class"] .tabbar { background: rgba(var(--surface-rgb), .92); }
html[data-lite="1"] body::before, html[data-lite="1"] body::after { display: none !important; }
@media (min-width: 760px) {html[data-theme] body::before { background-size: 600px 600px; }}
@media (min-width: 1100px) {html[data-theme] body::before { background-size: 700px 700px; }
html[data-theme] .topbar { z-index: 40; }}
@media (max-width: 1099px) {html[data-theme="mk"] body::before, html[data-theme="lancha"] body::before, html[data-theme="class"] body::before { background-size: 460px 460px; }}
@media (prefers-reduced-data: reduce) {html[data-theme] body::before, html[data-theme] body::after { display: none; }}
/* ---------- fundo do tema Brasil ---------- */
/* ---------- liquid glass (estilo iPhone) nos temas especiais: vidro com borda de luz, brilho que segue o dedo/mouse ---------- */
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) { --glass-blur: 22px; --lg-hi: rgba(255, 255, 255, .55); --lg-lo: rgba(255, 255, 255, .06); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) body::before { opacity: .34; }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) body::after { opacity: .5; }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) :is(.card, .hero, .dlg, .tabs, .filters, .rk-row) {
  position: relative; isolation: isolate;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%) brightness(1.06); backdrop-filter: blur(var(--glass-blur)) saturate(190%) brightness(1.06);
  border: 1px solid transparent;
  box-shadow: inset 1.5px 1.5px 1px -.5px rgba(255, 255, 255, .30), inset -1px -1px 1px -.5px rgba(255, 255, 255, .10), 0 14px 40px -18px rgba(0, 0, 0, .75);
}
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .card { background-color: rgba(var(--surface-rgb), .44); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .hero { background-color: rgba(var(--surface-rgb), .34); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .dlg { background-color: rgba(var(--surface-rgb), .72); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .rk-row { background-color: rgba(var(--surface-rgb), .44); }
/* borda de luz: brilha nos cantos de cima/esquerda e de baixo/direita, como o vidro de verdade */
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) :is(.card, .hero, .dlg, .rk-row)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, var(--lg-hi), var(--lg-lo) 28%, rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude;
}
/* reflexo que acompanha o ponteiro (JS preenche --mx/--my) */
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) :is(.card, .hero, .rk-row)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .13), transparent 62%);
}
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) :is(.card, .hero, .rk-row).lit::after { opacity: 1; }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .tabbar {
  margin: 0; padding: 6px max(10px, env(safe-area-inset-right)) calc(6px + var(--sab)) max(10px, env(safe-area-inset-left)); border-radius: 26px 26px 0 0; border: 1px solid transparent; background: rgba(var(--surface-rgb), .5);
  -webkit-backdrop-filter: blur(26px) saturate(200%) brightness(1.08); backdrop-filter: blur(26px) saturate(200%) brightness(1.08);
  box-shadow: inset 1.5px 1.5px 1px -.5px rgba(255, 255, 255, .34), inset -1px -1px 1px -.5px rgba(255, 255, 255, .12), 0 18px 40px -14px rgba(0, 0, 0, .8);
}
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .tabbar a { border-radius: 24px; min-height: 50px; transition: background-color .25s ease, color .2s, transform .25s cubic-bezier(.3, 1.5, .5, 1); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .tabbar a.active { background: rgba(255, 255, 255, .13); box-shadow: inset 1px 1px 1px -.5px rgba(255, 255, 255, .5), inset -1px -1px 1px -.5px rgba(255, 255, 255, .15); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .tabbar a.active::after { display: none; }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .topbar { background: rgba(var(--bg-rgb), .42); -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%); border-bottom: 1px solid rgba(255, 255, 255, .08); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .seg { background: rgba(255, 255, 255, .06); box-shadow: inset 1px 1px 1px -.5px rgba(255, 255, 255, .25), inset -1px -1px 1px -.5px rgba(255, 255, 255, .06); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .seg button.active { background: rgba(255, 255, 255, .16); box-shadow: inset 1px 1px 1px -.5px rgba(255, 255, 255, .55), 0 4px 14px -6px rgba(0, 0, 0, .6); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) :is(.chip, .scope-btn, .btn:not(.primary), .icon-btn) { background-color: rgba(255, 255, 255, .06); box-shadow: inset 1px 1px 1px -.5px rgba(255, 255, 255, .28), inset -1px -1px 1px -.5px rgba(255, 255, 255, .08); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) :is(.chip.active, .scope-btn.active) { background-color: rgba(var(--accent-rgb), .30); }
/* aperta e "afunda" como gelatina */
@keyframes lgPress { 0% { transform: scale(1); } 40% { transform: scale(.972); } 100% { transform: scale(1); } }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) :is(.card, .rk-row):active { animation: lgPress .35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes lgIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .view-in .card { animation: lgIn .5s cubic-bezier(.2, .9, .3, 1) both; }
@media (min-width: 1100px) {html[data-theme] { --glass-blur: 26px; }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .tabbar { margin: 0; }}
html[data-lite="1"] :is(.card, .hero, .dlg, .tabs, .filters, .tabbar, .topbar, .rk-row) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-lite="1"] :is(.card, .hero, .rk-row)::after { display: none; }
html[data-motion="reduced"] .view-in .card, html[data-motion="reduced"] .card:active, html[data-motion="reduced"] .rk-row:active { animation: none !important; }
@media (prefers-reduced-transparency: reduce) {html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) :is(.card, .hero, .dlg, .tabbar, .rk-row) { background-color: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }}
/* ---------- gráficos mais vivos ---------- */
.chart-wrap .area { opacity: var(--op, .5); }
.chart-wrap .ln { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.chart-wrap .ov { cursor: crosshair; }
.chart-wrap.has-hot .ln { opacity: .9; }
.lg { transition: transform .15s ease, opacity .2s; }
.lg:active { transform: scale(.94); }
.lg[aria-pressed="false"] { opacity: .5; }
/* ---------- ranking de faturamento (só o MK) ---------- */
.rk-link { margin-top: 10px; }
.rk-ctl { display: grid; gap: 10px; padding: 12px; }
.rk-ctl .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.rk-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.rk-sum .card { padding: 14px; }
.rk-sum .value { font-size: 20px; }
.rk-lead { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {.rk-sum { grid-template-columns: 1fr 1fr; }
.rk-sum .card:first-child { grid-column: 1 / -1; }}
.rk-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 8px; align-items: end; margin: 6px 0 14px; }
.rk-pod { display: grid; justify-items: center; gap: 4px; padding: 12px 6px 14px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: center; min-width: 0; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), border-color .2s; }
.rk-pod:hover { transform: translateY(-3px); }
.rk-pod:active { transform: scale(.97); }
.rk-pod.p1 { padding-top: 20px; padding-bottom: 20px; border-color: rgba(255, 200, 70, .55); background: linear-gradient(180deg, rgba(255, 200, 70, .16), transparent 70%), var(--surface); }
.rk-pod.p2 { border-color: rgba(200, 210, 230, .35); }
.rk-pod.p3 { border-color: rgba(220, 150, 90, .4); }
.rk-pod b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pod strong { font-family: var(--font-display); font-size: 15px; }
.rk-pod.p1 strong { font-size: 18px; }
.rk-pod small { color: var(--muted); font-size: 11.5px; }
.rk-medal { font-size: 26px; line-height: 1; }
.rk-pod.p1 .rk-medal { font-size: 34px; }
.rk-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; font-weight: 700; font-size: 14px; color: var(--on-accent); background: linear-gradient(135deg, var(--accent-hover), var(--accent)); }
.rk-pod.p1 .rk-av { width: 48px; height: 48px; font-size: 16px; }
.rk-list { display: grid; gap: 8px; }
.rk-row { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); overflow: hidden; animation: rkIn .45s cubic-bezier(.2, .85, .3, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rk-row.me { border-color: rgba(var(--accent-rgb), .55); }
.rk-head { display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; padding: 12px 14px 8px; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.rk-head:hover { background: rgba(255, 255, 255, .03); }
.rk-head:active { background: rgba(255, 255, 255, .06); }
.rk-pos { text-align: center; font-weight: 700; color: var(--muted); font-size: 15px; }
.rk-who { display: grid; min-width: 0; }
.rk-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-who em { font-style: normal; font-size: 11px; padding: 2px 7px; margin-left: 6px; border-radius: 999px; background: rgba(var(--accent-rgb), .22); color: var(--accent-hover); }
.rk-who small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-val { display: grid; justify-items: end; gap: 2px; }
.rk-val strong { font-family: var(--font-display); font-size: 16px; white-space: nowrap; }
.rk-d { font-size: 11.5px; color: var(--muted); }
.rk-d.up { color: var(--good); }
.rk-d.down { color: var(--bad); }
.rk-spark { width: 84px; height: 28px; }
.rk-spark.empty { display: block; }
.rk-sl { fill: none; stroke: var(--accent-hover); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rk-sa { fill: rgba(var(--accent-rgb), .18); stroke: none; }
.rk-bar { height: 5px; margin: 0 14px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rk-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--accent-rgb), .55), var(--accent-hover)); transform-origin: left; animation: rkBar .8s cubic-bezier(.2, .85, .25, 1) both; animation-delay: calc(var(--i, 0) * 40ms + 120ms); }
@keyframes rkBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rk-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2, .85, .25, 1); }
.rk-row.open .rk-more { grid-template-rows: 1fr; }
.rk-more-in { overflow: hidden; }
.rk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 4px 14px 14px; }
.rk-kpis div { display: grid; gap: 2px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); min-width: 0; }
.rk-kpis span { color: var(--muted); font-size: 11.5px; }
.rk-kpis strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {.rk-spark { display: none; }
.rk-head { grid-template-columns: 26px 38px minmax(0, 1fr) auto; gap: 8px; padding-inline: 12px; }
.rk-kpis { grid-template-columns: 1fr 1fr; }
.rk-bar { margin-inline: 12px; }}
@media (hover: hover) {.rk-row:hover { border-color: var(--border-strong); }}
html[data-motion="reduced"] .rk-row, html[data-motion="reduced"] .rk-bar i { animation: none; }
/* ---------- painel geral (só o MK) ---------- */
.rk-tabs { margin-bottom: 12px; }
.rk-hero { padding: 18px 16px 14px; }
.rk-big { font-family: var(--font-display); font-size: clamp(30px, 8vw, 46px); font-weight: 700; letter-spacing: -.02em; margin: 2px 0; }
.rk-sub { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.rk-chart { margin: 8px -6px 0; }
.rk-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; cursor: crosshair; }
.rk-chart .rkb { transition: opacity .15s, filter .15s; animation: rkGrow .7s cubic-bezier(.2, .85, .25, 1) both; animation-delay: calc(var(--i, 0) * 14ms); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes rkGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rk-chart svg.has-hot .rkb:not(.hot) { opacity: .4; }
.rk-chart .rkb.hot { filter: brightness(1.25); }
.rk-chart .axis { fill: var(--muted); font-size: 10px; }
.rk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.rk-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.rk-sum4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {.rk-sum4 { grid-template-columns: 1fr 1fr; }}
.rk-life { margin-top: 10px; padding: 14px 16px; }
.rk-life .value { font-size: 24px; }
.rk-share { display: grid; gap: 7px; }
.rk-sh { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); overflow: hidden; text-align: left; font: inherit; min-height: 44px; }
.rk-sh i { position: absolute; left: 0; top: 0; bottom: 0; opacity: .28; border-radius: inherit; transform-origin: left; animation: rkBar .8s cubic-bezier(.2, .85, .25, 1) both; }
.rk-sh span, .rk-sh b { position: relative; }
.rk-sh:active { transform: scale(.985); }
.rk-badge { font-size: 14px; }
/* ---------- conquistas ---------- */
.head-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.head-links .rk-link { margin-top: 0; }
.ach-hero { padding: 18px 16px; }
.ach-total { font-family: var(--font-display); font-size: clamp(28px, 7.5vw, 42px); font-weight: 700; letter-spacing: -.02em; margin: 2px 0 10px; }
.ach-nt { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.ach-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ach-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--accent-rgb), .6), var(--accent-hover)); transform-origin: left; animation: rkBar 1s cubic-bezier(.2, .85, .25, 1) both; }
.ach-miss { color: var(--muted); font-size: 12.5px; margin-top: 7px; }
.ach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (min-width: 760px) {.ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
.ach-card { display: grid; justify-items: center; gap: 10px; padding: 18px 12px 16px; text-align: center; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); animation: rkIn .5s cubic-bezier(.2, .85, .3, 1) both; animation-delay: calc(var(--i, 0) * 60ms); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.ach-card:hover { transform: translateY(-3px); }
.ach-card:active { transform: scale(.97); }
.ach-medal { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; font-size: 32px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong); filter: grayscale(1) opacity(.5); }
.ach-card.on { border-color: rgba(255, 200, 70, .45); background: linear-gradient(180deg, rgba(255, 200, 70, .10), transparent 65%), var(--surface); }
.ach-card.on .ach-medal { filter: none; background: radial-gradient(circle at 30% 25%, rgba(255, 235, 150, .5), rgba(255, 190, 60, .18) 70%); border-color: rgba(255, 200, 70, .7); box-shadow: 0 0 26px -4px rgba(255, 190, 60, .5); animation: medalPulse 3.2s ease-in-out infinite; }
@keyframes medalPulse { 50% { box-shadow: 0 0 34px -2px rgba(255, 190, 60, .75); } }
.ach-info { display: grid; gap: 3px; }
.ach-info b { font-size: 15px; }
.ach-info small { color: var(--accent-hover); font-weight: 600; }
.ach-info p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ach-info em { font-style: normal; font-size: 11.5px; color: var(--good); margin-top: 4px; }
.ach-pop { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadein .25s ease both; }
.ach-pop.out { opacity: 0; transition: opacity .25s; }
.ach-pop-card { position: relative; width: min(360px, 100%); padding: 30px 22px 22px; text-align: center; border-radius: 30px; background: var(--surface); border: 1px solid rgba(255, 200, 70, .5); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px -10px rgba(255, 190, 60, .4); overflow: hidden; animation: popIn .55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.8) translateY(20px); } to { opacity: 1; transform: none; } }
.ach-pop-medal { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; font-size: 48px; background: radial-gradient(circle at 30% 25%, rgba(255, 235, 150, .6), rgba(255, 190, 60, .2) 70%); border: 1px solid rgba(255, 200, 70, .8); animation: medalPulse 2.4s ease-in-out infinite; }
.ach-pop-t { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hover); font-weight: 700; }
.ach-pop-card h2 { margin: 6px 0 4px; font-size: 26px; }
.ach-pop-card p { margin: 0 0 8px; color: var(--text-2); }
.ach-pop-card small { display: block; color: var(--muted); margin-bottom: 8px; }
.ach-pop-b { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.ach-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ach-confetti i { position: absolute; top: -12px; left: var(--x); width: 7px; height: 12px; border-radius: 2px; opacity: 0; animation: confetti 2.4s ease-in var(--d) both; background: hsl(calc(var(--c) * 72 + 20), 90%, 60%); }
@keyframes confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(540deg); } }
html[data-motion="reduced"] .ach-confetti, html[data-motion="reduced"] .ach-card, html[data-motion="reduced"] .rk-chart .rkb { animation: none; }
/* ---------- progresso da conquista no menu lateral (mínimo) ---------- */
.side-ach { display: none; }
@media (min-width: 1100px) {.side-ach { display: flex; align-items: center; gap: 7px; padding: 6px 10px; margin: 2px 0; border: 0; background: none; color: var(--text-2); border-radius: 10px; transition: color .2s, opacity .2s; }
.side-ach[hidden] { display: none; }
.side-ach:hover { color: var(--text); }
.sa-ic { display: block; font-size: 14px; line-height: 1; flex: none; }
.sa-body { display: grid; gap: 5px; min-width: 0; flex: 1; }
.sa-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; white-space: nowrap; }
.side-ach small { display: block; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-hover); flex: none; }
.side-ach.done small { color: #ffd24a; }
.sa-bar { display: block; height: 2px; border-radius: 999px; background: rgba(var(--accent-rgb), .2); }
.sa-bar u { display: block; height: 100%; width: 0; border-radius: inherit; text-decoration: none; background: var(--accent-hover); box-shadow: 0 0 5px var(--accent-hover), 0 0 12px rgba(var(--accent-rgb), .85); transition: width .8s cubic-bezier(.2, .85, .25, 1); }
.side-ach.done .sa-bar { background: rgba(255, 210, 74, .2); }
.side-ach.done .sa-bar u { background: #ffd24a; box-shadow: 0 0 5px #ffd24a, 0 0 12px rgba(255, 200, 70, .8); }
.side-ach em { font-style: normal; font-size: 11px; line-height: 1.2; color: inherit; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.side-ach.done em { color: #ffd24a; }
html[data-side="mini"] .side-ach { justify-content: center; padding: 8px 4px; }
html[data-side="mini"] .side-ach .sa-body { display: none; }
html[data-side="mini"] .side-ach { gap: 0; }}
@media (min-width: 1100px) {.topbar { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.topbar::-webkit-scrollbar { display: none; }}
/* ---------- Ajustes: seções bem separadas ---------- */
.set-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 6px 2px; position: sticky; top: 0; z-index: 6; background: linear-gradient(var(--bg) 70%, transparent); }
.set-nav::-webkit-scrollbar { display: none; }
.set-nav .chip { flex: none; }
.set-sec h2 { display: flex; align-items: center; gap: 8px; }
.cnt { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: rgba(var(--accent-rgb), .18); color: var(--accent-hover); }
.set-sec .section-title { gap: 10px; }
#sec-modelos, #sec-socios { scroll-margin-top: 64px; }
.empty-sec { padding: 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 14px; font-size: 13.5px; }
.model-form { border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 10px; background: rgba(255, 255, 255, .02); }
.partner-row { border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: rgba(255, 255, 255, .02); }
.fee-info { display: grid; gap: 8px; margin: 0 0 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.fee-info b { color: var(--text); }
.fi-ok { padding-top: 8px; border-top: 1px solid var(--border); color: var(--good); }
.fi-ok b { color: var(--good); }
.fee-lock { padding: 10px 12px; border-radius: 12px; font-size: 13px; background: rgba(var(--accent-rgb), .12); color: var(--text-2); }
@media (min-width: 1100px) {.set-nav { top: 0; }}
/* =====================================================================
   Tamanhos de tela: telefone pequeno, telefone, telefone deitado, tablet, computador
   ===================================================================== */
/* respeita o "notch" também com o telefone deitado */
@media (max-width: 1099px) {main#app { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.tabbar a { min-width: 0; }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }}
/* telefone pequeno (iPhone SE, Androids de 320–360px) */
@media (max-width: 360px) {:root { --gutter: 12px; --tabbar-h: 58px; }
body { font-size: 14px; }
.page-head h1 { font-size: 25px; }
.page-head p { font-size: 14px; }
.topbar { padding-top: calc(7px + var(--sat)); padding-bottom: 7px; }
.brand { font-size: 17px; gap: 9px; }
.brand img { width: 34px; height: 34px; }
.icon-btn { width: 40px; height: 40px; }
.tabbar a { font-size: 10px; gap: 2px; min-height: 48px; }
.tabbar a svg { width: 21px; height: 21px; }
.hero-value { font-size: clamp(34px, 11vw, 44px); }
.stats { gap: 8px; }
.stat .value, .card.stat .value { font-size: 19px; }
.card { border-radius: 20px; }
.card.stat { padding: 14px 12px; }
.btn { min-height: 44px; padding: 9px 14px; font-size: 14.5px; }
.seg button { padding: 7px 10px; font-size: 13px; }
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rk-podium { gap: 5px; }
.rk-pod b { font-size: 12px; }
.rk-pod strong { font-size: 13px; }
.rk-pod.p1 strong { font-size: 15px; }
.ach-grid { gap: 8px; }
.ach-card { padding: 14px 8px; }
.ach-medal { width: 56px; height: 56px; font-size: 26px; }
.dlg { width: calc(100vw - 16px); border-radius: 22px; }}
@media (max-width: 330px) {.stats { grid-template-columns: 1fr; }}
/* telefone deitado: menu de baixo vira uma barra baixinha e sobra mais tela para o conteúdo */
@media (max-width: 1099px) and (max-height: 480px) and (orientation: landscape) {:root { --tabbar-h: 44px; }
.topbar { padding-top: calc(4px + var(--sat)); padding-bottom: 4px; }
.brand img { width: 30px; height: 30px; }
html:not(#_) .tabbar { padding-top: 2px; padding-bottom: calc(2px + var(--sab)); margin-bottom: 0; }
html:not(#_) .tabbar a { flex-direction: row; justify-content: center; gap: 7px; min-height: 36px; font-size: 12px; }
html:not(#_) .tabbar a svg { width: 19px; height: 19px; }
html:not(#_) .tabbar a.active::after { display: none; }
.hero-value { font-size: 38px; }
.page-head h1 { font-size: 24px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html:is([data-theme="mk"], [data-theme="lancha"], [data-theme="class"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="ouro"], [data-theme="dinheiro"]) .tabbar { margin: 0 80px 0; border-radius: 22px 22px 0 0; }}
/* tablet (iPad, Android tablet): conteúdo centralizado, 2 colunas, menu de baixo mais largo e mais fácil de tocar */
@media (min-width: 760px) and (max-width: 1099px) {main#app { padding-top: 22px; }
main { max-width: 980px; }
.tabbar { padding-inline: max(24px, env(safe-area-inset-left)); }
.tabbar a { min-height: 56px; font-size: 12.5px; }
.tabbar a svg { width: 26px; height: 26px; }
.stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.stack > .card.wide { grid-column: 1 / -1; }
.ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rk-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.btn, .chip, .seg button { min-height: 44px; }}
@media (min-width: 760px) and (max-width: 1099px) and (orientation: portrait) {.stack { grid-template-columns: 1fr; }}
/* computador: telas grandes ganham respiro, mouse ganha foco visível, ícones de teclado */
@media (min-width: 1100px) {.stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.stack > .card.wide { grid-column: 1 / -1; }
*:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; border-radius: 8px; }}
@media (min-width: 1700px) {:root { --gutter: 28px; }
html:not([data-wide="1"]) main { max-width: 1480px; }
.stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack > .card.wide { grid-column: 1 / -1; }}
/* ---------- fluidez ---------- */
.tooltip, .sale-toast, .toast { will-change: transform, opacity; }
.tabbar a, .btn, .chip, .seg button, .icon-btn, .card, .rk-row { transition-property: background-color, color, border-color, transform, opacity, box-shadow; transition-duration: .18s; transition-timing-function: cubic-bezier(.2, .8, .3, 1); }
/* celulares fracos ou com economia de bateria: sem desfoque pesado nem fundos desenhados */
@media (prefers-reduced-motion: reduce) {html[data-theme] body::before, html[data-theme] body::after { opacity: .15; }}
@media (max-width: 760px) {html[data-theme] { --glass-blur: 14px; }}
/* menu de baixo vale até 1099px (celular e tablet); a partir de 1100px entra a barra lateral */
@media (min-width: 1100px) {.tabbar { display: none; }
.nav-desktop { display: flex; }}
.stack > .card { scroll-margin-top: 64px; }
/* ---------- Ajustes: listas de modelos/sócios, janelas de criar/editar, notificações em abas ---------- */
.sec-why { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.mlist { display: grid; gap: 8px; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .025); color: var(--text); text-align: left; font: inherit; cursor: pointer; min-height: 60px;
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), border-color .2s, background-color .2s; }
.mi:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, .045); }
.mi:active { transform: scale(.985); }
.mi-av { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 13px; font-weight: 700; font-size: 14px; color: var(--on-accent); background: linear-gradient(135deg, var(--accent-hover), var(--accent)); }
.mi-av.alt { background: linear-gradient(135deg, #ffd24a, #ff9d4a); color: #231500; }
.mi-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mi-t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-t small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-go { color: var(--accent-hover); font-size: 13px; font-weight: 600; flex: none; }
.empty-sec { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 14px; font-size: 13.5px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-hover); font: inherit; text-decoration: underline; cursor: pointer; }
.lbl { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.pct-pick { display: flex; align-items: center; gap: 10px; }
.pct-pick input[type=range] { flex: 1; accent-color: var(--accent); min-width: 0; height: 28px; }
.pct-pick .input { width: 84px; flex: none; text-align: center; }
.pct-quick { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pct-note { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--accent-rgb), .12); font-size: 13.5px; }
.dlg-body .seg-full { display: flex; width: 100%; margin: 0; }
.dlg-body .seg-full button { flex: 1; min-height: 44px; }
.dlg-body .field { display: grid; gap: 6px; }
/* notificações: um cartão com abas */
.np-tabs { margin: 4px 0 14px; }
.np-tabs .tab { white-space: nowrap; }
.np-panes .np > .card { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 14px; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0; }
.np-panes .np > .card::before, .np-panes .np > .card::after { display: none !important; }
.np-panes .np > .card + .card { padding-top: 14px !important; border-top: 1px solid var(--border) !important; border-radius: 0 !important; }
.np-panes .np > .card .section-title h2 { font-size: 16px; }
.nt-prev { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 12px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); }
.nt-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, var(--accent-hover), var(--accent)); color: var(--on-accent); }
.nt-prev strong { display: block; font-size: 14px; }
.nt-prev span { display: block; color: var(--text-2); font-size: 13px; white-space: pre-line; }
/* botão de salvar: some quando não há nada para salvar */
.save-bar { align-items: center; }
.save-bar .sb-msg { margin-right: auto; font-size: 13px; color: var(--text-2); padding: 8px 12px; border-radius: 999px; background: rgba(var(--accent-rgb), .15); }
.save-bar { transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.save-bar.idle { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); }
/* some sem tirar o espaço: a tela não pula quando o botão aparece */
@media (max-width: 420px) {.save-bar .sb-msg { display: none; }}
/* janelas viram "folha" que sobe de baixo no celular */
@media (max-width: 599px) {.dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 26px 26px 0 0; max-height: 92dvh; }
.dlg[open] { animation: sheetUp .32s cubic-bezier(.2, .9, .3, 1) both; }
.dlg-body { padding: 20px 18px calc(18px + var(--sab)); }
.dlg-actions .btn { flex: 1; }}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (hover: hover) and (pointer: fine) {.mi-go { opacity: .88; transition: opacity .2s; }
.mi:hover .mi-go { opacity: 1; }}
/* itens de grade nunca ficam mais largos que a tela por causa de abas/linhas que não quebram */
.stack > *, .np-panes, .np, .np > .card, .mlist, .mi, .mi-t { min-width: 0; max-width: 100%; }
.np-tabs { max-width: 100%; }
@media (max-width: 560px) {.set-notify > .section-title > span { display: none; }
.set-sec h2 { flex-wrap: wrap; }}

/* ---------- perfil: foto e nome ---------- */
.prof { display: flex; gap: 16px; align-items: center; margin: 4px 0 6px; }
.prof-av { position: relative; flex: none; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--border-strong); background: linear-gradient(135deg, var(--accent-hover), var(--accent)); color: var(--on-accent); font-family: var(--font-display); font-size: 28px; font-weight: 700; display: grid; place-items: center; cursor: pointer; overflow: visible; padding: 0; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), border-color .2s; }
.prof-av:hover { border-color: var(--accent-hover); }
.prof-av:active { transform: scale(.94); }
.prof-av > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.pf-cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-style: normal; background: var(--surface-3); border: 1px solid var(--border-strong); }
.prof-f { flex: 1; min-width: 0; display: grid; gap: 8px; }
.prof-b { display: flex; flex-wrap: wrap; gap: 8px; }
.av-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.rk-av, .su-av, .mi-av { overflow: hidden; }
@media (max-width: 420px) {.prof { flex-direction: column; align-items: flex-start; }
.prof-f { width: 100%; }}
/* ---------- plaquinhas MK 👑 ---------- */
.ach-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) {.ach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (min-width: 1100px) {.ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
.ach-card { justify-items: stretch; text-align: left; padding: 12px; gap: 12px; }
.plq { border-radius: 22px; overflow: hidden; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }
.plq-svg { display: block; width: 100%; height: auto; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.ach-card.on:hover .plq-svg { transform: scale(1.025) rotate(-.6deg); }
.plq-svg.locked { filter: grayscale(1) brightness(.55) contrast(.9); opacity: .75; }
.ach-info { text-align: left; justify-items: start; }
.ach-info b { font-size: 15px; }
.ach-info .btn { margin-top: 8px; }
.ach-pop-card { width: min(420px, 100%); }
.plq-pop { margin: 12px auto 10px; max-width: 340px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); animation: plqIn .7s cubic-bezier(.2, 1.3, .4, 1) both .15s; }
@keyframes plqIn { from { opacity: 0; transform: translateY(18px) scale(.85) rotate(-4deg); } to { opacity: 1; transform: none; } }
.ach-pop-b { flex-wrap: wrap; }
/* ---------- gráficos novos: barras empilhadas, divisão do dinheiro, horas, bots ---------- */
.viz-stack svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.viz-stack .axis { fill: var(--muted); font-size: 10px; }
.vz-g { cursor: crosshair; animation: rkGrow .6s cubic-bezier(.2, .85, .25, 1) both; animation-delay: calc(var(--i, 0) * 12ms); transform-box: fill-box; transform-origin: 50% 100%; transition: filter .15s; }
.vz-g:hover { filter: brightness(1.3); }
.viz-split { display: grid; gap: 8px; }
.vs-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: rgba(255, 255, 255, .05); }
.vs-bar i { display: block; min-width: 3px; height: 100%; cursor: pointer; transition: filter .15s, transform .15s; }
.vs-bar i:hover { filter: brightness(1.25); }
.vs-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-2); }
.vs-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.vs-leg small { color: var(--muted); }
.split-row { padding: 12px 0; border-top: 1px solid var(--border); }
.split-row:first-child { border-top: 0; padding-top: 2px; }
.split-t { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.split-t span { color: var(--muted); font-size: 13px; }
.viz-h { display: flex; align-items: flex-end; gap: 3px; height: 74px; margin-top: 6px; }
.viz-h i { flex: 1; min-width: 0; background: var(--bc, var(--accent)); opacity: .45; border-radius: 3px 3px 0 0; cursor: pointer; transition: opacity .15s, transform .15s; }
.viz-h i.top { opacity: 1; }
.viz-h i:hover { opacity: 1; transform: scaleY(1.04); transform-origin: bottom; }
.viz-hx { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; }
.bots-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0; }
@media (min-width: 760px) {.bots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
.bot-card { padding: 16px; border-top: 3px solid var(--bc, var(--accent)); }
.bot-h { display: flex; align-items: center; gap: 8px; }
.bot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bc, var(--accent)); display: inline-block; }
.bot-sh { margin-left: auto; font-size: 12px; color: var(--muted); }
.bot-v { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.bot-sub { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.bot-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.bot-kpis div { display: grid; gap: 1px; padding: 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); text-align: center; min-width: 0; }
.bot-kpis span { font-size: 10.5px; color: var(--muted); }
.bot-kpis b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-hl { font-size: 11.5px; color: var(--muted); margin-top: 12px; text-transform: uppercase; letter-spacing: .06em; }
.bot-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bot-who span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.rk-kpis6 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
@media (min-width: 760px) {.rk-kpis6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (min-width: 1100px) {.rk-kpis6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }}
.pp-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) {.pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
.pp-card { padding: 14px; }
.pp-h { display: flex; align-items: center; gap: 10px; }
.pp-n { min-width: 0; flex: 1; display: grid; }
.pp-n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-n small { color: var(--muted); font-size: 12px; }
.pp-n em { font-style: normal; font-size: 11px; padding: 2px 7px; margin-left: 6px; border-radius: 999px; background: rgba(var(--accent-rgb), .22); color: var(--accent-hover); }
.pp-g { text-align: right; display: grid; }
.pp-g strong { font-family: var(--font-display); font-size: 17px; white-space: nowrap; }
.pp-g small { font-size: 11.5px; }
.pp-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 10px; }
.pp-k div { display: grid; gap: 1px; padding: 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); text-align: center; min-width: 0; }
.pp-k span { font-size: 10.5px; color: var(--muted); }
.pp-k b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-b { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); color: var(--text-2); }
.chip-s i { width: 8px; height: 8px; border-radius: 50%; background: var(--bc, var(--accent)); }
.chip-s.top { border-color: rgba(255, 200, 70, .45); }
.chip-s b { color: var(--text); }
/* ---------- ícone da notificação: escolha de cor ---------- */
.ni { margin: 14px 0 6px; }
.ni-t { font-weight: 600; font-size: 14px; display: grid; gap: 2px; margin-bottom: 10px; }
.ni-t small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.ni-o { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 16px; border: 2px solid transparent; background: rgba(255, 255, 255, .04); color: var(--text-2); cursor: pointer; font: inherit; min-height: 78px;
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), border-color .2s, background-color .2s; }
.ni-o:hover { background: rgba(255, 255, 255, .08); }
.ni-o:active { transform: scale(.94); }
.ni-o.on { border-color: var(--accent-hover); background: rgba(var(--accent-rgb), .14); color: var(--text); }
.ni-o.on::after { content: "✓"; position: absolute; top: 4px; right: 6px; font-size: 11px; font-weight: 700; color: var(--accent-hover); }
.ni-o img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; display: block; }
.ni-o em { font-style: normal; font-size: 11px; line-height: 1.1; text-align: center; }
.ni-plus { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 2px dashed var(--border-strong); font-size: 22px; color: var(--text-2); }
.ni-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.ni-rainbow { width: 46px; height: 46px; border-radius: 12px; background: conic-gradient(from 90deg, #ef3b4a, #ff8a1f, #e3b341, #22c55e, #14c8d4, #3b82f6, #8b5cf6, #ff4f9a, #ef3b4a); }
.nt-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.nt-ic { overflow: hidden; }
/* ---------- Top 7 (só valores) ---------- */
.top-list { display: grid; gap: 8px; margin: 6px 0 12px; }
.top-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); animation: rkIn .45s cubic-bezier(.2, .85, .3, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
.top-row.me { border-color: rgba(255, 200, 70, .6); background: linear-gradient(90deg, rgba(255, 200, 70, .14), transparent), var(--surface); }
.top-row .rk-pos { width: 30px; flex: none; font-size: 18px; }
.nt-tpl { margin: 4px 0 6px; }
.nt-tpl textarea { resize: vertical; min-height: 56px; font: inherit; line-height: 1.4; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
.nt-chips > span { font-size: 12px; color: var(--muted); }
.nt-chips .chip { appearance: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.nt-chips .chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.nt-chips .chip:active { transform: scale(.96); }
.nt-chips .chip.alt { border-style: dashed; color: var(--muted); }
.nt-prev span { white-space: pre-line; }
/* ---------- boas-vindas: liquid glass (minimalista) ---------- */
.wl { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; overflow: hidden; padding: 24px; cursor: pointer;
  background: rgba(3, 5, 10, .42); background: color-mix(in srgb, var(--bg) 50%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  animation: wlIn .55s cubic-bezier(.22, .8, .3, 1) both; }
.wl.out { animation: wlOut .7s cubic-bezier(.4, 0, .2, 1) forwards; pointer-events: none; }
.wl-blob { position: absolute; width: min(55vw, 380px); aspect-ratio: 1; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; filter: blur(60px); opacity: .4; mix-blend-mode: screen;
  background: radial-gradient(circle at 30% 30%, var(--accent-hover), rgba(var(--accent-rgb), .1) 70%); animation: wlMorph 7s ease-in-out infinite alternate, wlFloat 5s ease-in-out infinite alternate; }
.wl-blob.b1 { top: 22%; left: 16%; }
.wl-blob.b2 { bottom: 16%; right: 14%; animation-delay: -2.5s; opacity: .26; }
.wl-glass { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px 40px 32px; width: min(88vw, 420px); border-radius: 30px; overflow: hidden; isolation: isolate; color: var(--text);
  background: linear-gradient(150deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 60%, rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .1), 0 24px 70px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  animation: wlCard .9s cubic-bezier(.2, .9, .25, 1) .12s both; }
.wl.out .wl-glass { animation: wlCardOut .65s cubic-bezier(.4, 0, .2, 1) forwards; }
.wl-glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(90% 60% at 25% 0%, rgba(255, 255, 255, .28), transparent 60%); }
.wl-sheen { position: absolute; top: -20%; bottom: -20%; left: 0; width: 40%; z-index: -1; transform: translateX(-160%) skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); filter: blur(6px); animation: wlSheen 1.4s cubic-bezier(.4, 0, .2, 1) .7s both; }
.wl-hi { font-size: 13.5px; letter-spacing: .01em; color: var(--text-2); animation: wlUp .7s cubic-bezier(.2, .9, .25, 1) .4s both; }
.wl-name { font-family: var(--font-display); font-size: clamp(30px, 8vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: linear-gradient(100deg, var(--text), var(--accent-hover) 60%, var(--text)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: wlUp .8s cubic-bezier(.2, .9, .25, 1) .55s both, wlShine 2.2s ease-in-out .8s both; }
@keyframes wlIn { from { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
@keyframes wlOut { to { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
@keyframes wlCard { from { opacity: 0; transform: translateY(22px) scale(.92); filter: blur(12px); } 60% { filter: blur(0); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wlCardOut { to { opacity: 0; transform: translateY(-12px) scale(1.05); filter: blur(10px); } }
@keyframes wlUp { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wlSheen { to { transform: translateX(440%) skewX(-18deg); } }
@keyframes wlShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes wlMorph { 0% { border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; } 50% { border-radius: 60% 40% 38% 62% / 58% 55% 45% 42%; } 100% { border-radius: 38% 62% 55% 45% / 40% 60% 40% 60%; } }
@keyframes wlFloat { from { transform: translate(0, 0) rotate(0); } to { transform: translate(26px, -20px) rotate(25deg); } }
.wl-brand { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--text); }
.wl-ring { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 10px; border-radius: 30px; background: linear-gradient(150deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 18px 50px rgba(0, 0, 0, .4), 0 0 60px -10px rgba(var(--accent-rgb), .7); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); animation: wlPop .8s cubic-bezier(.2, 1.15, .3, 1) .08s both; }
.wl-ring i { position: absolute; inset: -7px; border-radius: 36px; border: 2px solid transparent; border-top-color: var(--accent-hover); border-right-color: rgba(var(--accent-rgb), .45); animation: wlSpin 1.1s linear infinite, wlIn .5s ease .2s both; }
.wl-ring img { width: 66px; height: 66px; border-radius: 18px; object-fit: cover; }
.wl-ring b { font-family: var(--font-display); font-size: 28px; }
.wl-bn { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; animation: wlUp .7s cubic-bezier(.2, .9, .25, 1) .35s both; }
.wl-bs { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); animation: wlUp .7s cubic-bezier(.2, .9, .25, 1) .5s both; }
@keyframes wlPop { from { opacity: 0; transform: scale(.6) rotate(-8deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wlSpin { to { transform: rotate(360deg); } }
html[data-lite="1"] .wl-ring i { display: none; }
html[data-lite="1"] .wl { background: var(--bg); }
html[data-lite="1"] .wl-blob { display: none; }
@media (prefers-reduced-motion: reduce) {.wl { display: none; }}
.ach-colors { padding: 12px 14px; margin: 0 0 12px; display: grid; gap: 10px; }
.ac-h { display: grid; gap: 2px; }
.ac-h small { color: var(--muted); font-size: 12px; }
.ac-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-dot { appearance: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; box-shadow: inset 0 2px 3px rgba(255, 255, 255, .45), 0 3px 8px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s; }
.ac-dot:hover { transform: translateY(-2px) scale(1.06); }
.ac-dot.on { border-color: var(--text); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .45), inset 0 2px 3px rgba(255, 255, 255, .45); }
.ach-ic { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 8px; font-size: 12.5px; color: var(--text-2); }
.ach-ic-img { width: 44px; height: 44px; border-radius: 12px; flex: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.ach-ic-img.lock { filter: grayscale(1) brightness(.55); opacity: .7; }
.ach-ic > span { flex: 1; min-width: 100px; }
.rk-emo { font-size: 1.25em; line-height: 1; }
.top-av-big { width: 56px; height: 56px; font-size: 22px; }
.top-ic { display: grid; gap: 10px; margin-bottom: 16px; }
.top-ic-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-ic-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.top-emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.top-emo { appearance: none; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; aspect-ratio: 1; font-size: 20px; cursor: pointer; transition: transform .15s, border-color .15s; }
.top-emo:hover { transform: translateY(-2px); border-color: var(--accent); }
.top-emo.on { border-color: var(--accent-hover); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .35); }
@media (max-width: 420px) {.top-emojis { grid-template-columns: repeat(8, 1fr); gap: 4px; }
.top-emo { font-size: 17px; border-radius: 10px; }}
.top-av { width: 38px; height: 38px; flex: none; font-size: 13px; }
.top-ph { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.top-ph input:disabled + span { opacity: .65; }
.sg-det { margin: 0 0 14px; padding: 14px 18px; }
.sg-det > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 8px; align-items: center; }
.sg-det > summary::-webkit-details-marker { display: none; }
.sg-det > summary::after { content: "›"; margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .25s; }
.sg-det[open] > summary::after { transform: rotate(90deg); }
#ios-hint { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--sab) + 18px); z-index: 55; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; color: var(--text); background: rgba(var(--surface-rgb), .92); border: 1px solid rgba(var(--accent-rgb), .45); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); animation: ihIn .45s cubic-bezier(.2, .9, .25, 1) both; }
#ios-hint.out { opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
#ios-hint .ih-ic { font-size: 22px; line-height: 1.2; }
#ios-hint div { flex: 1; min-width: 0; }
#ios-hint b { display: block; font-size: 14px; }
#ios-hint small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
#ios-hint small b { display: inline; font-size: inherit; color: var(--text); }
#ios-hint .ih-x { appearance: none; border: 0; background: rgba(var(--ink-rgb), .1); color: var(--text-2); width: 28px; height: 28px; border-radius: 50%; font-size: 13px; cursor: pointer; flex: none; }
@keyframes ihIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (min-width: 1100px) {#ios-hint { display: none; }}
.diag { margin: 4px 16px 6px; padding: 12px; border-radius: 12px; background: rgba(var(--ink-rgb), .05); border: 1px solid var(--border); font: 12px/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; color: var(--text-2); -webkit-user-select: text; user-select: text; }
.sg-card { margin: 0 0 16px; }
.sg-list { counter-reset: sg; list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 12px; }
.sg-list li { counter-increment: sg; position: relative; padding-left: 40px; line-height: 1.5; color: var(--text-2); }
.sg-list li b { color: var(--text); }
.sg-list li::before { content: counter(sg); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--text); background: rgba(var(--accent-rgb), .2); border: 1px solid rgba(var(--accent-rgb), .55); }
.sg-list li.sg-key { padding: 12px 14px 12px 54px; border-radius: 14px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .4); }
.sg-list li.sg-key::before { left: 14px; top: 12px; background: var(--accent); color: var(--on-accent); }
/* ---------- ranking mensal (pódio + lista) ---------- */
.tp-wrap { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.tp-hero { padding: 18px; display: grid; gap: 14px; border-color: rgba(var(--accent-rgb), .32); background: radial-gradient(120% 150% at 0% 0%, rgba(var(--accent-rgb), .22), transparent 62%), var(--surface); }
.tp-hero-t { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.tp-cal { font-weight: 700; font-size: 14px; }
.tp-chip { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(var(--ink-rgb), .09); color: var(--text-2); }
.tp-me { display: flex; align-items: center; gap: 14px; }
.tp-me-av { width: 54px; height: 54px; font-size: 19px; flex: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .45), 0 10px 24px -10px rgba(var(--accent-rgb), .8); }
.tp-me small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tp-me-b b { font-family: var(--font-display); font-size: 36px; line-height: 1; letter-spacing: -.02em; }
.tp-me-v { margin-left: auto; text-align: right; }
.tp-me-v strong { font-family: var(--font-display); font-size: 22px; white-space: nowrap; }
.tp-gap { margin: 0; font-size: 13px; color: var(--text-2); padding-top: 12px; border-top: 1px dashed var(--border-strong); }
.tp-pods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 6px; }
.tp-pods.n1 { grid-template-columns: minmax(0, 1fr); max-width: 260px; margin-inline: auto; }
.tp-pods.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-pod { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 18px 8px 14px; border-radius: 22px; text-align: center; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(var(--ink-rgb), .07), rgba(var(--ink-rgb), .02)); animation: rkIn .55s cubic-bezier(.2, .85, .3, 1) both; animation-delay: calc(var(--i, 0) * 90ms); min-width: 0; }
.tp-pod.p1 { padding-top: 24px; padding-bottom: 14px; gap: 5px; border-color: rgba(255, 210, 90, .6); background: radial-gradient(90% 70% at 50% 0%, rgba(255, 214, 90, .26), transparent 70%), linear-gradient(180deg, rgba(255, 200, 70, .14), rgba(255, 200, 70, .03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px -20px rgba(255, 200, 70, .65); overflow: hidden; }
.tp-pod.p1::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 240, 180, .22) 50%, transparent 62%); background-size: 260% 100%; animation: tpShine 4.2s ease-in-out infinite; }
@keyframes tpShine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
html[data-motion="reduced"] .tp-pod.p1::after { animation: none; opacity: 0; }
.tp-pod.p2 { border-color: rgba(205, 214, 228, .5); background: linear-gradient(180deg, rgba(205, 214, 228, .18), rgba(205, 214, 228, .03)); }
.tp-pod.p3 { border-color: rgba(205, 127, 50, .55); background: linear-gradient(180deg, rgba(205, 127, 50, .2), rgba(205, 127, 50, .03)); }
.tp-pod.me { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.tp-crown { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); font-size: 17px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.tp-pav { width: 56px; height: 56px; font-size: 18px; box-shadow: 0 0 0 3px rgba(205, 214, 228, .7); }
.tp-pod.p1 .tp-pav { width: 58px; height: 58px; font-size: 19px; margin-top: 8px; box-shadow: 0 0 0 2px #ffd24a, 0 0 0 5px rgba(255, 210, 74, .18), 0 6px 18px rgba(255, 200, 70, .45); }
.tp-pod.p3 .tp-pav { box-shadow: 0 0 0 3px #cd7f32; }
.tp-pn { max-width: 100%; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-pn em, .tp-nm em { font-style: normal; margin-left: 6px; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: rgba(var(--accent-rgb), .25); color: var(--text); }
.tp-pv { font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tp-pod.p1 .tp-pv { font-size: 15.5px; }
.tp-pod.p1 .tp-pv, .tp-pod.p1 .tp-pv * { background: linear-gradient(180deg, #fff6c8, #f4c531); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.tp-pod.p1 .tp-pm { font-size: 18px; }
.tp-pm { font-size: 22px; line-height: 1; }
.tp-list { display: grid; gap: 8px; }
.tp-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); animation: rkIn .45s cubic-bezier(.2, .85, .3, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.tp-rk { width: 30px; flex: none; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--muted); }
.tp-av { width: 40px; height: 40px; font-size: 14px; flex: none; }
.tp-mid { flex: 1; min-width: 0; display: grid; gap: 7px; }
.tp-nm { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-bar { display: block; height: 5px; border-radius: 999px; background: rgba(var(--ink-rgb), .1); overflow: hidden; }
.tp-bar u { display: block; height: 100%; border-radius: inherit; text-decoration: none; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); box-shadow: 0 0 8px rgba(var(--accent-rgb), .55); transform-origin: left; animation: rkBar .8s cubic-bezier(.2, .85, .25, 1) both; }
.tp-val { font-family: var(--font-display); font-size: 15px; white-space: nowrap; }
.tp-row.me { border-color: rgba(var(--accent-rgb), .65); background: linear-gradient(90deg, rgba(var(--accent-rgb), .18), transparent 70%), var(--surface); }
.tp-dots { text-align: center; color: var(--muted); letter-spacing: 8px; line-height: 1; margin: -2px 0; }
.tp-note { text-align: center; margin: 0; }
.tp-opt { padding: 0; overflow: hidden; }
.tp-opt > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 15px 18px; font-weight: 700; }
.tp-opt > summary::-webkit-details-marker { display: none; }
.tp-opt > summary::after { content: "›"; margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .25s; }
.tp-opt[open] > summary::after { transform: rotate(90deg); }
.tp-opt-b { padding: 4px 18px 18px; display: grid; gap: 14px; border-top: 1px solid var(--border); padding-top: 16px; }
@media (min-width: 900px) {.tp-wrap { gap: 18px; }
.tp-hero { padding: 24px 28px; }
.tp-me-b b { font-size: 44px; }
.tp-me-v strong { font-size: 28px; }
.tp-me-av { width: 64px; height: 64px; }
.tp-pods { gap: 18px; }
.tp-pav { width: 72px; height: 72px; font-size: 22px; }
.tp-pod.p1 .tp-pav { width: 76px; height: 76px; font-size: 24px; }
.tp-pn { font-size: 15px; }
.tp-pv { font-size: 17px; }
.tp-pod.p1 .tp-pv { font-size: 19px; }
.tp-pod { padding-top: 24px; }
.tp-pod.p1 { padding-top: 30px; padding-bottom: 20px; }
.tp-row { padding: 14px 22px 14px 16px; gap: 16px; }
.tp-av { width: 46px; height: 46px; }
.tp-nm { font-size: 15px; }
.tp-val { font-size: 17px; }
.tp-bar { height: 6px; }}
@media (max-width: 360px) {.tp-pod { padding-inline: 4px; }
.tp-pav { width: 46px; height: 46px; }
.tp-pod.p1 .tp-pav { width: 50px; height: 50px; }
.tp-pn { font-size: 12px; }
.tp-pv { font-size: 12.5px; }}
.tp-prog { display: block; height: 6px; border-radius: 999px; background: rgba(var(--ink-rgb), .1); overflow: hidden; margin-top: -2px; }
.tp-prog u { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); box-shadow: 0 0 10px rgba(var(--accent-rgb), .5); transform-origin: left; animation: rkBar .9s cubic-bezier(.2, .85, .25, 1) .2s both; }
:is(html[data-theme="neo"], html[data-theme="claro"]) .tp-pod.p1 .tp-pv, :is(html[data-theme="neo"], html[data-theme="claro"]) .tp-pod.p1 .tp-pv * { background: linear-gradient(180deg, #d99a00, #96610a); -webkit-background-clip: text; background-clip: text; }
/* nos temas claros o dourado do 1º lugar precisa ser escuro para ler */
.pv-short { display: none; }
.tp-opt-t { display: grid; gap: 2px; min-width: 0; }
.tp-opt-t small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
/* celular: pódio sem cortes (nome em até 2 linhas, valor curto), lista mais compacta */
@media (max-width: 520px) {.pv-full { display: none; }
.pv-short { display: inline; }
.tp-wrap { gap: 12px; }
.tp-hero { padding: 16px; gap: 12px; }
.tp-me-av { width: 50px; height: 50px; font-size: 17px; }
.tp-me-b b { font-size: 34px; }
.tp-me-v strong { font-size: 21px; }
.tp-pods { gap: 8px; }
.tp-pods.n3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr); }
.tp-pod { padding: 14px 6px 12px; border-radius: 20px; gap: 5px; }
.tp-pod.p1 { padding-top: 22px; padding-bottom: 12px; }
.tp-pav { width: 46px; height: 46px; font-size: 16px; }
.tp-pod.p1 .tp-pav { width: 54px; height: 54px; font-size: 18px; margin-top: 6px; }
.tp-pn { display: block; font-size: 12.5px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.tp-pn > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.tp-pn em { display: block; width: fit-content; margin: 4px auto 0; }
.tp-pv { font-size: 13px; }
.tp-pod.p1 .tp-pv { font-size: 14.5px; }
.tp-pm, .tp-pod.p1 .tp-pm { font-size: 20px; }
.tp-list { gap: 7px; }
.tp-row { gap: 10px; padding: 9px 12px 9px 8px; border-radius: 16px; }
.tp-rk { width: 28px; font-size: 15px; }
.tp-av { width: 36px; height: 36px; font-size: 13px; }
.tp-val { font-size: 14px; }
.tp-opt > summary { padding: 14px 16px; }
.tp-opt-b { padding-inline: 16px; }}
.top-mid { flex: 1; min-width: 0; display: grid; gap: 6px; }
.top-nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nmf { display: block !important; }
.top-nmr { display: flex; gap: 8px; margin: 6px 0 4px; }
.top-nmr .input { flex: 1; min-width: 0; }
.top-opt .toggle { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.top-opt { padding: 14px 16px; }
.top-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.top-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--accent-rgb), .55), var(--accent-hover)); transform-origin: left; animation: rkBar .8s cubic-bezier(.2, .85, .25, 1) both; }
.top-row strong { font-family: var(--font-display); font-size: 17px; white-space: nowrap; }
.top-row em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 200, 70, .25); color: #ffd24a; }
.top-gap { text-align: center; color: var(--muted); letter-spacing: 2px; line-height: 1; margin: 6px 0; font-size: 18px; }
.top-note { text-align: center; margin: 6px 0 12px; }
.top-me { margin-bottom: 10px; padding: 14px 16px; text-align: center; }
.top-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer; }
.top-opt small { color: var(--muted); }
.top-lock { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 26px 18px; }
.top-lock h2 { margin: 0; }
.top-lock p { margin: 0; color: var(--text-2); }
.top-lock .ach-bar { width: 100%; }
.top-lk { font-size: 40px; }
.top-teaser { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 12px 0; color: var(--text); }
.top-teaser span { font-size: 26px; }
.top-teaser div { flex: 1; display: grid; }
.top-teaser small { color: var(--muted); font-size: 12.5px; }
.top-teaser i { font-style: normal; font-size: 22px; color: var(--muted); }
.top-teaser.on { border-color: rgba(255, 200, 70, .5); }
.top-teaser:active { transform: scale(.985); }
/* ---------- recompensas de marcos (vitrine preta e dourada) ---------- */
.rw-line { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rw-line b { color: var(--text-2); }
.rw-line.on b { color: #ffd24a; }
.rw-line a { color: var(--accent-hover); }
.rwx { margin: 14px 0; padding: 18px 12px 14px; border-radius: 26px; background: radial-gradient(120% 90% at 50% 0%, #2b2417, #0b0a08 70%); border: 1px solid rgba(227, 179, 65, .45); box-shadow: 0 20px 50px -26px rgba(227, 179, 65, .35); }
.rwx-h { text-align: center; display: grid; gap: 4px; margin-bottom: 14px; }
.rwx-h b { color: #e3b341; letter-spacing: .32em; font-size: 12.5px; }
.rwx-h small { color: rgba(255, 255, 255, .6); letter-spacing: .22em; font-size: 9.5px; }
.rwx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) {.rwx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
.rwx-card { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 8px 12px; border-radius: 18px; border: 1px solid rgba(227, 179, 65, .5); background: linear-gradient(180deg, rgba(227, 179, 65, .09), rgba(0, 0, 0, .35)); animation: rkIn .5s cubic-bezier(.2, .85, .3, 1) both; animation-delay: calc(var(--i, 0) * 70ms); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.rwx-card:hover { transform: translateY(-3px); }
.rwx-n { position: absolute; top: -12px; left: 50%; margin-left: -13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #e3b341; background: #0b0a08; border: 2px solid #e3b341; }
.rwx-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 5.4vw, 32px); background: linear-gradient(180deg, #fff1b8, #c8921f); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 14px rgba(227, 179, 65, .25); line-height: 1.1; }
.rwx-art { width: 100%; display: grid; place-items: center; }
.rwx-art svg { width: 100%; max-width: 230px; height: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .6)); }
.rw-svg.locked { filter: grayscale(.85) brightness(.5); opacity: .8; }
.rwx-pill { width: 100%; text-align: center; padding: 8px 6px; border-radius: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 13.5px; color: #fff; background: #0a0a0d; border: 1px solid rgba(227, 179, 65, .6); }
.rwx-lock { position: absolute; top: 10px; right: 12px; font-size: 14px; opacity: .8; }
html[data-motion="reduced"] .rwx-card { animation: none; }
.rwx-card { grid-template-rows: auto 1fr auto; }
.rwx-art { align-self: center; min-height: 150px; }
/* ---------- Novinho da Lancha: a foto da aventura como fundo (celular e computador) ---------- */
html[data-theme="lancha"] body::before { background-size: cover !important; background-position: center 70%; background-repeat: no-repeat !important; opacity: .58; -webkit-mask-image: none; mask-image: none; }
html[data-theme="lancha"] body::after { display: block; content: ""; position: fixed; inset: 0; height: auto; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3,20,15,.74), rgba(3,20,15,.36) 45%, rgba(3,20,15,.72)); }
/* tablet deitado e computador: a foto 16:9 da aventura preenche a tela inteira, com um véu verde-água que mantém tudo legível */
@media (min-width: 900px) and (orientation: landscape) {html[data-theme="lancha"] body::before {
    background-image: var(--lancha-wide, var(--lancha-img)) !important;
    background-size: cover !important; background-position: center 45% !important; opacity: .74;
    filter: blur(1.5px) saturate(1.08);
  }
html:not(#_)[data-theme="lancha"] .card, html:not(#_)[data-theme="lancha"] .rk-row { background-color: rgba(var(--surface-rgb), .6); }
html:not(#_)[data-theme="lancha"] .hero { background-color: rgba(var(--surface-rgb), .52); }
html[data-theme="lancha"] body::after {
    background:
      linear-gradient(90deg, rgba(3,20,15,.9) 0, rgba(3,20,15,.55) 20%, rgba(3,20,15,.34) 52%, rgba(3,20,15,.4) 100%),
      linear-gradient(180deg, rgba(3,20,15,.6), rgba(3,20,15,.2) 26%, rgba(3,20,15,.28) 62%, rgba(3,20,15,.7)),
      radial-gradient(120% 90% at 78% 40%, transparent 40%, rgba(2,14,11,.5));
  }}
/* escolha da logo do aplicativo */
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.lg-o { display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; min-width: 0; border-radius: 16px; border: 1px solid var(--border, rgba(255,255,255,.12)); background: rgba(255,255,255,.04); color: inherit; cursor: pointer; font: inherit; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.lg-o img { width: 52px; height: 52px; border-radius: 13px; display: block; }
.lg-o em { font-style: normal; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.lg-o:hover { transform: translateY(-2px); }
.lg-o.on { border-color: var(--accent, #e3b341); background: rgba(255,255,255,.09); box-shadow: 0 0 0 1px var(--accent, #e3b341) inset; }
.lg-o.on em { color: var(--text, inherit); font-weight: 600; }
/* prêmio único por marco: a arte da recompensa no mesmo cartão da conquista */
.plq.plq-rw { display: grid; place-items: center; min-height: 150px; padding: 14px 10px; border-radius: 20px; border: 1px solid rgba(227, 179, 65, .5); background: radial-gradient(120% 90% at 50% 0%, #2b2417, #0b0a08 72%); filter: none; }
.plq-rw .rw-svg { display: block; width: 100%; max-width: 220px; height: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .6)); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.ach-card.on:hover .plq-rw .rw-svg { transform: scale(1.04) rotate(-.8deg); }
.plq-rw .rw-svg.locked { filter: grayscale(.85) brightness(.5); opacity: .8; }
/* ---------- MK Gelo e Reggae ---------- */
html[data-theme="mkgelo"] {
  color-scheme: dark;
  --bg: #04111b; --surface: #0a1f2e; --surface-2: #102c40; --surface-3: #17405a;
  --border: #17384d; --border-strong: #25546f;
  --text: #eaf8ff; --text-2: #b6d9ea; --muted: #6f9bb3;
  --accent: #8fdcff; --accent-hover: #c4eeff;
  --good: #6fe3b2; --warn: #ffd27a; --bad: #ff7b8a; --grid: #17384d;
  --bg-rgb: 4, 17, 27; --surface-rgb: 10, 31, 46; --accent-rgb: 143, 220, 255; --ink-rgb: 234, 248, 255;
  --info-bg: #0a1f2e; --info-border: #25546f; --info-text: #c4eeff; --hero-border: #17384d; --scrub: #e6f8ff; --on-accent: #05222f;
  --demo-bg: #0a1f2e; --demo-text: #c4eeff; --demo-border: #25546f; --warn-bg: #1f190a; --warn-border: #4a3b14; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --series-1: #8fdcff; --series-2: #ffffff; --series-3: #6fe3b2; --series-4: #7aa8ff; --series-5: #ffb86b; --series-6: #c7a6ff; --series-7: #ff8fb5; --series-8: #ffe27a;
}
html[data-theme="mkgelo"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(143,220,255,.24), transparent 55%), radial-gradient(90% 90% at 100% 100%, rgba(255,255,255,.08), transparent 60%), rgba(var(--surface-rgb), .72); }
html[data-theme="mkgelo"] body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-repeat: repeat; background-size: 380px 380px; }
html[data-theme="mkgelo"] body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: clamp(60px, 13vh, 130px); z-index: 0; pointer-events: none; }
html[data-theme="mkgelo"] main { position: relative; z-index: 1; }
html[data-theme="mkgelo"] .card { background: rgba(var(--surface-rgb), .74); }
html[data-theme="mkgelo"] .tabbar { background: rgba(var(--surface-rgb), .92); }
@media (min-width: 760px) {html[data-theme="mkgelo"] body::before { background-size: 600px 600px; }}
@media (min-width: 1100px) {html[data-theme="mkgelo"] body::before { background-size: 700px 700px; }}
@media (max-width: 1099px) {html[data-theme="mkgelo"] body::before { background-size: 460px 460px; }}
html[data-theme="reggae"] {
  color-scheme: dark;
  --bg: #0b1407; --surface: #12220c; --surface-2: #1a3010; --surface-3: #264516;
  --border: #24401a; --border-strong: #3a6226;
  --text: #fff8e1; --text-2: #e2d9a8; --muted: #98a672;
  --accent: #f9c80e; --accent-hover: #ffdd4a;
  --good: #5fd35f; --warn: #f9c80e; --bad: #ef3b2d; --grid: #24401a;
  --bg-rgb: 11, 20, 7; --surface-rgb: 18, 34, 12; --accent-rgb: 249, 200, 14; --ink-rgb: 255, 248, 225;
  --info-bg: #12220c; --info-border: #3a6226; --info-text: #ffe98a; --hero-border: #24401a; --scrub: #fff3b0; --on-accent: #1a1400;
  --demo-bg: #12220c; --demo-text: #ffe98a; --demo-border: #3a6226; --warn-bg: #1f190a; --warn-border: #4a3b14; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --series-1: #f9c80e; --series-2: #ef3b2d; --series-3: #3ec44c; --series-4: #ff8a1f; --series-5: #fff8e1; --series-6: #d6a8ff; --series-7: #55d6ff; --series-8: #ff6fa0;
}
html[data-theme="reggae"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(249,200,14,.22), transparent 55%), radial-gradient(100% 100% at 100% 100%, rgba(239,59,45,.22), transparent 60%), rgba(var(--surface-rgb), .72); }
html[data-theme="reggae"] body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-repeat: repeat; background-size: 380px 380px; }
html[data-theme="reggae"] body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: clamp(60px, 13vh, 130px); z-index: 0; pointer-events: none; }
html[data-theme="reggae"] main { position: relative; z-index: 1; }
html[data-theme="reggae"] .card { background: rgba(var(--surface-rgb), .74); }
html[data-theme="reggae"] .tabbar { background: rgba(var(--surface-rgb), .92); }
@media (min-width: 760px) {html[data-theme="reggae"] body::before { background-size: 600px 600px; }}
@media (min-width: 1100px) {html[data-theme="reggae"] body::before { background-size: 700px 700px; }}
@media (max-width: 1099px) {html[data-theme="reggae"] body::before { background-size: 460px 460px; }}
.tp-mkgelo { background: #04111b; }
.tp-mkgelo i { background: #17405a; }
.tp-mkgelo .tp-body i:first-child { background: linear-gradient(135deg,#8fdcff,#ffffff); }
.tp-reggae { background: #0b1407; }
.tp-reggae i { background: #264516; }
.tp-reggae .tp-body i:first-child { background: linear-gradient(135deg,#3ec44c,#f9c80e,#ef3b2d); }
.tp-lancha i { background: #12685f; }
.tp-lancha .tp-body i:first-child { background: linear-gradient(135deg,#2ec4b0,#ff9a73); }
html[data-theme="reggae"] body::before { opacity: .42; }
/* temas especiais bloqueados até R$ 1.000 vendidos */
.sp-lock { margin-left: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; color: var(--warn); background: rgba(255, 190, 60, .12); border: 1px solid rgba(255, 190, 60, .3); }
.sp-note { display: grid; gap: 4px; margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(255, 190, 60, .4); background: rgba(255, 190, 60, .06); font-size: 13px; }
.sp-note b { font-size: 14px; }
.sp-note span { color: var(--muted); }
.sp-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 4px; }
.sp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb703, #ffd86b); transition: width .6s cubic-bezier(.2, .85, .3, 1); }
.theme-opt { position: relative; }
.theme-opt.locked { cursor: not-allowed; }
.theme-opt.locked .theme-prev { filter: grayscale(.85) brightness(.55); }
.theme-opt.locked b, .theme-opt.locked small { opacity: .6; }
.theme-opt.locked:hover { transform: none; }
.theme-opt .sp-pad { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* plaquinhas modernas: ícone colorido da recompensa */
.rw-line { display: flex; align-items: center; gap: 10px; }
.rw-ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--c1), var(--c2) 55%, var(--c3)); box-shadow: 0 8px 16px -8px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .45); }
.rw-line:not(.on) .rw-ic { filter: grayscale(.9) brightness(.7); opacity: .75; }
.plq { border-radius: 24px; }
.plq-svg { border-radius: 24px; }
/* ---------- arte nova: class ---------- */
html[data-theme="class"] body::before { background-size: 760px 760px !important; background-repeat: repeat !important; opacity: 0.88; }
@media (min-width: 760px) {html[data-theme="class"] body::before { background-size: 1100px 1100px !important; }}
/* ---------- extras (plaquinha vertical, temas fechados, Tropa do Hot) ---------- */
.plq { border-radius: 8px; max-width: 360px; margin-inline: auto; width: 100%; box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .8); }
.plq-svg { border-radius: 6px; }
.plq-pop { max-width: 250px !important; }
.th-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); }
.th-bar .theme-prev { flex: none; width: 74px; margin: 0; }
.th-cur { flex: 1; min-width: 0; display: grid; gap: 2px; }
.th-cur small { color: var(--muted); font-size: 12px; }
.th-cur b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-toggle { flex: none; }
.th-fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s cubic-bezier(.2, .85, .25, 1), opacity .3s ease; }
.th-fold.open { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.th-inner { overflow: hidden; min-height: 0; }
.tp-badge { margin-left: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; padding: 2px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #ff2d6f, #ff7a1a); box-shadow: 0 6px 14px -6px #ff2d6f; }
.theme-tropa .theme-opt { border-color: rgba(255, 70, 110, .45); background: linear-gradient(160deg, rgba(255, 60, 100, .10), transparent 60%), rgba(255, 255, 255, .03); }
.theme-tropa .theme-opt[aria-pressed="true"] { border-color: #ff2d6f; box-shadow: 0 0 0 1px #ff2d6f inset, 0 12px 28px -14px rgba(255, 45, 111, .7); }
@media (prefers-reduced-motion: reduce) {.th-fold { transition: none; }}
/* ---------- cores personalizadas ---------- */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.cc-item { position: relative; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); cursor: pointer; transition: border-color .2s, transform .18s; }
.cc-item:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.cc-item.on { border-color: var(--accent); }
.cc-item input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.cc-sw { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 12px; background: var(--c); border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 6px 14px -6px var(--c), inset 0 0 0 1px rgba(0, 0, 0, .25); }
.cc-item b { font-size: 13.5px; align-self: end; }
.cc-item small { color: var(--muted); font-size: 11.5px; align-self: start; text-transform: lowercase; }
/* ---------- arte nova: mk ---------- */
html[data-theme="mk"] body::before { background-size: 460px 460px, 400px 400px !important; background-repeat: repeat !important; opacity: 0.48; }
@media (min-width: 760px) {html[data-theme="mk"] body::before { background-size: 640px 640px, 560px 560px !important; }}
/* ---------- arte nova: fogo ---------- */
/* ---------- arte nova: brasil ---------- */
/* ---------- temas elegantes e dinheiro ---------- */
html[data-theme="executivo"] {
  color-scheme: dark;
  --bg: #0a0d13; --surface: #10151e; --surface-2: #161c27; --surface-3: #1f2735;
  --border: #222b3a; --border-strong: #34415a;
  --text: #eef2f8; --text-2: #b6c0d1; --muted: #7a869b;
  --accent: #5b9bd5; --accent-hover: #8ab8e6; --accent-rgb: 91, 155, 213; --ink-rgb: 238, 242, 248; --bg-rgb: 10, 13, 19; --surface-rgb: 16, 21, 30;
  --good: #5fcf9a; --warn: #e0b050; --bad: #e57373; --grid: #222b3a; --on-accent: #06121f; --scrub: #d8e8f8;
  --info-bg: #10151e; --info-border: #34415a; --info-text: #cfe3f7; --hero-border: #222b3a; --demo-bg: #10151e; --demo-text: #cfe3f7; --demo-border: #34415a; --warn-bg: #1f190a; --warn-border: #4a3b14; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --series-1: #5b9bd5; --series-2: #d4af37; --series-3: #5fcf9a; --series-4: #9aa7bd; --series-5: #e57373; --series-6: #8e8ce0; --series-7: #5bc0c8; --series-8: #eef2f8;
}
html[data-theme="executivo"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(91,155,213,.16), transparent 55%), radial-gradient(100% 100% at 100% 100%, rgba(212,175,55,.07), transparent 60%), rgba(var(--surface-rgb), .72); }
html[data-theme="executivo"] body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-size: 14px 14px; }
html[data-theme="executivo"] body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,13,19,0) 60%, rgba(91,155,213,.07)); }
html[data-theme="executivo"] main { position: relative; z-index: 1; }
.tp-executivo { background: #0a0d13; }
.tp-executivo i { background: #1f2735; }
.tp-executivo .tp-body i:first-child { background: linear-gradient(135deg,#5b9bd5,#d4af37); }
html[data-theme="executivo"] .card, html[data-theme="executivo"] .rk-row { background: rgba(var(--surface-rgb), .94); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 30px -24px rgba(0,0,0,.8); }
html[data-theme="executivo"] .tabbar, html[data-theme="executivo"] .topbar { background: rgba(10,13,19,.92); }
html[data-theme="dinheiro"] {
  color-scheme: dark;
  --bg: #04140a; --surface: #08200f; --surface-2: #0c2c16; --surface-3: #123b1f;
  --border: #124023; --border-strong: #1e6a3a;
  --text: #effff4; --text-2: #b5dcc2; --muted: #6fa383;
  --accent: #3ddc84; --accent-hover: #86f0b4; --accent-rgb: 61, 220, 132; --ink-rgb: 239, 255, 244; --bg-rgb: 4, 20, 10; --surface-rgb: 8, 32, 15;
  --good: #86f0b4; --warn: #f2c14e; --bad: #ff8a80; --grid: #124023; --on-accent: #03180b; --scrub: #c6ffdc;
  --info-bg: #08200f; --info-border: #1e6a3a; --info-text: #b7f7d1; --hero-border: #124023; --demo-bg: #08200f; --demo-text: #b7f7d1; --demo-border: #1e6a3a; --warn-bg: #1f190a; --warn-border: #4a3b14; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --series-1: #3ddc84; --series-2: #f2c14e; --series-3: #86f0b4; --series-4: #5cc8ff; --series-5: #ff9a4d; --series-6: #c4a6ff; --series-7: #fde68a; --series-8: #ffffff;
}
html[data-theme="dinheiro"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(61,220,132,.24), transparent 55%), radial-gradient(100% 100% at 100% 100%, rgba(242,193,78,.14), transparent 60%), rgba(var(--surface-rgb), .72); }
html[data-theme="dinheiro"] body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-size: 520px 520px; }
html[data-theme="dinheiro"] body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(80% 45% at 50% 115%, rgba(61,220,132,.22), transparent 70%); }
html[data-theme="dinheiro"] main { position: relative; z-index: 1; }
.tp-dinheiro { background: #04140a; }
.tp-dinheiro i { background: #123b1f; }
.tp-dinheiro .tp-body i:first-child { background: linear-gradient(135deg,#3ddc84,#f2c14e); }
/* ---------- acabamento: movimento, foco e detalhes ---------- */
@media (prefers-reduced-motion: no-preference) {html:not([data-motion="reduced"]) .view-in :is(.card, .stat, .rk-row, .ach-card, .list-row) { animation: polishIn .6s cubic-bezier(.2, .85, .25, 1) both; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(2) { animation-delay: 90ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(3) { animation-delay: 135ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(4) { animation-delay: 180ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(5) { animation-delay: 225ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(6) { animation-delay: 270ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(7) { animation-delay: 315ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(8) { animation-delay: 360ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(9) { animation-delay: 405ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(10) { animation-delay: 450ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(11) { animation-delay: 495ms; }
.view-in :is(.card, .stat, .rk-row, .ach-card):nth-child(12) { animation-delay: 540ms; }
html:not([data-motion="reduced"]) :is(.btn, .chip, .seg button, .scope-btn, .icon-btn, .tab) { transition: transform .18s cubic-bezier(.2, .85, .25, 1), background-color .22s, border-color .22s, box-shadow .28s, color .2s, opacity .2s; }
html:not([data-motion="reduced"]) .btn:active, html:not([data-motion="reduced"]) .chip:active, html:not([data-motion="reduced"]) .seg button:active, html:not([data-motion="reduced"]) .icon-btn:active, html:not([data-motion="reduced"]) .tab:active { transform: scale(.96); }
html:not([data-motion="reduced"]) dialog[open] { animation: dlgPop .34s cubic-bezier(.2, .95, .3, 1) both; }
html:not([data-motion="reduced"]) dialog[open]::backdrop { animation: bdFade .3s ease both; }
html:not([data-motion="reduced"]) .toast { animation: toastSpring .5s cubic-bezier(.2, 1.25, .3, 1) both; }
html.theming, html.theming *, html.theming *::before, html.theming *::after { transition: background-color .6s ease, border-color .6s ease, color .6s ease, fill .6s ease, stroke .6s ease, box-shadow .6s ease !important; }}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {html:not([data-motion="reduced"]) .card.stat, html:not([data-motion="reduced"]) .rk-row { transition: transform .28s cubic-bezier(.2, .85, .25, 1), box-shadow .3s, border-color .25s; }
html:not([data-motion="reduced"]) .card.stat:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -26px rgba(0, 0, 0, .8), 0 0 0 1px rgba(var(--accent-rgb), .22); border-color: rgba(var(--accent-rgb), .4); }}
@keyframes polishIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dlgPop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastSpring { from { opacity: 0; transform: translate(-50%, 16px) scale(.92); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.btn, .seg button, .chip { position: relative; overflow: hidden; }
.rip { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(var(--ink-rgb), .28); transform: scale(0); animation: ripOut .6s ease-out forwards; }
@keyframes ripOut { to { transform: scale(1); opacity: 0; } }
:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .85); outline-offset: 2px; }
::selection { background: rgba(var(--accent-rgb), .35); }
@media (hover: hover) {* { scrollbar-width: thin; scrollbar-color: rgba(var(--ink-rgb), .22) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--ink-rgb), .2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), .5); background-clip: content-box; }}
.stat .value { white-space: nowrap; }
/* ---------- conforto de leitura: nenhum fundo atrapalha números, métricas e textos ---------- */
html:is( [data-theme="mk"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="lancha"], [data-theme="class"], [data-theme="ouro"], [data-theme="dinheiro"], [data-theme="executivo"]):not(#_) :is(.card, .rk-row) { background-color: rgba(var(--surface-rgb), .84); -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25); }
html:is( [data-theme="mk"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="lancha"], [data-theme="class"], [data-theme="ouro"], [data-theme="dinheiro"], [data-theme="executivo"]):not(#_) .hero { background-color: rgba(var(--surface-rgb), .88); -webkit-backdrop-filter: blur(28px) saturate(1.25); backdrop-filter: blur(28px) saturate(1.25); }
html:is( [data-theme="mk"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="lancha"], [data-theme="class"], [data-theme="ouro"], [data-theme="dinheiro"], [data-theme="executivo"]):not(#_) .dlg { background-color: rgba(var(--surface-rgb), .94); }
html:is( [data-theme="mk"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="lancha"], [data-theme="class"], [data-theme="ouro"], [data-theme="dinheiro"], [data-theme="executivo"]):not(#_) .topbar { background: rgba(var(--bg-rgb), .86); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
html:is( [data-theme="mk"], [data-theme="mkgelo"], [data-theme="reggae"], [data-theme="lancha"], [data-theme="class"], [data-theme="ouro"], [data-theme="dinheiro"], [data-theme="executivo"]):not(#_) :is(.page-head h1, .page-head p, .section-title h2, .section-title span, .eyebrow, .ui-label, .theme-sub) { text-shadow: 0 1px 10px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .5); }
/* o desenho de fundo fica mais discreto onde há muito movimento visual */
html[data-theme="class"]:not(#_) body::before { opacity: .6; }
html[data-theme="mk"]:not(#_) body::before { opacity: .4; }
html[data-theme="reggae"]:not(#_) body::before { opacity: .34; }
/* ---------- Ajustes em abas ---------- */
.cfg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 16px; padding: 5px; border-radius: 18px; border: 1px solid var(--border); background: rgba(var(--bg-rgb), .92); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .8); position: sticky; top: 0; z-index: 6; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.cfg-tabs::-webkit-scrollbar { display: none; }
.cfg-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .22s, color .22s, transform .18s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.cfg-tab span { font-size: 15px; }
.cfg-tab, .cfg-tab * { -webkit-user-select: none; user-select: none; }
.cfg-tab:active { transform: none; }
.cfg-tab:focus { outline: none; }
.cfg-tab:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .8); outline-offset: -2px; }
.cfg-tab:hover { color: var(--text); }
.cfg-tab.active { color: var(--text); background: rgba(var(--accent-rgb), .18); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45), 0 8px 18px -12px rgba(var(--accent-rgb), .8); }
.cfg-pane { display: grid; gap: 14px; animation: cfgIn .38s cubic-bezier(.2, .85, .25, 1) both; }
.cfg-pane[hidden] { display: none; }
@keyframes cfgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stack > .cfg-pane { grid-column: 1 / -1; }
.cfg-det { margin: 10px 0; border: 1px solid var(--border); border-radius: 16px; background: rgba(var(--ink-rgb), .03); overflow: hidden; }
.cfg-det > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 600; font-size: 15px; transition: background .2s; }
.cfg-det > summary::-webkit-details-marker { display: none; }
.cfg-det > summary::after { content: "›"; margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .25s; }
.cfg-det[open] > summary::after { transform: rotate(90deg); }
.cfg-det > summary:hover { background: rgba(var(--ink-rgb), .05); }
.cfg-det[open] > summary { border-bottom: 1px solid var(--border); }
.cfg-det > :not(summary) { margin-left: 16px; margin-right: 16px; }
.cfg-det > summary + * { margin-top: 12px; }
.cfg-det > :last-child { margin-bottom: 16px; }
details.plat-form { display: block; padding: 0; border: 1px solid var(--border); border-radius: 16px; margin: 10px 0; background: rgba(var(--ink-rgb), .03); overflow: hidden; }
details.plat-form > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 16px; transition: background .2s; }
details.plat-form > summary:hover { background: rgba(var(--ink-rgb), .05); }
details.plat-form > summary::-webkit-details-marker { display: none; }
details.plat-form > summary h3 { grid-column: auto; margin: 0; font-size: 15.5px; }
details.plat-form > summary small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
details.plat-form > summary::after { content: "›"; margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .25s; }
details.plat-form[open] > summary::after { transform: rotate(90deg); }
details.plat-form[open] > summary { border-bottom: 1px solid var(--border); }
.pf-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
@media (max-width: 520px) {.pf-body { grid-template-columns: 1fr; }}
.pf-body > * { min-width: 0; }
.set-nav { display: none; }
.dash-ach { order: -9; display: flex; align-items: center; gap: 8px; padding: 2px 4px; margin: 0 0 8px; text-decoration: none; color: var(--text-2); -webkit-tap-highlight-color: transparent; }
.dash-ach:active { opacity: .7; }
.dash-ach .da-ic { font-size: 15px; line-height: 1; flex: none; }
.dash-ach .da-body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.dash-ach .da-bar { display: block; height: 2px; border-radius: 999px; background: rgba(var(--accent-rgb), .2); }
.dash-ach .da-bar u { display: block; height: 100%; border-radius: inherit; text-decoration: none; background: var(--accent-hover); box-shadow: 0 0 5px var(--accent-hover), 0 0 12px rgba(var(--accent-rgb), .85); transition: width .8s cubic-bezier(.2, .85, .25, 1); }
.dash-ach.done .da-bar { background: rgba(255, 210, 74, .2); }
.dash-ach.done .da-bar u { background: #ffd24a; box-shadow: 0 0 5px #ffd24a, 0 0 12px rgba(255, 200, 70, .8); }
.dash-ach .da-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-ach .da-pct { font-weight: 800; font-size: 13px; color: var(--accent-hover); flex: none; }
.dash-ach .da-miss { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.dash-ach .da-go { color: var(--muted); font-size: 16px; line-height: 1; flex: none; }
.dash-ach.done .da-pct { color: #ffd24a; }
@media (min-width: 1100px) {.dash-ach { display: none; }}
.cc-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cc-item { min-width: 0; }
.cc-item b, .cc-item small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-det > .head-actions { margin: 4px 16px 16px !important; }
.cfg-det .ui-row { padding-left: 0; padding-right: 0; }
.ver-line { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.stack { min-width: 0; }
.stack > .cfg-pane { min-width: 0; max-width: 100%; }
.cfg-pane > * { min-width: 0; max-width: 100%; }
.np-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.np-tabs::-webkit-scrollbar { display: none; }
.np-tabs .tab { flex: none; }
.set-notify .section-title { flex-wrap: wrap; gap: 4px 10px; }
/* ---------- Temas lendários (liberados por faturamento alto, com fundo animado) ---------- */
@keyframes lgSweep { to { transform: translateX(33.34%); } }
@keyframes lgTwinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes lgAurora { 0% { transform: translate3d(-4%, -2%, 0) rotate(-2deg) scale(1); } 100% { transform: translate3d(5%, 3%, 0) rotate(3deg) scale(1.12); } }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgDrift { to { transform: translate3d(-480px, 700px, 0); } }
@keyframes lgEmbers { from { transform: translateY(0); } to { transform: translateY(-600px); } }
@keyframes lgFlicker { 0%, 90%, 100% { opacity: .62; } 91% { opacity: .3; } 92% { opacity: .62; } 94% { opacity: .38; } 95% { opacity: .62; } }
@keyframes lgRainY { to { transform: translateY(400px); } }
@keyframes lgBob { from { transform: translateY(0); } to { transform: translateY(-16px); } }
@keyframes lgBubbles { to { transform: translateY(-520px); } }
@keyframes lgPulse { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
@keyframes lgFlash { 0%, 6%, 100% { opacity: .5; } 1% { opacity: 1; } 2% { opacity: .55; } 3% { opacity: .95; } 4.5% { opacity: .5; } 52% { opacity: .5; } 53% { opacity: .9; } 54.5% { opacity: .5; } }
html[data-theme="ouro"] {
  color-scheme: dark;
  --bg: #0a0703; --surface: #15100a; --surface-2: #1e1710; --surface-3: #2a2014;
  --border: #2f2414; --border-strong: #4d3a1c;
  --text: #fff6dc; --text-2: #e2cf9c; --muted: #9c8a5e;
  --accent: #f2c14e; --accent-hover: #ffd978; --accent-rgb: 242, 193, 78; --ink-rgb: 255, 246, 220; --bg-rgb: 10, 7, 3; --surface-rgb: 21, 16, 10;
  --good: #8bd17c; --warn: #ffd978; --bad: #ef6b5b; --grid: #2f2414; --on-accent: #1b1202; --scrub: #fff0b8;
  --info-bg: #1b1608; --info-border: #4a3b14; --info-text: #f3d48a; --hero-border: #2f2414; --demo-bg: #1b1608; --demo-text: #f3d48a; --demo-border: #4a3b14; --warn-bg: #1f190a; --warn-border: #4a3b14; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --series-1: #f2c14e; --series-2: #fff3c4; --series-3: #8bd17c; --series-4: #6aa8e8; --series-5: #d9784a; --series-6: #a999f0; --series-7: #d86d9a; --series-8: #e66767;
}
html[data-theme="ouro"] .hero { background: radial-gradient(120% 130% at 0% 0%, rgba(242,193,78,.26), transparent 55%), radial-gradient(90% 90% at 100% 100%, rgba(255,214,120,.10), transparent 60%), rgba(var(--surface-rgb), .72); }
html[data-theme="ouro"] body::before, html[data-theme="ouro"] body::after { content: ""; position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 0; pointer-events: none; will-change: transform; opacity: 1; }
html[data-theme="ouro"] body::before { background: linear-gradient(100deg, transparent 38%, rgba(255,222,140,.13) 47%, rgba(255,246,200,.20) 50%, rgba(255,222,140,.13) 53%, transparent 62%); left: -100%; width: 300%; animation: lgSweep 14s linear infinite; }
html[data-theme="ouro"] body::after { background-size: 420px 420px, 100% 100%; background-repeat: repeat, no-repeat; animation: lgTwinkle 5s ease-in-out infinite; }
html[data-theme="ouro"] main { position: relative; z-index: 1; }
html[data-theme="ouro"] .card { background: rgba(var(--surface-rgb), .68); }
html[data-theme="ouro"] .tabbar { background: rgba(var(--surface-rgb), .9); }
.tp-ouro { background: #0a0703; }
.tp-ouro i { background: #2a2014; }
.tp-ouro .tp-body i:first-child { background: linear-gradient(135deg,#ffe08a,#c8921f); }
/* sem movimento: aparelho fraco ou preferência do usuário */
html[data-lite="1"] :is([data-theme="ouro"], [data-theme="dinheiro"]) body::before, html[data-lite="1"] :is([data-theme="ouro"], [data-theme="dinheiro"]) body::after { animation: none !important; will-change: auto; }
html[data-motion="reduced"] :is([data-theme="ouro"], [data-theme="dinheiro"]) body::before, html[data-motion="reduced"] :is([data-theme="ouro"], [data-theme="dinheiro"]) body::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {html[data-theme="ouro"] { --lg-still: 1; }
html :is([data-theme="ouro"], [data-theme="dinheiro"]) body::before, html :is([data-theme="ouro"], [data-theme="dinheiro"]) body::after { animation: none !important; }}
.theme-legend .theme-opt { border-color: rgba(255, 200, 70, .35); background: linear-gradient(160deg, rgba(255, 200, 70, .08), transparent 60%), rgba(255, 255, 255, .03); }
.theme-legend .theme-opt[aria-pressed="true"] { border-color: #f2c14e; box-shadow: 0 0 0 1px #f2c14e inset, 0 12px 28px -14px rgba(242, 193, 78, .7); }
.lg-crown { margin-left: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 2px 9px; border-radius: 999px; color: #1b1202; background: linear-gradient(135deg, #ffe08a, #f2a900); }
html[data-theme="blackout"] {
  color-scheme: dark;
  --bg: #000000; --surface: #060606; --surface-2: #0c0c0c; --surface-3: #141414;
  --border: #1d1d1d; --border-strong: #2e2e2e;
  --text: #ffffff; --text-2: #bdbdbd; --muted: #7a7a7a;
  --accent: #f4f4f4; --accent-hover: #ffffff; --accent-rgb: 244, 244, 244; --ink-rgb: 255, 255, 255; --bg-rgb: 0, 0, 0; --surface-rgb: 6, 6, 6;
  --good: #4ade80; --warn: #fbbf24; --bad: #f87171; --grid: #1d1d1d; --on-accent: #000000; --scrub: #ffffff;
  --info-bg: #060606; --info-border: #2e2e2e; --info-text: #d9d9d9; --hero-border: #1d1d1d; --demo-bg: #060606; --demo-text: #d9d9d9; --demo-border: #2e2e2e; --warn-bg: #120d02; --warn-border: #3a2c08; --warn-text: #f3d48a; --warn-link: #ffe2a0;
  --series-1: #ffffff; --series-2: #a3a3a3; --series-3: #4ade80; --series-4: #60a5fa; --series-5: #fbbf24; --series-6: #c4b5fd; --series-7: #f472b6; --series-8: #737373;
}
html[data-theme="blackout"], html[data-theme="blackout"] body { background: #000; }
html[data-theme="blackout"] :is(.card, .hero, .rk-row, .dlg, .tabbar, .topbar, .filters, .tabs, .seg) { background: #050505; background-image: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-color: #1d1d1d; }
html[data-theme="blackout"] .topbar, html[data-theme="blackout"] .tabbar { background: #000; }
html[data-theme="blackout"] :is(.card, .hero)::before, html[data-theme="blackout"] :is(.card, .hero)::after { display: none; }
html[data-theme="blackout"] .btn.primary, html[data-theme="blackout"] .chip.active, html[data-theme="blackout"] .scope-btn.active { color: #000; }
.tp-blackout { background: #000; border: 1px solid #222; }
.tp-blackout i { background: #151515; }
.tp-blackout .tp-body i:first-child { background: #f4f4f4; }
/* =====================================================================
   AJUSTES DE USO NO CELULAR (nada cortado, tudo ao alcance do polegar)
   ===================================================================== */
.hero-value { white-space: nowrap; }
.hero-split > * { min-width: 0; }
.hero-split strong { display: block; white-space: nowrap; }
@media (max-width: 520px) {.filters .scope-row .scope-btns { overflow: hidden; gap: 6px; }
.filters .scope-row .scope-btns .scope-btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 6px 6px; gap: 4px; font-size: 13px; }
.filters .scope-row .scope-btn b { max-width: 78px; }
.banner.info { flex-wrap: wrap; row-gap: 10px; }
.banner.info .grow { flex: 1 1 calc(100% - 40px); }
.banner.info .banner-actions { width: 100%; margin-left: 0; }
.banner.info .banner-actions .btn { flex: 1; }
.seg-sm { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); scroll-snap-type: x proximity; }
.seg-sm button { scroll-snap-align: center; }
.hero .eyebrow { line-height: 1.35; }}
/* celular: no topo ficam só o olho e os alertas; o resto vai no menu "mais" */
.more-btn, .more-menu { display: none; }
@media (max-width: 640px) {#names-btn, #help, #bell { display: none !important; }
.more-btn { display: grid; }
.more-menu:not([hidden]) { display: grid; position: fixed; z-index: 60; right: 10px; top: calc(56px + var(--sat)); min-width: 220px; padding: 6px; gap: 2px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); animation: rise .18s ease both; }
.more-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; }
.more-item:active { background: var(--surface-3); }
.more-item.on { color: var(--accent-hover); }
.more-item svg { width: 22px; height: 22px; flex: none; }}
/* puxar para atualizar (celular) */
.ptr { position: fixed; z-index: 55; left: 50%; top: calc(var(--sat) + 64px); width: 38px; height: 38px; margin-left: -19px; display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--accent-hover); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(-30px) scale(.6); transition: transform .22s ease, opacity .22s ease; }
.ptr.pulling { transition: none; }
.ptr svg { width: 20px; height: 20px; }
.ptr.spin svg { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (min-width: 1100px) {.ptr { display: none; }}
@media (max-width: 1099px) {.tabbar a:active svg, .tabbar a:active span { transform: scale(.92); }
.tabbar a svg, .tabbar a span { transition: transform .12s ease; }
.card.stat:active, .list-row:active, a.card:active { transform: scale(.99); transition: transform .1s ease; }}
/* =====================================================================
   ABERTURA DO APP (mais leve e mais bonita): logo entra com brilho, nome sobe junto, a tela aparece em cascata
   ===================================================================== */
@media (max-width: 1099px) {html.app-in .topbar { animation: mk-top-in .55s cubic-bezier(.2, .85, .25, 1) both; }
html.app-in .tabbar { animation: mk-tab-in .55s cubic-bezier(.2, .85, .25, 1) .08s both; }}
@keyframes mk-top-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes mk-tab-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {html.app-in .topbar, html.app-in .tabbar { animation: none; }}
/* ajustes › aparência: o tema e o ícone atuais ficam juntos à mostra; as outras versões abrem de uma vez, em seções separadas */
.look { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.look-cur { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); }
.look-cur > div { min-width: 0; display: grid; gap: 2px; }
.look-cur small { color: var(--muted); font-size: 12px; }
.look-cur b { font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.look-cur .theme-prev { flex: none; width: 58px; margin: 0; }
.look-cur img { flex: none; width: 58px; height: 58px; display: block; }
.look-btn { grid-column: 1 / -1; width: 100%; justify-content: center; min-height: 48px; }
.look-sec { margin-top: 20px; }
.look-sec:first-child { margin-top: 6px; }
.look-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.look-sec-h h3 { margin: 0; font-size: 17px; font-family: var(--font-display); font-weight: 600; }
.look-sec-h span { color: var(--muted); font-size: 12.5px; text-align: right; }
@media (max-width: 380px) {.look { grid-template-columns: 1fr; }}
.look-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-top: 2px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.look-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 12px; background: none; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600; }
.look-tabs button em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 1px 8px; }
.look-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--border-strong); }
.look-sec[hidden] { display: none; }
.look-sec { margin-top: 14px; }
.look-note { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.lg-o em { overflow-wrap: break-word; font-size: 11px; }
/* ajustes: abas sempre inteiras no celular (sem rolar de lado) e blocos que abrem ao tocar no título */
@media (max-width: 640px) {.cfg-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; overflow: visible; padding: 4px; }
.cfg-tab { flex-direction: column; gap: 1px; min-height: 54px; padding: 6px 2px; font-size: 11.5px; }
.cfg-tab span { font-size: 19px; line-height: 1.1; }
.page-head p { display: none; }}
.fold-card > .section-title { cursor: pointer; -webkit-user-select: none; user-select: none; }
.fold-card > .section-title:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .8); outline-offset: 4px; border-radius: 10px; }
.fold-chv { display: inline-block; width: 8px; height: 8px; margin: 0 10px 2px 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s ease; vertical-align: middle; }
.fold-card.open .fold-chv { transform: rotate(45deg); margin-bottom: 4px; }
.fold-card:not(.open) > .fold-body { display: none; }
.fold-card:not(.open) > .section-title { margin-bottom: 0; }
.fold-body { min-width: 0; }
.fold-card > .section-title { flex-wrap: nowrap; gap: 8px; }
.fold-card > .section-title h2 { white-space: nowrap; min-width: 0; display: flex; align-items: center; }
.fold-card > .section-title .btn, .fold-card > .section-title > span { white-space: nowrap; flex: none; }
.fold-card > .section-title h2 { flex-wrap: nowrap; gap: 6px; }
.fold-card > .section-title h2 .fold-chv { margin: 0 4px 2px 0; flex: none; }
.fold-card > .section-title .btn.small { padding-left: 12px; padding-right: 12px; }
.fold-card > .section-title > span { flex: 0 1 auto; white-space: normal; text-align: right; font-size: 12px; line-height: 1.25; }
.fold-card > .section-title h2 { flex: 1 1 auto; }
@media (max-width: 640px) {.np-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: visible; border-radius: 18px; }
.np-tabs button { white-space: nowrap; padding-left: 6px; padding-right: 6px; font-size: 13.5px; min-width: 0; }}
/* notificação: travada no padrão; só muda depois de "Alterar" */
.nt-lockbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--border-strong); background: var(--surface-2); }
.nt-lockbar[hidden], .nt-edit[hidden], .nt-testrow[hidden] { display: none; }
.nt-lockbar > div:nth-child(2) { flex: 1 1 180px; min-width: 0; display: grid; gap: 2px; }
.nt-lockbar b { font-size: 14.5px; }
.nt-lockbar small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.nt-lk { font-size: 20px; }
.nt-lk-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.nt-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
/* os dois cartões (tema e ícone) são botões: tocar abre direto a lista certa */
button.look-cur { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .12s ease, border-color .2s, background .2s; }
button.look-cur:active { transform: scale(.98); }
button.look-cur:hover { border-color: var(--border-strong); }
button.look-cur:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .8); outline-offset: 2px; }
.look-go { flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); }
.look-btn[hidden] { display: none !important; }
.look-cur[aria-expanded="true"] .look-go { transform: rotate(135deg); }
.look-tabs { display: none; }
button.look-cur[aria-expanded="true"] { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .35) inset; }
/* =====================================================================
   ABERTURA 2: a logo se monta (quadrado, M, braço do K, perna do K), depois o nome sobe
   ===================================================================== */
/* claro | escuro | personalizado */
.mode-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 4px 0 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.mode-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 4px; border: 0; border-radius: 14px; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .12s; }
.mode-seg button span { font-size: 20px; line-height: 1.1; }
.mode-seg button:active { transform: scale(.97); }
.mode-seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(var(--accent-rgb), .55); }
.more-ic { display: inline-grid; place-items: center; width: 22px; font-size: 18px; flex: none; }
/* =====================================================================
   MENU DE BAIXO (celular): pílulas flutuantes. A aba aberta vira uma pílula larga e clara, com ícone e nome; as outras só o ícone
   ===================================================================== */
@media (max-width: 1099px) and (min-height: 481px) {:root { --tabbar-h: 74px; }
html:not(#_) .tabbar { display: flex; gap: 7px; align-items: center; padding: 8px max(14px, env(safe-area-inset-right)) calc(8px + var(--sab)) max(14px, env(safe-area-inset-left));
    background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html:not(#_) .tabbar a { flex: 1 1 0; min-width: 0; min-height: 54px; flex-direction: row; gap: 9px; padding: 0 6px; border-radius: 999px;
    background: rgba(var(--ink-rgb), .07); color: var(--muted); box-shadow: none; overflow: hidden;
    transition: flex-grow .38s cubic-bezier(.3, 1.15, .4, 1), background .25s ease, color .25s ease, box-shadow .25s ease, transform .12s ease; }
html:not(#_) .tabbar a svg { width: 24px; height: 24px; flex: none; color: inherit; transform: none; }
html:not(#_) .tabbar a span { display: none; max-width: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
html:not(#_) .tabbar a.active { flex: 3.2 1 0; min-width: 112px; padding: 0 10px; background: var(--text); color: var(--bg); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6); }
html:not(#_) .tabbar a.active svg { color: var(--bg); transform: none; }
html:not(#_) .tabbar a.active span { display: inline; }
html:not(#_) .tabbar a.active::after { display: none; }
html:not(#_) .tabbar a:active { transform: scale(.96); background: rgba(var(--ink-rgb), .12); }
html:not(#_) .tabbar a.active:active { background: var(--text); }}
/* flutuando: o menu fica por cima do conteúdo, com espaço em volta, sombra e vidro; o conteúdo rola por baixo */
@media (max-width: 1099px) and (min-height: 481px) {html:not(#_) .tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; pointer-events: none; padding-top: 26px; padding-bottom: calc(12px + var(--sab));
    background: linear-gradient(to top, rgba(var(--bg-rgb), .94) 0%, rgba(var(--bg-rgb), .75) 45%, rgba(var(--bg-rgb), 0) 100%); }
html:not(#_) .tabbar a { pointer-events: auto; border: 1px solid rgba(var(--ink-rgb), .09); background: rgba(var(--surface-rgb), .78);
    -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .38); }
html:not(#_) .tabbar a.active { border-color: transparent; background: var(--text); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .6); }
html:not(#_) main#app { padding-bottom: calc(var(--tabbar-h) + 28px + var(--sab)); }
html:not(#_) .toast, html:not(#_) .sale-toasts { bottom: calc(var(--sab) + var(--tabbar-h) + 22px); }
:root { --tabbar-h: 78px; }}
/* =====================================================================
   LIQUID GLASS (opção em Ajustes › Aparência): tudo vira vidro, com as cores do tema que está escolhido
   ===================================================================== */
.glass-row { align-items: flex-start; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); }
.glass-row > span { display: grid; gap: 2px; min-width: 0; }
.glass-row b { font-size: 15px; }
.glass-row small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
html[data-glass="1"]:not(#_) body {
  background:
    radial-gradient(70% 38% at 12% 6%, rgba(var(--accent-rgb), calc(.42 * var(--glass-glow, 1))), transparent 72%),
    radial-gradient(60% 36% at 96% 34%, rgba(var(--accent-rgb), calc(.26 * var(--glass-glow, 1))), transparent 72%),
    radial-gradient(80% 42% at 28% 104%, rgba(var(--accent-rgb), calc(.36 * var(--glass-glow, 1))), transparent 72%),
    var(--bg);
  background-attachment: fixed;
}
html[data-glass="1"]:not(#_) :is(.card, .stat, .hero, .filters, .rk-row, .list-row, .ach-card, .ins, .banner, .look-cur, .glass-row, .th-bar, .lg-o, .theme-opt, .sale-toast, .dlg, .toast, .more-menu, .tooltip, .cfg-tabs, .look-tabs, .mode-seg, .nt-lockbar, .nt-prev, .lock-card, .pay-card) {
  background: linear-gradient(135deg, rgba(var(--surface-rgb), var(--glass-a1, .58)), rgba(var(--surface-rgb), var(--glass-a2, .26))) !important;
  border: 1px solid rgba(var(--ink-rgb), calc(.16 * var(--glass-edge, 1))) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur, 22px)) saturate(185%); backdrop-filter: blur(var(--glass-blur, 22px)) saturate(185%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(.38 * var(--glass-edge, 1))), inset 0 -1px 0 rgba(255, 255, 255, calc(.06 * var(--glass-edge, 1))), inset 0 0 24px rgba(255, 255, 255, calc(.04 * var(--glass-edge, 1))), 0 20px 44px -24px rgba(0, 0, 0, .5) !important;
}
html[data-glass="1"]:not(#_) :is(.topbar) { background: linear-gradient(180deg, rgba(var(--surface-rgb), calc(var(--glass-a1, .58) - .08)), rgba(var(--surface-rgb), calc(var(--glass-a2, .26) - .04))) !important; border-bottom: 1px solid rgba(var(--ink-rgb), .14) !important;
  -webkit-backdrop-filter: blur(calc(var(--glass-blur, 22px) + 2px)) saturate(190%); backdrop-filter: blur(calc(var(--glass-blur, 22px) + 2px)) saturate(190%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, calc(.12 * var(--glass-edge, 1))) !important; }
html[data-glass="1"]:not(#_) .tabbar a:not(.active) { background: linear-gradient(135deg, rgba(var(--surface-rgb), calc(var(--glass-a1, .58) + .02)), rgba(var(--surface-rgb), calc(var(--glass-a2, .26) + .04))); border-color: rgba(var(--ink-rgb), .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(.4 * var(--glass-edge, 1))), 0 12px 26px -14px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(var(--glass-blur, 22px)) saturate(190%); backdrop-filter: blur(var(--glass-blur, 22px)) saturate(190%); }
html[data-glass="1"]:not(#_) .tabbar a.active { background: linear-gradient(135deg, rgba(var(--accent-rgb), .95), rgba(var(--accent-rgb), .7)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 16px 30px -12px rgba(var(--accent-rgb), .7); }
html[data-glass="1"]:not(#_) .tabbar a.active svg { color: #fff; }
html[data-glass="1"]:not(#_) :is(.input, .field input, .field select, .field textarea, select.input) { background: rgba(var(--ink-rgb), .06) !important; border-color: rgba(var(--ink-rgb), .16) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html[data-glass="1"]:not(#_) :is(.seg, .chips .chip, .scope-btn, .btn:not(.primary)) { background: rgba(var(--ink-rgb), .07); border-color: rgba(var(--ink-rgb), .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html[data-glass="1"]:not(#_) .seg button.active { background: rgba(var(--surface-rgb), .85); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px -8px rgba(0, 0, 0, .45); }
html[data-glass="1"]:not(#_) :is(.chip.active, .chips .chip[aria-pressed="true"], .scope-btn.on) { background: linear-gradient(135deg, rgba(var(--accent-rgb), .95), rgba(var(--accent-rgb), .68)) !important; color: #fff !important; border-color: rgba(255, 255, 255, .35) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 22px -10px rgba(var(--accent-rgb), .7); }
html[data-glass="1"]:not(#_) :is(.chip.active, .scope-btn.on) * { color: #fff !important; }
html[data-glass="1"]:not(#_) .btn.primary { background: linear-gradient(135deg, rgba(var(--accent-rgb), .98), rgba(var(--accent-rgb), .72)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 28px -12px rgba(var(--accent-rgb), .7); }
@media (min-width: 1100px) {html[data-glass="1"]:not(#_) .topbar { background: linear-gradient(180deg, rgba(var(--surface-rgb), .5), rgba(var(--surface-rgb), .22)) !important; }}
.glass-opts { display: grid; gap: 10px; margin: 6px 0 4px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); }
.glass-opts[hidden] { display: none; }
.gl-row { display: grid; grid-template-columns: minmax(96px, 1.1fr) 2fr 44px; align-items: center; gap: 10px; font-size: 14px; }
.gl-row em { font-style: normal; text-align: right; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gl-row input[type=range] { width: 100%; min-width: 0; accent-color: var(--accent-hover); height: 28px; }
/* Liquid Glass: cartão igual aos de tema e ícone, com a prévia do vidro e um botão liga/desliga */
.look-glass { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 10px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.look-glass .glass-sub { font-style: normal; color: var(--muted); font-size: 12.5px; }
.look-glass b { font-size: 15px; }
.glass-prev { position: relative; flex: none; width: 58px; height: 58px; border-radius: 16px; overflow: hidden; filter: grayscale(.85) brightness(.9); transition: filter .3s ease;
  background: radial-gradient(circle at 22% 24%, rgba(var(--accent-rgb), 1), transparent 62%), radial-gradient(circle at 84% 82%, #01dbfe, transparent 58%), linear-gradient(135deg, #5b8bff, #a07bff); }
.glass-prev::after { content: ""; position: absolute; inset: 12px 8px 8px 12px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .65);
  background: linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .16)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 16px -8px rgba(0, 0, 0, .45); }
.look-glass:has(.sw:checked) .glass-prev { filter: none; }
.look-glass .sw { position: absolute; opacity: 0; pointer-events: none; }
.sw-ui { position: relative; flex: none; margin-left: auto; width: 52px; height: 32px; border-radius: 999px; background: rgba(var(--ink-rgb), .18); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .12); transition: background .25s ease; }
.sw-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); transition: transform .28s cubic-bezier(.3, 1.4, .5, 1); }
.sw:checked ~ .sw-ui { background: linear-gradient(135deg, rgba(var(--accent-rgb), 1), #01dbfe); }
.sw:checked ~ .sw-ui::after { transform: translateX(20px); }
.sw:focus-visible ~ .sw-ui { outline: 2px solid rgba(var(--accent-rgb), .8); outline-offset: 2px; }
.glass-opts { gap: 12px; background: transparent; border: 0; padding: 4px 2px 2px; }
.glass-h { display: grid; gap: 1px; padding: 6px 2px 2px; }
.glass-h b { font-size: 15px; }
.glass-h small { color: var(--muted); font-size: 12.5px; }
.gl-row { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.gl-row input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 28px; }
.gl-row input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .9), #01dbfe); opacity: .85; }
.gl-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.gl-row input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .9), #01dbfe); }
.gl-row input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.glass-adj { flex: none; margin-left: auto; margin-right: 4px; }
.glass-adj[hidden] { display: none; }
.look-glass .glass-adj + .sw ~ .sw-ui { margin-left: 0; }
/* fileiras de abas que rolam de lado: sombra nas pontas mostra que tem mais para ver, e a rolagem "encaixa" nas abas */
.tabs { scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  background: linear-gradient(to right, var(--surface) 30%, rgba(var(--surface-rgb), 0)) left center / 34px 100% no-repeat local,
              linear-gradient(to left, var(--surface) 30%, rgba(var(--surface-rgb), 0)) right center / 34px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(var(--ink-rgb), .16), rgba(var(--ink-rgb), 0)) left center / 14px 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, rgba(var(--ink-rgb), .16), rgba(var(--ink-rgb), 0)) right center / 14px 100% no-repeat scroll,
              var(--surface); }
.tabs .tab { scroll-snap-align: center; }
@media (hover: none) {.tabs .tab:active, .chips .chip:active, .seg-sm button:active { transform: scale(.96); }}

/* passo a passo de quem acabou de se cadastrar */
.sg-dlg { width: min(440px, calc(100vw - 24px)); }
.sg-in { display: grid; justify-items: center; gap: 12px; padding: 22px 22px 18px; text-align: center; }
.sg-dots { display: flex; gap: 6px; margin-bottom: 4px; }
.sg-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(var(--ink-rgb), .18); transition: width .25s ease, background .25s ease; }
.sg-dots i.done { background: rgba(var(--accent-rgb), .55); }
.sg-dots i.on { width: 22px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 1), #01dbfe); }
.sg-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; font-size: 42px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(1, 219, 254, .14)); border: 1px solid var(--border); box-shadow: 0 14px 30px -18px rgba(var(--accent-rgb), .6); animation: sgPop .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes sgPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.sg-in h2 { margin: 2px 0 0; font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.sg-tx { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.sg-act { width: 100%; justify-content: center; min-height: 46px; }
.sg-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; width: 100%; margin-top: 6px; }
.sg-nav .btn { justify-content: center; min-height: 48px; }
.sg-skip { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 4px 8px; cursor: pointer; text-decoration: underline; }
.btn.ghost { background: transparent; }

/* detalhe do dia: setas para ir ao dia anterior e ao próximo */
.dd-head { display: flex; align-items: center; gap: 8px; }
.dd-head strong { flex: 1; text-align: center; }
.dd-nav { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.dd-nav:disabled { opacity: .35; cursor: default; }
.dd-nav:active:not(:disabled) { transform: scale(.94); }
/* quem pediu "reduzir transparência" no celular/computador: o vidro fica quase sólido e sem desfoque */
@media (prefers-reduced-transparency: reduce) {html[data-glass="1"] { --glass-blur: 0px; --glass-a1: .94; --glass-a2: .88; }
html[data-glass="1"]:not(#_) :is(.card, .stat, .hero, .filters, .topbar, .tabbar a, .dlg, .toast, .more-menu) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }}

/* medidas de toque do app (use estas em vez de números soltos): 44 px para botões principais, 40 px para os pequenos */
:root { --tap: 44px; --tap-sm: 40px; }
/* toque e teclado: alvos de pelo menos 40–44 px no celular e foco sempre visível */
:where(a, button, input, select, textarea, summary, [role="tab"], [role="button"]):focus-visible { outline: 2px solid rgba(var(--accent-rgb), .9); outline-offset: 2px; }
@media (max-width: 1099px) {.topbar .icon-btn { width: 42px; height: 42px; }
.icon-btn.sm { width: var(--tap-sm); height: var(--tap-sm); }
.scope-btn, .lg-models { min-height: var(--tap); }
.seg button, .seg-sm button { min-height: var(--tap-sm); }
a.rf-red { display: inline-flex; align-items: center; min-height: 40px; }
a.dash-ach { min-height: 44px; }
.ac-dot { position: relative; }
.ac-dot::before { content: ""; position: absolute; inset: -7px; }
input.input, select.input { min-height: 44px; }}
/* listas compridas: o navegador só desenha as linhas que estão na tela */
.card.list > .list-row { content-visibility: auto; contain-intrinsic-size: auto 68px; }
@media (max-width: 1099px) {a[href="#/top"] { display: inline-flex; align-items: center; min-height: 44px; }
.inline-set .input { min-height: 44px; }}
.err-tags { display: flex; gap: 6px; }
.err-kind { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.err-kind.srv { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .35); }
/* meta do mês */
.goal-card { display: grid; gap: 12px; padding: 16px 18px; }
.goal-empty { display: flex; align-items: center; gap: 14px; }
.goal-empty > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.goal-empty small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.goal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goal-title { display: flex; align-items: center; gap: 12px; }
.goal-title > div { display: grid; gap: 1px; }
.goal-title small { color: var(--muted); font-size: 12.5px; }
.goal-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; font-size: 22px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .2), rgba(1, 219, 254, .14)); border: 1px solid var(--border); }
.goal-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.goal-num b { font-family: var(--font-display); font-size: clamp(26px, 6vw, 34px); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.goal-num span { color: var(--muted); font-size: 14px; }
.goal-num em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 18px; color: var(--accent-hover); font-variant-numeric: tabular-nums; }
.goal-num em.ok { color: var(--good, #2bb673); }
.goal-bar { position: relative; height: 14px; border-radius: 999px; background: rgba(var(--ink-rgb), .09); overflow: visible; }
.goal-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 1), #01dbfe); box-shadow: 0 6px 16px -6px rgba(var(--accent-rgb), .8); transition: width .9s cubic-bezier(.2, .85, .25, 1); min-width: 14px; }
.goal-bar.done .goal-fill { background: linear-gradient(90deg, #22c58b, #f6c453); box-shadow: 0 6px 18px -6px rgba(246, 196, 83, .8); }
.goal-pace { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 3px; background: var(--text); opacity: .55; }
.goal-status { margin: 0; font-size: 14px; font-weight: 500; }
.goal-status.good { color: var(--good, #2bb673); }
.goal-status.warn { color: var(--warn, #e0922f); }
.goal-status.ok { color: var(--good, #2bb673); font-weight: 600; }
.goal-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.goal-kpis div { display: grid; gap: 2px; min-width: 0; }
.goal-kpis span { color: var(--muted); font-size: 12px; line-height: 1.25; }
.goal-kpis strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.goal-card.is-hit { border-color: rgba(246, 196, 83, .5); }
@media (max-width: 420px) {.goal-kpis { grid-template-columns: 1fr 1fr; }
.goal-kpis div:last-child { grid-column: 1 / -1; }}
/* links de Termos e Privacidade (Ajuda) */
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; margin: 18px 0 4px; font-size: 13px; color: var(--muted); }
.legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; display: inline-flex; align-items: center; padding: 0 6px; }
/* Análises › Mês a mês */
.card.filters.no-period #periods, .card.filters.no-period #custom { display: none; }
.mm { display: grid; gap: 14px; }
.mm-hero { display: grid; gap: 10px; padding: 18px; }
.mm-eyebrow { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.mm-big { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.mm-big strong { font-family: var(--font-display); font-size: clamp(28px, 7vw, 40px); font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.mm-sub { color: var(--muted); font-size: 13.5px; margin-top: -4px; }
.mm-chip { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm-chip.up { color: var(--good, #1fa971); background: rgba(31, 169, 113, .14); }
.mm-chip.down { color: var(--bad, #d64561); background: rgba(214, 69, 97, .13); }
.mm-chip.flat, .mm-chip.new { color: var(--text-2, var(--muted)); background: rgba(var(--ink-rgb), .08); }
.mm-chip.new { color: var(--accent-hover); background: rgba(var(--accent-rgb), .12); }
.mm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.mm-k { display: grid; gap: 3px; min-width: 0; align-content: start; }
.mm-k span { font-size: 12px; color: var(--muted); }
.mm-k strong { font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mm-k small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 11.5px; color: var(--muted); }
.mm-k small em { font-style: normal; }
.mm-pace { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.mm-pace-t { font-size: 14px; line-height: 1.55; }
.mm-pace-t span { color: var(--muted); font-size: 13px; }
.mm-prog { position: relative; height: 12px; border-radius: 999px; background: rgba(var(--ink-rgb), .09); overflow: hidden; }
.mm-prog i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 1), #01dbfe); transition: width .6s cubic-bezier(.2, .8, .3, 1); }
.mm-prog.done i { background: linear-gradient(90deg, #22c58b, #f6c453); }
.mm-prog-l { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.mm-prog-l .up { color: var(--good, #1fa971); font-weight: 700; }
.mm-prog-l .down { color: var(--warn, #e0922f); font-weight: 700; }
.mm-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; padding-top: 6px; }
.mm-bar { appearance: none; border: 0; background: transparent; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; display: grid; grid-template-rows: auto 1fr auto; gap: 4px; height: 100%; min-width: 0; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.mm-bar em { font-style: normal; font-size: 11px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.mm-bar b { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; text-transform: capitalize; }
.mm-col { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.mm-col i { display: block; width: min(70%, 44px); border-radius: 8px 8px 4px 4px; background: rgba(var(--accent-rgb), .42); transform-origin: bottom; animation: bar-up .55s cubic-bezier(.2, .8, .3, 1) both; transition: background .15s, box-shadow .15s; }
.mm-col u { position: absolute; bottom: 0; width: min(70%, 44px); border-radius: 8px 8px 4px 4px; border: 2px dashed rgba(var(--accent-rgb), .55); border-bottom: 0; background: rgba(var(--accent-rgb), .06); }
.mm-bar.cur .mm-col i { background: linear-gradient(180deg, #01dbfe, rgba(var(--accent-rgb), 1)); }
.mm-bar.best em { color: var(--text); font-weight: 700; }
.mm-bar.best .mm-col i { background: linear-gradient(180deg, #f6c453, #e0922f); }
.mm-bar:hover .mm-col i, .mm-bar:focus-visible .mm-col i { filter: brightness(1.12); }
.mm-bar.sel .mm-col i { box-shadow: 0 0 0 2px var(--text); }
.mm-bar.sel b { color: var(--text); font-weight: 800; }
.mm-bar:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.mm-detail { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.mm-dh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mm-dh strong { text-transform: capitalize; }
.mm-dh small { color: var(--muted); font-weight: 400; text-transform: none; }
.mm-dg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mm-dg div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.mm-dg span { font-size: 12px; color: var(--muted); }
.mm-dg b { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 12px 0 0; }
.mm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; }
.lg-cur { background: linear-gradient(180deg, #01dbfe, rgba(var(--accent-rgb), 1)); }
.lg-best { background: linear-gradient(180deg, #f6c453, #e0922f); }
@media (max-width: 420px) {.mm-kpis { grid-template-columns: 1fr 1fr; }
.mm-kpis .mm-k:last-child { grid-column: 1 / -1; }
.mm-chart { gap: 3px; height: 170px; }}
@media (prefers-reduced-motion: reduce) {.mm-col i, .mm-prog i { animation: none; transition: none; }}
/* ícones próprios (static/icons.js): contorno + preenchimento suave + detalhe na cor de destaque */
.ic { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; --ic-accent: var(--accent-hover, #2f84ff); }
.ic .d { fill: currentColor; fill-opacity: .15; stroke: none; }
.ic .a { stroke: var(--ic-accent); }
.ic .af { fill: var(--ic-accent); stroke: none; }
.ic text { font-family: var(--font-display, inherit); }
.ic-medal1 { color: #e0a920; }
.ic-medal2 { color: #8f9bab; }
.ic-medal3 { color: #c47a42; }
.ic-dot.ok { color: #22b573; }
.ic-dot.warn { color: #e69a2e; }
.ic-dot.bad { color: #e0506a; }
.ic-chip { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; color: var(--accent-hover); background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(1, 219, 254, .1)); border: 1px solid rgba(var(--accent-rgb), .18); }
.ic-chip .ic { width: 20px; height: 20px; vertical-align: 0; }
.ic-chip.sm { width: 30px; height: 30px; border-radius: 10px; }
.ic-chip.sm .ic { width: 17px; height: 17px; }
.ic-chip.good { color: #1f9d68; background: rgba(34, 181, 115, .13); border-color: rgba(34, 181, 115, .22); }
.ic-chip.warn { color: #c9821a; background: rgba(230, 154, 46, .14); border-color: rgba(230, 154, 46, .24); }
.ic-chip.bad { color: #d23f5b; background: rgba(224, 80, 106, .12); border-color: rgba(224, 80, 106, .22); }
/* meta do mês: troca entre valor bruto e minha parte */
.goal-ic .ic { width: 22px; height: 22px; vertical-align: 0; }
.goal-seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 14px; background: rgba(var(--ink-rgb), .07); align-self: start; width: 100%; max-width: 360px; }
.goal-seg button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); min-height: 38px; padding: 0 10px; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s, box-shadow .15s; }
.goal-seg button .ic { width: 16px; height: 16px; color: #22b573; vertical-align: 0; }
.goal-seg button.on { background: var(--surface, #fff); color: var(--text); box-shadow: 0 2px 8px -2px rgba(var(--ink-rgb), .25); }
.goal-seg button:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.goal-none { display: grid; gap: 6px; justify-items: start; padding: 4px 2px 2px; }
.goal-none p { margin: 0; }
.goal-none small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.goal-status .ic { width: 1.05em; height: 1.05em; vertical-align: -.2em; margin-right: 2px; }
.goal-other { appearance: none; border: 1px dashed rgba(var(--ink-rgb), .22); background: transparent; font: inherit; color: inherit; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 12px; text-align: left; cursor: pointer; font-size: 13px; }
.goal-other span { color: var(--muted); }
.goal-other b { font-variant-numeric: tabular-nums; }
.goal-other em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--accent-hover); font-variant-numeric: tabular-nums; }
.goal-other em.ok { color: #22b573; }
.goal-other:hover { background: rgba(var(--ink-rgb), .05); }
.goal-num { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 12px; }
.goal-num b { grid-column: 1; overflow-wrap: anywhere; }
.goal-num em { grid-column: 2; grid-row: 1; margin-left: 0; }
.goal-num span { grid-column: 1 / -1; }
/* Dashboard organizado em grupos: Resultado e Movimento */
.stat-groups { display: grid; gap: 14px; margin-top: 12px; }
.stat-group { display: grid; gap: 8px; }
.stat-group .stats { margin-top: 0; }
.grp-t { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-size: 14.5px; font-weight: 700; letter-spacing: .01em; }
.grp-t small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.stat .label { display: flex; align-items: center; gap: 8px; }
.stat .label .ic { width: 18px; height: 18px; color: var(--accent-hover); vertical-align: 0; }
.section-title h2 .ic-chip, .chart-head h2 .ic-chip { margin-right: 10px; vertical-align: middle; }
.chart-head h2 { display: flex; align-items: center; }
.more-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 10px; border-radius: 16px; font-weight: 700; font-size: 14px; color: var(--accent-hover); text-decoration: none; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .16); }
.more-link:hover { background: rgba(var(--accent-rgb), .14); }
.more-link .ic { width: 18px; height: 18px; vertical-align: 0; }
@media (max-width: 1099px) {#dash > .dash-ach { order: -9; }
#dash > .stat-groups { order: -7; }}
/* a meta do mês recebe a ordem pelo JS (fica abaixo do atalho das Análises) */
@media (min-width: 1100px) {#dash > .stat-groups { order: -9; grid-column: 2; margin-top: 0; gap: 12px; }
#dash > .stat-groups .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#dash > .dash-ach { order: -8; }
#dash > .goal-card { order: -7; }
#dash.no-stats > .card.hero { grid-column: 1 / -1; }}
.ins-ic { display: inline-flex; flex: none; }
.ins-ic .ic { width: 20px; height: 20px; vertical-align: 0; }
.ins.good .ins-ic { color: #1f9d68; }
.ins.warn .ins-ic { color: #c9821a; }
.ins.info .ins-ic { color: var(--accent-hover); }
/* cabeçalho das páginas: ícone próprio + título */
.page-head h1 { display: flex; align-items: center; gap: 12px; }
.page-head h1 .ic-chip { width: 40px; height: 40px; border-radius: 13px; }
.page-head h1 .ic-chip .ic { width: 23px; height: 23px; }
@media (min-width: 1100px) {.page-head h1 .ic-chip { width: 46px; height: 46px; border-radius: 15px; }
.page-head h1 .ic-chip .ic { width: 26px; height: 26px; }}
/* menu "⋯" do celular: páginas extras */
.more-sep { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.more-item { text-decoration: none; }
@media (max-width: 1099px) {.more-menu:not([hidden]) { max-height: calc(100dvh - 80px - var(--sat, 0px)); overflow-y: auto; overscroll-behavior: contain; }}
/* Análises: grupos de indicadores e seções bem separadas */
.an-grp { display: grid; gap: 10px; margin-top: 22px; }
.an-grp:first-of-type { margin-top: 14px; }
.an-grp .kpis { margin: 0; }
.an-grp .kpi .kpi-ic { position: absolute; top: 11px; right: 11px; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--accent-hover); background: rgba(var(--accent-rgb), .12); opacity: 1; }
.an-grp .kpi { padding: 13px 14px; }
.an-grp .kpi .kpi-l { padding-right: 34px; }
.an-grp .kpi .kpi-ic .ic { width: 17px; height: 17px; vertical-align: 0; }
.kpis.k3, .kpis.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis.k3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 760px) {.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.k3 > :last-child:nth-child(odd) { grid-column: auto; }}
.an-sec { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
#an-body > .an-grp + .an-sec, #an-body > .an-total + .an-grp { }
#an-body > .an-sec:first-child { margin-top: 8px; padding-top: 0; border-top: 0; }
.an-sec .section-title { margin-bottom: 14px; }
.an-sec .section-title h2 { display: flex; align-items: center; font-size: 17px; }
.an-tabs .tab .ic { width: 17px; height: 17px; margin-right: 4px; vertical-align: -.25em; }
@media (min-width: 1100px) {#an-body > .an-sec:not(.full) { border-top: 0; padding-top: 0; margin-top: 30px; }
.an-grp { margin-top: 26px; }}
/* meta do mês mais compacta no celular: os três números sempre lado a lado */
.goal-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
.goal-kpis div:last-child { grid-column: auto !important; }
@media (max-width: 480px) {.goal-card { padding: 14px 14px; gap: 10px; }
.goal-kpis strong { font-size: 14px; }
.goal-kpis span { font-size: 11.5px; }
.goal-num b { font-size: 28px; }}
/* abertura do Traktofy (static/intro.js): a logo se parte e forma o nome */
.mi-root { position: fixed; inset: 0; z-index: 10050; background: #02030a; opacity: 1; transition: opacity .55s ease; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mi-root.out { opacity: 0; pointer-events: none; }
.mi-root svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mi-lite * { filter: none !important; }
.mi-hello { position: absolute; left: 0; right: 0; z-index: 2; display: grid; justify-items: center; gap: 6px; padding: 0 20px; text-align: center; pointer-events: none; opacity: 0; animation: mi-hello .85s cubic-bezier(.2, .9, .25, 1) var(--d, .2s) both; }
.mi-hello small, .ld-hello small { font-size: clamp(12px, 2.3vmin, 15px); letter-spacing: .14em; text-transform: uppercase; color: rgba(214, 226, 255, .72); }
.mi-hello b, .ld-hello b { max-width: 90vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display, inherit); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; background: linear-gradient(180deg, #fff, #b9cdfb); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.mi-hello b { font-size: clamp(26px, 6vmin, 46px); }
@keyframes mi-hello { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* na tela de carregamento: a saudação toma o lugar da frase de baixo */
.ld-hello { margin: 0; display: grid; justify-items: center; gap: 4px; opacity: 0; animation: ld-rise .6s ease both; }
.ld-hello[hidden] { display: none; }
.ld-hello b { font-size: clamp(22px, 5.4vmin, 30px); }
.ld-center.hi .ld-tag { display: none; }
@media (prefers-reduced-motion: reduce) {.mi-hello, .ld-hello { animation-duration: .01s; animation-delay: 0s; }}
.mi-skip { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; font: 600 12.5px/1 Inter, system-ui, sans-serif; letter-spacing: .05em; color: rgba(222, 234, 255, .78); border: 1px solid rgba(255, 255, 255, .16); background: rgba(8, 12, 36, .45); opacity: 0; animation: mi-skip .6s ease 1.2s forwards; pointer-events: none; }
@keyframes mi-skip { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {.mi-root { display: none; }}
/* o nome Traktofy em lettering próprio (static/wordmark.js): sempre o mesmo desenho, na cor do texto */
.wm { --cap: 1em; display: block; height: calc(var(--cap) * 1.41); width: auto; aspect-ratio: 573 / 141; margin-bottom: calc(var(--cap) * -.29); fill: currentColor; overflow: visible; flex: none; }
/* --cap = altura das maiúsculas; a margem negativa deixa o "g" descer sem empurrar o resto */
/* cores do nome por tema: o degradê das letras vai da cor do texto até um toque da cor do tema, e o "i" usa o destaque do tema */
.wm { --wm-accent: var(--accent-hover, #01bfee); --wm-1: currentColor; --wm-2: currentColor; --wm-3: var(--wm-accent); --wm-4: var(--wm-accent); }
@supports (color: color-mix(in srgb, red, blue)) { .wm { --wm-2: color-mix(in srgb, currentColor 52%, var(--accent, #0160fd)); --wm-3: color-mix(in srgb, var(--wm-accent) 62%, #fff); } }
.wm .wm-s1 { stop-color: var(--wm-1); }
.wm .wm-s2 { stop-color: var(--wm-2); }
.wm .wm-s3 { stop-color: var(--wm-3); }
.wm .wm-s4 { stop-color: var(--wm-4); }
html[data-theme="neo"] .wm, html[data-theme="claro"] .wm { --wm-accent: #01bfee; }
html[data-theme="neod"] .wm, html[data-theme="escuro"] .wm, html[data-theme="grafite"] .wm { --wm-accent: #5fe3ff; }
/* tamanhos */
.brand #brand-name { display: flex; align-items: center; }
.brand .wm { --cap: 15px; }
.auth-brand .wm { --cap: 20px; }
.auth-mobile-brand .wm { --cap: 18px; }
.wm-anim .wl { opacity: 0; transform: translateY(14px); transform-box: fill-box; animation: ld-rise .45s ease forwards; animation-delay: calc(.3s + var(--i) * .04s); }
.wl-bn .wm { --cap: 22px; margin-left: auto; margin-right: auto; }
@media (max-width: 480px) {.brand .wm { --cap: 13px; }}
@media (prefers-reduced-motion: reduce) {.wm-anim .wl { animation-duration: .01s; animation-delay: 0s; }}
/* =====================================================================
   LEGIBILIDADE: textos que ficavam fracos demais sobre o fundo (varredura de contraste por tema e por página)
   ===================================================================== */
.spark-pkl small, .spark-pkl em { color: var(--text-2); }
/* "pico" e a data na etiqueta do gráfico */
.goal-seg button:not(.on) { color: var(--text-2); }
/* "Minha parte" / "Valor bruto" ainda não escolhido */
html[data-theme="neo"] { --muted: #4d5c90; --good: #0a7140; }
html[data-theme="claro"] { --muted: #596580; --good: #166534; }
html:is([data-theme="neo"], [data-theme="claro"]) .dash-ach.done .da-pct, html:is([data-theme="neo"], [data-theme="claro"]) .rw-line.on b { color: #8a5a00; }
/* o dourado claro some no fundo claro */
html[data-theme="claro"] .chip-d.up { color: #11632f; }
html[data-theme="neo"] .btn.primary { background: linear-gradient(180deg, #1c6dff, #0152e6); }
html[data-theme="neo"] .btn.primary:hover { background: linear-gradient(180deg, #1962ec, #0a4cc4); }
html[data-theme="neod"] .btn.primary { background: linear-gradient(180deg, #2a7cf6, #0a55ea); }
html[data-theme="neod"] .btn.primary:hover { background: linear-gradient(180deg, #3a88ff, #1763f5); }
html[data-theme="neod"] .chip.active, html[data-theme="neod"] .scope-btn.active { background: linear-gradient(180deg, #2a7cf6, #0a55ea); color: #ffffff; }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tp-pod.p1 { background: radial-gradient(90% 70% at 50% 0%, rgba(255, 208, 70, .34), transparent 72%), #ffffff; }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tp-pod.p2 { background: linear-gradient(180deg, rgba(160, 172, 190, .24), rgba(160, 172, 190, .04)), #ffffff; }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tp-pod.p3 { background: linear-gradient(180deg, rgba(205, 127, 50, .22), rgba(205, 127, 50, .04)), #ffffff; }
html:is([data-theme="azul"], [data-theme="vermelho"]) .tp-pod.p1 .tp-pv, html:is([data-theme="azul"], [data-theme="vermelho"]) .tp-pod.p1 .tp-pv * { background: linear-gradient(180deg, #d99a00, #96610a); -webkit-background-clip: text; background-clip: text; }
html[data-theme="neod"] .rk-av { background: linear-gradient(135deg, #2a7cf6, #0a55ea); }
/* iniciais brancas sobre um azul mais fundo */
/* "by MK": a Traktofy é um produto da MK; a marca aparece pequena embaixo do nome */
.by-mk { display: block; font-size: 7.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; line-height: 1; color: var(--muted); opacity: .72; margin-top: 2px; }
.brand #brand-name { flex-direction: column; align-items: flex-start; justify-content: center; }
.auth-brand b, .auth-mobile-brand b { display: flex; flex-direction: column; align-items: inherit; gap: 3px; }
.auth-mobile-brand b { align-items: flex-start; }
.ld-by { margin: calc(var(--ld-c) * -.6) 0 0; font-size: 9px; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: rgba(214, 226, 255, .42); opacity: 0; animation: ld-rise .6s ease .9s forwards; }
#splash.out .ld-by { opacity: 0 !important; transition: opacity .26s ease; animation: none; }
@media (display-mode: standalone) {#splash .ld-by { animation-delay: .3s; }}
@media (max-width: 360px) {.by-mk { display: none; }}
.g-sub { margin: 16px 0 6px; font-size: 15px; font-weight: 700; }
.g-body .head-actions { margin: 8px 0 4px; }

/* ---------- Conquistas (premiações virtuais) ---------- */
.cq-hero { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding: 18px 18px 16px; position: relative; overflow: hidden; }
.cq-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, #2f95ff) 24%, transparent), transparent); pointer-events: none; }
.cq-orb { position: relative; width: 112px; height: 112px; display: grid; place-items: center; flex: none; }
.cq-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cq-ring-bg { fill: none; stroke: rgba(128, 140, 175, .22); stroke-width: 7; }
.cq-ring-fg { fill: none; stroke: rgb(var(--accent-rgb)); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .5)); }
.cq-orb-em { width: 76px; height: 76px; position: relative; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.cq-orb-em.lock { filter: grayscale(1) brightness(.6) opacity(.8); }
.cq-hero-t { min-width: 0; position: relative; }
.cq-hero-t .ach-total { margin: 2px 0 8px; }
.cq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cq-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--text-2); background: rgba(128, 140, 175, .14); border: 1px solid var(--border); white-space: nowrap; }
.cq-chip b { color: var(--text); }
.cq-chip.cq-tier { color: var(--text); background: color-mix(in srgb, var(--c, #2f95ff) 20%, transparent); border-color: color-mix(in srgb, var(--c, #2f95ff) 55%, transparent); font-weight: 600; }
.cq-goal { grid-column: 1 / -1; margin-top: 10px; position: relative; }
.cq-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cq-sec-h small { color: var(--muted); font-size: 12px; }
.cq-path-card { padding: 14px 14px 10px; margin: 12px 0; }
.cq-path { list-style: none; margin: 0; padding: 4px 2px 8px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.cq-path li { flex: none; position: relative; scroll-snap-align: center; }
.cq-path li + li::before { content: ""; position: absolute; left: -14px; top: 26px; width: 28px; height: 3px; border-radius: 2px; background: rgba(128, 140, 175, .28); }
.cq-path li.on + li::before, .cq-path li.on + li.next::before { background: linear-gradient(90deg, var(--accent, #2f95ff), rgba(128, 140, 175, .28)); }
.cq-path li.on + li.on::before { background: var(--accent, #2f95ff); }
.cq-path button { appearance: none; display: grid; justify-items: center; gap: 3px; width: 74px; padding: 4px 0 6px; border: 0; border-radius: 16px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; transition: transform .2s; }
.cq-path button:hover { transform: translateY(-2px); }
.cq-path button:active { transform: scale(.95); }
.cq-path img { width: 52px; height: 52px; filter: grayscale(1) brightness(.62) opacity(.85); transition: filter .25s; }
.cq-path li.on img { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.cq-path li.next img { filter: grayscale(.4) brightness(.9); animation: cq-pulse 2.2s ease-in-out infinite; }
.cq-path li.next button { background: rgba(var(--accent-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5); }
.cq-path b { font-size: 11.5px; letter-spacing: .02em; }
.cq-path li.on b { color: var(--text); }
@keyframes cq-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.cq-bar { margin: 14px 0 10px; }
.cq-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--border); background: rgba(128, 140, 175, .1); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cq-tabs button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; padding: 8px 13px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.cq-tabs button em { font-style: normal; opacity: .75; font-weight: 500; margin-left: 2px; }
.cq-tabs button.on { color: var(--text); background: rgba(var(--accent-rgb), .2); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }
.cq-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 12px; }
@media (min-width: 560px) {.cq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (min-width: 1000px) {.cq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
.cq-card { appearance: none; display: grid; gap: 10px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 22px; animation: cq-in .5s both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cq-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.cq-card .plq { display: block; max-width: 340px; width: 100%; margin: 0 auto; transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.cq-card:hover .plq { transform: translateY(-4px); }
.cq-card:active .plq { transform: scale(.98); }
.cq-card:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .8); outline-offset: 4px; }
.cq-meta { display: grid; gap: 1px; justify-items: center; text-align: center; }
.cq-meta b { font-size: 14.5px; }
.cq-meta small { color: var(--muted); font-size: 12px; }
.cq-card.on .cq-meta small { color: var(--text-2); }
.cq-sheet { overflow: auto; }
.cq-sheet-in { padding: 14px 16px 18px; display: grid; gap: 10px; }
.cq-sheet-h { display: grid; grid-template-columns: 40px 1fr 40px 36px; align-items: center; gap: 6px; text-align: center; }
.cq-sheet-h small { display: block; color: var(--muted); font-size: 11.5px; }
.cq-sheet-h b { font-size: 17px; }
.cq-nav { appearance: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(128, 140, 175, .12); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.cq-nav:disabled { opacity: .3; cursor: default; }

.cq-sheet-plq { max-width: 330px; width: 100%; margin: 0 auto; }
.cq-desc { margin: 2px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.45; text-align: center; }
.cq-status { margin: 0; text-align: center; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.cq-status.on { color: var(--text); }
.cq-status svg { width: 15px; height: 15px; }
.cq-sheet .rw-line { text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cq-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
@media (max-width: 520px) {.cq-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.cq-chips { justify-content: center; }
.cq-orb { width: 104px; height: 104px; }
.cq-orb-em { width: 70px; height: 70px; }
.cq-goal { text-align: left; }}
html[data-motion="reduced"] .cq-card, html[data-motion="reduced"] .cq-path li.next img { animation: none; }
/* ---------- claro / escuro: botão do topo (computador) e linha do menu dos 3 pontinhos (celular) ---------- */
#mode-btn { display: none; }
#mode-btn svg { width: 22px; height: 22px; }
@media (min-width: 641px) {#mode-btn { display: grid; }}
.more-menu .more-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 2px 2px 6px; border-radius: 14px; background: rgba(var(--ink-rgb), .07); border: 1px solid var(--border); }
.more-menu .more-mode button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.more-menu .more-mode button svg { width: 19px; height: 19px; flex: none; }
.more-menu .more-mode button.on { color: var(--on-accent, #fff); background: linear-gradient(180deg, var(--accent-hover, var(--accent)), var(--accent)); box-shadow: 0 8px 16px -10px rgba(var(--accent-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.more-menu .more-mode button:active { transform: scale(.97); }
/* o menu dos 3 pontinhos sempre opaco: com o vidro ligado ele ficava transparente e o texto da tela aparecia por baixo */
html[data-glass="1"]:not(#_) .more-menu { background: rgb(var(--surface-rgb)) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.more-menu .more-mode button.on svg .a { stroke: #fff; }
.more-menu .more-mode button.on svg .d { fill: rgba(255, 255, 255, .28); }
/* ---------- aviso: a MK Digital agora é Traktofy ---------- */
.ann { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; padding: 18px; background: rgba(4, 8, 22, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: annBg .3s both; }
.ann.out { opacity: 0; transition: opacity .25s; }
@keyframes annBg { from { opacity: 0; } to { opacity: 1; } }
.ann-card { position: relative; width: min(440px, 100%); max-height: 92dvh; overflow: auto; padding: 26px 22px 20px; border-radius: 28px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); text-align: center; animation: annIn .55s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes annIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.ann-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 28px 28px 0 0; background: linear-gradient(90deg, #0b6bff, #00d1ff); }
.ann-logo { display: block; width: 72px; height: 72px; margin: 4px auto 12px; border-radius: 20px; box-shadow: 0 16px 34px -14px rgba(11, 107, 255, .8), 0 0 0 1px var(--border); }
.ann-names { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ann-old { font-size: 14px; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; opacity: .85; }
.ann-names i { font-style: normal; color: var(--accent-hover); font-size: 20px; }
.ann-names .wm { --cap: 20px; }
.ann-card h2 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -.02em; }
.ann-card p { margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.ann-steps { text-align: left; margin: 14px 0; padding: 14px 16px; border-radius: 18px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .26); font-size: 13.5px; line-height: 1.5; }
.ann-steps > b { display: block; margin-bottom: 4px; font-size: 14px; }
.ann-steps ol { margin: 6px 0 0; padding-left: 20px; }
.ann-steps li { margin: 6px 0; color: var(--text-2); }
.ann-steps a { color: var(--accent-hover); font-weight: 600; }
.ann-btns { display: grid; gap: 8px; margin-top: 6px; }
.ann-btns .btn { width: 100%; min-height: 48px; justify-content: center; font-size: 15px; }
html[data-motion="reduced"] .ann, html[data-motion="reduced"] .ann-card { animation: none; }
/* ===== aba "Períodos": atalhos + calendário ===== */
.per-panel { padding: 14px 16px 16px; }
.per { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 0; }
.per-l { padding-right: 16px; border-right: 1px solid var(--border); }
.per-r { padding-left: 16px; display: grid; align-content: start; gap: 8px; }
.per h5 { margin: 0 0 10px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.filters .per-l .chips { padding: 0; flex-wrap: wrap; overflow: visible; }
.per-l .chip { min-height: 36px; font-size: 14px; padding: 7px 14px; }
.cal { display: grid; gap: 6px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; }
.cal-h b { font-size: 14.5px; }
.cal-n { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.cal-n:disabled { opacity: .35; cursor: default; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-g > span { text-align: center; font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 2px 0; }
.cal-d { aspect-ratio: 1; border-radius: 10px; border: 0; background: none; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, transform .12s; }
.cal-d:hover:not(:disabled) { background: rgba(var(--accent-rgb), .18); transform: scale(1.06); }
.cal-d.dis { color: var(--muted); opacity: .35; cursor: default; }
.cal-d.today { box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .7); }
.cal-d.in { background: rgba(var(--accent-rgb), .18); border-radius: 4px; }
.cal-d.ed { background: var(--accent) !important; color: var(--on-accent); border-radius: 10px; box-shadow: 0 8px 14px -8px rgba(var(--accent-rgb), .9); }
.per-hint { font-size: 12px; color: var(--muted); line-height: 1.45; }
.per-exit { justify-self: stretch; margin-top: 2px; }
@media (max-width: 640px) {.per { grid-template-columns: 1fr; }
.per-l { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--border); }
.per-r { padding: 12px 0 0; }}
/* ===== olho do topo: valores em R$ borrados (computador e celular) ===== */
.hide-v .mv { filter: blur(7px); user-select: none; -webkit-user-select: none; }
.hide-v svg text[filter] { user-select: none; -webkit-user-select: none; }
.hide-v input[inputmode="decimal"]:not(:focus) { filter: blur(5px); }
.hide-v [data-nomask] input[inputmode="decimal"] { filter: none; }
/* ===== Resumo do dia (cartão novo): ligado por padrão, linhas para ligar/desligar, horário, padrão da Traktofy ===== */
.nf-lock { padding:12px; border-radius:20px; background:linear-gradient(160deg, rgba(var(--accent-rgb),.18), rgba(122,92,255,.12)), var(--surface-2); border:1px solid var(--border); display:grid; gap:8px; }
.nf-lock-t { display:flex; justify-content:space-between; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:0 4px; }
.nf-prev { margin:0 !important; box-shadow:0 12px 26px -16px rgba(10,30,90,.5); }
.rs-card { display:grid; gap:14px; position:relative; overflow:hidden; background:linear-gradient(135deg, rgba(122,92,255,.09), rgba(var(--accent-rgb),.06) 55%, transparent), var(--surface); transition:background .3s; }
.rs-card.on { background:linear-gradient(135deg, rgba(122,92,255,.16), rgba(var(--accent-rgb),.11) 55%, transparent), var(--surface); }
.rs-top { display:flex; align-items:center; gap:14px; }
.rs-t { flex:1; min-width:0; }
.rs-t small { color:var(--muted); font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.rs-t h2 { margin:3px 0 4px; font-size:21px; letter-spacing:-.01em; }
.rs-t p { margin:0; color:var(--text-2); font-size:13.5px; line-height:1.45; }
.rs-orb { width:52px; height:52px; border-radius:17px; display:grid; place-items:center; flex:none; color:var(--muted); background:var(--surface-2); border:1px solid var(--border); transition:color .3s, background .3s, box-shadow .3s; }
.rs-orb .ic { width:25px; height:25px; }
.rs-card.on .rs-orb { color:#fff; background:linear-gradient(135deg, #7a5cff, var(--accent) 70%, #00b4ff); border-color:transparent; box-shadow:0 14px 26px -12px rgba(var(--accent-rgb), .9); }
.rs-sw { position:relative; width:58px; height:34px; flex:none; cursor:pointer; }
.rs-sw input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; z-index:1; }
.rs-sw i { position:absolute; inset:0; border-radius:20px; border:1px solid var(--border); background:var(--surface-3); transition:background .3s, border-color .3s, box-shadow .3s; pointer-events:none; }
.rs-sw i::after { content:''; position:absolute; left:3px; top:3px; width:26px; height:26px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(10,30,90,.35); transition:transform .32s cubic-bezier(.34,1.5,.5,1); }
.rs-sw input:checked + i { background:linear-gradient(135deg, var(--accent-hover), var(--accent)); border-color:transparent; box-shadow:0 8px 18px -8px rgba(var(--accent-rgb), .9); }
.rs-sw input:checked + i::after { transform:translateX(24px); }
.rs-sw input:focus-visible + i { outline:2px solid var(--accent); outline-offset:2px; }
.rs-sec { display:grid; gap:9px; }
.rs-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.rs-h b { font-size:14px; }
.rs-h small { color:var(--muted); font-size:12px; }
.rs-opts { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:8px; }
.rs-o { position:relative; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; padding:10px 12px; border-radius:16px; border:1px solid var(--border); background:var(--surface); cursor:pointer; transition:border-color .2s, background .2s, box-shadow .25s, transform .15s; }
.rs-o:hover { transform:translateY(-1px); border-color:rgba(var(--accent-rgb), .4); }
.rs-o input { position:absolute; opacity:0; pointer-events:none; }
.rs-e { width:36px; height:36px; border-radius:11px; display:grid; place-items:center; font-size:18px; background:var(--surface-2); filter:grayscale(1); opacity:.7; transition:background .2s, filter .2s, opacity .2s; }
.rs-l { display:grid; gap:1px; min-width:0; }
.rs-l b { font-size:13.5px; line-height:1.2; }
.rs-l small { color:var(--muted); font-size:11.5px; line-height:1.3; }
.rs-ck { width:22px; height:22px; border-radius:50%; border:1.5px solid var(--border); background:var(--surface-2); position:relative; transition:background .2s, border-color .2s; }
.rs-ck::after { content:''; position:absolute; left:7px; top:3.5px; width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg) scale(0); transition:transform .22s cubic-bezier(.2,.9,.3,1.3); }
.rs-o:has(input:checked) { border-color:rgba(var(--accent-rgb), .55); background:linear-gradient(135deg, rgba(var(--accent-rgb), .1), transparent 75%), var(--surface); box-shadow:0 12px 22px -16px rgba(var(--accent-rgb), .7); }
.rs-o input:checked ~ .rs-e { background:linear-gradient(135deg, rgba(122,92,255,.2), rgba(var(--accent-rgb), .2)); filter:none; opacity:1; }
.rs-o input:checked ~ .rs-ck { background:linear-gradient(135deg, var(--accent-hover), var(--accent)); border-color:transparent; }
.rs-o input:checked ~ .rs-ck::after { transform:rotate(45deg) scale(1); }
.rs-o input:focus-visible ~ .rs-ck { outline:2px solid var(--accent); outline-offset:2px; }
.rs-row { display:grid; grid-template-columns:minmax(150px, 220px) 1fr; gap:6px 18px; align-items:end; }
.rs-row .tg { padding-bottom:6px; }
.rs-time { margin-top:0; }
.rs-def { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:11px 13px; border-radius:16px; border:1px dashed var(--border); }
.rs-def > div { flex:1; min-width:180px; }
.rs-def small { display:block; color:var(--muted); font-size:12px; margin-top:1px; }
.rs-def b { font-size:13.5px; }
.rs-df-i { width:30px; height:30px; border-radius:10px; display:grid; place-items:center; flex:none; background:var(--surface-2); color:var(--text-2); font-weight:800; }
.rs-def.on .rs-df-i { background:rgba(18,163,107,.16); color:var(--good); }
@media (max-width:560px) {.rs-row { grid-template-columns:1fr; }
.rs-t h2 { font-size:19px; }}
.rs-row .toggle { grid-column: auto; min-height: 0; padding-bottom: 6px; align-items: center; }
.rs-row .toggle > span { display: grid; gap: 1px; color: var(--text); font-size: 14px; font-weight: 600; }
.rs-tg-s { color: var(--muted); font-size: 12px; font-weight: 400; }
.rs-card .field { margin: 0; }
.rs-def .btn { flex: none; }
/* ===== Webhooks · bots e gateways separados, saúde, 3 eventos da SharkBot, código secreto escondido, tipo de cada evento ===== */
.wh-page { display: grid; gap: 14px; }
.wh-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 22px; align-items: center; position: relative; overflow: hidden; background: radial-gradient(90% 140% at 0% 0%, rgba(18, 163, 107, .14), transparent 60%), var(--surface); }
.wh-hero.warn { background: radial-gradient(90% 140% at 0% 0%, rgba(232, 163, 23, .18), transparent 60%), var(--surface); }
.wh-hero.idle { background: radial-gradient(90% 140% at 0% 0%, rgba(var(--accent-rgb), .14), transparent 60%), var(--surface); }
.wh-orb { position: relative; width: 74px; height: 74px; display: grid; place-items: center; }
.wh-orb span { position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; background: linear-gradient(145deg, #3ed6a0, #12a36b); box-shadow: 0 14px 26px -10px rgba(18, 163, 107, .8); }
.wh-hero.warn .wh-orb span { background: linear-gradient(145deg, #ffcf6b, #e8a317); box-shadow: 0 14px 26px -10px rgba(232, 163, 23, .8); }
.wh-hero.idle .wh-orb span { background: linear-gradient(145deg, var(--accent-hover), var(--accent)); box-shadow: 0 14px 26px -10px rgba(var(--accent-rgb), .8); }
.wh-orb i { position: absolute; inset: 0; border-radius: 50%; background: rgba(18, 163, 107, .25); animation: whPulse 2.4s ease-out infinite; }
.wh-hero.warn .wh-orb i { background: rgba(232, 163, 23, .3); }
.wh-hero.idle .wh-orb i { background: rgba(var(--accent-rgb), .25); animation: none; }
@keyframes whPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.wh-hero-t h2 { font-size: 26px; margin: 2px 0 4px; }
.wh-hero-t p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.wh-hero-k { display: flex; gap: 22px; }
.wh-hero-k small { display: block; color: var(--muted); font-size: 11.5px; }
.wh-hero-k b { font-family: var(--font-display); font-size: 26px; }
.wh-hero-a { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 8px; }
.wh-grp { display: grid; gap: 10px; }
.wh-grp-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 2px -2px; }
.wh-grp-h b { font-size: 15px; }
.wh-grp-h small { color: var(--muted); font-size: 12.5px; }
.wh-plats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wh-plat { border-top: 3px solid var(--pc); display: grid; gap: 10px; align-content: start; }
.wp-h { display: flex; align-items: center; gap: 10px; }
.wp-h > div { flex: 1; min-width: 0; }
.wp-h b { display: block; font-size: 15.5px; }
.wp-h small { color: var(--muted); font-size: 11.5px; }
.wp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 22%, transparent); flex: none; }
.wp-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.wp-chip.ok { background: rgba(18, 163, 107, .16); color: var(--good); }
.wp-chip.warn { background: rgba(232, 163, 23, .2); color: var(--warn-text); }
.wp-chip.idle, .wp-chip.soon { background: var(--surface-3); color: var(--muted); }
.wh-spk { width: 100%; height: 32px; display: block; }
.wp-k { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wp-k b { font-family: var(--font-display); font-size: 19px; display: block; }
.wp-k small { color: var(--muted); font-size: 11px; }
.wp-a { display: flex; gap: 6px; flex-wrap: wrap; }
.wh-plat.st-soon { opacity: .62; filter: grayscale(.55); }
.at-list { display: grid; gap: 8px; }
.at-i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface-2); }
.at-i > div { flex: 1; min-width: 0; }
.at-i b { display: block; font-size: 14px; }
.at-i small { color: var(--muted); font-size: 12.5px; }
.at-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: rgba(232, 163, 23, .2); color: var(--warn-text); flex: none; }
.at-i.bad .at-ic { background: rgba(229, 72, 77, .16); color: var(--danger-text); }
.at-ok { padding: 16px; border-radius: 15px; background: rgba(18, 163, 107, .1); color: var(--text-2); font-size: 14px; }
.cov { display: grid; gap: 6px; }
.cov-h, .cov-r { display: grid; grid-template-columns: 150px repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; align-items: center; }
.cov-h span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cov-m { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; min-width: 0; }
.cov-c { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-align: left; font: inherit; font-size: 13px; cursor: pointer; transition: transform .2s, border-color .2s; }
.cov-c:hover { transform: translateY(-2px); border-color: var(--accent); }
.cov-c i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cov-c.ok i { background: var(--good); box-shadow: 0 0 0 3px rgba(18, 163, 107, .2); }
.cov-c.warn i { background: #e8a317; box-shadow: 0 0 0 3px rgba(232, 163, 23, .22); }
.cov-c.idle i { background: var(--muted); opacity: .5; }
.cov-c span { flex: 1; min-width: 0; }
.cov-c em { font-style: normal; color: var(--muted); font-size: 11px; white-space: nowrap; }
.pdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.whg { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); }
.whg-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.whg-h b { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.whg-h small { color: var(--muted); font-size: 11.5px; }
.whg .chips { margin: 0; padding: 0; }
.chip.soon { opacity: .55; cursor: not-allowed; border-style: dashed; }
.chip.soon em { font-style: normal; font-size: 10px; font-weight: 800; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.wh-links .help { margin-top: 12px; }
.wh-rv { margin-top: 12px; padding: 4px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); min-height: 48px; }
.wh-rv > span { display: grid; gap: 1px; font-size: 14px; font-weight: 600; color: var(--text); }
.wh-rv small { color: var(--muted); font-weight: 500; font-size: 12px; }
.url-list { display: grid; margin-top: 4px; }
.wh-ev3 { margin: 14px 0; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); display: grid; gap: 10px; }
.e3-h { display: grid; gap: 2px; }
.e3-h b { font-size: 14.5px; }
.e3-h small { color: var(--muted); font-size: 12px; }
.e3-r { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.e3-r.miss { border-color: rgba(232, 163, 23, .5); background: linear-gradient(90deg, rgba(232, 163, 23, .1), transparent 70%), var(--surface); }
.e3-ck { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(18, 163, 107, .16); color: var(--good); }
.e3-r.miss .e3-ck { background: rgba(232, 163, 23, .2); color: var(--warn-text); }
.e3-m { display: grid; gap: 1px; min-width: 0; }
.e3-m b { font-size: 13.5px; }
.e3-m small { color: var(--muted); font-size: 12px; }
.e3-m em { font-style: normal; color: var(--text-2); font-size: 12px; line-height: 1.45; margin-top: 3px; }
.e3-tip { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.wh-events .chips small { opacity: .7; margin-left: 2px; }
.wh-q { margin: 10px 0 0; }
.events { display: grid; }
.wh-events details.event > summary { grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 2px; }
.ev-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.ev-ic.ok { background: rgba(18, 163, 107, .16); color: var(--good); }
.ev-ic.prob { background: rgba(232, 163, 23, .2); color: var(--warn-text); }
.ev-ic.rej { background: rgba(229, 72, 77, .16); color: var(--danger-text); }
.ev-m { min-width: 0; }
.ev-m b { font-size: 13.5px; }
.ev-m small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; overflow-wrap: anywhere; }
.ev-t { color: var(--muted); font-size: 12px; white-space: nowrap; }
.wh-events details.event pre { margin: 0 0 10px; }
.ev-a { padding: 0 0 12px; }
.ev-ty { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; letter-spacing: .02em; background: var(--surface-3); color: var(--text-2); }
.ev-ty.lead { background: rgba(143, 123, 255, .18); color: color-mix(in srgb, #8f7bff 62%, var(--text)); }
.ev-ty.created { background: rgba(74, 127, 255, .16); color: color-mix(in srgb, #4a7fff 62%, var(--text)); }
.ev-ty.paid { background: rgba(18, 163, 107, .17); color: color-mix(in srgb, #12a36b 62%, var(--text)); }
@media (max-width: 1000px) {.wh-plats { grid-template-columns: 1fr 1fr; }
.wh-hero { grid-template-columns: auto 1fr; }
.wh-hero-k { grid-column: 1 / -1; }}
@media (max-width: 640px) {.wh-plats { grid-template-columns: 1fr; }
.wh-hero-k { gap: 14px; }
.wh-hero-k b { font-size: 21px; }
.wh-hero-t h2 { font-size: 22px; }
.cov-h, .cov-r { grid-template-columns: 96px repeat(var(--n, 2), minmax(0, 1fr)); }
.cov-c em { display: none; }
.e3-r { grid-template-columns: auto 1fr; }
.e3-r .wp-chip { grid-column: 2; justify-self: start; }
.at-i { flex-wrap: wrap; }
.at-i .btn { margin-left: 46px; }}
.wh-q { width: 100%; }
/* ===== Análises › Do lead à venda (Lead → Pix gerado → Pago) ===== */
.lf { display: grid; gap: 4px; }
.lf-r { display: grid; grid-template-columns: 150px 1fr 74px; align-items: center; gap: 12px; }
.lf-l b { font-size: 14px; }
.lf-l small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.lf-t { height: 28px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.lf-t i { display: block; height: 100%; border-radius: 10px; transform-origin: left; animation: lfIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes lfIn { from { transform: scaleX(0); } }
.lf-n { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.lf-r.off .lf-t { background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px); border: 1px dashed var(--border); }
.lf-r.off .lf-n { color: var(--muted); }
.lf-a { margin-left: 162px; font-size: 12px; color: var(--text-2); display: flex; gap: 6px; align-items: center; padding: 3px 0; }
.lf-a span { color: var(--muted); }
.lf-a b { color: var(--accent); font-size: 13px; }
.lf-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.lf-k > div { padding: 11px 13px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 2px; align-content: start; }
.lf-k small { color: var(--muted); font-size: 11.5px; }
.lf-k b { font-family: var(--font-display); font-size: 21px; }
.lf-k em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.lf-k em.up { color: var(--good); font-weight: 700; }
.lf-k em.down { color: var(--bad); font-weight: 700; }
.lf-warn { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 13px 14px; margin-bottom: 14px; border-radius: 16px; border: 1px solid rgba(232, 163, 23, .5); background: linear-gradient(90deg, rgba(232, 163, 23, .12), transparent 80%), var(--surface-2); }
.lf-warn > div { flex: 1; min-width: 210px; display: grid; gap: 3px; }
.lf-warn b { font-size: 14px; }
.lf-warn small { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.lf-wi { width: 26px; height: 26px; border-radius: 50%; background: rgba(232, 163, 23, .22); color: var(--warn-text); display: grid; place-items: center; font-weight: 800; flex: none; }
.lf-evs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.lf-ev { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.lf-ev.ok { background: rgba(18, 163, 107, .16); color: var(--good); }
.lf-ev.miss { background: rgba(232, 163, 23, .2); color: var(--warn-text); }
.lf-m { display: inline-flex; align-items: center; gap: 8px; }
.lf-m .pill { margin-left: 2px; }
@media (max-width: 640px) {.lf-r { grid-template-columns: 92px 1fr 52px; gap: 9px; }
.lf-a { margin-left: 101px; }
.lf-n { font-size: 16px; }
.lf-l small { display: none; }}
