/* Cadê o Filme? — mobile-first. Tudo abaixo de 640px é o caso principal;
   telas maiores só ganham espaço lateral. */

:root {
  --bg: #0a0b0f;
  --bg-elev: #14161d;
  --bg-elev-2: #1c1f29;
  --line: #262a36;
  --text: #eef0f6;
  --text-dim: #9aa1b4;
  --accent: #ffc53d;          /* letreiro de cinema */
  --accent-ink: #1a1400;
  --accent-2: #7c5cff;
  --ok: #3ddc84;
  --warn: #ff8a5b;
  --danger: #ff5c72;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --tab-h: calc(58px + env(safe-area-inset-bottom));
  --top-h: 56px;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-elev-2: #eef0f6;
  --line: #dfe3ec;
  --text: #141722;
  --text-dim: #626b80;
  --accent: #f0a500;
  --accent-ink: #ffffff;
  --shadow: 0 10px 28px rgba(20, 25, 45, .12);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* display explícito (grid/flex) vence o hidden do user-agent — reforça aqui. */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.45;
  overscroll-behavior-y: none;
}
body { padding-bottom: var(--tab-h); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: -.2px; }
.brand-mark { font-size: 20px; }
.brand-text b { color: var(--accent); }
.topbar-actions { display: flex; gap: 6px; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-elev);
  display: grid; place-items: center; font-size: 17px; cursor: pointer;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--danger);
}

/* ---------- layout ---------- */
.app { max-width: 720px; margin: 0 auto; padding: 14px 14px 24px; }
.section { margin-bottom: 26px; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 10px;
}
.section-title a { color: var(--accent); font-size: 13px; text-transform: none; letter-spacing: 0; }

/* ---------- busca ---------- */
.hero { padding: 18px 0 8px; }
.hero h1 {
  margin: 0 0 6px; font-size: 26px; line-height: 1.15; letter-spacing: -.6px;
}
.hero h1 span { color: var(--accent); }
.hero p { margin: 0 0 16px; color: var(--text-dim); font-size: 15px; }

.searchbar { position: relative; }
.searchbar input {
  width: 100%; height: 54px; padding: 0 46px 0 46px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text);
  font-size: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.searchbar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.searchbar .s-icon { position: absolute; left: 16px; top: 16px; opacity: .6; font-size: 18px; }
.searchbar .s-clear {
  position: absolute; right: 8px; top: 8px; width: 38px; height: 38px;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--text-dim);
}

.suggest {
  position: absolute; left: 0; right: 0; top: 60px; z-index: 30;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.suggest button {
  display: flex; gap: 10px; align-items: center; width: 100%;
  padding: 9px 12px; border: 0; background: none; text-align: left; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.suggest button:last-child { border-bottom: 0; }
.suggest button:active { background: var(--bg-elev-2); }
.suggest img { width: 34px; height: 50px; object-fit: cover; border-radius: 6px; background: var(--bg-elev-2); }
.suggest .s-t { font-size: 14px; font-weight: 600; }
.suggest .s-m { font-size: 12px; color: var(--text-dim); }

/* ---------- cota ---------- */
.quota-bar {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px 12px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-dim);
}
.quota-bar b { color: var(--text); }
.quota-bar.premium { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.quota-pills { display: flex; gap: 4px; margin-left: auto; }
.quota-pills i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.quota-pills i.on { background: var(--accent); }

/* ---------- resultado principal ---------- */
.best {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.best-backdrop { position: relative; aspect-ratio: 16/9; background: var(--bg-elev-2); }
.best-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.best-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--bg-elev) 92%, transparent) 96%);
}
.best-head { display: flex; gap: 12px; padding: 0 14px; margin-top: -54px; position: relative; z-index: 2; }
.best-poster {
  width: 92px; aspect-ratio: 2/3; border-radius: 10px; object-fit: cover;
  border: 2px solid var(--bg-elev); background: var(--bg-elev-2); box-shadow: var(--shadow);
}
.best-info { flex: 1; min-width: 0; padding-top: 58px; }
.best-info h2 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.4px; }
.best-meta { margin-top: 4px; font-size: 13px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 8px; }
.best-body { padding: 12px 14px 16px; }
.overview { font-size: 14.5px; color: var(--text-dim); margin: 10px 0 0; }
.overview.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { background: none; border: 0; color: var(--accent); padding: 6px 0; font-size: 13px; cursor: pointer; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg-elev-2); color: var(--text-dim);
}
.badge.star { color: var(--accent); }
.badge.type { background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: #c9bcff; }

/* ---------- streamings ---------- */
.where { margin-top: 14px; }
.where h3 {
  margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim);
}
.provider-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.provider {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 7px; border-radius: 999px;
  background: var(--bg-elev-2); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600;
}
.provider img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.provider.included { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.provider.rent { opacity: .82; font-weight: 500; }
.no-stream {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--warn) 12%, var(--bg-elev-2));
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line));
  font-size: 14px;
}

.actions { display: flex; gap: 8px; margin-top: 16px; }
.btn {
  flex: 1; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-elev-2); font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; flex: none; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- grade de cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { cursor: pointer; }
.card .poster {
  position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden;
  background: var(--bg-elev-2); border: 1px solid var(--line);
}
.card .poster img { width: 100%; height: 100%; object-fit: cover; }
.card .poster .type-tag {
  position: absolute; top: 6px; left: 6px; padding: 1px 6px; border-radius: 6px;
  font-size: 10px; font-weight: 700; background: rgba(0,0,0,.62); color: #fff; backdrop-filter: blur(4px);
}
.card .poster .logos {
  position: absolute; left: 5px; right: 5px; bottom: 5px; display: flex; gap: 3px;
}
.card .poster .logos img { width: 20px; height: 20px; border-radius: 5px; border: 1px solid rgba(255,255,255,.25); }
.card .t { font-size: 12.5px; font-weight: 600; margin-top: 6px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .y { font-size: 11px; color: var(--text-dim); }

/* ---------- listas ---------- */
.row-item {
  display: flex; gap: 12px; padding: 10px; margin-bottom: 8px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
}
.row-item img { width: 54px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; background: var(--bg-elev-2); }
.row-item .ri-body { flex: 1; min-width: 0; }
.row-item .ri-title { font-size: 15px; font-weight: 650; line-height: 1.2; }
.row-item .ri-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.row-item .ri-logos { display: flex; gap: 4px; margin-top: 6px; }
.row-item .ri-logos img { width: 22px; height: 22px; border-radius: 6px; }
.row-item .ri-del { border: 0; background: none; color: var(--text-dim); font-size: 18px; cursor: pointer; padding: 0 4px; }
.row-item.done { opacity: .5; }

/* ---------- plano (o diferencial) ---------- */
.plan-hero {
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent-2) 30%, var(--bg-elev)), var(--bg-elev));
  border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-bottom: 16px;
}
.plan-hero .big { font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--accent); }
.plan-hero .sub { font-size: 14px; color: var(--text-dim); }
.plan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.plan-stats div { background: color-mix(in srgb, var(--bg) 45%, transparent); border-radius: 12px; padding: 10px; text-align: center; }
.plan-stats b { display: block; font-size: 17px; }
.plan-stats small { font-size: 11px; color: var(--text-dim); }

.step {
  display: flex; gap: 12px; padding: 14px; margin-bottom: 10px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
}
.step-num {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px;
}
.step-body { flex: 1; min-width: 0; }
.step-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.step-title img { width: 24px; height: 24px; border-radius: 7px; }
.step-meta { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.step-titles { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.step-titles img { width: 42px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; flex: none; }

.blur-teaser { position: relative; }
.blur-teaser .blurred { filter: blur(7px); pointer-events: none; user-select: none; }
.blur-teaser .lock {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
}
.blur-teaser .lock-inner {
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(3px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 320px;
}

/* ---------- paywall / checkout ---------- */
.paywall { text-align: center; padding: 8px 0 4px; }
.paywall .price { font-size: 42px; font-weight: 800; letter-spacing: -1.5px; color: var(--accent); }
.paywall .price small { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.benefits { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.benefits li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; }
.benefits li::before { content: '✓'; color: var(--ok); font-weight: 800; }

.field { margin-bottom: 12px; text-align: left; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 5px; font-weight: 600; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 13px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; outline: none;
}
.field input:focus { border-color: var(--accent); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

.pix-box { text-align: center; }
.pix-box img { width: 210px; margin: 12px auto; border-radius: 12px; background: #fff; padding: 8px; }
.pix-code {
  word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; max-height: 84px; overflow: auto; text-align: left; color: var(--text-dim);
}
.pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); margin-top: 12px; }

/* ---------- sheet / modal ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: fade .18s ease; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  background: var(--bg-elev); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line);
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  animation: slideUp .24s cubic-bezier(.22,.9,.3,1);
}
@media (min-width: 640px) {
  .sheet-panel { max-width: 460px; margin: 0 auto; border-radius: 22px; bottom: 5vh; }
}
.sheet-close {
  position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-elev-2); cursor: pointer;
}
.sheet h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.4px; }
.sheet .sub { color: var(--text-dim); font-size: 14px; margin: 0 0 16px; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-dim); font-size: 0;
}
.tabbar a span { font-size: 19px; line-height: 1; }
.tabbar a small { font-size: 10.5px; font-weight: 600; }
.tabbar a.active { color: var(--accent); }
.tabbar a:active { transform: scale(.93); }

/* ---------- utilidades ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tab-h) + 14px); z-index: 80;
  background: var(--bg-elev-2); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 11px 16px; border-radius: 999px; font-size: 14px; max-width: 90vw;
  animation: slideUp .2s ease;
}
.toast.err { border-color: var(--danger); color: #ffd7dd; }
.empty { text-align: center; padding: 42px 18px; color: var(--text-dim); }
.empty .em { font-size: 44px; margin-bottom: 10px; }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 18px; }
.skeleton { background: linear-gradient(90deg, var(--bg-elev) 25%, var(--bg-elev-2) 37%, var(--bg-elev) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
.sk-poster { aspect-ratio: 2/3; }
.loading-screen { display: grid; place-items: center; min-height: 50vh; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .7s linear infinite;
}
.center { text-align: center; }
.mt { margin-top: 14px; }
.muted { color: var(--text-dim); font-size: 13px; }
.err-text { color: var(--danger); font-size: 13.5px; margin-top: 8px; }

/* ---------- banner de instalação ---------- */
.install-banner {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--tab-h) + 10px); z-index: 70;
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 18px;
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: slideUp .28s cubic-bezier(.22,.9,.3,1);
}
@media (min-width: 640px) { .install-banner { max-width: 460px; margin: 0 auto; } }
.install-banner img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.install-banner .ib-text { flex: 1; min-width: 0; line-height: 1.25; }
.install-banner .ib-text b { font-size: 14.5px; display: block; }
.install-banner .ib-text small { font-size: 12px; color: var(--text-dim); }
.install-banner .ib-go { flex: none; height: 38px; padding: 0 16px; font-size: 14px; }
.install-banner .ib-close {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: transparent; color: var(--text-dim); cursor: pointer; font-size: 14px;
}
.ios-steps { padding-left: 20px; margin: 14px 0; }
.ios-steps li { margin-bottom: 10px; font-size: 14.5px; }
.ios-icon { display: inline-block; padding: 0 4px; color: var(--accent); }

/* ---------- painel de estatísticas ---------- */
.stats-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 18px; gap: 10px; }
.stats-head h1 { margin: 0; font-size: 24px; letter-spacing: -.6px; }
.range-tabs { display: flex; gap: 4px; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; }
.range-tabs button {
  border: 0; background: transparent; color: var(--text-dim); cursor: pointer;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.range-tabs button.on { background: var(--accent); color: var(--accent-ink); }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
@media (min-width: 560px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.kpi small { display: block; font-size: 11.5px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700; }
.kpi b { display: block; font-size: 22px; letter-spacing: -.6px; margin: 3px 0 1px; }
.kpi span { font-size: 11.5px; color: var(--text-dim); }

.chart { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 10px 6px 4px; }
.chart svg { width: 100%; height: auto; display: block; color: var(--text); }
.chart-legend { display: flex; gap: 14px; justify-content: center; padding: 6px 0 8px; }
.chart-legend .lg { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 5px; }
.chart-legend .lg i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.barlist { display: flex; flex-direction: column; gap: 4px; }
.barlist-row {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; border-radius: 9px; background: var(--bg-elev);
  border: 1px solid var(--line); overflow: hidden; font-size: 13.5px;
}
.barlist-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.barlist-label { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; padding-right: 10px; }
.barlist-value { position: relative; z-index: 1; font-weight: 700; flex: none; }

.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel-step { position: relative; border-radius: 10px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line); }
.funnel-bar { position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 34%, transparent), transparent); }
.funnel-text { position: relative; padding: 11px 12px; display: flex;
  justify-content: space-between; align-items: baseline; gap: 10px; }
.funnel-text b { font-size: 14px; }
.funnel-text span { font-size: 12px; color: var(--text-dim); text-align: right; }

.hours { display: flex; align-items: flex-end; gap: 2px; height: 110px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px 4px; }
.hour { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.hour-bar { width: 100%; border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--accent) 65%, transparent); }
.hour small { font-size: 9px; color: var(--text-dim); height: 12px; }

.realtime-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.realtime-card b { font-size: 30px; letter-spacing: -1px; color: var(--accent); display: block; line-height: 1; }
.realtime-card small { font-size: 12px; color: var(--text-dim); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); animation: pulse 1.6s infinite; vertical-align: middle; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 42px; width: 150px; }
.spark i { flex: 1; border-radius: 2px; opacity: .85; }

.minitabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; }
.minitabs button {
  flex: none; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-dim);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.minitabs button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th, .tbl td { padding: 8px 10px; text-align: left; white-space: nowrap; }
.tbl th { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--line); }
.tbl tbody tr + tr td { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.tbl .ellip { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.sub-title { font-size: 13px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: .04em; margin: 16px 0 8px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
