/* StarLivePix: mesma paleta do StarPlugins (superfícies escuras, azul da marca,
   azul bebê, rosa de destaque e verde de "deu certo"). */
:root {
  --s-950: #08090d; --s-900: #0d0f16; --s-800: #13161f; --s-700: #1b1f2c; --s-600: #262b3a; --s-500: #343b4d;
  --brand-300: #8aabff; --brand-400: #5c82ff; --brand-500: #3d5cf5; --brand-600: #2c3fd6;
  --baby-400: #7ecbff; --baby-500: #4fb3f7;
  --pink-400: #f472b6; --pink-500: #e84fa0;
  --mint-400: #34e0a1; --mint-500: #1fc98a; --mint-600: #16a673;
  --red-400: #f87171;
  --text: #e2e8f0; --muted: #94a3b8; --faint: #64748b;
  --line: rgba(255, 255, 255, .1);
  --radius: 16px;
  --accent: var(--brand-500);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--s-950); color: var(--text);
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: var(--baby-400); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: #fff; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 20px;
  font: 600 .9rem/1 Poppins, sans-serif; border: 0; cursor: pointer; transition: all .2s; color: #fff; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-brand { background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); box-shadow: 0 0 40px rgba(61, 92, 245, .25); }
.btn-brand:hover { background: linear-gradient(90deg, var(--brand-400), var(--brand-500)); transform: translateY(-2px); color: #fff; }
.btn-buy { background: linear-gradient(90deg, var(--mint-500), var(--mint-600)); box-shadow: 0 0 40px rgba(31, 201, 138, .25); }
.btn-buy:hover { background: linear-gradient(90deg, var(--mint-400), var(--mint-500)); transform: translateY(-2px); color: #fff; }
.btn-discord { background: #5865f2; }
.btn-discord:hover { background: #4752c4; color: #fff; transform: translateY(-2px); }
.btn-outline { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .15); color: #f1f5f9; }
.btn-outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-ghost { background: transparent; color: #cbd5e1; }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.btn-danger { background: rgba(248, 113, 113, .12); color: var(--red-400); border: 1px solid rgba(248, 113, 113, .3); }
.btn-danger:hover { background: rgba(248, 113, 113, .2); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- cartões */
.card { border-radius: var(--radius); border: 1px solid var(--line); background: rgba(19, 22, 31, .8); backdrop-filter: blur(8px); padding: 20px; }
.card h2, .card h3 { margin-bottom: .6em; }
.card-tight { padding: 14px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 1.6rem; font-weight: 700; color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 600; background: rgba(255,255,255,.08); color: #cbd5e1; }
.badge-ok { background: rgba(31, 201, 138, .15); color: var(--mint-400); }
.badge-warn { background: rgba(250, 204, 21, .12); color: #facc15; }
.badge-bad { background: rgba(248, 113, 113, .12); color: var(--red-400); }
.badge-brand { background: rgba(61, 92, 245, .18); color: var(--brand-300); }

/* ---------------------------------------------------------------- formulários */
label { display: block; font-size: .85rem; color: #cbd5e1; margin-bottom: 6px; font-weight: 500; }
.input, input[type=text], input[type=number], input[type=email], input[type=url], select, textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--line); background: rgba(27, 31, 44, .6); padding: 11px 14px;
  font: 400 .92rem Poppins, sans-serif; color: #f1f5f9; outline: none; transition: border .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(61, 92, 245, .3); }
textarea { resize: vertical; min-height: 90px; }
select option { background: #172033; }
input[type=color] { width: 48px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; padding: 2px; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--brand-500); }
.field { margin-bottom: 14px; }
.hint { font-size: .78rem; color: var(--faint); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-500); }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--s-600); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--brand-500); }
.switch input:checked + span::before { transform: translateX(20px); }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; }
.copy input { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }

/* ---------------------------------------------------------------- topo e rodapé */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(8, 9, 13, .75); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -.02em; }
.logo .mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--baby-500), var(--brand-500) 60%, var(--pink-500)); box-shadow: 0 0 24px rgba(79, 179, 247, .4); }
.logo b { background: linear-gradient(90deg, var(--baby-400), var(--brand-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #cbd5e1; padding: 8px 12px; border-radius: 999px; font-size: .9rem; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.12); }
.footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0; color: var(--muted); font-size: .85rem; }
.footer .legal { max-width: 760px; }
.footer a { color: #cbd5e1; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ---------------------------------------------------------------- home */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 640px; background: radial-gradient(circle at 30% 20%, rgba(79,179,247,.22), transparent 55%), radial-gradient(circle at 80% 10%, rgba(232,79,160,.16), transparent 50%); pointer-events: none; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.grad { background: linear-gradient(90deg, var(--baby-400), var(--brand-400) 45%, var(--pink-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: #cbd5e1; max-width: 560px; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(79,179,247,.3); background: rgba(79,179,247,.08); color: var(--baby-400); font-size: .8rem; font-weight: 600; margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.stage { position: relative; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, #111522, #0b0d14); aspect-ratio: 16 / 10; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(61,92,245,.45); }
.stage .scene { position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(61,92,245,.35), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 40px); }
.stage .rec { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; align-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 8px; }
.stage .alert-slot { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 86%; }
.stage .feed { position: absolute; right: 12px; bottom: 12px; width: 46%; display: flex; flex-direction: column; gap: 6px; }
.stage .feed div { background: rgba(0,0,0,.5); border-radius: 10px; padding: 6px 10px; font-size: .75rem; animation: fadeUp .5s both; }
.sim { margin-top: 18px; display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; }
@media (max-width: 520px) { .sim { grid-template-columns: 1fr 1fr; } .sim .btn { grid-column: span 2; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .6s ease-out both; }
.section { padding: 56px 0 8px; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(61,92,245,.15); color: var(--brand-300); font-size: 1.3rem; }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 20px; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-500); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.streamer-chip { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #fff; }
.streamer-chip:hover { border-color: var(--brand-400); color: #fff; transform: translateY(-2px); }
.streamer-chip { transition: all .2s; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: scrollX 40s linear infinite; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- alerta (home e widget) */
.alert-card { display: flex; align-items: center; gap: 14px; background: #fff; color: #0f172a; border-radius: 18px; padding: 14px 18px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); animation: alertIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.alert-card .ic { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.5rem; }
.alert-card .t { font-weight: 700; font-size: 1.15rem; }
.alert-card .t .v { color: var(--accent); }
.alert-card .m { color: #334155; font-size: .9rem; overflow-wrap: anywhere; }
.alert-out { animation: alertOut .4s ease-in both; }
@keyframes alertIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes alertOut { to { opacity: 0; transform: translateY(-16px) scale(.96); } }

/* ---------------------------------------------------------------- página do streamer */
.pix-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 72px 16px 32px; position: relative; }
.pix-bg { position: fixed; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.pix-bg::after { content: ''; position: absolute; inset: 0; background: rgba(8, 9, 13, .55); backdrop-filter: blur(6px); }
.pix-bg.sem-fundo { background: radial-gradient(circle at 30% 20%, rgba(79,179,247,.25), transparent 50%), radial-gradient(circle at 80% 80%, rgba(232,79,160,.18), transparent 50%), var(--s-950); }
.pix-bg.sem-fundo::after { display: none; }
.pix-card { width: 100%; max-width: 440px; border-radius: 22px; background: rgba(19, 22, 31, .92); border: 1px solid var(--line); padding: 64px 22px 22px; position: relative; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.pix-card .pfp { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid var(--s-800); background: var(--s-700); }
.pix-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 4px; }
.pix-card .bio { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; background: rgba(27,31,44,.8); padding: 4px; border-radius: 14px; margin-bottom: 12px; }
.tabs button { flex: 1; border: 0; background: transparent; color: #cbd5e1; padding: 9px 6px; border-radius: 10px; font: 600 .82rem Poppins, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button.on { background: var(--s-600); color: #fff; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money input { padding-left: 42px; font-size: 1.1rem; font-weight: 700; }
.quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quick button { flex: 1; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #e2e8f0; border-radius: 10px; padding: 7px 0; font: 600 .8rem Poppins; cursor: pointer; }
.quick button:hover { border-color: var(--accent); }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; background: rgba(255,255,255,.03); }
.pay-opt:has(input:checked) { border-color: var(--accent); background: rgba(61,92,245,.1); }
.pay-opt input { accent-color: var(--accent); }
.rec-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border: 1px dashed var(--line); border-radius: 14px; }
.rec-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; font-size: 1.5rem; cursor: pointer; box-shadow: 0 0 0 6px rgba(239,68,68,.2); }
.rec-btn.on { animation: pulse 1.2s infinite; }
.music-btn { position: fixed; right: 16px; top: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(19,22,31,.85); color: #fff; cursor: pointer; font-size: 1.1rem; }
.powered { margin-top: 18px; font-size: .8rem; color: var(--muted); }
.msg-err { background: rgba(248,113,113,.12); color: #fecaca; border: 1px solid rgba(248,113,113,.3); border-radius: 12px; padding: 10px 14px; font-size: .85rem; }
.msg-ok { background: rgba(31,201,138,.12); color: #bbf7d0; border: 1px solid rgba(31,201,138,.3); border-radius: 12px; padding: 10px 14px; font-size: .85rem; }
.qr { background: #fff; border-radius: 14px; padding: 10px; width: 240px; height: 240px; margin: 0 auto; display: block; }

/* ---------------------------------------------------------------- painel */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.side { border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; background: rgba(13, 15, 22, .6); }
.side a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; color: #cbd5e1; font-size: .9rem; font-weight: 500; }
.side a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side a.on { background: rgba(61, 92, 245, .16); color: #fff; }
.side .saldo { margin: 0 4px 16px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(61,92,245,.25), rgba(79,179,247,.12)); border: 1px solid rgba(92,130,255,.3); }
.side .saldo b { display: block; font-size: 1.3rem; color: #fff; }
.side h6 { margin: 18px 12px 6px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.main { padding: 28px 24px 60px; min-width: 0; }
.main h1 { font-size: 1.6rem; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; gap: 4px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .saldo, .side h6 { display: none; }
  .side a { white-space: nowrap; }
  .main { padding: 20px 16px 60px; }
}
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.widget-card { display: flex; flex-direction: column; gap: 12px; }
.widget-preview { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 7; background-color: #1a1d27; background-image: linear-gradient(45deg, #222634 25%, transparent 25%), linear-gradient(-45deg, #222634 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #222634 75%), linear-gradient(-45deg, transparent 75%, #222634 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.widget-preview iframe { position: absolute; inset: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; border: 0; pointer-events: none; }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; }
dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--s-800); color: var(--text); padding: 24px; width: min(560px, calc(100vw - 32px)); max-height: 90vh; }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2000; padding: 12px 18px; border-radius: 12px; background: var(--s-700); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: .9rem; animation: fadeUp .3s both; }
.toast.err { border-color: rgba(248,113,113,.5); }
.feed-live > div { animation: fadeUp .4s both; }
.legal-doc { max-width: 820px; }
.legal-doc h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal-doc p, .legal-doc li { color: #cbd5e1; }
