/* Elite Chat — app do iPhone (somente leitura), tema "Obsidian Aurora" */
:root {
  --bg: #06080c;
  --surface: rgba(16, 20, 29, 0.78);
  --surface-2: #151a25;
  --surface-3: #1b2130;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #e8edf4;
  --text-2: #a6b0c0;
  --muted: #6c7689;
  --accent: #3ce6c1;
  --accent-2: #6e8bff;
  --accent-soft: rgba(60, 230, 193, 0.12);
  --star: #f6c454;
  --star-soft: rgba(246, 196, 84, 0.13);
  --warn: #f2b84b;
  --warn-soft: rgba(242, 184, 75, 0.12);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.12);
  --font: -apple-system, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overscroll-behavior-y: contain; }
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; background:
  radial-gradient(600px 380px at 100% -5%, rgba(110, 139, 255, 0.16), transparent 60%),
  radial-gradient(520px 340px at -10% 105%, rgba(60, 230, 193, 0.10), transparent 60%); }
main { position: relative; z-index: 1; max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 28px); }
svg.i { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Topo */
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.logo { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 24px -6px rgba(246, 196, 84, .55); }
.logo img { width: 100%; height: 100%; display: block; }
.top h1 { margin: 0; font: 700 19px var(--font-display); letter-spacing: -0.02em; }
.top small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.top .grow { flex: 1; min-width: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dot.live { box-shadow: 0 0 0 3px rgba(60, 230, 193, .25); }
.dot.off { background: var(--danger); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(60, 230, 193, .6); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }

/* Período */
.seg { display: flex; padding: 3px; gap: 3px; margin-bottom: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { flex: 1; border: 0; background: transparent; color: var(--text-2); font: 600 13px var(--font); padding: 8px 0; border-radius: 9px; }
.seg button.active { background: var(--surface-3); color: var(--text); }

/* Cartões */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 14px var(--font-display); color: var(--text-2); }
.card-title svg.i { color: var(--accent); width: 16px; height: 16px; }
.card-title .grow { flex: 1; }
.card-title small { font-weight: 500; color: var(--muted); }

.hero { background: linear-gradient(145deg, rgba(246, 196, 84, .12), rgba(110, 139, 255, .08)), var(--surface); }
.hero-label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.hero-value { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; font: 700 40px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-value .star { color: var(--star); font-size: 30px; }
.hero-brl { font: 600 20px var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.hero-sub { margin-top: 8px; color: var(--muted); font-size: 12.5px; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px; }
.kpi small { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; }
.kpi small svg.i { width: 14px; height: 14px; color: var(--accent); }
.kpi b { display: block; margin-top: 6px; font: 700 22px var(--font-display); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 11.5px; }

/* Alertas */
.issue { display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px; margin-bottom: 8px; background: var(--warn-soft); border: 1px solid rgba(242, 184, 75, .25); }
.issue.error { background: var(--danger-soft); border-color: rgba(255, 107, 107, .3); }
.issue svg.i { color: var(--warn); margin-top: 1px; }
.issue.error svg.i { color: var(--danger); }
.issue b { display: block; font-size: 14px; }
.issue p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); word-break: break-word; }
.all-good { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.all-good span { display: block; font-weight: 400; color: var(--text-2); font-size: 12.5px; }

/* Gráfico */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.chart .bar { flex: 1; min-height: 3px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--star), rgba(110, 139, 255, .7)); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11px; }

/* Vendas (no estilo da notificação) */
.sale { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sale:last-child { border-bottom: 0; }
.sale-star { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--star-soft); color: var(--star); font-size: 19px; flex-shrink: 0; }
.sale-mid { flex: 1; min-width: 0; }
.sale-mid b { display: block; font-size: 13.5px; }
.sale-mid span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sale-val { text-align: right; flex-shrink: 0; }
.sale-val b { display: block; color: var(--accent); font: 700 15px var(--font-display); font-variant-numeric: tabular-nums; }
.sale-val span { color: var(--star); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Criadoras */
.creator { padding: 12px 0; border-bottom: 1px solid var(--border); }
.creator:last-child { border-bottom: 0; padding-bottom: 0; }
.creator-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font: 700 13px var(--font-display); color: #03140f; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex-shrink: 0; }
.creator-head .grow { flex: 1; min-width: 0; }
.creator-head b { display: block; }
.creator-head span { color: var(--muted); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.creator-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.creator-stats div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.creator-stats small { display: block; color: var(--muted); font-size: 11px; }
.creator-stats b { font: 600 14px var(--font-display); font-variant-numeric: tabular-nums; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--text-2); font-size: 12px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.steps span { font-size: 11px; color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); }
.steps span.done { color: var(--accent); border-color: rgba(60, 230, 193, .3); }

/* Botões */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: 0; border-radius: 14px; font: 600 15px var(--font); color: #03140f; background: linear-gradient(135deg, var(--accent), #5fd3e6); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn + .btn { margin-top: 8px; }
.muted { color: var(--muted); }
.note { text-align: center; color: var(--muted); font-size: 12px; margin: 18px 0 6px; }
.link { background: none; border: 0; color: var(--text-2); font: 500 13px var(--font); text-decoration: underline; display: block; margin: 0 auto; }

/* Pareamento */
.pair { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.pair .logo { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 22px; }
.pair h1 { font: 700 26px var(--font-display); margin: 0 0 8px; letter-spacing: -0.02em; }
.pair p { color: var(--text-2); margin: 0 0 22px; }
.code-input { width: 100%; height: 64px; text-align: center; font: 700 32px var(--font-display); letter-spacing: .4em; padding-left: .4em; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 16px; margin-bottom: 12px; outline: none; }
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.install-tip { display: flex; gap: 10px; text-align: left; padding: 12px; border-radius: 14px; background: rgba(110, 139, 255, .12); border: 1px solid rgba(110, 139, 255, .3); font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.install-tip svg.i { color: var(--accent-2); margin-top: 2px; }
.install-tip b { color: var(--text); }

/* Card de notificações (inspirado no SharkBot) */
.notif-row { display: flex; align-items: center; gap: 12px; }
.notif-row .grow { flex: 1; min-width: 0; }
.notif-row b { display: block; font: 600 16px var(--font-display); }
.notif-row span { color: var(--muted); font-size: 12.5px; }
.notif-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(60, 230, 193, .1); border: 1px solid rgba(60, 230, 193, .25); color: var(--accent); flex-shrink: 0; }
.notif-icon svg.i { width: 22px; height: 22px; }
.icon-ghost { width: 36px; height: 36px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; }
.switch { width: 52px; height: 31px; border-radius: 999px; border: 0; padding: 0; position: relative; background: var(--surface-3); flex-shrink: 0; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch.on { background: var(--accent-2); }
.switch.on span { transform: translateX(21px); }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cat { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 14px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: inherit; }
.cat svg.i { width: 18px; height: 18px; margin-top: 1px; }
.cat b { display: block; font-size: 14px; color: var(--text-2); }
.cat span { font-size: 11.5px; }
.cat.on { background: rgba(60, 230, 193, .08); border-color: rgba(60, 230, 193, .28); color: var(--accent); }
.cat.on b { color: var(--accent); }
.notif .install-tip { margin: 14px 0 0; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 16px); z-index: 10; padding: 13px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--border-strong); font-size: 14px; text-align: center; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); }
.toast.error { border-color: rgba(255, 107, 107, .5); }
.skeleton { height: 120px; border-radius: 18px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Sem zoom no iPhone: campos com 16px ou mais (o iOS dá zoom sozinho abaixo disso) e sem toque duplo. */
input, select, textarea, button { font-size: max(16px, 1em); touch-action: manipulation; }
* { -webkit-tap-highlight-color: transparent; }
/* Leve: o fundo não é redesenhado a cada rolagem. */
.aurora { will-change: auto; transform: translateZ(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
