/*
 * © 2026 Ael-Host — feito por Fakkwel. Todos os direitos reservados.
 * Proibida a cópia, revenda ou distribuição deste código sem autorização do autor.
 */
/* =========================================================
   Estilos específicos das páginas
   ========================================================= */

/* ---------- entrar / cadastro ---------- */
.auth { display: grid; grid-template-columns: 1.15fr 1fr; height: 100%; overflow: auto; }
.auth-hero { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 48px clamp(28px, 6vw, 90px); border-right: 1px solid var(--line); }
.auth-brand { display: flex; align-items: center; gap: 12px; font: 700 20px var(--font-display); }
.auth-brand img { width: 40px; height: 40px; }
.auth-term { border-radius: 14px; border: 1px solid var(--line-2); background: color-mix(in oklab, var(--code-bg) 88%, transparent); box-shadow: var(--shadow); overflow: hidden; max-width: 620px; }
.auth-term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 12px var(--font-mono); color: var(--faint); }
.auth-term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.auth-term-bar i:nth-child(1) { background: #ff5f57; } .auth-term-bar i:nth-child(2) { background: #febc2e; } .auth-term-bar i:nth-child(3) { background: #28c840; }
.auth-term-bar span { margin-left: 8px; }
.auth-term-body { padding: 16px 18px; min-height: 300px; font: 13px/1.85 var(--font-mono); color: var(--text-2); }
.tl { animation: lineIn .3s var(--ease-out) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl.cmd .pr { color: var(--accent); font-weight: 700; }
.tl.cmd .typed { display: inline-block; overflow: hidden; vertical-align: bottom; animation: typing 1s steps(28) both; color: var(--text); }
@keyframes typing { from { max-width: 0 } to { max-width: 100% } }
.tl.ok { color: var(--ok); }
.tl.gold { color: var(--accent); }
.tl.chat { color: var(--text); padding-left: 14px; }
.tl.chat .who { color: var(--info); font-weight: 600; margin-right: 6px; }
.tl.bot { color: var(--muted); padding-left: 14px; }
.tl.bot::before { content: '↳ '; color: var(--faint); }
.auth-tag { color: var(--muted); max-width: 52ch; font-size: 15px; margin: 0; }
.auth-side { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; gap: 14px; }
.auth-card { width: min(440px, 100%); background: var(--panel); backdrop-filter: blur(var(--blur)); border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.auth-card > p.muted { margin-bottom: 22px; }
.auth-card .callout { margin-bottom: 16px; }
.auth-card .btn.lg { margin-top: 6px; }
/* login em 2 passos */
.login-quem { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 2px 0 20px; text-align: center; }
.login-avatar { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 8px; }
.login-anel { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent), var(--violet), var(--accent) 60%, transparent 60%, transparent 70%, var(--accent)); animation: login-gira calc(6s / var(--speed)) linear infinite; }
.login-foto { position: relative; width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--panel-solid); background: linear-gradient(135deg, var(--accent), #7c3aed); display: grid; place-items: center; overflow: hidden; font-family: var(--font-display); font-size: 38px; font-weight: 700; color: #fff; animation: login-pulsa calc(2.4s / var(--speed)) ease-in-out infinite; }
.login-foto img { width: 100%; height: 100%; object-fit: cover; }
.login-ola { font-family: var(--font-display); font-size: 24px; }
.login-lembrar { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.login-lembrar input { width: 18px; height: 18px; accent-color: var(--accent); }
.auth-links .linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.auth-links .linklike:hover { text-decoration: underline; }
.input.bad { border-color: var(--bad) !important; }
@keyframes login-gira { to { transform: rotate(360deg); } }
@keyframes login-pulsa { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 35%, transparent); } 50% { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) { .login-anel, .login-foto { animation: none; } }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-links a { display: inline-flex; align-items: center; gap: 4px; }
.auth-links svg { width: 14px; height: 14px; }
.auth-foot { margin: 0; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-hero { display: none; } }

/* ---------- início ---------- */
.hello { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.hello h1 { font-size: 28px; }
.hello p { margin: 4px 0 0; color: var(--muted); }
.hello .grow { min-width: 220px; }
.daily-strip { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: linear-gradient(100deg, var(--accent-soft), transparent 70%), var(--panel); margin-bottom: 18px; flex-wrap: wrap; }
.daily-strip .coin { font-size: 30px; }
.daily-strip b { font-size: 15px; }
.daily-strip .days { display: flex; gap: 5px; }
.daily-strip .days i { width: 22px; height: 6px; border-radius: 3px; background: var(--line-2); }
.daily-strip .days i.on { background: var(--accent); }

.bot-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none !important; color: inherit; transition: background .15s; }
.bot-row:last-child { border-bottom: 0; }
.bot-row:hover { background: var(--raise); }
.bot-row .t b { display: block; font-weight: 600; color: var(--text); }
.bot-row .t span { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.bot-row .up { font: 500 12.5px var(--font-mono); color: var(--text-2); text-align: right; }
.bot-row .up small { display: block; color: var(--faint); font-size: 11px; }

.chart-box { position: relative; height: 240px; }
.chart-box.sm { height: 180px; }

.feed .term-line { grid-template-columns: 60px 18px minmax(0, 1fr); }

/* ---------- bots ---------- */
.bot-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.bot-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--panel); backdrop-filter: blur(var(--blur)); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); color: inherit; text-decoration: none !important; overflow: hidden; }
.bot-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.bot-card::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.bot-card.online::after { opacity: 1; }
.bot-card .top { display: flex; gap: 12px; align-items: center; }
.bot-card .top .t { flex: 1; min-width: 0; }
.bot-card .top b { display: block; font: 600 16px var(--font-display); }
.bot-card .top span { font: 12px var(--font-mono); color: var(--muted); }
.bot-card .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.bot-card .kpis div { background: var(--panel-solid); padding: 8px 10px; }
.bot-card .kpis small { display: block; font-size: 11px; color: var(--faint); }
.bot-card .kpis b { font: 600 14px var(--font-mono); }
.bot-card .foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bot-card .foot .grow { min-width: 0; }
.bot-card.new { align-items: center; justify-content: center; text-align: center; border-style: dashed; min-height: 220px; cursor: pointer; background: transparent; }
.bot-card.new .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.bot-card.new .ic svg { width: 24px; height: 24px; }

/* ---------- área de trabalho do bot ---------- */
.bot-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.bot-head .avatar.lg { border-radius: 18px; }
.bot-head .t { flex: 1; min-width: 200px; }
.bot-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bot-head .meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font: 12.5px var(--font-mono); color: var(--muted); }
.bot-head .meta span { display: inline-flex; align-items: center; gap: 5px; }
.bot-head .meta svg { width: 13px; height: 13px; }
.bot-tabs { margin-bottom: 20px; position: sticky; top: 0; z-index: 5; background: color-mix(in oklab, var(--bg) 70%, transparent); backdrop-filter: blur(12px); margin-left: -28px; margin-right: -28px; padding: 0 28px; }
@media (max-width: 820px) { .bot-tabs { margin-left: -16px; margin-right: -16px; padding: 0 16px; top: 0; } }

/* conexão */
.connect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1000px) { .connect { grid-template-columns: minmax(0, 1fr); } }
.connect-stage { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.connect-stage h2 { font-size: 22px; }
.connect-stage p { color: var(--muted); max-width: 44ch; margin: 0 auto; }
.method-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 460px; }
.method { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--r-lg); border: 1.5px solid var(--line-2); background: var(--raise); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.method:hover { border-color: var(--accent-line); }
.method.on { border-color: var(--accent); background: var(--accent-soft); }
.method svg { width: 22px; height: 22px; color: var(--accent); }
.method b { font-size: 14px; }
.method span { font-size: 12px; color: var(--muted); }
.steps-list { counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.steps-list li::before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--font-mono); background: var(--accent-soft); color: var(--accent); }
.steps-list { padding: 0; margin: 0; }
.online-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.online-hero .avatar.lg { width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--panel-solid), 0 0 0 7px var(--ok); }
.online-hero .clock { font: 600 30px var(--font-mono); letter-spacing: .02em; }

/* comandos */
.cmd-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cmd-toolbar .input-group { flex: 1; min-width: 220px; }
.cmd-group { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); backdrop-filter: blur(var(--blur)); overflow: hidden; }
.cmd-group > button.head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--text); }
.cmd-group > button.head:hover { background: var(--raise); }
.cmd-group > button.head svg.chev { width: 16px; height: 16px; transition: transform .25s var(--ease); color: var(--muted); }
.cmd-group.open > button.head svg.chev { transform: rotate(90deg); }
.cmd-group > button.head b { font: 600 14px var(--font-display); }
.cmd-group > button.head .count { margin-left: auto; font: 12px var(--font-mono); color: var(--muted); }
.cmd-item { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.cmd-item:hover { background: var(--raise); }
.cmd-item .name { font: 600 13px var(--font-mono); color: var(--text); display: flex; align-items: center; gap: 6px; min-width: 0; }
.cmd-item .name .p { color: var(--accent); }
.cmd-item .desc { font-size: 12.5px; color: var(--muted); min-width: 0; }
.cmd-item .desc .al { font-family: var(--font-mono); color: var(--faint); font-size: 11.5px; }
.cmd-item .flags { display: flex; gap: 4px; }
.cmd-item.off .name, .cmd-item.off .desc { opacity: .45; }
@media (max-width: 800px) { .cmd-item { grid-template-columns: minmax(0, 1fr) auto; } .cmd-item .desc, .cmd-item .flags { grid-column: 1 / -1; } }

/* editor de código */
.ide { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: calc(100vh - 56px - var(--status) - 56px - 140px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); backdrop-filter: blur(var(--blur)); }
.ide.with-ai { grid-template-columns: 250px minmax(0, 1fr) 380px; }
.ide-tree { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ide-tree-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.ide-tree-head .grow { flex: 1; }
.ide-tree-body { flex: 1; overflow: auto; padding: 6px 4px; font-size: 13px; }
.tree-node { display: flex; align-items: center; gap: 6px; padding: 3px 8px; padding-left: calc(8px + var(--d, 0) * 14px); border-radius: 6px; cursor: pointer; color: var(--text-2); user-select: none; white-space: nowrap; }
.tree-node:hover { background: var(--raise-2); color: var(--text); }
.tree-node.on { background: var(--accent-soft); color: var(--text); }
.tree-node svg { width: 15px; height: 15px; flex: none; }
.tree-node .chev { width: 13px; height: 13px; transition: transform .18s; color: var(--faint); }
.tree-node.open .chev { transform: rotate(90deg); }
.tree-node .nm { overflow: hidden; text-overflow: ellipsis; }
.tree-node.drop { outline: 1px dashed var(--accent); }
.tree-children { overflow: hidden; }
.ide-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ide-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--raise); scrollbar-width: none; min-height: 37px; }
.ide-tab { display: flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; height: 36px; border-right: 1px solid var(--line); font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; position: relative; }
.ide-tab.on { background: var(--panel-solid); color: var(--text); }
.ide-tab.on::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); }
.ide-tab svg { width: 14px; height: 14px; }
.ide-tab .x { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.ide-tab .x:hover { background: var(--raise-2); }
.ide-tab.dirty .x::before { content: '●'; font-size: 11px; }
.ide-tab.dirty .x svg { display: none; }
.ide-tab.dirty:hover .x::before { content: none; }
.ide-tab.dirty:hover .x svg { display: block; }
.ide-bar { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--line); font: 12px var(--font-mono); color: var(--muted); min-height: 38px; }
.ide-bar .path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ide-editor { flex: 1; min-height: 0; position: relative; }
.ide-welcome { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; color: var(--muted); padding: 20px; }
.ide-welcome .shortcuts { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin-top: 10px; font-size: 12.5px; text-align: left; }
.ide-term { border-top: 1px solid var(--line); height: 190px; display: flex; flex-direction: column; min-height: 0; }
.ide-term.closed { height: 32px; }
.ide-term-head { display: flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; height: 32px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); flex: none; }
.ide-term-head b { color: var(--text); font-weight: 600; }
.ide-term-out { flex: 1; overflow: auto; padding: 6px 12px; font: 12px/1.55 var(--font-mono); white-space: pre-wrap; background: var(--code-bg); color: var(--text-2); }
.ide-term-out .err { color: var(--bad); }
.ide-term-out .sys { color: var(--faint); }
.ide-term-in { display: flex; align-items: center; gap: 8px; padding: 4px 12px; border-top: 1px solid var(--line); background: var(--code-bg); font: 12.5px var(--font-mono); }
.ide-term-in span { color: var(--accent); }
.ide-term-in input { flex: 1; border: 0; background: transparent; outline: none; font: inherit; }
@media (max-width: 1100px) { .ide, .ide.with-ai { grid-template-columns: 200px minmax(0, 1fr); } .ide-ai { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100vw); z-index: 50; background: var(--panel-solid); box-shadow: var(--shadow); } }
@media (max-width: 760px) { .ide, .ide.with-ai { grid-template-columns: minmax(0, 1fr); height: auto; } .ide-tree { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); } .ide-editor { height: 60vh; } }

/* assistente Claude */
.ide-ai { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ai-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); }
.ai-head b { flex: 1; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.ai-head b svg { width: 16px; height: 16px; color: var(--accent); }
.ai-msgs { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.ai-msg { max-width: 100%; animation: itemIn .3s var(--ease-out) both; }
.ai-msg.user { align-self: flex-end; background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 8px 12px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; max-width: 88%; }
.ai-msg.bot { color: var(--text-2); line-height: 1.6; }
.ai-msg.bot p { margin: 0 0 .6em; }
.ai-msg.bot ul { margin: 0 0 .6em; padding-left: 18px; }
.ai-msg.bot .codeblock { margin: 8px 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ai-msg.bot .codeblock .cb-head { display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 10px; background: var(--raise-2); font: 11.5px var(--font-mono); color: var(--muted); }
.ai-msg.bot .codeblock .cb-head span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-msg.bot .codeblock pre { margin: 0; padding: 10px; background: var(--code-bg); overflow: auto; font: 12px/1.55 var(--font-mono); max-height: 340px; }
.ai-msg.bot.typing::after { content: '▋'; animation: blink 1s infinite; color: var(--accent); }
.ai-suggest { display: flex; flex-direction: column; gap: 6px; }
.ai-suggest button { text-align: left; border: 1px solid var(--line); background: var(--raise); border-radius: var(--r); padding: 8px 10px; cursor: pointer; font-size: 12.5px; color: var(--text-2); }
.ai-suggest button:hover { border-color: var(--accent-line); color: var(--text); }
.ai-input { border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ai-input textarea { min-height: 64px; max-height: 200px; resize: none; }
.ai-input .row { justify-content: space-between; }

/* mensagens editáveis */
.msg-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
@media (max-width: 1000px) { .msg-edit { grid-template-columns: minmax(0, 1fr); } }
.msg-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.msg-item:first-child { padding-top: 0; }
.msg-item:last-child { border-bottom: 0; }
.msg-item .row { margin-bottom: 8px; }
.msg-item .vars { display: flex; gap: 4px; flex-wrap: wrap; }
.msg-item .vars button { font: 11px var(--font-mono); border: 1px solid var(--line-2); background: var(--raise); color: var(--text-2); border-radius: 5px; padding: 1px 6px; cursor: pointer; }
.msg-item .vars button:hover { border-color: var(--accent); color: var(--accent); }
.wa-preview { position: sticky; top: 70px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #0b141a; box-shadow: var(--shadow); }
.wa-preview .bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1f2c34; color: #e9edef; font-size: 13px; }
.wa-preview .bar .avatar { width: 30px; height: 30px; }
.wa-preview .chat { min-height: 320px; padding: 14px 12px; background-color: #0b141a; background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px); background-size: 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.wa-bubble { max-width: 88%; padding: 6px 9px 16px; border-radius: 8px; font-size: 13px; line-height: 1.45; color: #e9edef; background: #202c33; position: relative; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px .5px rgba(0,0,0,.2); }
.wa-bubble.me { align-self: flex-end; background: #005c4b; }
.wa-bubble time { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: rgba(233,237,239,.6); }
.wa-bubble .mention { color: #53bdeb; }
.wa-bubble code { background: rgba(0,0,0,.25); }

/* grupos */
.group-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.group-row:last-child { border-bottom: 0; }
.group-row .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--raise-2); color: var(--muted); }
.group-row .toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.tog { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: all .2s; }
.tog svg { width: 13px; height: 13px; }
.tog.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
.tog.on svg { color: var(--accent); }

/* logs */
.logs-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.logs-view { height: calc(100vh - 56px - var(--status) - 260px); min-height: 380px; }
.logs-view.paused { box-shadow: inset 0 0 0 1px var(--warn); }

/* ---------- ouro ---------- */
.gold-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1000px) { .gold-hero { grid-template-columns: minmax(0, 1fr); } }
.balance { position: relative; overflow: hidden; padding: 26px; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--panel); border: 1px solid var(--accent-line); }
.balance .big { font: 700 52px/1 var(--font-display); letter-spacing: -.03em; display: flex; align-items: center; gap: 14px; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.balance .big .coin { font-size: 42px; animation: coinspin 6s linear infinite; }
.balance .sub { color: var(--muted); font-size: 13px; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 14px 0; }
.streak .d { position: relative; border-radius: var(--r); border: 1px solid var(--line-2); padding: 10px 4px 8px; text-align: center; background: var(--raise); transition: transform .2s; }
.streak .d small { display: block; font-size: 10.5px; color: var(--faint); }
.streak .d b { font: 700 15px var(--font-mono); display: flex; align-items: center; justify-content: center; gap: 3px; }
.streak .d b .coin { font-size: 12px; }
.streak .d.done { background: var(--accent-soft); border-color: var(--accent-line); }
.streak .d.done::after { content: '✓'; position: absolute; top: 3px; right: 6px; font-size: 11px; color: var(--accent); font-weight: 700; }
.streak .d.next { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-2px); }
.streak .d.big b { color: var(--accent); }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pack { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--raise); text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; color: inherit; }
.pack:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pack .amt { font: 700 22px var(--font-display); display: flex; align-items: center; gap: 8px; }
.pack .bonus { font-size: 12px; color: var(--ok); }
.pack .price { font: 600 14px var(--font-mono); color: var(--accent); margin-top: auto; }
.tx-amount.pos { color: var(--ok); } .tx-amount.neg { color: var(--bad); }
.coin-burst { position: fixed; z-index: 3000; pointer-events: none; font-size: 22px; animation: burst 1s var(--ease-out) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ---------- planos ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; border-radius: calc(var(--r-lg) + 4px); background: var(--panel); backdrop-filter: blur(var(--blur)); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-4px); }
.plan.hl { border-color: color-mix(in oklab, var(--pc) 60%, transparent); box-shadow: 0 30px 80px -40px var(--pc); }
.plan.hl::before { content: 'Mais escolhido'; position: absolute; top: -11px; left: 22px; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--pc); color: #fff; }
.plan.current { outline: 2px solid var(--pc); outline-offset: 3px; }
.plan .pi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--pc) 18%, transparent); color: var(--pc); }
.plan .pi svg { width: 22px; height: 22px; }
.plan h3 { font-size: 20px; }
.plan .tag { color: var(--muted); font-size: 13px; margin-top: 2px; }
.plan .price { font: 700 30px/1.1 var(--font-display); letter-spacing: -.02em; }
.plan .price small { font: 500 13px var(--font-ui); color: var(--muted); letter-spacing: 0; }
.plan .alt { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--pc); }
.plan .actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare td svg { width: 18px; height: 18px; }
.compare .yes { color: var(--ok); } .compare .no { color: var(--faint); }
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feat { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.feat .demo { height: 150px; border-radius: var(--r); background: var(--code-bg); border: 1px solid var(--line); overflow: hidden; position: relative; font: 11.5px/1.6 var(--font-mono); padding: 10px 12px; color: var(--text-2); }
.feat h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.feat h4 svg { width: 18px; height: 18px; color: var(--accent); }
.feat p { color: var(--muted); font-size: 13px; margin: 0; }
.demo .k { color: #c792ea; } .demo .s { color: #c3e88d; } .demo .f { color: #82aaff; } .demo .c { color: var(--faint); }
.demo .scroll { animation: demoScroll 9s linear infinite; }
@keyframes demoScroll { 0%, 15% { transform: translateY(0) } 85%, 100% { transform: translateY(-50%) } }
.pix { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 640px) { .pix { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.pix-qr { background: #fff; border-radius: 16px; padding: 10px; width: 240px; }
.pix-qr img { width: 100%; display: block; }
.pix .copy { display: flex; gap: 6px; }
.pix .copy input { font: 11.5px var(--font-mono); }
.pix-status { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--raise); font-size: 13px; }

/* ---------- perfil ---------- */
.profile-cover { position: relative; height: 180px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(120deg, var(--accent-soft), color-mix(in oklab, var(--violet) 25%, transparent)); border: 1px solid var(--line); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover .btn { position: absolute; right: 12px; bottom: 12px; }
.profile-id { display: flex; align-items: flex-end; gap: 18px; margin: -46px 0 20px 24px; position: relative; flex-wrap: wrap; }
.profile-id .avatar.lg { width: 104px; height: 104px; font-size: 36px; box-shadow: 0 0 0 5px var(--bg); cursor: pointer; position: relative; }
.profile-id .avatar.lg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='white' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center no-repeat; opacity: 0; transition: opacity .2s; border-radius: 50%; }
.profile-id .avatar.lg:hover::after { opacity: 1; }
.profile-id .t { padding-bottom: 6px; }
.profile-id h1 { display: flex; align-items: center; gap: 8px; }

/* ---------- personalizar ---------- */
.custom { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .custom { grid-template-columns: minmax(0, 1fr); } }
.custom-preview { position: sticky; top: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .15s; position: relative; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: var(--text); }
.swatch.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; }
.swatch.custom input { opacity: 0; position: absolute; inset: 0; cursor: pointer; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.bg-opt { position: relative; height: 82px; border-radius: var(--r); border: 2px solid var(--line-2); cursor: pointer; overflow: hidden; background: var(--raise); display: flex; align-items: flex-end; padding: 8px; font-size: 12px; font-weight: 600; color: var(--text); text-align: left; transition: border-color .2s; }
.bg-opt .pv { position: absolute; inset: 0; opacity: .9; }
.bg-opt span { position: relative; display: flex; align-items: center; gap: 5px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.bg-opt span svg { width: 13px; height: 13px; }
.bg-opt.on { border-color: var(--accent); }
.bg-opt.locked::after { content: '💎'; position: absolute; top: 6px; right: 8px; font-size: 13px; }
.range-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px; gap: 12px; align-items: center; padding: 8px 0; }
.range-row label { font-size: 13px; color: var(--text-2); }
.range-row output { font: 12px var(--font-mono); color: var(--muted); text-align: right; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.mini-app { border-radius: var(--r-lg); border: 1px solid var(--line-2); overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.mini-app .mtop { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel); }
.mini-app .mtop i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mini-app .mbody { display: grid; grid-template-columns: 34px 1fr; min-height: 260px; }
.mini-app .mrail { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.mini-app .mrail i { width: 16px; height: 16px; border-radius: 5px; background: var(--line-2); }
.mini-app .mrail i.on { background: var(--accent); }
.mini-app .mcontent { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mini-app .mstatus { height: 16px; background: var(--accent); }

/* ---------- documentação ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.docs-toc { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; max-height: calc(100vh - 140px); overflow: auto; }
.docs-toc a { color: var(--muted); padding: 4px 10px; border-radius: 6px; border-left: 2px solid transparent; }
.docs-toc a.h3 { padding-left: 22px; font-size: 12.5px; }
.docs-toc a:hover, .docs-toc a.on { color: var(--text); background: var(--raise); text-decoration: none; border-left-color: var(--accent); }
.md { max-width: 82ch; line-height: 1.7; }
.md h1 { font-size: 28px; margin: 0 0 14px; }
.md h2 { font-size: 21px; margin: 34px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.md h3 { font-size: 16px; margin: 24px 0 8px; }
.md p, .md li { color: var(--text-2); }
.md ul, .md ol { padding-left: 22px; }
.md pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; overflow: auto; font-size: 12.5px; line-height: 1.6; position: relative; }
.md pre .copy { position: absolute; top: 6px; right: 6px; }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 12px 0; display: block; overflow: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.md th { background: var(--raise); }
.md blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--raise); border-radius: 0 var(--r) var(--r) 0; }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs-toc { display: none; } }

/* ---------- painel do dono ---------- */
.owner-lock { max-width: 460px; margin: 8vh auto; text-align: center; }
.owner-lock .ic { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.owner-lock .ic svg { width: 36px; height: 36px; }
.sys-bars .bar { margin: 6px 0 12px; }
.plan-editor .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
@media (max-width: 640px) { .plan-editor .feats { grid-template-columns: minmax(0, 1fr); } }
.key-code { font: 600 13px var(--font-mono); letter-spacing: .03em; }
.ide-welcome .shortcuts kbd { justify-self: end; }
.ide-bar svg { width: 14px; height: 14px; vertical-align: -2px; }
.ide-bar .path { display: flex; align-items: center; gap: 6px; }
@media (max-width: 600px) { .daily-strip .grow { min-width: 100%; order: 2; } .daily-strip .btn { order: 3; width: 100%; } }
.ide-bar { overflow-x: auto; scrollbar-width: none; }
.ide-bar::-webkit-scrollbar { display: none; }
.ide-bar .btn { flex: none; }
.ide.with-ai .ide-bar .path { min-width: 60px; }
.ai-msg.bot .codeblock .cb-head { flex-wrap: wrap; row-gap: 4px; }
.ai-msg.bot .codeblock .cb-head span { flex-basis: 100%; }
.ai-msg.bot .codeblock .cb-head .btn { height: 24px; padding: 0 8px; font-size: 11.5px; }

/* ---------- suporte (chamados) ---------- */
.support { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - 56px - var(--status) - 170px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); backdrop-filter: blur(var(--blur)); }
.sup-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.sup-list-head { padding: 12px; border-bottom: 1px solid var(--line); }
.sup-items { flex: 1; overflow: auto; }
.sup-item { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; color: var(--text-2); transition: background .15s; }
.sup-item:hover { background: var(--raise); }
.sup-item.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.sup-item.unread b { color: var(--text); }
.dot-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.sup-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sup-chat > .empty { margin: auto; }
.sup-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sup-head h3 { font-size: 16px; }
.sup-user { display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--line); background: var(--raise); }
.sup-msgs { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sup-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; animation: itemIn .3s var(--ease-out) both; }
.sup-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.sup-bubble { background: var(--raise-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 9px 13px; min-width: 120px; }
.sup-msg.me .sup-bubble { background: var(--accent-soft); border-color: var(--accent-line); border-radius: 16px 16px 4px 16px; }
.sup-msg.staff:not(.me) .sup-bubble { border-color: var(--accent-line); }
.sup-meta { display: flex; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.sup-meta b { color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.sup-meta b svg { width: 12px; height: 12px; color: var(--accent); }
.sup-meta time { margin-left: auto; color: var(--faint); }
.sup-body { font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.sup-att img { max-width: 280px; max-height: 220px; border-radius: 10px; margin-top: 6px; display: block; border: 1px solid var(--line); }
.sup-sys { align-self: center; font-size: 12px; color: var(--faint); display: flex; gap: 8px; }
.sup-sys span { background: var(--raise); padding: 2px 10px; border-radius: 99px; }
.sup-input { border-top: 1px solid var(--line); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.sup-input textarea { min-height: 54px; resize: none; }
.sup-closed { border-top: 1px solid var(--line); padding: 14px; text-align: center; color: var(--muted); font-size: 13px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.sup-closed svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .support { grid-template-columns: minmax(0, 1fr); height: auto; } .sup-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); } .sup-chat { min-height: 60vh; } .sup-msg { max-width: 92%; } }

/* ---------- loja ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.store-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.store-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.store-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.store-ic.plugin { background: color-mix(in oklab, var(--violet) 16%, transparent); color: var(--violet); }
.store-ic svg { width: 18px; height: 18px; }
.store-desc { margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.store-card .btn-row .grow { flex: 1; }
.like { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; transition: all var(--speed) var(--ease); }
.like svg { width: 14px; height: 14px; }
.like:hover { color: var(--bad); border-color: color-mix(in oklab, var(--bad) 40%, transparent); }
.like.on { color: var(--bad); background: color-mix(in oklab, var(--bad) 12%, transparent); border-color: transparent; }
.like.on svg { fill: currentColor; animation: pop .35s var(--ease-out); }
@keyframes pop { 50% { transform: scale(1.35); } }

/* ---------- agendadas ---------- */
.sched-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); transition: opacity var(--speed); }
.sched-row:last-child { border-bottom: 0; }
.sched-row.off { opacity: .55; }
.sched-row .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--raise-2); color: var(--muted); }
.sched-text { margin: 6px 0; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.wd-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-pick label { cursor: pointer; }
.wd-pick input { position: absolute; opacity: 0; pointer-events: none; }
.wd-pick span { display: inline-block; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; transition: all var(--speed) var(--ease); }
.wd-pick input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.wd-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (max-width: 700px) { .sched-row { grid-template-columns: minmax(0, 1fr); } .sched-row .gi { display: none; } }

/* ---------- indicação ---------- */
.ref-link { display: flex; gap: 8px; }
.ref-link .input { font-family: var(--font-mono); font-size: 13px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.ref-stats div { background: var(--raise); border-radius: var(--r); padding: 12px; }
.ref-stats b { display: block; font-size: 22px; font-family: var(--font-display); }
.ref-stats span { color: var(--muted); font-size: 12px; }
.ref-banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--text); margin-bottom: 14px; font-size: 14px; }
.ref-banner svg { color: var(--accent); width: 18px; height: 18px; flex: none; }
.store-card .row svg { width: 14px; height: 14px; }

/* ---------- carteira ---------- */
.wallet-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.wallet-hero .balance .big { font: 700 44px/1.1 var(--font-display); margin: 6px 0 8px; letter-spacing: -.02em; }
@media (max-width: 900px) { .wallet-hero { grid-template-columns: minmax(0, 1fr); } }
.faded { opacity: .5; }
.price-tag { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-tag .p { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 99px; background: var(--raise-2); }
.price-tag .p.brl { background: color-mix(in oklab, var(--ok) 14%, transparent); color: var(--ok); }
.price-tag .p.gold { background: color-mix(in oklab, #f5b301 16%, transparent); color: #d99b00; }
.price-tag .p.free { color: var(--muted); }
.price-tag .p.owned { background: var(--accent-soft); color: var(--accent); }
.price-tag .coin { width: 13px; height: 13px; }
.store-ic.bot { background: color-mix(in oklab, var(--ok) 16%, transparent); color: var(--ok); }
.buy-opts { display: grid; gap: 10px; }
.buy-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.buy-opt:hover:not([disabled]) { border-color: var(--accent-line); transform: translateY(-1px); }
.buy-opt[disabled] { opacity: .5; cursor: not-allowed; }
.buy-opt .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--raise-2); flex: none; }
.buy-opt b { display: block; font-size: 17px; }
.buy-opt span { color: var(--muted); font-size: 13px; }
.bot-tabs-wrap { position: sticky; top: 0; z-index: 5; margin: 0 -28px 20px; }
.bot-tabs-wrap > .bot-tabs { position: static; margin: 0; }
@media (max-width: 820px) { .bot-tabs-wrap { margin: 0 -16px 20px; top: 0; } }

/* ---------- sistemas ---------- */
.sys-hero { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background:
  radial-gradient(600px 220px at 0% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%),
  radial-gradient(500px 200px at 100% 100%, color-mix(in oklab, var(--violet) 18%, transparent), transparent 70%), var(--panel); }
.sys-hero h1 { margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.sys-hero p { margin: 0; max-width: 720px; color: var(--text-2); }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.sys-grid.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sys-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.sys-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--sc), color-mix(in oklab, var(--sc) 30%, transparent)); }
.sys-card::after { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; top: -80px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--sc) 22%, transparent), transparent 70%); pointer-events: none; }
.sys-card:hover { border-color: color-mix(in oklab, var(--sc) 55%, transparent); transform: translateY(-2px); box-shadow: 0 12px 30px -18px var(--sc); }
.sys-card.locked { opacity: .72; }
.sys-top { display: flex; gap: 12px; align-items: center; }
.sys-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--sc); background: color-mix(in oklab, var(--sc) 16%, transparent); border: 1px solid color-mix(in oklab, var(--sc) 30%, transparent); }
.sys-ic svg { width: 22px; height: 22px; }
.sys-desc { margin: 0; flex: 1; }
.sys-hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.sys-hl li { display: flex; gap: 6px; align-items: center; }
.sys-hl svg { width: 12px; height: 12px; color: var(--sc); }
.sys-card .btn-row .grow { flex: 1; }
.sys-cmds { display: grid; gap: 4px; max-height: 46vh; overflow: auto; padding-right: 6px; }
.sys-cmds > div { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.sys-cmds code { flex: none; color: var(--sc); }
.sys-set { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.sys-detail h4 { display: flex; gap: 6px; align-items: center; margin: 0 0 8px; }
.sys-inst { border-left: 3px solid var(--sc); }
.sys-inst.off { opacity: .6; }
.bg-opt > span:last-child { text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.6); }

/* ---------- conquistas ---------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ach { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--raise); filter: grayscale(1); opacity: .55; transition: transform var(--speed) var(--ease); }
.ach.on { filter: none; opacity: 1; border-color: color-mix(in oklab, var(--accent) 40%, transparent); background: color-mix(in oklab, var(--accent) 8%, var(--raise)); }
.ach.on:hover { transform: translateY(-2px); }
.ach-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.ach-ic svg { width: 18px; height: 18px; }

/* ---------- WhatsApp de teste ---------- */
.sim { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.sim-side { position: sticky; top: 80px; }
.sim-phone { display: flex; flex-direction: column; height: min(78vh, 760px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0b141a; box-shadow: var(--shadow); }
[data-theme=light] .sim-phone { background: #efeae2; }
.sim-head { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: #202c33; color: #e9edef; }
[data-theme=light] .sim-head { background: #008069; color: #fff; }
.sim-head b { display: block; font-size: 15px; }
.sim-head span.small { opacity: .75; }
.sim-av { width: 38px; height: 38px; border-radius: 50%; background: #6b7c85; display: grid; place-items: center; color: #fff; }
.sim-av svg { width: 20px; height: 20px; }
.sim-body { flex: 1; overflow-y: auto; padding: 14px 6%; display: flex; flex-direction: column; gap: 4px; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.4px); background-size: 18px 18px; }
[data-theme=light] .sim-body { background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.4px); }
.sim-msg { display: flex; }
.sim-msg.me { justify-content: flex-end; }
.sim-b { max-width: min(78%, 520px); padding: 6px 9px 18px; border-radius: 10px; background: #202c33; color: #e9edef; font-size: 14px; line-height: 1.42; position: relative; word-wrap: break-word; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.sim-msg.me .sim-b { background: #005c4b; }
[data-theme=light] .sim-b { background: #fff; color: #111b21; }
[data-theme=light] .sim-msg.me .sim-b { background: #d9fdd3; }
.sim-msg.bare .sim-b { background: transparent; box-shadow: none; }
.sim-b img, .sim-b video { display: block; max-width: 100%; max-height: 340px; border-radius: 7px; margin-bottom: 4px; }
.sim-b img.sim-sticker { width: 170px; height: 170px; object-fit: contain; }
.sim-b audio { width: 260px; max-width: 100%; }
.sim-b code { background: rgba(0,0,0,.25); padding: 0 4px; border-radius: 4px; }
.sim-t { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; opacity: .6; }
.sim-tag { display: inline-block; font-size: 11px; opacity: .7; margin-bottom: 3px; font-style: italic; }
.sim-file { display: block; padding: 8px 10px; border-radius: 7px; background: rgba(0,0,0,.18); margin-bottom: 4px; color: inherit; }
.sim-poll { display: grid; gap: 4px; padding: 4px 0; }
.sim-react { align-self: center; font-size: 12px; color: #8696a0; padding: 2px 8px; }
.sim-empty { margin: auto; color: #8696a0; text-align: center; }
.sim-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; background: #202c33; border-radius: 10px; }
[data-theme=light] .sim-typing { background: #fff; }
.sim-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: simdot 1s infinite; }
.sim-typing i:nth-child(2) { animation-delay: .15s; } .sim-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes simdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sim-input { display: flex; gap: 8px; align-items: flex-end; padding: 8px 10px; background: #202c33; }
[data-theme=light] .sim-input { background: #f0f2f5; }
.sim-input .input { resize: none; min-height: 40px; max-height: 140px; border-radius: 20px; padding: 9px 14px; }
.sim-field { display: flex; flex-direction: column; gap: 4px; }
.sim-chip { font-size: 12px; color: #8696a0; padding: 0 6px; }
@media (max-width: 900px) { .sim { grid-template-columns: minmax(0, 1fr); } .sim-side { position: static; } }

/* ---------- página pública do bot ---------- */
.pub { max-width: 980px; margin: 0 auto; padding: 40px 18px 30px; position: relative; z-index: 1; }
.pub-hero { display: flex; gap: 24px; align-items: flex-start; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background:
  radial-gradient(500px 200px at 0% 0%, color-mix(in oklab, var(--accent) 25%, transparent), transparent 70%), var(--panel); backdrop-filter: blur(var(--blur)); margin-bottom: 18px; }
.pub-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); }
.pub-av { width: 112px; height: 112px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 40px var(--font-display); color: var(--accent-ink); background: var(--accent); overflow: hidden; box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 25%, transparent); }
.pub-av img { width: 100%; height: 100%; object-fit: cover; }
.pub-desc { margin: 0; color: var(--text-2); white-space: pre-wrap; max-width: 640px; }
.pub-card { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(var(--blur)); }
.pub-cat { border-top: 1px solid var(--line); padding: 10px 0; }
.pub-cat summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); padding: 4px 0; }
.pub-cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; margin-top: 8px; }
.pub-cmd { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; }
.pub-cmd code { color: var(--accent); flex: none; }
.pub-cmd span { color: var(--muted); }
.pub-foot { text-align: center; color: var(--faint); font-size: 12.5px; padding: 22px 0 0; }
@media (max-width: 640px) { .pub-hero { flex-direction: column; align-items: center; text-align: center; } .pub-hero .row, .pub-hero .btn-row { justify-content: center; } }

/* ---------- construtor de fluxos ---------- */
.flow { display: grid; gap: 8px; }
.flow-step { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 10px; display: grid; gap: 6px; background: var(--raise); cursor: grab; }
.flow-step.dragging { opacity: .4; }
.flow-head { display: flex; gap: 8px; align-items: center; }
.flow-head svg { width: 16px; height: 16px; color: var(--accent); }
.flow-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--font-mono); background: var(--accent-soft); color: var(--accent); }
.flow-add { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--line); }
.theme-pv { position: relative; height: 70px; border-radius: 10px; overflow: hidden; background: var(--b); border: 1px solid var(--line); }
.theme-pv i { position: absolute; border-radius: 50%; filter: blur(14px); opacity: .8; }
.theme-pv i:nth-child(1) { width: 90px; height: 90px; left: -10px; top: -20px; background: var(--c1); }
.theme-pv i:nth-child(2) { width: 80px; height: 80px; right: 20px; bottom: -30px; background: var(--c2); }
.theme-pv i:nth-child(3) { width: 60px; height: 60px; left: 45%; top: 10px; background: var(--c3); opacity: .5; }
.theme-pv span { position: absolute; right: 8px; top: 6px; font: 600 10px var(--font-mono); color: #fff; opacity: .7; text-transform: lowercase; }
.theme-pv::after { content: ''; position: absolute; left: 10px; bottom: 10px; width: 46px; height: 12px; border-radius: 6px; background: var(--a); }
.sim-pre { margin: 2px 0; font: 12.5px/1.35 var(--font-mono); white-space: pre; overflow-x: auto; background: none; padding: 0; }

/* Painel do RPG */
.rpg-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.rpg-big { font: 700 24px/1.15 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* Aba Menus */
.mn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.mn-side { position: sticky; top: 80px; }
.mn-phone { height: min(78vh, 720px); }
.mn-phone.sm { height: min(64vh, 600px); }
.mn-b { max-width: 92% !important; font-size: 13.5px; }
.mn-more { display: block; margin: 6px 0; color: #53bdeb; font-size: 13px; }
.mn-note { margin: 8px 6px; color: #8696a0; }
.mn-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mn-style { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2, rgba(255,255,255,.02)); color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mn-style:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.mn-style.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.mn-style-n { font-weight: 600; font-size: 13px; }
.mn-style-s { font: 11.5px/1.35 var(--font-mono); color: var(--muted); white-space: pre; overflow: hidden; min-height: 46px; }
.mn-style-s .sim-pre { font-size: 11px; }
.mn-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.mn-thumb.empty { display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.03); }
.mn-cats { display: flex; flex-direction: column; gap: 6px; }
.mn-cat { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); }
.mn-cat.off { opacity: .5; }
.mn-emoji { width: 52px; text-align: center; font-size: 18px; padding: 4px; }
.mn-save { position: sticky; bottom: 10px; z-index: 5; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.mn-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); flex-wrap: wrap; }
.mn-item.off { opacity: .55; }
.mn-item-e { font-size: 22px; width: 32px; text-align: center; }
.mn-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mn-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line); background: none; color: inherit; cursor: pointer; text-align: left; }
.mn-tpl:hover { border-color: var(--accent); border-style: solid; }
.mn-tpl svg { color: var(--accent); }
.mn-ed { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.mn-ed-side { position: sticky; top: 0; }
.mn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; user-select: none; }
.mn-chip input { display: none; }
.mn-chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mn-cmds { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 10px; }
.mn-cmd { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.mn-cmd:hover { background: rgba(255,255,255,.04); }
.mn-warn { border-color: color-mix(in srgb, var(--warn, #f59e0b) 50%, var(--line)); }
@media (max-width: 1100px) { .mn-grid, .mn-ed { grid-template-columns: minmax(0, 1fr); } .mn-side, .mn-ed-side { position: static; } }

/* Assistente de criação de bot */
.nb { max-width: 1180px; margin: 0 auto; }
.nb-steps { display: flex; gap: 6px; margin: 4px 0 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.nb-step { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); white-space: nowrap; cursor: default; font-size: 13px; }
.nb-step .nb-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.04); }
.nb-step .nb-dot svg { width: 15px; height: 15px; }
.nb-step.on { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nb-step.on .nb-dot { background: var(--accent); color: var(--accent-ink, #111); }
.nb-step.done { color: var(--text); cursor: pointer; }
.nb-step.done .nb-dot { background: color-mix(in srgb, var(--ok, #22c55e) 22%, transparent); color: var(--ok, #22c55e); }
.nb-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.nb-card { padding: 26px 28px; min-height: 460px; display: flex; flex-direction: column; }
.nb-card h2 { margin: 2px 0 6px; font-size: 26px; letter-spacing: -.01em; }
.nb-count { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.nb-card [data-body] { flex: 1; }
.nb-foot { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.input.lg { font-size: 20px; padding: 14px 16px; height: auto; }
.nb-sugs, .nb-vars { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: inherit; cursor: pointer; font-size: 13px; }
.chip:hover { border-color: var(--accent); }
.nb-drop { width: 190px; height: 190px; border-radius: 50%; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; overflow: hidden; margin: 12px 0 8px; color: var(--muted); transition: border-color .15s; }
.nb-drop:hover { border-color: var(--accent); }
.nb-drop svg { width: 34px; height: 34px; }
.nb-drop.has { border-style: solid; border-color: var(--accent); }
.nb-drop img { width: 100%; height: 100%; object-fit: cover; }
.nb-prefixes { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-pfx { font: 600 15px var(--font-mono); padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: none; color: inherit; cursor: pointer; }
.nb-pfx.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.nb-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.nb-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; }
.nb-mode span { font-size: 12px; color: var(--muted); }
.nb-mode.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.nb-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.nb-styles .mn-style-s { min-height: 60px; }
.nb-sys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.nb-sys-c { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.nb-sys-c .sys-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--sc) 18%, transparent); color: var(--sc); flex: none; }
.nb-sys-c b { display: block; font-size: 14px; }
.nb-sys-c.on { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 9%, transparent); }
.nb-sys-c.locked { opacity: .55; cursor: not-allowed; }
.nb-sys-c:disabled:not(.locked) { cursor: default; }
.nb-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); flex: none; }
.nb-sys-c.on .nb-check { background: var(--sc); border-color: var(--sc); color: #fff; }
.nb-check svg { width: 14px; height: 14px; }
.nb-side { position: sticky; top: 80px; }
.nb-side-t { margin: 0 0 8px 4px; display: flex; gap: 6px; align-items: center; }
.nb-phone { height: min(72vh, 640px); }
.nb-av { overflow: hidden; font-weight: 700; }
.nb-av img { width: 100%; height: 100%; object-fit: cover; }
.nb-stk { display: flex; gap: 10px; align-items: center; padding-right: 14px !important; }
.nb-stk-img { font-size: 46px; line-height: 1; }
.nb-loading, .nb-build { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.nb-orb { width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); animation: nbPulse 1.4s ease-in-out infinite; overflow: hidden; }
.nb-orb svg { width: 44px; height: 44px; }
.nb-orb img { width: 100%; height: 100%; object-fit: cover; }
.nb-orb.spin svg { animation: nbBob 1s ease-in-out infinite; }
.nb-orb.ok { animation: nbPop .5s cubic-bezier(.2,1.6,.4,1); border-radius: 50%; background: color-mix(in srgb, var(--ok, #22c55e) 18%, transparent); color: var(--ok, #22c55e); }
.nb-load-steps { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 13px; }
.nb-load-steps span { display: inline-flex; gap: 6px; align-items: center; opacity: 0; animation: nbIn .4s forwards; }
.nb-load-steps span:nth-child(2) { animation-delay: .25s; } .nb-load-steps span:nth-child(3) { animation-delay: .5s; }
.nb-tasks { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; width: min(420px, 100%); text-align: left; }
.nb-tasks li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; }
.nb-tasks li span { flex: 1; }
.nb-tasks li.run { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.03); }
.nb-tasks li.ok { color: var(--text); }
.nb-st { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.nb-tasks li.run .nb-st { border: 2px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; }
.nb-tasks li.ok .nb-st { background: var(--ok, #22c55e); box-shadow: inset 0 0 0 3px var(--bg); }
.nb-tasks li.warn .nb-st { background: var(--warn, #f59e0b); }
.nb-bar { width: min(420px, 100%); height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.nb-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.nb-new-banner { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
@keyframes nbPulse { 50% { transform: scale(1.06); } }
@keyframes nbBob { 50% { transform: translateY(-4px) rotate(-6deg); } }
@keyframes nbPop { from { transform: scale(.4); opacity: 0; } }
@keyframes nbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) { .nb-main { grid-template-columns: minmax(0, 1fr); } .nb-side { position: static; } .nb-lbl { display: none; } .nb-step.on .nb-lbl { display: inline; } }
@media (prefers-reduced-motion: reduce) { .nb-orb, .nb-orb svg, .nb-load-steps span { animation: none !important; opacity: 1; } }

/* =========================================================
   Celular e tablet (só vale em telas pequenas / toque —
   o layout do computador não muda)
   ========================================================= */

/* toque: sem balões de dica nem efeitos de "hover" que ficam presos depois do toque */
@media (hover: none) {
  #tooltip { display: none !important; }
  a.tab:hover, a.btn:hover, .side-item:hover { text-decoration: none; }
  .bot-card:hover, .store-card:hover, .sys-card:hover, .plan:hover, .pack:hover, .ach.on:hover, .buy-opt:hover:not([disabled]) { transform: none; }
}

@media (max-width: 820px) {
  /* campos com 16px: o iPhone não dá zoom sozinho ao tocar no campo */
  .input, .select, .textarea, .input.code, .textarea.code, .palette-input input, .ide-term-in input,
  .pix .copy input, .ref-link .input { font-size: 16px; }
  .input, .select { height: 42px; }
  .select { background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; }
  .input-group > .btn { height: 34px; }

  /* alvos de toque maiores */
  .btn { height: 40px; }
  .btn.sm { height: 36px; }
  .btn.icon { width: 40px; }
  .btn.icon.sm { width: 36px; }
  .btn.lg { height: 48px; }
  .tab { padding: 12px 14px; }
  .seg-ctl button { min-height: 36px; padding: 7px 12px; }
  .menu { max-width: calc(100vw - 16px); }
  .menu button { padding: 11px 12px; font-size: 14px; }
  .palette-item { padding: 12px 10px; }
  .tog { height: 34px; padding: 0 12px; }
  .chip, .mn-chip, .nb-pfx { min-height: 36px; }
  .like { padding: 7px 12px; }
  .msg-item .vars button { padding: 5px 9px; font-size: 12px; }
  .wd-pick span { padding: 9px 14px; }
  .check input { width: 20px; height: 20px; }
  .tabs-arrow { width: 36px; }

  /* janelas e gavetas respeitam a área segura do aparelho (notch / barra do iPhone) */
  .drawer { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .ide-ai { padding-top: env(safe-area-inset-top, 0px); }

  /* conteúdo que estica a tela */
  .md { min-width: 0; max-width: 100%; }
  .sup-att img { max-width: 100%; }
  .wa-preview { position: static; }
  .pair-code { font-size: 24px; gap: 5px; flex-wrap: wrap; }
  .pair-code span { min-width: 32px; padding: 10px 7px; border-radius: 10px; }
  .pair-code span.dash { padding: 10px 0; }
  .qr-frame { width: min(280px, 100%); }

  /* WhatsApp de teste: o celular aparece primeiro e ocupa a altura da tela */
  .sim > .sim-phone { order: -1; }
  .sim-phone { height: calc(100vh - var(--navh, 58px) - 120px); height: calc(100dvh - var(--navh, 58px) - 120px); min-height: 420px; }
  .sim-body { padding: 12px 10px; }
  .sim-b { max-width: 88%; }
}

@media (max-width: 760px) {
  /* editor de código em coluna: árvore de arquivos em cima (com rolagem), editor e terminal embaixo */
  .ide, .ide.with-ai { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .ide-tree { flex: none; max-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ide-tree-head .btn.icon.sm { width: 34px; height: 34px; }
  .tree-node { padding-top: 7px; padding-bottom: 7px; }
  .ide-main { flex: none; }
  .ide-editor { flex: none; height: 58vh; height: 58dvh; min-height: 320px; }
  .ide-welcome { padding: 16px; }
  .ide-welcome .shortcuts { display: none; }
  .ide-term { flex: none; }
  .ide-tab { height: 40px; }
  .ide-tab .x { width: 26px; height: 26px; }
  .ide-ai { width: 100vw; }
}

@media (max-width: 600px) {
  .view-inner .bot-tabs { margin-left: -14px; margin-right: -14px; padding: 0 14px; }
  .bot-tabs-wrap { margin: 0 -14px 16px; }
  .view-inner .bot-tabs-wrap > .bot-tabs { margin: 0; }

  /* cabeçalhos de página: texto em cima, botões embaixo */
  .page-head { margin-bottom: 16px; gap: 12px; }
  .page-head .t { min-width: 100%; }
  .page-head h1, .hello h1, .sys-hero h1 { font-size: 23px; }
  .hello { gap: 12px; margin-bottom: 16px; }
  .hello .avatar.lg { width: 56px; height: 56px; font-size: 20px; }
  .hello .grow { min-width: 0; flex: 1 1 calc(100% - 70px); }
  .cmd-toolbar > p.grow { flex: 1 1 100%; }
  .cmd-toolbar .input-group { min-width: 0; flex: 1 1 180px; }
  .panel { padding: 16px; }
  .panel-head { flex-wrap: wrap; }
  .panel-foot .btn { flex: 1 1 auto; }
  .sys-hero { padding: 18px 16px; }

  /* cabeçalho do bot mais compacto (aparece em todas as abas) */
  .bot-head { gap: 12px; margin-bottom: 10px; }
  .bot-head .avatar.lg { width: 56px; height: 56px; font-size: 20px; border-radius: 16px; }
  .bot-head .t { min-width: 0; flex: 1 1 calc(100% - 70px); }
  .bot-head h1 { font-size: 22px; gap: 8px; }
  .bot-head .meta { gap: 4px 12px; font-size: 11.5px; margin-top: 4px; }

  /* listas com muitos botões: o texto fica numa linha e as ações descem para a de baixo */
  .list-row:has(> :nth-child(5)) { flex-wrap: wrap; row-gap: 8px; }
  .list-row:has(> :nth-child(5)) > .t { flex: 1 1 calc(100% - 40px); }
  .bot-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; }
  .bot-row .up { grid-column: 2 / -1; text-align: left; }
  .bot-row .up small { display: inline; margin-left: 6px; }

  /* tabelas largas rolam para o lado dentro do quadro (em vez de espremer o texto) */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table:has(thead th:nth-child(5)) { min-width: 600px; }
  .table th, .table td { padding: 10px 12px; }
  .table .key-code { white-space: nowrap; }

  /* janelas viram "folha" que sobe de baixo, com rolagem interna e botões sempre visíveis */
  .modal-back:has(> .modal) { padding: 0; align-items: end; justify-items: stretch; }
  .modal-back > .modal { width: 100%; max-width: 100%; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px - env(safe-area-inset-top, 0px)); border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation-name: sheetIn; }
  .modal-head { padding: 16px 16px 6px; }
  .modal-body { padding: 10px 16px 14px; overscroll-behavior: contain; }
  .modal-foot { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
  .modal-foot .btn { flex: 1 1 auto; }
  .modal-back { padding: 12px; }
  .palette { margin-top: 4vh; }
  .palette-list { max-height: 60vh; max-height: 60dvh; }
  .palette-foot { display: none; }

  /* entrar / cadastro */
  .auth-side { padding: 24px 14px calc(24px + env(safe-area-inset-bottom, 0px)); justify-content: flex-start; }
  .auth-card { padding: 24px 18px; border-radius: 18px; }

  /* criar bot (assistente) */
  .nb-card { padding: 18px 16px; min-height: 0; }
  .nb-card h2 { font-size: 22px; }
  .nb-foot { position: sticky; bottom: 0; z-index: 3; margin: 18px -16px -18px; padding: 12px 16px; background: var(--panel-solid); border-radius: 0 0 var(--r-lg) var(--r-lg); flex-wrap: wrap; }
  .nb-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-sys { grid-template-columns: minmax(0, 1fr); }
  .nb-drop { width: 160px; height: 160px; }
  .input.lg { font-size: 18px; }

  /* comandos e menus */
  .mn-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mn-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mn-phone, .mn-phone.sm { height: min(70vh, 600px); }

  /* ouro */
  .balance { padding: 20px; }
  .balance .big { font-size: 42px; }
  .balance .big .coin { font-size: 34px; }
  .wallet-hero .balance .big { font-size: 36px; }
  .streak { gap: 4px; }
  .streak .d { padding: 8px 2px 6px; }
  .streak .d small { font-size: 9.5px; white-space: nowrap; }
  .streak .d b { font-size: 13px; }
  .ref-stats { gap: 6px; }
  .ref-stats div { padding: 10px 8px; min-width: 0; }
  .ref-stats b { font-size: 18px; overflow-wrap: anywhere; }
  .pix-qr { width: min(240px, 100%); }

  /* perfil */
  .profile-cover { height: 130px; }
  .profile-id { margin: -40px 0 16px 12px; gap: 12px; }
  .profile-id .avatar.lg { width: 84px; height: 84px; font-size: 30px; }

  /* personalizar */
  .range-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 4px 12px; }
  .range-row label { grid-column: 1 / -1; }
  .bg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* suporte */
  .sup-chat:has(> .empty) { min-height: 0; }
  .sup-head { padding: 12px 14px; }
  .sup-msgs { padding: 14px 12px; }
  .sup-input { padding: 10px 12px; }

  /* cards em grade: uma coluna que cabe em qualquer celular */
  .bot-cards, .store-grid, .sys-grid, .sys-grid.compact, .plans, .showcase { grid-template-columns: minmax(0, 1fr); }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-cmds { grid-template-columns: minmax(0, 1fr); }
  .pub-hero { padding: 20px 16px; }
  .pub { padding: 24px 14px 24px; }
  .group-row { gap: 10px; padding: 12px; }
  .group-row .gi { width: 34px; height: 34px; }
}

@media (max-width: 380px) {
  .rail { gap: 0; padding-left: 2px; padding-right: 2px; }
  .rail-btn { min-width: 40px; }
  .rail-avatar { margin: 0 2px; }
  .topbar .gold-chip:not(.primary) span { display: none; }
  .topbar .gold-chip:not(.primary) { width: 38px; padding: 0; }
  .metric { padding: 12px 14px; }
  .metric .v { font-size: 22px; }
  .page-head h1, .hello h1 { font-size: 21px; }
  .btn { padding: 0 12px; }
}

@keyframes sheetIn { from { opacity: .4; transform: translateY(60px); } to { opacity: 1; transform: none; } }

/* Aba Sistemas: novidades/atualizações */
.sys-upd { border-left: 3px solid var(--line); }
.sys-upd.has { border-left-color: var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%), var(--panel); }
.sys-upd-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 16px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
/* Página pública do bot: link pronto para compartilhar */
.pub-share { display: grid; gap: 8px; margin: 4px 0 14px; padding: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: var(--r, 12px); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.pub-share .input { font-size: 13px; }

/* estilos de boas-vindas (aba Grupos) */
.bv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bv-opt { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: var(--r); border: 2px solid var(--line); background: var(--raise); cursor: pointer; color: var(--text); font-weight: 600; font-size: 13px; transition: border-color .2s, transform .2s; }
.bv-opt img { width: 100%; aspect-ratio: 11 / 5; object-fit: cover; border-radius: calc(var(--r) - 4px); background: var(--raise-2); }
.bv-opt:hover { border-color: var(--line-2); }
.bv-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.tema-chip { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); background: linear-gradient(135deg, var(--b) 0 50%, var(--a) 50% 100%); cursor: pointer; }
.tema-chip.on { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .bv-grid { grid-template-columns: repeat(2, 1fr); } }
.tog.off-bot { border-color: color-mix(in oklab, var(--bad, #ef4444) 55%, transparent); color: var(--bad, #ef4444); background: color-mix(in oklab, var(--bad, #ef4444) 10%, transparent); }
.group-row.grp-off .gi, .group-row.grp-off .t > b { opacity: .55; }

/* aba Jogadores */
.jg { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.jg-lista { position: sticky; top: 12px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; }
.jg-busca { padding: 12px; border-bottom: 1px solid var(--line); }
.jg-itens { overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.jg-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; }
.jg-row:hover { background: var(--raise-2); }
.jg-row.on { background: color-mix(in oklab, var(--accent) 12%, transparent); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.jg-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jg-mini { display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.jg-topo { display: flex; align-items: center; gap: 14px; }
.jg-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.jg-kpis > div { flex: 1 1 120px; padding: 10px 12px; border-radius: var(--r); background: var(--raise-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jg-kpis span { font-size: 11.5px; color: var(--muted); }
.jg-kpis b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.jg-form .input, .jg-form .select { height: 34px; }
.jg-form .select.grow { min-width: 180px; flex: 1; }
.jg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.jg-chips .chip { cursor: default; font-size: 12.5px; padding: 3px 10px; }
.jg-pet { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.jg-pet-ic { font-size: 34px; line-height: 1; }
.jg-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.jg-stats > div { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 8px; font-size: 12.5px; }
.jg-stats b { text-align: right; font-size: 12px; }
.jg-bar { height: 8px; border-radius: 99px; background: var(--raise-2); overflow: hidden; }
.jg-bar i { display: block; height: 100%; border-radius: 99px; }
.btn.danger-ghost { color: var(--bad, #ef4444); }
.jg-perigo { border-color: color-mix(in oklab, var(--bad, #ef4444) 30%, var(--line)); }
@media (max-width: 900px) { .jg { grid-template-columns: 1fr; } .jg-lista { position: static; max-height: 360px; } }

/* acesso à REST API na tela de entrar/criar conta (discreto, mas fácil de achar) */
.auth-api { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; margin: 4px 0 14px; background: color-mix(in oklab, var(--accent) 10%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); font-size: 13px; }
.auth-api svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.auth-api p { margin: 0; color: var(--text-2); }
.auth-dev { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); text-decoration: none; border: 1px dashed var(--line-2); transition: color .2s, border-color .2s, background .2s; }
.auth-dev svg { width: 14px; height: 14px; }
.auth-dev:hover { color: var(--text); border-color: var(--accent); border-style: solid; background: color-mix(in oklab, var(--accent) 8%, transparent); }
/* Jogadores: lista de pets da pessoa (ativo + creche + slots) */
.jg-petlista { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.jg-petchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text); font: 600 13px var(--font-ui); cursor: pointer; }
.jg-petchip:hover:not([disabled]) { border-color: var(--accent); }
.jg-petchip.on { border-color: var(--accent); background: var(--accent-soft); cursor: default; }
.jg-petchip.vazio { color: var(--muted); border-style: dashed; cursor: default; font-weight: 500; }
.jg-petnum { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); font-size: 12px; }

/* ---------- código de 6 números (login e perfil) ---------- */
.otp { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 6px 0 4px; }
.otp-sep { width: 10px; height: 3px; border-radius: 3px; background: var(--line); }
.otp-d { width: 48px; height: 60px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel-solid); color: var(--text); text-align: center; font: 700 28px/1 var(--font-mono, ui-monospace, monospace); caret-color: var(--accent); transition: border-color .15s, transform .15s, box-shadow .15s; }
.otp-d:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-2px); }
.otp-d.cheio { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); background: linear-gradient(180deg, var(--panel-solid), var(--accent-soft)); }
.otp.treme { animation: otp-treme .32s; }
.otp.treme .otp-d { border-color: var(--bad, #ef4444); }
@keyframes otp-treme { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@media (max-width: 420px) { .otp { gap: 5px; } .otp-d { width: 40px; height: 52px; font-size: 24px; border-radius: 12px; } .otp-sep { width: 6px; } }
.otp-tela { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.otp-tela h2 { margin: 6px 0 0; font-size: 22px; }
.otp-tela .para { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.otp-tela .para b { color: var(--text); }
.otp-selo { position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 4px; }
.otp-selo .otp-ic { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--violet, #7c3aed)); box-shadow: 0 10px 30px -8px var(--accent); }
.otp-selo.whatsapp .otp-ic { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 10px 30px -8px #25d366; }
.otp-selo .otp-ic svg { width: 30px; height: 30px; }
.otp-onda { position: absolute; inset: 10px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: otp-onda calc(2.2s / var(--speed, 1)) ease-out infinite; }
.otp-selo.whatsapp .otp-onda { border-color: #25d366; }
.otp-onda.d2 { animation-delay: calc(1.1s / var(--speed, 1)); }
@keyframes otp-onda { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
.otp-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
.otp-acoes button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 2px 0; }
.otp-acoes button:disabled { color: var(--faint); cursor: default; }
.otp-confiar { margin-top: 12px; }
.otp-dica { margin-top: 10px; font-size: 12px; color: var(--faint); max-width: 320px; }
@media (prefers-reduced-motion: reduce) { .otp-onda { animation: none; } .otp.treme { animation: none; } }
.reg-key { margin: 4px 0 10px; }
.reg-key summary { cursor: pointer; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; list-style: none; }
.reg-key summary::-webkit-details-marker { display: none; }
.reg-key summary svg { width: 16px; height: 16px; color: var(--accent); }
.cod2-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.cod2-op { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: var(--r-lg, 14px); border: 1.5px solid var(--line); background: var(--panel-solid); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.cod2-op:hover:not(:disabled) { border-color: var(--accent-line, var(--accent)); transform: translateY(-1px); }
.cod2-op:disabled { opacity: .55; cursor: not-allowed; }
.cod2-op.on { border-color: var(--accent); background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--panel-solid); }
.cod2-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--violet, #7c3aed)); }
.cod2-op.whatsapp .cod2-ic { background: linear-gradient(135deg, #25d366, #128c7e); }
.cod2-ic svg { width: 21px; height: 21px; }
.cod2-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cod2-tx span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.cod2-tx .cod2-troca { color: var(--accent); text-decoration: underline; cursor: pointer; width: fit-content; }
.cod2-usar { font-size: 12.5px; color: var(--accent); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.cod2-usar svg { width: 14px; height: 14px; }

/* ---------- criar bot: liberar com key ou plano ---------- */
.nb-gate { max-width: 720px; margin: 24px auto; text-align: center; }
.nb-gate h1 { margin: 14px 0 6px; font-size: 26px; }
.nb-gate > p { margin: 0 auto 22px; max-width: 520px; }
.nb-gate-orb { width: 84px; height: 84px; margin: 0 auto; border-radius: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--violet, #7c3aed)); box-shadow: 0 18px 40px -14px var(--accent); transform: rotate(-6deg); }
.nb-gate-orb svg { width: 38px; height: 38px; }
.nb-gate-ops { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; text-align: left; }
@media (max-width: 680px) { .nb-gate-ops { grid-template-columns: 1fr; } }
.nb-gate-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-lg, 16px); border: 1.5px solid var(--accent-line, var(--line)); background: linear-gradient(140deg, var(--accent-soft), transparent 60%), var(--panel); }
.nb-gate-card.alt { border-color: var(--line); background: var(--panel); }
.nb-gate-tag { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.nb-gate-tag svg { width: 18px; height: 18px; color: var(--accent); }
.nb-gate-card .input { font-size: 16px; letter-spacing: .06em; }
.pack.livre { cursor: default; border-style: dashed; }
.pack.livre:hover { transform: none; }
.livre-in { display: flex; align-items: center; gap: 6px; font: 700 22px var(--font-display); }
.livre-in input { width: 100%; min-width: 0; border: 0; border-bottom: 2px solid var(--line); background: none; color: var(--text); font: inherit; padding: 0 0 2px; }
.livre-in input:focus { outline: none; border-color: var(--accent); }
.gold-pix { border-color: var(--accent-line, var(--line)); background: linear-gradient(120deg, var(--accent-soft), transparent 55%), var(--panel); }

/* ---------- aba Menus: menu em carrossel ---------- */
.mc-strip { display: flex; gap: 12px; overflow-x: auto; padding: 12px 2px 8px; scroll-snap-type: x mandatory; }
.mc-card { flex: 0 0 260px; scroll-snap-align: start; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-solid); overflow: hidden; display: flex; flex-direction: column; transition: opacity .2s; }
.mc-card.off { opacity: .45; }
.mc-foto { height: 110px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; color: #fff; background: linear-gradient(135deg, var(--accent), #0f0b1e); }
.mc-foto.menu { background: linear-gradient(135deg, #334155, #0f172a); }
.mc-foto .mc-sec { font-weight: 700; font-size: 17px; }
.mc-foto .small { opacity: .8; }
.mc-corpo { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mc-img { font-size: 12px; display: grid; grid-template-columns: 1fr 1fr; }
.mc-img button { padding: 5px 6px; justify-content: center; white-space: nowrap; }
.mc-botoes { display: flex; flex-direction: column; gap: 6px; }
.mc-bt { display: grid; grid-template-columns: 1fr 1fr auto; gap: 4px; }
.mc-bt .input { padding: 6px 8px; font-size: 12.5px; min-width: 0; }
.mc-bt:has(.mc-auto) { display: block; }
.mc-auto { display: block; text-align: center; padding: 7px; border-radius: 10px; border: 1px dashed var(--line); color: var(--accent); font-size: 13px; font-weight: 600; }

/* ---------- tela "confirme seu e-mail" (trava o painel) ---------- */
.ev-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.ev-card { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.ev-card h1 { margin: 8px 0 0; font-size: 23px; line-height: 1.25; }
.ev-card > p { margin: 0 0 12px; font-size: 14px; }
.ev-card .btn.block { width: 100%; margin-top: 6px; }
.ev-lista { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 12.5px; color: var(--muted); }
.ev-lista li { position: relative; padding-left: 23px; }
.ev-lista svg { position: absolute; left: 0; top: 2px; width: 15px; height: 15px; color: var(--accent); }
.otp-acoes button { display: inline-flex; align-items: center; gap: 5px; }
.otp-acoes button svg { width: 15px; height: 15px; }

/* ---------- aba Tickets do bot ---------- */
.tkp-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.tkp-met { margin: 0; }
.tkp-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .tkp-grid { grid-template-columns: 1fr; } }
.tkp-lista { display: flex; flex-direction: column; overflow: hidden; }
.tkp-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.tkp-item:hover { background: var(--accent-soft); }
.tkp-item.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.tkp-item .grow { display: flex; flex-direction: column; }
.tkp-n { font: 700 15px var(--font-display); color: var(--muted); min-width: 38px; }
.tkp-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tkp-rank { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.tkp-rank div { display: flex; justify-content: space-between; }
.tkp-kv { margin: 0 0 12px; }
.tkp-conversa { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--raise, var(--panel-solid)); border: 1px solid var(--line); }
.tkp-sis { align-self: center; font-size: 12px; color: var(--muted); }
.tkp-m { max-width: 80%; display: flex; flex-direction: column; gap: 2px; }
.tkp-m.atendente { align-self: flex-end; align-items: flex-end; }
.tkp-b { padding: 8px 12px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.tkp-m.atendente .tkp-b { background: var(--accent-soft); border-color: var(--accent-line, var(--line)); }
.tkp-b img { display: block; max-width: 240px; max-height: 200px; border-radius: 8px; margin-bottom: 4px; }
.tkp-resp { display: flex; gap: 8px; margin-top: 12px; }
.tkp-resp .input { flex: 1; }

/* ===== Vitrine de grupos (/grupos e /vitrine) ===== */
.vt-hero { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vt-abas { margin-bottom: 12px; }
.vt-busca { display: flex; gap: 8px; margin-bottom: 10px; }
.vt-busca .input { flex: 1; min-width: 0; }
.vt-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.vt-chip { --c: var(--accent); flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--text-2); font-size: 12.5px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background var(--speed, .2s), border-color var(--speed, .2s); }
.vt-chip:hover { border-color: var(--c); }
.vt-chip.on { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); color: var(--text); }
.vt-chip b { font-size: 11px; opacity: .7; font-weight: 600; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vt-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.vt-card.destaque { border-color: color-mix(in srgb, #f59e0b 60%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, #f59e0b 25%, transparent); }
.vt-fita { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: #f59e0b; color: #1a1205; display: inline-flex; gap: 4px; align-items: center; }
.vt-fita svg { width: 12px; height: 12px; }
.vt-topo { display: flex; gap: 10px; align-items: center; min-width: 0; }
.vt-id { min-width: 0; flex: 1; }
.vt-id b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.vt-cat { color: var(--text-2); }
.vt-foto { flex: none; width: 54px; height: 54px; border-radius: 14px; overflow: hidden; background: var(--raise-2); display: grid; place-items: center; font-size: 24px; border: 1px solid var(--line); }
.vt-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-foto.sm { width: 42px; height: 42px; border-radius: 11px; font-size: 18px; }
.vt-foto.lg { width: 96px; height: 96px; border-radius: 22px; font-size: 38px; }
.vt-ok { display: inline-flex; color: var(--ok); vertical-align: -2px; }
.vt-ok svg { width: 15px; height: 15px; }
.vt-desc { margin: 0; font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vt-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.vt-tags span { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--raise-2); color: var(--muted); }
.vt-regras { font-size: 12px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.vt-acoes { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.vt-acoes .vt-entrar { flex: 1; justify-content: center; }
.vt-meu { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.vt-meu .grow { min-width: 160px; }
.vt-aviso { margin-top: 16px; }
.vt-form .vt-form-foto { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.vt-pub { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.vt-pub-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 18px; }
.vt-marca { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
@media (max-width: 560px) {
  .vt-grid { grid-template-columns: 1fr; }
  .vt-hero .btn { width: 100%; justify-content: center; }
}

/* ===== Mural de novidades ===== */
.mu-post { --c: var(--accent); display: flex; gap: 12px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--raise); }
.mu-post.novo { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); background: color-mix(in srgb, var(--c) 7%, var(--raise)); }
.mu-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.mu-ic svg { width: 17px; height: 17px; }
.mu-corpo { min-width: 0; flex: 1; }
.mu-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.mu-tipo { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--c); }
.mu-fix { font-size: 11px; color: var(--muted); display: inline-flex; gap: 3px; align-items: center; }
.mu-fix svg { width: 11px; height: 11px; }
.mu-novo { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--c); color: #fff; }
.mu-post h4 { margin: 0 0 4px; font-size: 14.5px; }
.mu-post p { margin: 0; font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.mu-post a { color: var(--accent); }
.mu-lista { max-width: 760px; }
.ow-vt-top { display: flex; gap: 10px; align-items: center; }
.ow-mu { display: flex; flex-direction: column; gap: 6px; }
.vt-marca img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.vt-card.destaque .vt-id { padding-right: 82px; }
.vt-regras summary { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; list-style: none; }
.vt-regras summary::-webkit-details-marker { display: none; }
.vt-regras svg { width: 13px; height: 13px; }
.vt-regras p { margin: 4px 0 0; }
.vt-busca .input-group { flex: 1; min-width: 0; }
.vt-aviso { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--raise); font-size: 13px; color: var(--text-2); }
.vt-aviso > svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.vt-aviso ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 560px) { .vt-busca { flex-wrap: wrap; } .vt-busca .input-group, .vt-busca .btn { flex-basis: 100%; justify-content: center; } }
.ow-vt > p svg { width: 14px; height: 14px; vertical-align: -2px; }
