/* ==========================================================================
   LUNARIS APPS — sistema visual "Órbita"
   Linguagem: estrela de quatro pontas, órbitas finas, caixa-alta espaçada,
   brilho rosa-lunar. Dois temas: Noite (padrão) e Mármore (claro).
   ========================================================================== */
:root {
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-serif: var(--font-display);
  --r-xs: 6px; --r-sm: 9px; --r-md: 11px; --r-lg: 14px; --r-xl: 18px; --r-pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .16s; --t: .28s; --t-slow: .6s;
  --max: 1200px; --gutter: clamp(16px, 4vw, 40px);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .25);
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .55), 0 2px 6px rgb(0 0 0 / .25);
  --shadow-lg: 0 30px 80px -24px rgb(0 0 0 / .7);
}
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #050507; --bg-2: #090B13; --surface: #0E1019; --surface-2: #141622; --surface-3: #1C1F2E;
  --line: rgb(255 255 255 / .08); --line-2: rgb(255 255 255 / .14);
  --text: #F7F7FA; --text-2: #C4C5D3; --muted: #9293A5; --faint: #74768C;
  --pink: #BE93FF; --pink-2: #A874FF; --pink-3: #7024E8; --lilac: #AFDDFF; --ink-on-pink: #ffffff;
  --glow: rgb(155 54 255 / .42); --glow-soft: rgb(155 54 255 / .15);
  --ok: #6ee7b7; --ok-bg: rgb(110 231 183 / .12); --warn: #fcd34d; --warn-bg: rgb(252 211 77 / .12);
  --err: #fca5a5; --err-bg: rgb(252 165 165 / .12); --info: #a5b4fc; --info-bg: rgb(165 180 252 / .12);
  --grad: linear-gradient(180deg, #A24BFF 0%, #7024E8 100%);
  --grad-text: linear-gradient(#F7F7FA, #F7F7FA);
  --sky: radial-gradient(1000px 480px at 88% -12%, rgb(112 36 232 / .12), transparent 65%);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F5F9; --bg-2: #EFEDF4; --surface: #ffffff; --surface-2: #F8F7FB; --surface-3: #EFEDF4;
  --line: rgb(20 15 25 / .09); --line-2: rgb(20 15 25 / .16);
  --text: #12111A; --text-2: #3A3848; --muted: #626478; --faint: #85869A;
  --pink: #6D28D9; --pink-2: #5B21B6; --pink-3: #4C1D95; --lilac: #1F6FA8; --ink-on-pink: #ffffff;
  --glow: rgb(112 36 232 / .28); --glow-soft: rgb(112 36 232 / .10);
  --ok: #047857; --ok-bg: rgb(4 120 87 / .09); --warn: #92400e; --warn-bg: rgb(217 119 6 / .12);
  --err: #b91c1c; --err-bg: rgb(185 28 28 / .08); --info: #4338ca; --info-bg: rgb(67 56 202 / .08);
  --grad: linear-gradient(180deg, #8A3DF0 0%, #6D28D9 100%);
  --grad-text: linear-gradient(#12111A, #12111A);
  --sky: none;
  --shadow: 0 12px 32px -14px rgb(40 20 50 / .22), 0 2px 6px rgb(40 20 50 / .06);
  --shadow-lg: 0 30px 80px -30px rgb(40 20 50 / .3);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); background-image: var(--sky); background-attachment: fixed; color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--pink) 50%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--pink); color: var(--ink-on-pink); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--pink); color: var(--ink-on-pink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; transition: top var(--t); }
.skip-link:focus { top: 12px; }
.noscript { padding: 40px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, .mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .9em; }
code { background: var(--surface-3); padding: .12em .45em; border-radius: 6px; }
kbd { font: 600 .82em var(--font-body); padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); }

/* ---------- utilitários ---------- */
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; gap: var(--gap, 12px); align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grid { display: grid; gap: var(--gap, 20px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .875rem; } .tiny { font-size: .78rem; }
.center { text-align: center; } .nowrap { white-space: nowrap; } .grow { flex: 1; }
.gradient-text { color: inherit; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .74rem/1 var(--font-display); letter-spacing: .32em; text-transform: uppercase; color: var(--pink); }
.eyebrow::before { content: ''; width: 11px; height: 11px; background: currentColor; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
.divider-star { display: flex; align-items: center; gap: 14px; color: var(--pink); margin: 28px 0; }
.divider-star::before, .divider-star::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.hidden { display: none !important; }

/* ---------- botões ---------- */
.btn { --b-bg: var(--surface-2); --b-fg: var(--text); --b-line: var(--line-2); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid var(--b-line); background: var(--b-bg); color: var(--b-fg); font: 600 .95rem/1 var(--font-display); letter-spacing: -.005em; cursor: pointer; text-decoration: none; transition: transform var(--t-fast) var(--ease), background var(--t), border-color var(--t), box-shadow var(--t), opacity var(--t); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:hover { color: var(--b-fg); border-color: color-mix(in srgb, var(--pink) 45%, var(--b-line)); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { --b-bg: var(--grad); --b-fg: var(--ink-on-pink); --b-line: transparent; box-shadow: 0 8px 26px -10px var(--glow), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn.primary:hover { box-shadow: 0 14px 36px -10px var(--glow), inset 0 1px 0 rgb(255 255 255 / .45); }
.btn.primary::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; transition: background-position .8s var(--ease); pointer-events: none; }
.btn.primary:hover::after { background-position: -20% 0; }
.btn.ghost { --b-bg: transparent; }
.btn.subtle { --b-bg: transparent; --b-line: transparent; color: var(--text-2); }
.btn.subtle:hover { background: var(--surface-2); }
.btn.danger { --b-bg: var(--err-bg); --b-fg: var(--err); --b-line: color-mix(in srgb, var(--err) 35%, transparent); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn.icon { width: 44px; padding: 0; }
.btn.icon.sm { width: 36px; }
.btn .spinner { width: 16px; height: 16px; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--b-fg) transparent var(--b-fg) transparent; animation: spin .8s linear infinite; }
.link-btn { background: none; border: 0; padding: 0; color: var(--pink); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- formulários ---------- */
.field { display: grid; gap: 7px; }
.field > label, .label { font-weight: 600; font-size: .92rem; color: var(--text); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .error { font-size: .84rem; color: var(--err); display: flex; gap: 6px; align-items: flex-start; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); transition: border-color var(--t), box-shadow var(--t), background var(--t); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239b92a6' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--pink) 30%, var(--line-2)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--glow-soft); background: var(--surface); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--err); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; min-height: 46px; }
.input-prefix { display: flex; align-items: center; padding: 0 12px; background: var(--surface-3); border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); color: var(--muted); font-weight: 600; }
.input-prefix + .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.color-field { display: flex; gap: 10px; align-items: center; }
.color-field input[type=color] { width: 46px; height: 46px; padding: 3px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--pink); margin-top: 2px; flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 26px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background var(--t); flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform var(--t) var(--ease-spring), background var(--t); }
.switch input:checked + .track { background: var(--pink); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--pink); outline-offset: 3px; }
.choice-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.choice { position: relative; display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color var(--t), box-shadow var(--t), transform var(--t-fast); }
.choice:hover { border-color: color-mix(in srgb, var(--pink) 45%, var(--line-2)); }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 3px var(--glow-soft), var(--shadow); }
.choice:has(input:focus-visible) { outline: 2px solid var(--pink); outline-offset: 3px; }
.choice-check { padding-right: 42px; }
.choice-check::after { content: ''; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); transition: background var(--t-fast), border-color var(--t-fast); }
.choice-check:has(input:checked)::after { border-color: var(--pink); background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d0f1a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.choice.is-owned { opacity: .55; cursor: not-allowed; }
.choice-check .small { font-size: .8rem; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.checkout-summary > h3 { margin-bottom: 4px !important; }
/* Formulário do Mercado Pago: as classes dele mudam, então só a estrutura é usada. Se mudar, ele continua funcionando. */
.card-pay .mp-card-box [class*=button-container], .card-pay .mp-card-box [class*=fade-wrapper], .card-pay .mp-card-box form button { width: 100% !important; max-width: none !important; }
.card-pay .mp-card-box form > div:first-child > div:nth-child(3) { margin-bottom: 20px; }
.choice strong { font-family: var(--font-display); }
.choice .tag { position: absolute; top: -10px; right: 12px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.pw-rules { display: grid; gap: 4px; font-size: .82rem; margin-top: 4px; }
.pw-rules li { list-style: none; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules { padding: 0; margin: 0; }

/* ---------- superfícies ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-sm); }
.card.glass { background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(16px) saturate(1.2); }
.card.hover { transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t); }
.card.hover:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pink) 30%, var(--line)); box-shadow: var(--shadow); }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 1.12rem; }
.halo { position: relative; isolation: isolate; }
.halo::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, color-mix(in srgb, var(--pink) 70%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--lilac) 60%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font: 600 .75rem/1.2 var(--font-display); letter-spacing: .02em; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.pink { background: var(--glow-soft); color: var(--pink); border-color: color-mix(in srgb, var(--pink) 30%, transparent); }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.err { background: var(--err-bg); color: var(--err); border-color: transparent; }
.badge.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); position: relative; flex: none; }
.status.online .dot { background: var(--ok); }
.status.online .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2s var(--ease) infinite; }
.status.starting .dot, .status.reconnecting .dot, .status.queued .dot, .status.stopping .dot { background: var(--warn); animation: blink 1.2s ease-in-out infinite; }
.status.error .dot, .status.suspended .dot { background: var(--err); }
.callout { text-align: left; display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: .93rem; }
.callout svg { flex: none; margin-top: 2px; }
.callout.info { background: var(--info-bg); border-color: transparent; }
.callout.ok { background: var(--ok-bg); border-color: transparent; }
.callout.warn { background: var(--warn-bg); border-color: transparent; }
.callout.err { background: var(--err-bg); border-color: transparent; }
.callout p:last-child { margin: 0; }
.callout strong { display: block; margin-bottom: 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font: 600 .75rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--surface-2); }
.kpi { display: grid; gap: 6px; }
.kpi .value { font: 600 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.kpi .label { font-size: .82rem; color: var(--muted); }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 44px 20px; color: var(--muted); }
.empty .art { width: 88px; height: 88px; color: var(--pink); opacity: .9; }
.empty h3 { color: var(--text); margin: 4px 0 0; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 600 1.02rem var(--font-display); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 1.5rem; color: var(--pink); transition: rotate var(--t) var(--ease); }
details.faq[open] summary::after { rotate: 45deg; }
details.faq .answer { padding: 0 0 18px; color: var(--text-2); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { flex: none; border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: var(--r-pill); font: 600 .88rem var(--font-display); cursor: pointer; text-decoration: none; transition: background var(--t), color var(--t); }
.tabs [aria-selected="true"], .tabs .active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width var(--t-slow) var(--ease); }

/* ---------- carregamento ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); min-height: 14px; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 6%, transparent), transparent); translate: -100% 0; animation: shimmer 1.4s infinite; }
.moon-loader { display: grid; place-items: center; gap: 14px; padding: 60px 0; color: var(--muted); }
.moon-loader .moon { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset -12px 0 0 0 var(--pink); animation: moon 1.6s var(--ease) infinite; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--pink); animation: spin .8s linear infinite; }

/* ---------- toasts e diálogos ---------- */
.toasts { position: fixed; z-index: 900; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease-spring); font-size: .93rem; }
.toast.leaving { animation: toast-out .25s var(--ease) forwards; }
.toast .ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.toast.ok .ico { background: var(--ok-bg); color: var(--ok); } .toast.err .ico { background: var(--err-bg); color: var(--err); } .toast.info .ico { background: var(--info-bg); color: var(--info); } .toast.warn .ico { background: var(--warn-bg); color: var(--warn); }
.toast strong { display: block; font-family: var(--font-display); }
dialog.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.modal[open] { animation: modal-in .32s var(--ease-spring); }
dialog.modal::backdrop { background: rgb(5 3 8 / .65); backdrop-filter: blur(4px); }
.modal-body { padding: clamp(20px, 4vw, 30px); display: grid; gap: 16px; }
/* Seletor de emojis: botão 😀 ao lado do campo e janelinha com os emojis do servidor e os normais. */
/* Uma caixa só: emoji em uso à esquerda, texto (cole o ID ou digite) no meio e a carinha cinza à direita, por dentro. */
.ep-wrap { position: relative; display: inline-flex; align-items: center; min-width: 0; width: 100%; }
.ep-wrap > input { flex: 1 1 auto; min-width: 0; width: 100%; padding-right: 44px; }
.ep-wrap.has-now > input { padding-left: 42px; }
.ep-now { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 22px; height: 22px; font-size: 1.15rem; line-height: 1; pointer-events: none; }
.ep-now:empty { display: none; }
.ep-now img { width: 22px; height: 22px; object-fit: contain; }
.ep-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color .15s, transform .15s, background .15s; }
.ep-btn:hover, .ep-btn[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.ep-btn:hover svg { transform: scale(1.08); }
.ep-btn svg { transition: transform .15s; }
.ep-pop { position: fixed; inset: auto; margin: 0; overflow: hidden; color: var(--text); z-index: 2000; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .75); }
.ep-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 2px; }
.ep-title { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 6px 2px 4px; font: 600 .74rem var(--font-body); color: var(--muted); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; margin-bottom: 6px; }
.ep-item { display: grid; place-items: center; height: 36px; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; font-size: 1.35rem; line-height: 1; }
.ep-item:hover, .ep-item:focus-visible { background: var(--surface-2); outline: none; }
.ep-item img { width: 28px; height: 28px; object-fit: contain; }
.ep-tip { margin: 0; }
/* Meu Estoque (lojista): "Categorias da sua loja" com a mesma altura do "Pedido mínimo"; a lista rola por dentro. */
.lj-shop-wrap { container-type: inline-size; }
.lj-shop-setup { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.lj-shopcats { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.lj-shopcat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.lj-shopcats-list { flex: 1 1 auto; min-height: 0; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; margin-right: -6px; }
@container (min-width: 660px) {
  .lj-shop-setup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lj-shopcats { height: 0; min-height: 100%; }
  .lj-shopcats-list { max-height: none; min-height: 110px; }
}
/* "X" de fechar: canto superior direito, continua visível ao rolar a caixa; o título não passa por baixo dele. */
.modal-x { position: sticky; top: 12px; float: right; z-index: 3; margin: 12px 12px -48px 0; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-2); color: var(--text-2); cursor: pointer; transition: background var(--t-ui, .15s), color var(--t-ui, .15s); }
.modal-x:hover { background: var(--surface-3, var(--surface-2)); color: var(--text); }
.modal-x:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.modal-x + .modal-body > :is(h2, h3):first-child, .modal-x + .modal-body > * > :is(h2, h3):first-child { padding-right: 44px; }
.modal-body h2 { font-size: 1.35rem; margin: 0; }

/* ---------- cabeçalho e rodapé público ---------- */
.announcement { background: var(--grad); color: var(--ink-on-pink); text-align: center; font: 600 .86rem var(--font-display); padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; transition: background var(--t), border-color var(--t), backdrop-filter var(--t); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font: 700 1rem/1 var(--font-display); letter-spacing: .26em; }
.brand:hover { color: var(--text); }
.brand .mark { width: 36px; height: 36px; flex: none; }
@media (max-width: 600px) {
  .site-header .brand small { display: none; }
  .site-header .bar { gap: 10px; height: 64px; }
  .nav { inset: 64px 0 auto 0; }
  .header-actions .btn.sm { padding: 0 12px; }
  .hero .cta .btn { width: 100%; }
}
.brand small { display: block; font: 500 .62rem/1 var(--font-display); letter-spacing: .3em; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.nav a { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1; padding: 10px 13px; border-radius: var(--r-pill); text-decoration: none; color: var(--text-2); font: 500 .92rem var(--font-display); transition: color var(--t), background var(--t); }
.site-header .brand { flex: none; white-space: nowrap; }
@media (min-width: 1241px) { .site-header .bar { gap: 14px; } .nav a { padding: 9px 10px; font-size: .88rem; } }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions .btn, .menu-toggle, .app-top .btn { flex: none; }
.menu-toggle { display: none; }
.nav-theme { display: none; padding: 10px 16px; justify-content: space-between; }
@media (max-width: 1240px) { .nav-theme { display: flex; } }
@media (max-width: 1240px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform var(--t) var(--ease); margin: 0; }
  .nav.open { transform: none; box-shadow: var(--shadow-lg); }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .hide-mobile { display: none; }
}
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 56px 0 36px; background: linear-gradient(180deg, transparent, var(--bg-2)); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-grid h4 { font: 600 .74rem var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid a { display: block; text-decoration: none; color: var(--text-2); padding: 4px 0; font-size: .94rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- seções públicas ---------- */
main.page { min-height: 60vh; }
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.section-head.centered { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: .88rem; color: var(--muted); }
.hero-proof span { display: inline-flex; gap: 8px; align-items: center; }
.hero-visual { position: relative; min-height: 460px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { min-height: 380px; } }
.orbit-art { position: absolute; inset: 0; pointer-events: none; }
.orbit-art .ring { position: absolute; left: 50%; top: 50%; border: 1px solid color-mix(in srgb, var(--pink) 45%, transparent); border-radius: 50%; translate: -50% -50%; rotate: -20deg; }
.orbit-art .ring.r1 { width: 118%; height: 52%; }
.orbit-art .ring.r2 { width: 86%; height: 36%; border-color: color-mix(in srgb, var(--lilac) 30%, transparent); }
.orbit-art .traveler { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; background: var(--pink); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); filter: drop-shadow(0 0 8px var(--pink)); offset-path: ellipse(59% 26% at 50% 50%); animation: travel 14s linear infinite; }
.sparkle { position: absolute; width: var(--s, 18px); height: var(--s, 18px); background: var(--c, var(--pink)); clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%); animation: twinkle var(--d, 4s) ease-in-out infinite; filter: drop-shadow(0 0 6px var(--glow)); }
.starfield { position: absolute; inset: 0; pointer-events: none; opacity: .7; background-image: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 42% 78%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 66%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 88%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 42%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 6% 58%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 30%, #fff 50%, transparent 51%); }
[data-theme="light"] .starfield { opacity: .0; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--glow-soft); color: var(--pink); border: 1px solid color-mix(in srgb, var(--pink) 25%, transparent); margin-bottom: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-2); margin: 0; font-size: .96rem; }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step-card { counter-increment: step; position: relative; padding-top: 58px; }
.step-card::before { content: counter(step, decimal-leading-zero); position: absolute; top: 22px; left: 28px; font: 600 .8rem var(--font-display); letter-spacing: .2em; color: var(--pink); }
.compare td:first-child { font-weight: 600; }
.check-ico { color: var(--ok); } .x-ico { color: var(--faint); }
.price-card { display: grid; gap: 18px; align-content: start; }
.price-card .amount { font: 600 clamp(2.2rem, 4vw, 2.9rem)/1 var(--font-display); letter-spacing: -.04em; }
.price-card .amount small { font-size: .95rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { flex: none; color: var(--pink); margin-top: 3px; }
.price-card.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 30px 70px -30px var(--glow); }
.price-card.featured .ribbon { position: absolute; top: -12px; left: 50%; translate: -50% 0; }
.ribbon { white-space: nowrap; background: var(--grad); color: var(--ink-on-pink); font: 700 .7rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; box-shadow: 0 6px 18px -6px var(--glow); }
.product-hero-art { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 1; background: var(--surface-2); }
.product-hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- vitrines (carrosséis contínuos) ---------- */
.rail { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rail-track { display: flex; gap: 16px; width: max-content; padding: 10px 0 18px; will-change: transform; cursor: grab; touch-action: pan-y; user-select: none; }
.rail-track.dragging { cursor: grabbing; }
.rail-card { width: 300px; flex: none; }
.rail-controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.store-card { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.store-card .avatar { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-3); display: grid; place-items: center; font: 700 1.2rem var(--font-display); color: var(--pink); overflow: hidden; }
.store-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.order-card { display: grid; gap: 8px; }
.order-card .item { font: 600 1.02rem var(--font-display); }
.review-card { display: grid; gap: 12px; }
.review-card blockquote { margin: 0; color: var(--text-2); font-size: .96rem; line-height: 1.6; }
.stars { display: inline-flex; gap: 2px; color: #fbbf24; }
.stars .off { color: var(--faint); }
.showcase-empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 34px; display: grid; gap: 10px; justify-items: center; text-align: center; color: var(--muted); }

/* ---------- prévia do Discord (Components V2) ---------- */
.dc { --dc-bg: #313338; --dc-msg: #2b2d31; --dc-text: #dbdee1; --dc-muted: #949ba4; --dc-btn: #4e5058; background: var(--dc-bg); color: var(--dc-text); border-radius: var(--r-md); padding: 16px; font: 15px/1.375 'gg sans', 'Noto Sans', 'Segoe UI', sans-serif; border: 1px solid rgb(255 255 255 / .06); }
.dc-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.dc-head img, .dc-head .dc-av { width: 40px; height: 40px; border-radius: 50%; background: #5865f2; flex: none; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-app { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.dc-time { color: var(--dc-muted); font-size: 12px; margin-left: 6px; }
.dc-container { margin-left: 50px; background: var(--dc-msg); border-radius: 8px; border-left: 4px solid var(--dc-accent, #E4C5CC); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.dc { overflow: hidden; }
@media (max-width: 520px) { .dc-container { margin-left: 0; } .dc { padding: 12px; } .dc-thumb { width: 56px; height: 56px; } }
.dc-section { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.dc-thumb { width: 74px; height: 74px; border-radius: 6px; object-fit: cover; background: #1e1f22; }
.dc-text { white-space: pre-wrap; word-break: break-word; }
.dc-text .dc-h1, .dc-text .dc-h2, .dc-text .dc-h3 { font-weight: 700; }
.dc-text .dc-h1 { font-size: 22px; line-height: 1.3; margin: 0; color: #f2f3f5; font-family: inherit; letter-spacing: 0; }
.dc-text .dc-h2 { font-size: 19px; line-height: 1.3; margin: 0 0 2px; color: #f2f3f5; font-family: inherit; letter-spacing: 0; }
.dc-text .dc-h3 { font-size: 16px; margin: 0 0 4px; color: #f2f3f5; font-family: inherit; letter-spacing: 0; }
.dc-text small { color: var(--dc-muted); font-size: 12px; }
.dc-text blockquote { margin: 2px 0; padding-left: 10px; border-left: 4px solid #4e5058; }
.dc-sep { height: 1px; background: rgb(255 255 255 / .08); }
.dc-btn { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 32px; padding: 2px 16px; border-radius: 8px; background: var(--dc-btn); color: #fff; font-size: 14px; font-weight: 500; border: 0; width: fit-content; white-space: pre; }
.dc-gallery img { width: 100%; border-radius: 8px; max-height: 190px; object-fit: cover; background: #1e1f22; }
.dc-emoji { width: 22px; height: 22px; display: inline-block; vertical-align: -5px; object-fit: contain; }
.dc-emoji.big { width: 30px; height: 30px; }

/* ---------- painel (área do cliente e admin) ---------- */
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 85%, transparent); display: flex; flex-direction: column; gap: 22px; }
.sidebar .brand { padding: 4px 8px; font-size: .9rem; }
.side-nav { display: grid; gap: 2px; }
.side-nav .group { font: 600 .68rem var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 6px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--text-2); font: 500 .93rem var(--font-display); transition: background var(--t-fast), color var(--t-fast); }
.side-nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--glow-soft); color: var(--pink); }
.side-nav a .count { margin-left: auto; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.user-chip { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.user-chip .av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: var(--ink-on-pink); display: grid; place-items: center; font: 700 .9rem var(--font-display); flex: none; }
.user-chip .who { min-width: 0; } .user-chip .who strong, .user-chip .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .user-chip .who span { font-size: .78rem; color: var(--muted); }
.app-main { min-width: 0; }
.app-top { position: sticky; top: 0; z-index: 30; display: flex; gap: 12px; align-items: center; height: 64px; padding: 0 clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); }
.app-top .crumbs { font-size: .9rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-top .crumbs strong { color: var(--text); }
.app-content { padding: clamp(16px, 2.4vw, 32px); max-width: 1440px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 4px; }
.page-head p { margin: 0; color: var(--muted); }
.notif-btn { position: relative; }
.notif-btn .count { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--pink); color: var(--ink-on-pink); font: 700 .66rem/17px var(--font-display); text-align: center; }
.drawer { position: fixed; z-index: 120; top: 0; right: 0; width: min(420px, 100vw); height: 100vh; background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform var(--t) var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer .list { overflow-y: auto; flex: 1; }
.notif { display: grid; gap: 4px; padding: 14px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.notif.unread { background: var(--glow-soft); }
.notif small { color: var(--muted); }
.mobile-nav-toggle { display: none; }
@media (max-width: 980px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 110; inset: 0 auto 0 0; width: 284px; transform: translateX(-102%); transition: transform var(--t) var(--ease); background: var(--bg-2); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .mobile-nav-toggle { display: inline-flex; }
}
.scrim { position: fixed; inset: 0; z-index: 100; background: rgb(5 3 8 / .55); opacity: 0; pointer-events: none; transition: opacity var(--t); }
.scrim.show { opacity: 1; pointer-events: auto; }

/* bot cards e assistente */
.bot-card { display: grid; gap: 16px; }
.bot-card .top { display: flex; gap: 14px; align-items: center; }
.bot-card .gicon { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; color: var(--pink); flex: none; }
.bot-card .gicon img { width: 100%; height: 100%; object-fit: cover; }
.wizard { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } }
.wizard-steps { position: sticky; top: 84px; display: grid; gap: 4px; }
.wstep { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); text-decoration: none; color: var(--text-2); border: 1px solid transparent; }
.wstep .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 .9rem var(--font-display); border: 1px solid var(--line-2); background: var(--surface); transition: background var(--t), color var(--t), border-color var(--t); }
.wstep.done .num { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.wstep.current { background: var(--surface); border-color: var(--line); color: var(--text); }
.wstep.current .num { background: var(--grad); color: var(--ink-on-pink); border-color: transparent; box-shadow: 0 0 0 5px var(--glow-soft); }
.wstep small { display: block; color: var(--muted); font-size: .78rem; }
.wpanel { animation: rise .45s var(--ease); }
@media (max-width: 900px) {
  .wizard-steps { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wstep { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 2px; gap: 6px; }
  .wstep small { display: none; }
  .wstep strong { font-size: .7rem; line-height: 1.2; display: block; }
}
.instructions { counter-reset: ins; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.instructions li { counter-increment: ins; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.instructions li::before { content: counter(ins); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font: 600 .82rem var(--font-display); color: var(--pink); }
.checklist { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: .93rem; }
.checklist li .ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--line-2); }
.checklist li.done .ck { background: var(--ok); border-color: var(--ok); color: #062b1e; }
.checklist li.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }

/* studio */
.studio { display: grid; grid-template-columns: 204px minmax(0, 1fr); gap: 20px; align-items: start; }
.studio-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.studio-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--text-2); font: 500 .9rem var(--font-display); }
.studio-nav a svg { width: 18px; height: 18px; opacity: .85; }
.studio-nav a:hover { background: var(--surface-2); color: var(--text); }
.studio-nav a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: inset 3px 0 0 var(--pink); }
.studio-nav .group { font: 600 .66rem var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 4px; }
.studio-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 24px; align-items: start; }
.studio-split .preview-col { position: sticky; top: 84px; }
@media (max-width: 1240px) { .studio-split { grid-template-columns: 1fr; } .studio-split .preview-col { position: static; } }
/* Quando sobra pouco espaço para o formulário (tela de notebook), a prévia desce para baixo dele. */
:has(> .studio-split) { container-type: inline-size; }
@container (max-width: 940px) { .studio-split { grid-template-columns: 1fr; } .studio-split .preview-col { position: static; } }
@media (max-width: 900px) { .studio { grid-template-columns: minmax(0, 1fr); } .studio-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .studio-nav .group { display: none; } .studio-nav a { flex: none; background: var(--surface-2); } }
.savebar { position: sticky; bottom: 16px; z-index: 20; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px 12px 18px; margin-top: 20px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); }
.savebar .dirty { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.savebar .dirty::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.upload { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.upload .thumb { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--surface-3) center / cover no-repeat; border: 1px solid var(--line); flex: none; }
.upload .thumb.wide { width: 140px; }
.item-row { display: grid; grid-template-columns: 30px 1fr 110px 120px auto; gap: 10px; align-items: center; }
@media (max-width: 720px) { .item-row { grid-template-columns: 28px 1fr; } .item-row > .wide-only { grid-column: 2; } }
.diag-group h3 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.diag { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: 8px; }
.diag .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.diag.ok .ic { background: var(--ok-bg); color: var(--ok); } .diag.warning .ic { background: var(--warn-bg); color: var(--warn); } .diag.error .ic { background: var(--err-bg); color: var(--err); }
.diag .fix { font-size: .86rem; color: var(--pink); margin-top: 4px; }
.log { font: .82rem/1.5 ui-monospace, Consolas, monospace; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; max-height: 280px; overflow: auto; }
.log div { padding: 2px 0; } .log .error { color: var(--err); } .log .warn { color: var(--warn); }
.pix-box { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.pix-box img { width: 220px; height: 220px; border-radius: var(--r-md); background: #fff; padding: 10px; }
@media (max-width: 640px) { .pix-box { grid-template-columns: 1fr; justify-items: center; } }
/* roda de cores (cor do site escolhida pelo cliente) */
.cw { display: grid; gap: 16px; }
.cw-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cw-wheel { --cw-v: 0; position: relative; width: 200px; height: 200px; flex: none; border-radius: 50%; cursor: crosshair; touch-action: none;
  background: radial-gradient(circle closest-side, #fff, transparent), conic-gradient(red, #ff0, lime, cyan, blue, #f0f, red); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.cw-wheel::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #000; opacity: var(--cw-v); pointer-events: none; }
.cw-handle { position: absolute; z-index: 1; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .4), 0 4px 10px rgb(0 0 0 / .4); pointer-events: none; }
.cw-range { width: 100%; accent-color: var(--pink); }
.cw-swatch { width: 46px; height: 46px; flex: none; border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.cw-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-preset { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.cw-preset:hover { transform: scale(1.12); }
@media (max-width: 420px) { .cw-wheel { width: 170px; height: 170px; } }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 24px; }
.checkout-summary { position: sticky; top: 96px; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-summary { position: static; order: -1; } }
.chart { width: 100%; height: 180px; }
.chart .area { fill: url(#chartGrad); } .chart .line { fill: none; stroke: var(--pink); stroke-width: 2; }
.chart .axis { stroke: var(--line); } .chart text { fill: var(--muted); font-size: 10px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bars span { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; transition: opacity var(--t); }
.bars span:hover { opacity: 1; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: var(--bg-2); border-right: 1px solid var(--line); display: grid; align-content: space-between; padding: 40px 48px 56px; }
.auth-form { position: relative; }
.auth-art .quote { position: relative; z-index: 2; max-width: 420px; }
.auth-form { display: grid; place-items: center; padding: 40px var(--gutter); }
.auth-form .box { width: min(420px, 100%); display: grid; gap: 18px; }
.oauth-btns { display: grid; gap: 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .82rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-2); }
.toc { display: grid; gap: 4px; font-size: .9rem; }

/* ---------- movimento ---------- */
/* Surgimento na rolagem 100% CSS: sem suporte, o conteúdo apenas aparece (nunca fica oculto). */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
@keyframes reveal-in { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.view-enter { animation: view-in .42s var(--ease); }
@keyframes view-in { from { opacity: 0; translate: 0 10px; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes shimmer { to { translate: 100% 0; } }
@keyframes ping { 0% { opacity: .8; scale: .6; } 100% { opacity: 0; scale: 1.8; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes moon { 0% { box-shadow: inset -12px 0 0 0 var(--pink); } 50% { box-shadow: inset 12px 0 0 0 var(--pink); } 100% { box-shadow: inset -12px 0 0 0 var(--pink); } }
@keyframes travel { to { offset-distance: 100%; } }
@keyframes twinkle { 0%, 100% { opacity: .35; scale: .8; } 50% { opacity: 1; scale: 1.08; } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes toast-in { from { opacity: 0; translate: 0 16px; scale: .96; } }
@keyframes toast-out { to { opacity: 0; translate: 24px 0; } }
@keyframes modal-in { from { opacity: 0; translate: 0 14px; scale: .97; } }
.float { animation: float 6s ease-in-out infinite; }
@media print { .site-header, .site-footer, .sidebar, .app-top, .savebar { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Bot Studio: categorias, emoji, tutoriais, abertura da loja (v18.1) ---------- */
.badge.soft { background: var(--surface-3); color: var(--muted); border-color: transparent; font-weight: 500; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); min-height: 40px; }
.cat-chip.loose { padding-right: 14px; border-style: dashed; background: transparent; }
.cat-chip .btn.icon { width: 30px; height: 30px; min-height: 30px; }
.emoji-img { vertical-align: middle; object-fit: contain; }
.emoji-preview { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--line); }
details.hint summary { cursor: pointer; color: var(--pink); width: fit-content; }
details.tutorial > summary { cursor: pointer; list-style: none; }
details.tutorial > summary::-webkit-details-marker { display: none; }
details.tutorial > summary::after { content: '＋'; float: right; color: var(--muted); }
details.tutorial[open] > summary::after { content: '－'; }
.tut-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tut-step { display: flex; gap: 14px; align-items: flex-start; }
.tut-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--font-display); background: var(--glow-soft); color: var(--pink); }
.split-demo { display: grid; gap: 10px; justify-items: center; padding: 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.split-full { width: min(100%, 480px); aspect-ratio: 6 / 1; border-radius: 10px; background-size: 100% 100%; }
.split-arrow { font: 600 .75rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.split-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: min(100%, 520px); }
.split-tile { position: relative; aspect-ratio: 1; border-radius: 10px; background-size: 600% 100%; border: 1px solid var(--line-2); animation: tile-in .5s both; }
.split-tile:nth-child(2) { animation-delay: .06s; } .split-tile:nth-child(3) { animation-delay: .12s; } .split-tile:nth-child(4) { animation-delay: .18s; } .split-tile:nth-child(5) { animation-delay: .24s; } .split-tile:nth-child(6) { animation-delay: .3s; }
.split-num { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 .68rem var(--font-display); background: var(--pink); color: #fff; }
@keyframes tile-in { from { opacity: 0; transform: translateY(6px) scale(.94); } }
.range { width: 100%; accent-color: var(--pink); }
.shop-toggle { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.shop-toggle.is-open .shop-dot { background: var(--ok); box-shadow: 0 0 0 6px var(--ok-bg); }
.shop-toggle.is-closed .shop-dot { background: var(--err); box-shadow: 0 0 0 6px var(--err-bg); }

/* ---------- Suporte: celular com conversa estilo SMS + assistente ---------- */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
.phone { position: relative; width: min(100%, 380px); margin-inline: auto; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, var(--surface-3), var(--surface)); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.phone-screen { position: relative; border-radius: 34px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; height: min(680px, 78vh); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; border-radius: 99px; background: #000; z-index: 2; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 42px 16px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.phone-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--pink), #9F8CFF); color: #fff; flex: none; }
.phone-top .who { line-height: 1.2; }
.phone-top .who small { color: var(--ok); font-size: .74rem; }
.sms { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.sms .stamp { align-self: center; font-size: .7rem; color: var(--faint, var(--muted)); margin: 6px 0; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: .92rem; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; animation: bubble-in .28s both; }
.bubble.them { align-self: flex-start; background: var(--surface-3); color: var(--text); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: linear-gradient(140deg, var(--pink), color-mix(in srgb, var(--pink) 70%, #9F8CFF)); color: #fff; border-bottom-right-radius: 6px; }
.bubble a { color: inherit; text-decoration: underline; }
.bubble.typing { display: inline-flex; gap: 4px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: .3; transform: translateY(-2px); } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.sms-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 10px; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--pink) transparent; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.sms-chips::-webkit-scrollbar { height: 5px; }
.sms-chips::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--pink) 70%, transparent); border-radius: 99px; }
.sms-chips::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 99px; }
.sms-chips button { scroll-snap-align: start; }
.sms-chips button { flex: none; border: 1px solid color-mix(in srgb, var(--pink) 40%, var(--line-2)); background: var(--surface); color: var(--text); border-radius: 99px; padding: 7px 12px; font: 500 .8rem var(--font-body); cursor: pointer; }
.sms-chips button:hover { background: var(--glow-soft); }
.sms-input { display: flex; gap: 8px; padding: 10px 12px 16px; background: var(--surface); }
.sms-input input { flex: 1; min-height: 40px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 0 14px; font: inherit; }
/* Resposta do atendimento: caixa que cresce com o texto (nada fica cortado); Enter envia, Shift+Enter quebra a linha. */
.sms-input { align-items: flex-end; }
.sms-input textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 140px; resize: none; overflow-y: auto; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 10px 14px; font: inherit; line-height: 1.35; overflow-wrap: anywhere; }
.sms-input button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--pink); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* Sistemas (home): cards sem banner, prontos para muitos sistemas */
.systems-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.system-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.system-card h3 { margin: 6px 0 0; }
.system-card p { margin: 0; flex: 1; }
.system-mark { display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 12px; border-radius: 16px; font: 700 1rem var(--font-display); letter-spacing: .06em; color: var(--pink); background: var(--glow-soft); border: 1px solid color-mix(in srgb, var(--pink) 30%, transparent); }
.system-link { color: var(--pink); font-weight: 600; }
.system-card.soon { border-style: dashed; background: transparent; }
.system-card.soon .system-mark { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.support-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; }
.support-item-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--glow-soft); color: var(--pink); }
.support-item-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.support-item-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-item-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Chat do atendimento: digitando e mensagens novas chegando ao vivo. */
.sms .bubble { overflow-wrap: anywhere; white-space: pre-wrap; }
.sms .bubble.new { animation: pix-rise .35s cubic-bezier(.2, .9, .3, 1) both; }
.phone-top small.is-typing { color: var(--pink); }
/* Passos: 4 colunas, 2 no tablet, 1 no celular (evita 3 + 1 sobrando) */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.system-card > .system-mark { align-self: flex-start; }
.system-card.soon { border: 1px dashed var(--line-2); }
.split-row { margin-top: 8px; }

/* Prévia da proof: imagem de exemplo com a marca d'água no centro */
.proof-sample-img { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #2b2d31, #3b3550 60%, #1e1f22); color: #949ba4; font-size: .8rem; }
.proof-sample-wm { position: absolute; inset: 0; margin: auto; max-height: 80%; object-fit: contain; pointer-events: none; }

/* Cargos por gasto */
.tier-ladder { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; align-items: end; }
.tier-step { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.tier-step strong { font-size: .72rem; white-space: nowrap; }
.tier-step .tiny { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.tier-bar { width: 100%; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--tier), color-mix(in srgb, var(--tier) 35%, transparent)); box-shadow: 0 0 18px color-mix(in srgb, var(--tier) 30%, transparent); }
.tier-rows { display: grid; gap: 12px; }
.tier-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tier-chip { align-self: center; justify-self: start; padding: 6px 10px; border-radius: 99px; font: 700 .8rem var(--font-display); color: var(--tier); background: color-mix(in srgb, var(--tier) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent); }
@media (max-width: 640px) { .tier-row { grid-template-columns: minmax(0, 1fr); } .tier-ladder .tiny { display: none; } }

/* Lucro */
.neg { color: var(--err); } .pos { color: var(--ok); }
.kpi-pos .value { color: var(--ok); } .kpi-neg .value { color: var(--err); }
.profit-chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 8px; }
.pc-day { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.pc-day span { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; }
.pc-rev { background: color-mix(in srgb, var(--muted) 35%, transparent); }
.pc-profit { background: var(--pink); } .pc-profit.neg { background: var(--err); }
.legend::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend.rev::before { background: color-mix(in srgb, var(--muted) 35%, transparent); } .legend.profit::before { background: var(--pink); }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc-grid label { display: grid; gap: 6px; }
.calc-out { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); }
.calc-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .92rem; }
.tier-ladder { grid-template-columns: repeat(9, minmax(64px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
.tier-rows { container-type: inline-size; }
@container (max-width: 560px) { .tier-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Embed Maker ---------- */
.chip-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 99px; padding: 6px 12px; font: 500 .85rem var(--font-body); cursor: pointer; }
.chip-btn.active, .chip-btn:hover { border-color: var(--pink); background: var(--glow-soft); }
.project-card { display: grid; gap: 12px; }
.project-link { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.project-link h3 { margin: 4px 0 0; }
.em-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.em-name { flex: 1 1 160px; max-width: 240px; min-height: 40px; font-weight: 600; }
.em-actions { margin-left: auto; flex-wrap: wrap; }
.em-grid { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(260px, 360px); gap: 16px; align-items: start; }
.em-panel { padding: 16px; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; }
@media (max-width: 1100px) { .em-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .em-stage { grid-column: 1 / -1; order: -1; } .em-panel { position: static; max-height: none; } }
@media (max-width: 680px) { .em-grid { grid-template-columns: minmax(0, 1fr); } .em-name { max-width: 100%; flex: 1; } .em-actions { margin-left: 0; } }
.em-tree { display: grid; gap: 2px; }
.em-node { display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px calc(8px + var(--depth, 0) * 16px); border-radius: 10px; cursor: pointer; font-size: .86rem; border: 1px solid transparent; min-width: 0; }
.em-node:hover { background: var(--surface-2); }
.em-node.sel { background: var(--glow-soft); border-color: color-mix(in srgb, var(--pink) 40%, transparent); }
.em-node.drop { border-color: var(--pink); border-style: dashed; }
.em-grip { color: var(--faint, var(--muted)); cursor: grab; font-size: .7rem; letter-spacing: -2px; }
.em-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-ops { display: inline-flex; gap: 2px; }
.em-ops .btn.icon { width: 26px; height: 26px; min-height: 26px; }
.em-add { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.em-add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.em-add-grid .btn { justify-content: flex-start; font-size: .78rem; }
.em-stage { min-width: 0; }
.em-device { margin-inline: auto; transition: max-width .25s ease; }
.em-device.mobile { max-width: 390px; }
.em-device.mobile .dc-container, .em-device.mobile .em-msg { margin-left: 0; }
.em-msg { margin-left: 50px; display: grid; gap: 8px; min-width: 0; }
.em-pv { cursor: pointer; border-radius: 6px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.em-pv:hover { outline-color: rgb(236 150 215 / .35); }
.em-pv-sel { outline-color: var(--pink) !important; }
.em-row { display: flex; flex-wrap: wrap; gap: 8px; }
.em-select { display: flex; justify-content: space-between; align-items: center; background: #1e1f22; border: 1px solid #111214; border-radius: 6px; padding: 9px 12px; color: var(--dc-muted, #949ba4); font-size: 14px; }
.em-embed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; background: var(--dc-msg, #2b2d31); border-left: 4px solid var(--dc-accent, #1e1f22); border-radius: 6px; padding: 10px 14px 14px; max-width: 520px; }
.em-embed-main { display: grid; gap: 6px; min-width: 0; }
.em-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #f2f3f5; }
.em-author img, .em-footer img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.em-title { font-weight: 700; color: #f2f3f5; }
.em-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.em-field { grid-column: 1 / -1; font-size: 14px; }
.em-field.inline { grid-column: auto; }
.em-field strong { display: block; color: #f2f3f5; font-size: 13px; }
.em-embed-image img, .em-gallery img { width: 100%; border-radius: 6px; max-height: 260px; object-fit: cover; display: block; }
.em-embed-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.em-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dc-muted, #949ba4); }
.em-gallery { display: grid; gap: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.em-gallery[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.em-img-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #1e1f22; color: #949ba4; border-radius: 6px; font-size: 12px; }
.em-file { display: flex; align-items: center; gap: 10px; background: #2b2d31; border: 1px solid #1e1f22; border-radius: 8px; padding: 12px; color: #00a8fc; }
.em-sub { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface-2); }
.em-sub > summary { cursor: pointer; font-weight: 600; font-size: .88rem; }
.em-chips { display: flex; flex-wrap: wrap; gap: 6px 12px; max-height: 160px; overflow: auto; }
button.diag { width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; }
@media (max-width: 680px) { .em-top .em-name { flex: 1 1 100%; order: -1; } }
.ticket-panel-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .ticket-panel-grid { grid-template-columns: minmax(0, 1fr); } }
.transcript-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-top: 12px; background: #0b0a10; }

/* ---- Bot Maker: editor visual ---- */
.fx-editor { min-width: 0; }
.fx-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 340px; gap: 14px; align-items: stretch; height: calc(100vh - 190px); min-height: 520px; }
.fx-palette { padding: 12px; overflow: auto; }
.fx-pal-group .label { margin: 10px 0 6px; }
.fx-pal-items { display: grid; gap: 4px; }
.fx-pal-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 500 .82rem var(--font-body); cursor: grab; text-align: left; border-left: 3px solid var(--fx-c, var(--line-2)); }
.fx-pal-item span { flex: 1; }
.fx-pal-item:hover { border-color: var(--pink); }
.fx-pal-item.locked { opacity: .5; cursor: not-allowed; }
.fx-canvas { position: relative; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); background-color: var(--surface-2); background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1.2px); touch-action: none; user-select: none; cursor: grab; outline: none; }
.fx-canvas:active { cursor: grabbing; }
.fx-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
/* max-width: none — a regra geral "svg { max-width: 100% }" zerava esta camada (a área do fluxo não tem largura própria) e as linhas sumiam. */
.fx-edges { position: absolute; left: 0; top: 0; width: 1px; height: 1px; max-width: none; overflow: visible; pointer-events: none; }
.fx-edge { fill: none; stroke: color-mix(in srgb, var(--pink) 75%, var(--text)); stroke-width: 2.2; }
.fx-edge.alt { stroke: var(--muted); stroke-dasharray: 6 5; }
.fx-edge.selected { stroke: var(--pink); stroke-width: 3.4; }
.fx-edge.temp { stroke-dasharray: 5 5; opacity: .8; }
.fx-edge-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.fx-edge-del { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--err); background: var(--surface); color: var(--err); display: grid; place-items: center; cursor: pointer; z-index: 3; }
.fx-node { position: absolute; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); cursor: move; border-top: 3px solid var(--fx-c, var(--line-2)); }
.fx-node.selected { box-shadow: 0 0 0 2px var(--pink), var(--shadow); }
.fx-node.has-error { border-color: var(--err); }
.fx-node.has-warn { border-color: var(--warn); }
.fx-node.drop-target { box-shadow: 0 0 0 2px color-mix(in srgb, var(--pink) 50%, transparent), var(--shadow); }
.fx-node-head { display: flex; align-items: center; gap: 7px; padding: 9px 12px 4px; font: 600 .84rem var(--font-display); color: var(--fx-c, var(--text)); }
.fx-node-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.fx-node-body { padding: 0 12px 8px; font-size: .78rem; color: var(--text-2); overflow-wrap: anywhere; }
.fx-count { font: 700 .68rem var(--font-display); border-radius: 99px; padding: 2px 7px; }
.fx-count.err { background: var(--err-bg); color: var(--err); }
.fx-count.warn { background: var(--warn-bg); color: var(--warn); }
.fx-ports { border-top: 1px solid var(--line); padding: 4px 0; }
.fx-ports:empty { display: none; }
.fx-port { position: relative; display: flex; justify-content: flex-end; align-items: center; padding: 4px 22px 4px 12px; font-size: .74rem; color: var(--muted); min-height: 24px; }
.fx-out { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fx-c, var(--pink)); background: var(--surface); cursor: crosshair; padding: 0; touch-action: none; }
.fx-out.linked { background: var(--fx-c, var(--pink)); }
.fx-out.active { box-shadow: 0 0 0 4px var(--glow-soft); }
.fx-in { position: absolute; left: -9px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--line-2); }
.fx-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--pink); border-radius: 99px; padding: 8px 14px; font-size: .82rem; box-shadow: var(--shadow); max-width: calc(100% - 24px); text-align: center; }
.fx-inspector { padding: 16px; overflow: auto; }
.fx-inspector .field { margin: 0; }
.fx-issue { display: flex; gap: 6px; align-items: flex-start; text-align: left; font-size: .8rem; padding: 6px 8px; border-radius: 8px; border: 0; width: 100%; font-family: var(--font-body); }
.fx-issue.err { background: var(--err-bg); color: var(--err); }
.fx-issue.warn { background: var(--warn-bg); color: var(--warn); }
button.fx-issue { cursor: pointer; }
.fx-vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fx-vars .chip-btn { font: 500 .74rem var(--font-mono, monospace); padding: 4px 8px; }
.fx-preview { background: #313338; border-radius: 10px; padding: 10px; overflow: hidden; }
.cat-trigger { --fx-c: #EC96D7; } .cat-messages { --fx-c: #7aa7ff; } .cat-discord { --fx-c: #8fd19e; } .cat-logic { --fx-c: #f2c46d; } .cat-advanced { --fx-c: #c79bff; } .cat-music { --fx-c: #5eead4; }
@media (max-width: 1100px) {
  .fx-layout { grid-template-columns: minmax(0, 1fr); height: auto; }
  .fx-palette { order: 1; }
  .fx-palette .fx-pal-items { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .fx-canvas { order: 2; height: 62vh; min-height: 380px; }
  .fx-inspector { order: 3; }
}
@media (max-width: 600px) { .fx-bar .em-name { max-width: 100%; flex: 1 1 100%; } .fx-palette { max-height: 220px; } }

/* ---- Planos dos novos produtos e assinaturas ---- */
.app-plans.grid-1 { grid-template-columns: minmax(0, 440px); justify-content: center; }
.app-hero-card { display: grid; gap: 18px; padding: 26px; }
.sub-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.sub-limits > div { display: grid; gap: 4px; }

/* Caixas de escolha sempre com a largura toda (listas de modelos ficam alinhadas). */
button.choice { width: 100%; font: inherit; color: inherit; text-align: left; }
.choice-cards button.choice { text-align: center; }

/* ---- Vitrine de produtos (início) ---- */
.shop-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.shop-card { display: flex; flex-direction: column; border-radius: var(--r-lg, 22px); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease-spring, ease), box-shadow .25s, border-color .25s; }
.shop-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); box-shadow: 0 18px 50px -18px rgb(236 150 215 / .45); }
.shop-card.featured { border-color: color-mix(in srgb, var(--pink) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pink) 35%, transparent), 0 20px 60px -24px rgb(236 150 215 / .55); }
.shop-cover { position: relative; display: block; height: 178px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.shop-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgb(255 255 255 / .22), transparent 45%), linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .45)); z-index: -1; }
.c-mm2 { background: linear-gradient(135deg, #7a1f3d, #d14c7a 55%, #f39ac0); }
.c-ftf { background: linear-gradient(135deg, #123a6b, #2f74c0 55%, #8fc3ff); }
.c-bm { background: linear-gradient(135deg, #3a1468, #8a3fd1 50%, #ec96d7); }
.c-em { background: linear-gradient(135deg, #0f4c4a, #1d9a8a 55%, #8ff0d6); }
.c-tk { background: linear-gradient(135deg, #5a2a07, #d0781c 55%, #ffd08a); }
.shop-kind { position: absolute; left: 14px; top: 14px; font: 700 .7rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; background: rgb(0 0 0 / .32); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 99px; }
.shop-hot { position: absolute; right: 14px; top: 14px; font: 700 .72rem var(--font-display); background: #fff; color: #7a2a8a; padding: 6px 10px; border-radius: 99px; box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.shop-art { position: absolute; inset: 0; display: grid; place-items: center; }
.shop-logo { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); backdrop-filter: blur(8px); font: 800 1.35rem var(--font-display); letter-spacing: .04em; box-shadow: 0 12px 30px rgb(0 0 0 / .25); transition: transform .35s var(--ease-spring, ease); }
.shop-card:hover .shop-logo { transform: scale(1.08) rotate(-3deg); }
.shop-float { position: absolute; font-size: 1.6rem; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .3)); animation: shopFloat 5s ease-in-out infinite; }
.shop-float.f0 { left: 16%; top: 30%; } .shop-float.f1 { right: 16%; top: 26%; animation-delay: -1.6s; } .shop-float.f2 { right: 26%; bottom: 20%; animation-delay: -3.2s; font-size: 1.3rem; }
@keyframes shopFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.shop-chips { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.shop-chips span { font: 600 .7rem var(--font-body); background: rgb(0 0 0 / .35); border: 1px solid rgb(255 255 255 / .2); padding: 4px 9px; border-radius: 99px; }
.shop-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; flex: 1; }
.shop-body h3 { margin: 0; font-size: 1.2rem; }
.shop-body p { margin: 0; }
.shop-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; flex: 1; }
.shop-points li { display: flex; gap: 8px; align-items: flex-start; } .shop-points svg { color: var(--ok); flex: none; margin-top: 3px; }
.shop-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.shop-price { display: grid; line-height: 1.15; } .shop-price small { color: var(--muted); font-size: .72rem; } .shop-price strong { font: 700 1.35rem var(--font-display); color: var(--pink); }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Bot Maker: paleta com busca, “+” nas saídas, linha viva e “×” nas ligações ---- */
.fx-search { margin-bottom: 8px; }
.fx-pal-group { border-top: 1px solid var(--line); padding: 6px 0; }
.fx-pal-group > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font: 600 .78rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 2px; list-style: none; }
.fx-pal-group > summary::-webkit-details-marker { display: none; }
.fx-pal-group > summary::after { content: '▾'; margin-left: 6px; }
.fx-pal-group:not([open]) > summary::after { content: '▸'; }
.fx-pal-item { align-items: flex-start; }
.fx-pal-item span { display: grid; gap: 1px; min-width: 0; }
.fx-pal-item small { color: var(--muted); font-size: .7rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-quick { max-height: 55vh; overflow: auto; margin-top: 8px; }
.fx-quick .fx-pal-items { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.fx-plus { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; border: 1px dashed var(--fx-c, var(--pink)); background: var(--surface); color: var(--fx-c, var(--pink)); font: 700 14px/1 var(--font-body); display: grid; place-items: center; padding: 0; cursor: pointer; opacity: .75; }
.fx-plus:hover { opacity: 1; background: var(--glow-soft); }
.fx-port { padding-right: 44px; }
.fx-out { width: 22px; height: 22px; right: -11px; cursor: crosshair; }
.fx-out:hover { box-shadow: 0 0 0 5px var(--glow-soft); }
.fx-canvas.linking { cursor: crosshair; }
.fx-canvas.linking .fx-node { cursor: crosshair; }
.fx-node.link-hover { box-shadow: 0 0 0 3px var(--pink), 0 0 28px rgb(236 150 215 / .5); }
.fx-node.link-hover .fx-in { background: var(--pink); border-color: var(--pink); transform: scale(1.3); }
.fx-edge.temp { stroke: var(--pink); stroke-width: 3; stroke-dasharray: 8 6; animation: fxDash .6s linear infinite; }
@keyframes fxDash { to { stroke-dashoffset: -14; } }
.fx-edge-del { width: 20px; height: 20px; border-color: var(--line-2); color: var(--muted); opacity: .8; transition: transform .15s, opacity .15s; }
.fx-edge-del:hover, .fx-edge-del.on { opacity: 1; color: #fff; background: var(--err); border-color: var(--err); transform: translate(-50%, -50%) scale(1.15); }

/* ---- Admin: cupons ---- */
.coupon-presets { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.coupon-code { font: 700 1.05rem var(--font-mono, monospace); letter-spacing: .06em; background: var(--glow-soft); color: var(--pink); padding: 4px 10px; border-radius: 8px; }
.coupon-summary { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: .86rem; }
.coupon-summary svg { flex: none; margin-top: 2px; color: var(--pink); }
.c-lj { background: linear-gradient(135deg, #062a2a, #13a08a 55%, #9ff5d6); }
/* Lunaris Lojistas: gráfico de barras simples */
.lj-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 6px; }
.lj-bar { flex: 1; min-width: 4px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.lj-bar span { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent, #EC96D7), color-mix(in srgb, var(--accent, #EC96D7) 45%, transparent)); }
.lj-bar em { font-style: normal; font-size: 9px; color: var(--muted, #888); writing-mode: vertical-rl; transform: rotate(180deg); line-height: 1; }
@media (max-width: 600px) { .lj-bar em { display: none; } }
.c-vf { background: linear-gradient(135deg, #0b1630, #3b5bdb 55%, #a5c8ff); }
/* Editor compartilhado de mensagens e editor da página de verificação (duas colunas, prévia ao vivo) */
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.me-sticky { position: sticky; top: 16px; }
.err-text { color: #f87171; }
@media (max-width: 960px) { .me-grid { grid-template-columns: 1fr; } .me-sticky { position: static; } }
.vf-preview-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--line, rgba(255,255,255,.1)); margin: 0 auto; transition: max-width .2s; }
.vf-preview-wrap.mobile { max-width: 375px; }
.vf-preview-wrap .vf-root { min-height: 560px; }
.cf-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cf-swatch { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line, rgba(255,255,255,.2)); cursor: pointer; padding: 0; }
.cf-rgb { width: 76px; flex: none; padding-inline: 10px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.cf-rgb::-webkit-inner-spin-button, .cf-rgb::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cf-row .input.mono { min-width: 104px; flex: none; }
.vf-step-list { display: grid; gap: 10px; }
.vf-step { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.vf-step .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.08); }
.vf-step.ok .dot { background: rgba(110,231,183,.2); color: #6ee7b7; }
.vf-step.warn .dot { background: rgba(245,194,107,.2); color: #f5c26b; }
/* Vitrine da home (v19.7): uma linha com setas + capa sóbria (brilho na cor do sistema, órbita LUNARIS e ícone em vidro). */
.shop-headline { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-arrows { display: flex; gap: 8px; }
.shop-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s, border-color .2s, opacity .2s, transform .2s; }
.shop-arrow:hover:not(:disabled) { border-color: color-mix(in srgb, var(--pink) 55%, var(--line)); background: color-mix(in srgb, var(--pink) 14%, var(--surface)); transform: translateY(-1px); }
.shop-arrow:disabled { opacity: .35; cursor: default; }
.shop-arrow:focus-visible, .shop-rail:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.shop-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 84%); gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 6px 2px 22px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.shop-rail::-webkit-scrollbar { display: none; }
.shop-rail .shop-card { scroll-snap-align: start; }
.shop-card:hover { border-color: color-mix(in srgb, var(--acc, var(--pink)) 50%, var(--line)); box-shadow: 0 18px 50px -20px color-mix(in srgb, var(--acc, var(--pink)) 60%, transparent); }
.shop-card .shop-cover { height: auto; min-height: 128px; padding: 18px 18px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; color: var(--text);
  background: radial-gradient(120% 110% at 100% 0%, color-mix(in srgb, var(--acc) 34%, transparent), transparent 62%), linear-gradient(180deg, color-mix(in srgb, var(--acc) 9%, var(--surface)), var(--surface)); border-bottom: 1px solid var(--line); }
.shop-card .shop-cover::after { content: none; }
.shop-orbit { position: absolute; right: -46px; top: -38px; width: 200px; height: 110px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); border-radius: 50%; transform: rotate(-18deg); opacity: .55; pointer-events: none; z-index: -1; }
.shop-orbit::after { content: ''; position: absolute; left: 22%; bottom: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.shop-head { display: flex; align-items: center; gap: 14px; }
.shop-card .shop-logo { width: 58px; height: 58px; border-radius: 18px; flex: none; color: var(--acc); font-size: 1.05rem; background: color-mix(in srgb, var(--acc) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 10px 26px -12px color-mix(in srgb, var(--acc) 80%, transparent); }
.shop-card:hover .shop-logo { transform: scale(1.05); }
.shop-card .shop-kind { position: static; display: block; padding: 0; background: none; backdrop-filter: none; color: var(--acc); font-size: .68rem; }
.shop-card .shop-hot { position: static; display: inline-block; margin-top: 6px; padding: 3px 9px; font-size: .68rem; background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--text); box-shadow: none; border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); }
.shop-card .shop-chips { position: static; }
.shop-card .shop-chips span { background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid var(--line); color: var(--muted); }
.shop-card.featured { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
@media (max-width: 600px) { .shop-rail { -webkit-mask-image: none; mask-image: none; } .shop-headline { align-items: center; } }
/* Contato pelo Discord (rodapé, suporte e ajuda) */
.footer-discord { display: inline-flex !important; align-items: center; gap: 7px; }
.discord-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.discord-cta-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: #5865F2; }
.discord-cta-text { flex: 1 1 220px; }
/* Página Planos: todos os sistemas em cartões (escolhe e os planos aparecem logo abaixo) */
.sys-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.sys-card { --acc: var(--pink); display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 10px 14px; text-align: left; padding: 16px; border-radius: 18px; border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--acc) 18%, transparent), transparent 60%), var(--surface); transition: transform .2s, border-color .2s, box-shadow .2s; }
.sys-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); }
.sys-card[aria-pressed="true"] { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 14px 40px -18px color-mix(in srgb, var(--acc) 70%, transparent); }
.sys-card:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.sys-logo { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--acc); font: 800 .9rem var(--font-display); background: color-mix(in srgb, var(--acc) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); }
.sys-text { display: grid; gap: 2px; min-width: 0; }
.sys-kind { font: 700 .64rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.sys-text strong { font-size: 1.02rem; }
.sys-tag { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.sys-price { display: flex; align-items: baseline; gap: 6px; } .sys-price small { color: var(--muted); font-size: .72rem; } .sys-price b { color: var(--acc); font-size: 1rem; }
#planos-do-sistema { scroll-margin-top: 90px; }
.nav a.nav-ext { display: inline-flex; align-items: center; gap: 6px; }
/* Menu lateral: sem rolagem lateral; nome/e-mail longos terminam em “…” em vez de cortar o cartão. */
.sidebar { overflow-x: hidden; }
.side-foot, .user-chip { min-width: 0; max-width: 100%; }
.user-chip { box-sizing: border-box; }
.user-chip .who { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.user-chip .who strong, .user-chip .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .btn { flex: none; }
/* Destaque do Webhook grátis na home */
.webhook-promo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: clamp(22px, 4vw, 40px); overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgb(88 101 242 / .22), transparent 60%), var(--surface); border-color: color-mix(in srgb, #5865F2 40%, var(--line)); }
.webhook-promo h2 { margin: 6px 0 10px; }
.webhook-promo p.muted { margin: 0 0 18px; max-width: 560px; }
.webhook-promo-art { display: grid; place-items: center; }
.wp-msg { display: flex; gap: 12px; width: min(380px, 100%); padding: 16px; border-radius: 14px; background: #313338; color: #dbdee1; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .6); transform: rotate(-2deg); }
.wp-av { width: 40px; height: 40px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #5865F2, #EC96D7); }
.wp-body { display: grid; gap: 6px; flex: 1; min-width: 0; }
.wp-name { font-weight: 600; color: #fff; font-size: .9rem; } .wp-name em { font-style: normal; font-size: .62rem; background: #5865F2; color: #fff; padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
.wp-embed { display: grid; gap: 6px; padding: 10px 12px; border-left: 4px solid #EC96D7; border-radius: 4px; background: #2b2d31; font-size: .82rem; }
.wp-embed b { color: #fff; }
.wp-btn { justify-self: start; margin-top: 4px; padding: 5px 12px; border-radius: 4px; background: #4e5058; color: #fff; font-size: .78rem; }
@media (max-width: 760px) { .webhook-promo { grid-template-columns: 1fr; } .wp-msg { transform: none; } }

/* Aviso de cookies */
.cookie-banner { position: fixed; z-index: 950; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 860px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--r-md, 14px); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease, ease) both; }
.cookie-banner .cookie-text { flex: 1 1 380px; min-width: 0; }
.cookie-banner .cookie-text p { margin: 4px 0 0; color: var(--text-2); font-size: .9rem; line-height: 1.5; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cookie-row:last-child { border-bottom: 0; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; opacity: .85; }
.footer-link-btn:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 560px) { .cookie-banner { left: 8px; right: 8px; bottom: 8px; } .cookie-banner .cookie-actions { width: 100%; } .cookie-banner .cookie-actions .btn { flex: 1; } }

/* Páginas de detalhes dos sistemas: nome em destaque e um subtítulo curto em itálico logo abaixo. */
.product-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 0; }
.hero .product-title { margin-bottom: 4px; }
.product-slogan { display: inline-block; margin: 0 0 18px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; letter-spacing: 0; padding-right: .12em; }

/* ---------- gráficos e painéis financeiros ---------- */
:root { --chart-1: #9F66F5; --chart-2: #BD7F22; --chart-3: #1FA58F; --chart-4: #3F8FE0; }
[data-theme="light"] { --chart-1: #7C3AED; --chart-2: #0F6FB8; --chart-3: #B7791F; --chart-4: #0F8A7A; }
.ch { display: grid; gap: 8px; min-width: 0; }
.ch-box { position: relative; }
.ch-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.ch-label { font: 500 11px var(--font-body); fill: var(--muted); }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { stroke: var(--line-2); stroke-width: 1; }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-cursor { stroke: var(--line-2); stroke-width: 1; }
.ch-dot { stroke: var(--surface); stroke-width: 2; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--text-2); }
.ch-key { display: inline-flex; align-items: center; gap: 6px; }
.ch-key i, .ch-tip-row i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ch-tip { position: absolute; top: 4px; min-width: 150px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .78rem; pointer-events: none; z-index: 2; }
.ch-tip-row { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--text-2); }
.ch-tip-row b { margin-left: auto; color: var(--text); font-weight: 600; }
.ch-table summary { cursor: pointer; width: fit-content; }
.ch-bars { display: grid; gap: 10px; }
.ch-bar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-bar-track { height: 6px; margin-top: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ch-bar-track span { display: block; height: 100%; border-radius: 99px; background: var(--chart-1); }
.help-dot { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--line-2); font-size: .68rem; color: var(--muted); cursor: help; vertical-align: 1px; }
.fin-filter { flex-wrap: wrap; }
.neg { color: var(--err); } .pos { color: var(--ok); }
.studio-nav .nav-group { margin: 12px 12px 4px; font: 600 .68rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.studio-nav .nav-group:first-child { margin-top: 0; }
.chat-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; align-content: start; }
.chat-msg { max-width: 86%; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface-2); justify-self: start; overflow-wrap: anywhere; }
.chat-msg.mine { justify-self: end; background: var(--glow-soft); }
.chat-msg.important { outline: 1px solid var(--warn); }
.chat-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.chat-thread { justify-content: space-between; }
.chat-thread.active { background: var(--surface-2); }
.rank-me { font-weight: 700; }
@media (max-width: 720px) { .chat-grid { grid-template-columns: 1fr; } .chat-msg { max-width: 94%; } }
@media print { .studio-nav, .fin-filter, .no-print, .form-actions, .ch-table { display: none !important; } .studio { display: block !important; } .card { break-inside: avoid; } }
.studio .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.studio .kpi .value { overflow-wrap: anywhere; font-size: clamp(1.05rem, 1.55vw, 1.6rem); }
.callout + .studio { margin-top: 16px; }

/* ==========================================================================
   LUNARIS Next Generation. Conceito: a linha do terminador, onde a noite da lua encontra a luz.
   Fundamentos espelhados no Figma "Lunaris Apps — Next Generation UI".
   Intensidade por contexto: home e produtos com tudo; login e checkout claros e rápidos; painéis sem efeito pesado.
   ========================================================================== */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/sora.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/manrope.woff2) format('woff2'); }
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.76, 0, .24, 1); --t-micro: .18s; --t-ui: .32s; --t-reveal: .7s; --ice: #AFDDFF; --edge: clamp(20px, 3.4vw, 56px); --max: 1320px; }
[data-theme="light"] { --ice: #1F6FA8; }
html { scrollbar-color: var(--surface-3) var(--bg); }
body { background-attachment: scroll; font-variant-numeric: tabular-nums; }
h1, h2, h3, .kpi .value { font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.9vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em; }
.serif { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.public-shell .eyebrow { display: none; }
.eyebrow { letter-spacing: 0; text-transform: none; font: 500 .84rem/1.2 var(--font-body); color: var(--muted); }
.eyebrow::before { display: none; }
::-webkit-scrollbar { width: 11px; height: 11px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 3px solid var(--bg); } ::-webkit-scrollbar-thumb:hover { background: var(--faint); }
input, textarea { caret-color: var(--pink); }

.skip-link { background: var(--pink-3); color: #fff; }
::selection { background: var(--pink-3); color: #fff; }
.faq .answer { max-width: 70ch; }

/* botões: metal escuro e violeta com reflexo que passa no hover */
.btn { border-radius: 9px; font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; overflow: hidden; isolation: isolate; transition: transform var(--t-micro) var(--ease-out), background var(--t-ui), border-color var(--t-ui), box-shadow var(--t-ui), color var(--t-micro), translate var(--t-ui) var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(0 0 0 / .22), 0 10px 26px -14px var(--glow); }
.btn.primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), inset 0 -1px 0 rgb(0 0 0 / .2), 0 14px 34px -12px var(--glow); }
.btn.primary::after { z-index: -1; background: linear-gradient(115deg, transparent 22%, rgb(255 255 255 / .3) 48%, transparent 74%); background-size: 240% 100%; background-position: 140% 0; transition: background-position .7s var(--ease-out); }
.btn.primary:hover::after { background-position: -40% 0; }
.btn.ghost { background: linear-gradient(135deg, color-mix(in srgb, var(--text) 8%, transparent), transparent 55%, color-mix(in srgb, var(--ice) 8%, transparent)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 10%, transparent); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--text) 42%, transparent); }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: .98rem; }

/* superfícies */
.card { border-radius: var(--r-lg); box-shadow: none; border-color: var(--line); background: var(--surface); }
.card.hover:hover { box-shadow: none; border-color: var(--line-2); transform: translateY(-2px); }
.card.halo::before { display: none; }
.badge { border-radius: 6px; font-family: var(--font-body); }
.input, .select, .textarea { transition: border-color var(--t-micro), box-shadow var(--t-micro), background var(--t-micro); }
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 3px var(--glow-soft); }
.table th { font: 600 .78rem var(--font-body); letter-spacing: 0; text-transform: none; }
.table td { font-variant-numeric: tabular-nums; }
.kpi .value { letter-spacing: -.025em; }
dialog.modal { border-radius: var(--r-lg); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .8); }
dialog.modal[open] { animation: modal-x var(--t-ui) var(--ease-out); }
dialog.modal::backdrop { background: rgb(3 3 6 / .68); backdrop-filter: blur(6px); animation: fade-x var(--t-ui) var(--ease-out); }
@keyframes modal-x { from { opacity: 0; transform: translateY(10px) scale(.975); } }
@keyframes fade-x { from { opacity: 0; } }
.view-enter { animation: view-x .28s var(--ease-out); }
@keyframes view-x { from { opacity: 0; } }

/* cabeçalho: transparente sobre a cena; ao rolar vira uma barra de vidro escuro */
.site-header { background: transparent !important; border-bottom-color: transparent !important; backdrop-filter: none !important; padding-top: 10px; transition: padding var(--t-ui) var(--ease-out); }
.site-header .bar { position: relative; height: 62px; width: min(1440px, 100% - 2 * var(--edge) + 28px); padding: 0 14px; border: 1px solid transparent; border-radius: 14px; transition: background var(--t-ui), border-color var(--t-ui), box-shadow var(--t-ui), height var(--t-ui) var(--ease-out); }
.site-header.scrolled { padding-top: 8px; }
.site-header.scrolled .bar { height: 56px; background: color-mix(in srgb, var(--bg) 72%, transparent); border-color: var(--line); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent), 0 18px 40px -26px rgb(0 0 0 / .9); backdrop-filter: blur(16px) saturate(1.3); }
.nav { margin-left: 22px; }
.nav a { position: relative; background: none !important; border-radius: 8px; font-size: .92rem; color: var(--text-2); transition: color var(--t-micro); }
.nav a::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { margin-left: auto; }
.public-shell .page { min-height: 100svh; display: flow-root; }
.nav:focus { outline: none; }
@media (max-width: 1000px) {
  .nav { position: fixed; inset: 0; z-index: 45; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 96px var(--edge) 32px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px); border: 0; overflow-y: auto; visibility: hidden; opacity: 0; transform: none; transition: opacity var(--t-ui) var(--ease-io), visibility 0s linear var(--t-ui); }
  .nav.open { visibility: visible; opacity: 1; transition: opacity var(--t-ui) var(--ease-io); box-shadow: none; }
  .nav a { padding: 16px 0; font: 400 1.7rem/1.2 var(--font-display); letter-spacing: -.03em; color: var(--text); opacity: 0; transform: translateX(-18px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
  .nav a::after { display: none; }
  .nav.open a { opacity: 1; transform: none; transition-delay: calc(.06s + var(--i, 0) * .05s); }
  .nav .nav-theme { margin-top: auto; padding: 18px 0 0; }
  .menu-toggle { position: relative; z-index: 60; margin-left: 0; }
  .site-header .brand, .header-actions { position: relative; z-index: 60; }
  body.menu-open { overflow: hidden; }
}

/* universo */
.public-shell:has(.home-x) .site-header .bar { width: calc(100% - 2 * var(--edge) + 28px); }
.moon-loader .moon { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); box-shadow: none; animation: spin 1.8s linear infinite; }
.moon-loader .moon::after { content: ''; position: absolute; top: -4px; left: 50%; margin-left: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.moon-loader .moon::before { content: ''; position: absolute; inset: 11px; background: var(--text-2); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
.home-x { position: relative; color: #F6F3FF; overflow-x: clip; }
.home-x h2, .x-cta h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.035em; }
.home-x h2 { font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.04; }
.home-x h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; }
.uni-stage { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; }
.uni-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease-out); }
.uni-canvas.ready { opacity: 1; }
.home-x > section, .home-x > .pledge { position: relative; z-index: 2; }
.in-mask { display: block; animation: mask-x 1.15s var(--ease-out) var(--d, 0s) both; }
@keyframes mask-x { from { opacity: 0; transform: translateY(70%) rotate(1.2deg); } }
.in-rise { animation: dash-x 1.3s var(--ease-out) var(--d, 0s) both; }
@keyframes dash-x { from { opacity: 0; transform: translateY(70px); } }
.in-soft { animation: rise-x .9s var(--ease-out) var(--d, 0s) both; }
@keyframes rise-x { from { opacity: 0; transform: translateY(14px); } }

/* hero: a lua à direita, a marca à esquerda, a câmera por trás de tudo */
.moon-css { position: absolute; border-radius: 50%; background: #07060d; box-shadow: inset -2.6vmin 1.4vmin 5vmin -1vmin rgb(168 85 247 / .85), inset -.5vmin .3vmin .8vmin rgb(233 222 255 / .8), 1vmin -.6vmin 9vmin -1vmin var(--glow); }
.hx { z-index: auto !important; position: relative; min-height: max(100svh, 720px); margin-top: -82px; padding: 150px 0 112px; display: flex; align-items: flex-end; }
.hx-fallback { z-index: 0; width: min(62vw, 92vh); aspect-ratio: 1; left: 73%; top: 49%; translate: -50% -50%; animation: fade-x 1.6s var(--ease-out) both; transition: opacity .9s; }
.has-universe .hx-fallback { opacity: 0; }
.hx-copy { position: relative; z-index: 3; width: min(1440px, 100%); margin-inline: auto; padding-inline: var(--edge); }
.hx-title { margin: 0 0 16px; font-size: inherit; letter-spacing: 0; font-weight: 400; will-change: transform; }
.hx-word { display: block; overflow: hidden; padding: .04em 0 .08em; margin-left: -.05em; font: 300 clamp(4.4rem, 15.4vw, 15rem)/.92 var(--font-display); letter-spacing: -.055em; }
.hx-line { display: block; overflow: hidden; padding-bottom: .1em; margin-top: 6px; font: 400 clamp(1.4rem, 2.9vw, 2.6rem)/1.14 var(--font-display); letter-spacing: -.03em; }
.hx-lead { max-width: 56ch; margin: 0; color: #CFC6E6; font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.55; }
.hx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.hx-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; font-weight: 600; font-size: .94rem; text-decoration: none; color: #F6F3FF; }
.hx-link svg { transition: transform var(--t-ui) var(--ease-out); } .hx-link:hover { color: var(--ice); } .hx-link:hover svg { transform: translateX(4px); }
.hx-facts { position: absolute; z-index: 3; inset: auto 0 26px; list-style: none; margin: 0 auto; width: min(1440px, 100%); padding: 0 var(--edge); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hx-facts li { display: flex; align-items: baseline; gap: 10px; font-size: .84rem; color: #B5ABCF; line-height: 1.3; }
.hx-facts strong { font: 500 1.05rem var(--font-display); color: #F6F3FF; white-space: nowrap; }
.hx-motion { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; padding: 0 12px; border: 1px solid rgb(196 163 255 / .35); border-radius: 9px; background: rgb(22 10 43 / .7); color: #E4D3FF; font: 500 .84rem var(--font-body); cursor: pointer; }
.hx-motion:hover { border-color: #C4A3FF; }
.orbs { position: fixed; z-index: 2; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.orbs.on { opacity: 1; visibility: visible; }
.orb { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px; margin: -12px 0 0 -6px; border-radius: 8px; font: 600 .76rem/1 var(--font-body); color: #E9E1FF; text-decoration: none; white-space: nowrap; will-change: transform; transition: color var(--t-micro), background var(--t-micro), opacity .3s; }
.orb i { width: 7px; height: 7px; border-radius: 50%; background: #E9DEFF; box-shadow: 0 0 10px 2px rgb(168 85 247 / .9); transition: scale var(--t-ui) var(--ease-out); }
.orb:hover, .orb:focus-visible { background: rgb(22 10 43 / .85); color: #fff; } .orb:hover i { scale: 1.7; }

/* painel sobre o terreno */
.dx { padding: 8vh var(--edge) 12vh; perspective: 1500px; }
.dx-persp { max-width: 1180px; margin-inline: auto; transform-origin: 50% 0; }
.tilt-frame { position: relative; transform: perspective(1500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease-out); }

/* showcase */
.sh { min-height: 100svh; display: flex; align-items: center; padding: clamp(90px, 10vh, 130px) var(--edge) 60px; --sys: #B78CFF; }
.sh-grid { width: min(1500px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(290px, 360px) minmax(0, 1fr) minmax(420px, 500px); gap: 24px; align-items: stretch; }
.sh-left { grid-column: 1; display: grid; align-content: space-between; gap: 22px; }
.sh-left h2 { font-size: clamp(2.3rem, 3.8vw, 3.6rem); }
.sh-list { display: grid; gap: 0; }
.sh-tab { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 0; border: 0; background: none; cursor: pointer; text-align: left; font: 400 clamp(1rem, 1.28vw, 1.22rem)/1.15 var(--font-display); letter-spacing: -.02em; color: #8C8DA0; transition: color var(--t-micro), padding var(--t-ui) var(--ease-out); }
.sh-tab:hover { color: #F7F7FA; padding-left: 8px; }
.sh-tab[aria-selected="true"] { color: #F7F7FA; padding-left: 26px; }
.sh-list { position: relative; }
.sh-mark { display: none; }
.sh-rail-mark { position: absolute; left: 0; top: 0; width: 14px; height: 14px; background: var(--sys); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); transition: background var(--t-ui); }
.sh-all { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: #C4C5D3; text-decoration: none; } .sh-all:hover { color: var(--ice); }
.sh-right { grid-column: 3; display: grid; gap: 22px; align-content: start; position: relative; }
@media (min-width: 1101px) { .sh-info { min-height: 288px; align-content: start; } }
.sh-info { display: grid; gap: 12px; }
.sh-name { font: 400 clamp(1.9rem, 3vw, 2.9rem)/1.04 var(--font-display) !important; letter-spacing: -.035em !important; margin: 0; }
.sh-tag { margin: 0; color: #C4C5D3; font-size: 1.02rem; line-height: 1.5; }
.sh-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; color: #C4C5D3; } .sh-points li { display: flex; gap: 9px; } .sh-points svg { flex: none; margin-top: 3px; color: var(--sys); transition: color var(--t-ui); }
.sh-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.x-price { display: grid; margin-right: 12px; line-height: 1.2; } .x-price small { font-size: .74rem; color: var(--muted); } .x-price strong { font: 500 1.24rem var(--font-body); letter-spacing: -.02em; white-space: nowrap; }
.sh-depth { perspective: 1400px; }
.sh-ui { transform-style: preserve-3d; }
.sh .ui-panel { background: rgb(16 9 32 / .76); backdrop-filter: blur(10px); }

/* história */
.sx { height: 430vh; }
.sx-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; contain: layout paint; padding: clamp(84px, 11vh, 110px) var(--edge) 28px; display: grid; grid-template-rows: auto 1fr auto; }
.sx-head { max-width: 640px; } .sx-head h2 { font-size: clamp(1.9rem, 3vw, 2.9rem); margin-bottom: 6px; } .sx-head p { margin: 0; color: #9293A5; font-size: .92rem; }
.sx-stack { position: relative; min-height: 0; }
.sx-step { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; padding-top: clamp(40px, 15vh, 150px); gap: 40px; visibility: hidden; }
.sx-step:first-child { visibility: visible; }
.sx-clip { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.04em; }
.sx-word { margin: 0; font: 300 clamp(3rem, 7.8vw, 7.8rem)/.98 var(--font-display) !important; letter-spacing: -.05em !important; will-change: transform; }
.sx-title { margin: 10px 0 6px; font-weight: 600; font-size: 1.04rem; }
.sx-copy { margin: 0; max-width: 46ch; color: #C4C5D3; font-size: 1.02rem; line-height: 1.55; }
.sx-ui { justify-self: end; width: min(420px, 100%); margin-top: 4vh; will-change: transform, opacity; }
/* Sem desfoque de fundo: o painel se move a cada quadro e o desfoque sobre a cena 3D travava a rolagem. Fundo um pouco mais opaco no lugar. */
.sx-ui .ui-panel { background: rgb(16 9 32 / .88); }
.sx-rail { position: relative; list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgb(255 255 255 / .1); }
.sx-fill { position: absolute; left: 0; right: 12.5%; top: -1px; height: 1px; background: #BE93FF; transform-origin: left; transform: scaleX(0); will-change: transform; }
.sx-rail li { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: #74768C; transition: color var(--t-ui); } .sx-rail li.on { color: #F7F7FA; }
.sx.flat { height: auto; }
.sx.flat .sx-pin { position: static; height: auto; overflow: visible; display: block; padding-block: 72px; }
.sx.flat .sx-head { margin-bottom: 26px; }
.sx.flat .sx-stack { display: grid; gap: 52px; }
.sx.flat .sx-step { position: static; visibility: visible; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 0; }
.sx.flat .sx-ui { justify-self: start; width: min(480px, 100%); }
.sx.flat .sx-word { font-size: clamp(2.4rem, 12vw, 5rem) !important; }
.sx.flat .sx-rail { display: none; }

/* garantias */
.pledge { list-style: none; margin: 0; background: #030208; padding: clamp(26px, 4vw, 44px) var(--edge); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(28px, 6vw, 84px); font: 400 clamp(.98rem, 1.25vw, 1.14rem)/1.3 var(--font-display); letter-spacing: -.015em; color: #E4D3FF; }
.pledge li { display: flex; align-items: center; gap: 12px; }
.pledge li::before { content: ''; width: 11px; height: 11px; flex: none; background: #A855F7; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }

/* estúdio, passos e demais */
.stx { padding-block: clamp(90px, 13vh, 170px); }
.stx-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.stx-text { padding-left: clamp(0px, 11vw, 190px); } .stx-text h2 { margin-bottom: .3em; }
.stx-preview { filter: drop-shadow(0 40px 70px rgb(0 0 0 / .7)); }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; transition: transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro); } .swatch:hover { transform: scale(1.08); } .swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.x-lead { color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.55; max-width: 56ch; }
.x-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); } .x-head h2 { margin-bottom: .3em; } .x-head p { margin: 0; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.14rem); max-width: 62ch; }
.stp-head { margin-inline: auto; text-align: center; } .stp-head p { margin-inline: auto; }
.stp-orbit { position: relative; padding-top: 30px; }
.arc-line { position: absolute; left: 0; top: 0; width: 100%; height: 170px; overflow: visible; }
.arc-line path { fill: none; stroke: #BE93FF; stroke-width: 1.2; opacity: .7; }
.stp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); position: relative; }
.stp-list li:nth-child(1), .stp-list li:nth-child(4) { padding-top: 92px; } .stp-list li:nth-child(2), .stp-list li:nth-child(3) { padding-top: 6px; }
.stp .orbit-dot { margin-bottom: 14px; padding: 4px; border-radius: 50%; background: #030208; }
.stp-list h3 { font-size: 1.1rem; margin-bottom: 8px; } .stp-list p { margin: 0; color: #C4C5D3; font-size: .95rem; }
.x-features-grid { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; } .x-features-side { position: sticky; top: 104px; } .x-features-side h2 { font-size: clamp(1.8rem, 2.9vw, 2.5rem); } .x-features-side p { color: #C4C5D3; }
.spec { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(24px, 4vw, 56px); } .spec li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 14px; } .spec svg { margin-top: 3px; color: #BE93FF; } .spec strong { font: 600 1rem var(--font-body); } .spec p { margin: 4px 0 0; color: #9293A5; font-size: .94rem; line-height: 1.5; }
.chamfer { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px; align-items: end; padding: clamp(28px, 5vw, 60px); background: rgb(22 10 43 / .82); clip-path: polygon(0 0, 100% 0, 100% 100%, 40px 100%, 0 calc(100% - 40px)); } .chamfer h2 { margin-bottom: .3em; font-size: clamp(2.2rem, 4.2vw, 3.8rem); } .x-free-end { display: grid; gap: 12px; justify-items: start; } .x-free { padding-block: clamp(32px, 6vw, 72px); }
.x-faq-grid { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.x-cta { min-height: 100svh; display: flex; align-items: flex-end; padding: 0 0 clamp(50px, 9vh, 100px); }
.x-cta-inner h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); max-width: 16ch; letter-spacing: -.02em; line-height: 1; margin-bottom: .25em; }
.kw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; } .kwi { display: inline-block; will-change: transform; }
.btn.primary { --mx: 50%; } .btn.primary::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; background: radial-gradient(90px circle at var(--mx) 50%, rgb(255 255 255 / .34), transparent 70%); transition: opacity var(--t-ui); } .btn.primary:hover::before { opacity: 1; }
.btn.loading::before { opacity: 1; background: none; }

/* transição entre páginas: a próxima página se abre em círculo a partir do clique */
::view-transition-old(root) { animation: vt-out .42s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .62s var(--ease-io) both; }
@keyframes vt-out { to { opacity: .35; transform: scale(.985); } }
@keyframes vt-in { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 50%)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 50%)); } }

/* painel flutuante */
.sheen { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity var(--t-ui); background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 50%), rgb(190 147 255 / .13), transparent 70%); }
.tilt-frame:hover .sheen { opacity: 1; }
.dash { display: grid; grid-template-columns: 208px minmax(0, 1fr); border-radius: 16px; overflow: hidden; color: #F6F3FF; background: #0D0819; border: 1px solid rgb(196 163 255 / .18); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 -24px 90px -38px rgb(139 53 245 / .75), 0 60px 110px -40px #000; --line: rgb(255 255 255 / .08); --muted: #9293A5; --text: #F7F7FA; --surface-2: #141622; --chart-1: #BE93FF; }
.dash-side { padding: 18px 12px; display: grid; align-content: start; gap: 2px; background: #080512; border-right: 1px solid rgb(255 255 255 / .07); }
.dash-brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 16px; font: 600 .86rem var(--font-display); }
.dash-link { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 7px; font-size: .78rem; color: #A9AABB; white-space: nowrap; overflow: hidden; }
.dash-link.on { background: rgb(155 54 255 / .16); color: #E4D3FF; }
.dash-main { padding: 18px 20px 20px; display: grid; gap: 14px; min-width: 0; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .dash-top strong { font: 500 1.05rem var(--font-display); }
.ui-tag { padding: 3px 8px; border-radius: 5px; font: 500 .7rem/1.3 var(--font-body); color: #D9C7FF; background: rgb(196 163 255 / .12); white-space: nowrap; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dash-kpis > div { display: grid; gap: 6px; padding: 12px 14px; border-radius: 10px; background: #150C28; }
.dash-kpis span, .dash-label { font-size: .73rem; color: #9293A5; } .dash-kpis strong { font: 500 clamp(.9rem, 1.5vw, 1.25rem) var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; }
.dash-chart, .dash-orders { padding: 12px 14px; border-radius: 10px; background: #150C28; min-width: 0; } .dash-chart .ch-table { display: none; }
.dash-orders { display: grid; align-content: start; gap: 9px; }
.dash-order { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .dash-order div { display: grid; min-width: 0; } .dash-order strong { font-size: .76rem; } .dash-order div span { font-size: .72rem; color: #9293A5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dash-order .badge { font-size: .66rem; padding: 3px 7px; white-space: nowrap; }

/* fragmentos de interface */
.ui-panel { display: grid; gap: 10px; padding: 18px; border-radius: 14px; color: #F6F3FF; background: #0F0920; border: 1px solid rgb(196 163 255 / .17); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 34px 70px -34px #000; font-size: .88rem; }
.ui-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 6px; } .ui-head div { display: grid; gap: 2px; } .ui-head strong { font: 500 1rem var(--font-display); } .ui-head div span { font-size: .78rem; color: #9293A5; }
.ui-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgb(255 255 255 / .07); }
.ui-num { font-variant-numeric: tabular-nums; }
.ui-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / .14); } .ui-total strong { font: 500 1.35rem var(--font-display); }
.ui-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ui-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 7px; font-size: .8rem; font-weight: 600; background: rgb(255 255 255 / .07); }
.ui-btn.on { background: #7024E8; color: #fff; }
.ui-stock { display: grid; grid-template-columns: 76px 1fr 30px; align-items: center; gap: 12px; padding: 7px 0; } .ui-bar { height: 5px; border-radius: 3px; background: rgb(255 255 255 / .08); overflow: hidden; } .ui-bar i { display: block; height: 100%; background: #BE93FF; }
.ui-note { margin: 4px 0 0; color: #9293A5; font-size: .8rem; }
.ui-store { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgb(255 255 255 / .07); } .ui-store div { display: grid; } .ui-store div span { font-size: .78rem; color: #9293A5; }
.ui-flow { display: grid; justify-items: start; padding-top: 4px; } .ui-node { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 9px; background: #141622; border: 1px solid rgb(255 255 255 / .1); font-weight: 600; } .ui-link { width: 1px; height: 18px; margin-left: 22px; background: #BE93FF; }
.ui-embed { padding: 14px; border-radius: 9px; background: #141622; display: grid; gap: 6px; } .ui-embed p { margin: 0; color: #C4C5D3; }
.ui-q { margin: 0; font: 400 1.08rem/1.3 var(--font-display); } .ui-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ui-options .ui-btn { justify-content: center; }
.ui-big { display: flex; align-items: center; gap: 12px; padding: 8px 0 12px; font: 400 2.1rem/1 var(--font-display); letter-spacing: -.03em; } .ui-big svg { color: #BE93FF; }
.home-x .badge.soft, .ui-panel .badge.soft { color: #A9AABB; }

/* peças comuns às páginas de produto */
.x-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; font-size: .96rem; color: var(--text-2); } .x-points li { display: flex; gap: 10px; align-items: flex-start; } .x-points svg { flex: none; margin-top: 4px; color: var(--pink); }
.x-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.phase-dark { fill: var(--surface-3); } .phase-lit { fill: #D9C7FF; } [data-theme="light"] .phase-lit { fill: #7024E8; }
.x-studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

.orbit-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); position: relative; }
.orbit-steps::before { content: ''; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: var(--line-2); }
.orbit-steps li { position: relative; } .orbit-dot { display: inline-flex; padding-right: 10px; background: var(--bg); margin-bottom: 16px; }
.orbit-steps h3 { font: 500 1.14rem/1.2 var(--font-display); letter-spacing: -.02em; } .orbit-steps p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* rodapé: o nome volta inteiro */
.site-footer { background: none; border-top: 1px solid var(--line); margin-top: 0; padding-bottom: 0; overflow: hidden; }
.home-x + .site-footer { border-top: 0; }
.footer-grid .footer-h { margin: 0 0 14px; letter-spacing: 0; text-transform: none; font: 600 .86rem var(--font-body); color: var(--text); }
.footer-word { display: block; margin: 32px 0 -.14em; font: 300 clamp(4rem, 19.2vw, 19rem)/.9 var(--font-display); letter-spacing: -.06em; text-align: center; white-space: nowrap; color: var(--surface-2); user-select: none; will-change: transform; }
.public-shell[data-theme="dark"] { background: #030208; color: var(--text); --ice: #C4A3FF; }
.public-shell[data-theme="dark"] .theme-toggle { display: none; }
.public-shell[data-theme="dark"] .site-footer { position: relative; z-index: 3; background: #030208; }

/* páginas de produto e outras páginas comerciais */
.hero:not(.hero-x) { padding-top: clamp(40px, 6vw, 80px); }
.public-shell .hero .starfield, .public-shell .x-cta .starfield { display: none; }
.px-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -82px; padding: clamp(130px, 14vw, 190px) 0 clamp(64px, 8vw, 110px); background: #030208; color: #F6F3FF; }
.px-hero .moon-css { z-index: -2; width: min(54vw, 112vh); aspect-ratio: 1; right: -7%; top: 50%; translate: 0 -54%; transition: opacity .9s; } .px-hero.has-universe .moon-css { opacity: 0; }
.px-hero .uni-canvas { z-index: -1; }
.px-hero .hx-cta { margin-top: 26px; }
.px-hero::after { content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: 22%; background: linear-gradient(transparent, #050507); pointer-events: none; }
.px-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.px-title { font: 300 clamp(2.8rem, 7vw, 6.2rem)/.98 var(--font-display); letter-spacing: -.05em; margin: 0 0 12px; }
.px-slogan { font: 400 clamp(1.2rem, 2.2vw, 1.9rem)/1.15 var(--font-display); letter-spacing: -.025em; color: #D9C7FF; margin: 0 0 18px; }
.px-lead { color: #C4C5D3; max-width: 54ch; font-size: clamp(1rem, 1.25vw, 1.12rem); }
.px-hero .x-points { color: #C4C5D3; } .px-hero .x-points svg { color: #BE93FF; }
.px-ui { perspective: 1400px; } .px-ui .tilt-frame { --rx: 2deg; --ry: -5deg; }
.step-card, .feature { border-radius: var(--r-lg); }
.feature-icon { width: 38px; height: 38px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); color: var(--pink); margin-bottom: 14px; }
.sys-card, .shop-card { --acc: var(--pink) !important; }
.sys-card { border-radius: var(--r-lg); transition: transform var(--t-ui) var(--ease-out), border-color var(--t-ui); }
.price-card.featured .ribbon { border-radius: 6px; }
.showcase-card, .shop-card { border-radius: var(--r-lg); }

/* login: leve, a lua é só CSS */
.auth-art { background: #030208; color: #F6F3FF; overflow: hidden; }
.auth-art .moon-css { width: 88%; aspect-ratio: 1; right: -30%; top: 8%; animation: fade-x 1.2s var(--ease-out) both; }
.auth-art h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }

/* painéis: claros de ler, rápidos, sem efeito pesado. Escala fixa e densa: aqui a pessoa trabalha, não contempla. */
.app-shell h1, .page-head h1 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.025em; }
.app-shell h2 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -.015em; }
.app-shell h3 { font-size: 1.02rem; line-height: 1.3; letter-spacing: -.01em; }
.app-shell .wizard h2 { font-size: 1.6rem; letter-spacing: -.025em; margin-bottom: 8px; }
.page-head .eyebrow, .auth-form .eyebrow { display: none; }
.app-shell .kpi .value { font-size: 1.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shell .kpi { gap: 4px; align-content: start; }
.app-shell .card { padding: clamp(16px, 2vw, 22px); }
.sidebar { padding: 18px 12px; }
.sidebar .brand small { letter-spacing: .14em; white-space: nowrap; }
.side-nav a { white-space: nowrap; }
.app-shell .callout { padding: 12px 14px; }
.table th, .table td { padding: 10px 12px; }
.table td { font-size: .9rem; }
.table .btn.sm { min-height: 32px; padding: 0 12px; }
.input-group .btn { flex: none; }
.btn { flex-shrink: 0; }
.studio-nav .group, .studio-nav .nav-group { letter-spacing: 0; text-transform: none; font: 600 .76rem var(--font-body); color: var(--muted); }
.studio-nav a { font: 500 .88rem var(--font-body); padding: 8px 10px; }
.studio-nav a[aria-current="page"] { box-shadow: none; }
.app-content .callout + .grid, .app-content .callout + .card, .app-content .callout + .callout { margin-top: 14px; }
.fx-layout { grid-template-columns: 236px minmax(0, 1fr) 320px; }
.fx-pal-group > summary { letter-spacing: 0; text-transform: none; font: 600 .8rem var(--font-body); }
@media (max-width: 900px) { .studio-nav .nav-group { display: none; } .studio-nav { scrollbar-width: none; } }
@media (max-width: 640px) {
  .table.stacks, .table.stacks tbody { display: block; width: 100%; }
  .table.stacks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stacks tr { display: grid; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table.stacks tr:last-child { border-bottom: 0; }
  .table.stacks td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 0; border: 0; text-align: right; min-width: 0; flex-wrap: wrap; }
  .table.stacks td::before { content: attr(data-label); flex: none; font-size: .78rem; color: var(--muted); text-align: left; }
  .table.stacks td[data-label=""]::before { display: none; }
  .table.stacks td[data-label=""] { justify-content: flex-end; }
  .table.stacks td:first-child { justify-content: flex-start; text-align: left; font-size: 1rem; }
  .table.stacks td:first-child::before { display: none; }
  .table-wrap { overflow-x: visible; }
  .table.stacks .input, .table.stacks .select { max-width: 60%; }
  .table.stacks .btn { min-height: 40px; }
  .table.stacks .btn.icon { width: 40px; }
}
.tabs { max-width: 100%; min-width: 0; }
.tabs [aria-selected="true"], .tabs .active { box-shadow: none; background: color-mix(in srgb, var(--pink) 16%, transparent); }
.sys-kind, .shop-kind, .ribbon, .diag-group h3, .split-arrow { letter-spacing: 0; text-transform: none; font-family: var(--font-body); }
@media (max-width: 640px) { .app-content .row { flex-wrap: wrap !important; min-width: 0; } .app-content .row > .input { flex-basis: 140px; } .app-content .btn { max-width: 100%; white-space: normal; height: auto; overflow: visible; text-align: center; } }
.status-dot { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status-dot.ok::before { background: var(--ok); } .status-dot.warn::before { background: var(--warn); } .status-dot.err::before { background: var(--err); }
.sidebar { background: var(--bg-2); }
.side-nav .group { letter-spacing: 0; text-transform: none; font: 600 .76rem var(--font-body); color: var(--muted); }
.side-nav a { transition: background var(--t-micro), color var(--t-micro); }
.side-nav a[aria-current="page"] { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--text); }
.side-nav a[aria-current="page"] svg { color: var(--pink); opacity: 1; }
.app-top { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.nav-group { letter-spacing: 0 !important; text-transform: none !important; }
.studio-nav a[aria-current="page"] { background: color-mix(in srgb, var(--pink) 13%, transparent); color: var(--text); }
/* Menu das seções com rolagem própria: fica parado ao lado do conteúdo e rola sozinho quando é maior que a tela. */
@media (min-width: 901px) {
  .studio-nav { max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 18%, transparent) transparent; padding-right: 4px; align-content: start; }
}
.ch-line { stroke-width: 2; stroke-dasharray: 1; animation: chart-draw .8s var(--ease-out) both; }
.ch-svg path:not(.ch-line) { transform-box: fill-box; transform-origin: 50% 100%; animation: chart-grow .5s var(--ease-out) both; }
@keyframes chart-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes chart-grow { from { transform: scaleY(.15); opacity: .4; } }
.progress span { transition: width .6s var(--ease-out); }

/* tablet */
@media (max-width: 1100px) {
  .hx-fallback { left: 70%; top: 34%; width: min(72vw, 72vh); }
  .hx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .hx { padding-bottom: 148px; }
  .sh { min-height: 0; padding-block: 90px 60px; }
  .sh-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-left, .sh-right { grid-column: 1; }
  .sh-list { grid-auto-flow: column; grid-auto-columns: max-content; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); }
  .sh-tab { width: auto; padding: 8px 14px !important; border-radius: 9px; background: rgb(255 255 255 / .05); font: 600 .92rem var(--font-body); white-space: nowrap; }
  .sh-tab[aria-selected="true"] { background: rgb(155 54 255 / .26); }
  .sh-mark { display: none; }
  .sh-left { padding-right: 0; }
  .sh-rail-mark { display: none; }
  .sh-right { margin-top: 18px; }
  .stx-text { padding-left: 0; }
  .stx-grid { grid-template-columns: minmax(0, 1fr); }
  .stp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stp-list li { padding-top: 0 !important; } .arc-line { display: none; } .stp-head { text-align: left; margin-inline: 0; } .stp-head p { margin-inline: 0; }
  .x-features-grid, .x-faq-grid { grid-template-columns: minmax(0, 1fr); } .x-features-side { position: static; }
  .orbit-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .orbit-steps::before { display: none; }
  .dash { grid-template-columns: minmax(0, 1fr); } .dash-side { display: none; }
}
/* celular: composição própria, núcleo no alto, marca atravessando, texto embaixo */
@media (max-width: 760px) {
  .hx { min-height: 0; padding: min(300px, 44svh) 0 28px; display: block; }
  .hx-fallback { left: 65%; top: 26.5lvh; width: 74vw; }
  .hx-word { font-size: 20.4vw; }
  .hx-line { font-size: 1.55rem; }
  .hx-cta .btn { flex: 1 1 100%; }
  .hx-facts { position: static; margin-top: 30px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hx-link { justify-content: center; width: 100%; }
  .dx { perspective: none; padding: 24px var(--edge) 40px; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-buy .x-price { flex: 1 1 100%; } .sh-buy .btn { flex: 1 1 0; }
  .spec, .stp-list { grid-template-columns: minmax(0, 1fr); }
  .chamfer { grid-template-columns: minmax(0, 1fr); clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
  .x-cta { min-height: 88svh; }
  .site-header .bar { width: calc(100% - 16px); }
  .tilt-frame { transform: none; }
  .px-grid { grid-template-columns: minmax(0, 1fr); } .px-ui .tilt-frame { transform: none; } .px-hero { padding-top: 170px; } .px-hero .moon-css { width: 66vw; right: -12vw; top: 62px; translate: none; }
  .x-buy .x-price { flex: 1 1 100%; } .x-buy .btn { flex: 1 1 0; }
  .orbit-steps { grid-template-columns: minmax(0, 1fr); }
  .x-studio-grid { grid-template-columns: minmax(0, 1fr); }
}

/* celular e tablet: desfoque sobre a cena 3D era o maior custo da rolagem */
@media (max-width: 1100px), (pointer: coarse) {
  .sh .ui-panel, .sx-ui .ui-panel { backdrop-filter: none; background: #0F0920; }
  .public-shell[data-theme="dark"] .site-header.scrolled .bar { backdrop-filter: none; background: rgb(10 6 22 / .94); }
}

/* cor do site: vidro que sobe em mola, roda que gira até o lugar e cores entrando em sequência */
dialog.modal.glass { background: color-mix(in srgb, var(--surface) 76%, transparent); border-color: color-mix(in srgb, var(--pink) 30%, var(--line-2)); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 40px 90px -30px rgb(0 0 0 / .85), 0 0 70px -24px var(--glow); }
dialog.modal.glass[open] { animation: glass-in .62s cubic-bezier(.2, 1.25, .3, 1) both; }
dialog.modal.glass::backdrop { background: rgb(3 2 8 / .34); backdrop-filter: blur(2px); animation: fade-x .35s var(--ease-out) both; }
dialog.modal.glass.closing { animation: glass-out .24s var(--ease-io) both; }
dialog.modal.glass.closing::backdrop { opacity: 0; transition: opacity .24s; }
.glass .modal-body > * { animation: glass-rise .55s var(--ease-out) both; }
.glass .modal-body > :nth-child(2) { animation-delay: .06s; } .glass .modal-body > :nth-child(3) { animation-delay: .1s; } .glass .modal-body > :nth-child(4) { animation-delay: .22s; } .glass .modal-body > :nth-child(n+5) { animation-delay: .28s; }
.glass .cw-wheel { animation: wheel-in .85s cubic-bezier(.2, 1.15, .3, 1) .08s both; }
.glass .cw-preset { animation: preset-in .42s cubic-bezier(.2, 1.5, .4, 1) calc(.2s + var(--i, 0) * .035s) both; }
@keyframes glass-in { from { opacity: 0; transform: translateY(34px) scale(.9); filter: blur(10px); } }
@keyframes glass-out { to { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(6px); } }
@keyframes glass-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes wheel-in { from { opacity: 0; transform: rotate(-150deg) scale(.55); } }
@keyframes preset-in { from { opacity: 0; transform: scale(.3); } }

/* chat dos lojistas */
.tc { display: grid; grid-template-columns: 270px minmax(0, 1fr); height: min(680px, calc(100svh - 190px)); min-height: 460px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.tc-rooms { display: flex; flex-direction: column; gap: 2px; padding: 10px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-2); }
.tc-room { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); text-align: left; cursor: pointer; transition: background var(--t-micro); }
.tc-room:hover { background: var(--surface-2); }
.tc-room.active { background: color-mix(in srgb, var(--pink) 15%, transparent); }
.tc-room-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.tc-room-text strong { font: 600 .9rem var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-room-text small { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-unread { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--pink); color: #fff; font: 700 .7rem var(--font-body); }
.tc-avatar { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; font-weight: 700; font-family: var(--font-body); color: #fff; background: hsl(var(--hue, 270) 52% 42%); }
.tc-avatar.group { background: var(--grad); }
.tc-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.tc-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tc-head-text { display: grid; flex: 1; min-width: 0; } .tc-head-text strong { font: 600 1rem var(--font-body); } .tc-head-text small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-search { width: 170px; flex: none; }
.tc-log { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; overflow-y: auto; overscroll-behavior: contain; }
.tc-day { display: flex; justify-content: center; } .tc-day span { padding: 3px 11px; border-radius: 10px; background: var(--surface-2); font-size: .73rem; color: var(--muted); }
.tc-empty { margin: auto; padding: 24px; max-width: 360px; text-align: center; color: var(--muted); font-size: .92rem; } .tc-empty p { margin: 0; }
.tc-msg { display: flex; align-items: flex-end; gap: 10px; max-width: min(78%, 620px); animation: tc-in .3s var(--ease-out) both; }
.tc-msg.joined { margin-top: -9px; }
.tc-gap { flex: none; width: 38px; }
.tc-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.tc-bubble { display: grid; gap: 4px; min-width: 0; padding: 9px 13px 7px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); overflow-wrap: anywhere; }
.tc-msg.mine .tc-bubble { border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--pink) 24%, var(--surface-2)); }
.tc-msg.important .tc-bubble { box-shadow: inset 0 0 0 1px var(--warn); }
.tc-bubble header { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tc-bubble header strong { font: 600 .84rem var(--font-body); color: hsl(var(--hue, 270) 75% 76%); }
[data-theme="light"] .tc-bubble header strong { color: hsl(var(--hue, 270) 65% 36%); }
.tc-msg.mine .tc-bubble header strong { color: var(--text); }
.tc-role { padding: 1px 7px; border-radius: 6px; background: rgb(127 127 127 / .16); font-size: .68rem; font-weight: 600; color: var(--text-2); }
.tc-role.owner { background: color-mix(in srgb, var(--pink) 28%, transparent); color: var(--text); }
.tc-alert { display: flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: var(--warn); }
.tc-bubble p { margin: 0; font-size: .92rem; line-height: 1.42; white-space: pre-wrap; }
.tc-attach { max-width: 240px; border-radius: 10px; margin-top: 4px; }
.tc-bubble time { justify-self: end; font-size: .68rem; color: var(--muted); }
.tc-compose { display: grid; gap: 6px; padding: 12px 14px; border-top: 1px solid var(--line); }
.tc-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.tc-compose textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; }
.tc-compose .btn.icon { width: 44px; height: 44px; flex: none; }
.tc-compose .btn.icon svg { transform: rotate(-90deg); }
.tc-important[hidden] { display: none; }
@keyframes tc-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 760px) {
  .tc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: calc(100svh - 150px); }
  .tc-rooms { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tc-room { width: auto; flex: none; max-width: 190px; }
  .tc-room-text small { display: none; }
  .tc-search { width: 104px; }
  .tc-msg { max-width: 92%; } .tc-msg .tc-avatar { width: 30px !important; height: 30px !important; font-size: 11px !important; } .tc-gap { width: 30px; }
}

/* teste grátis */
.sh-trial { display: inline-flex; align-items: center; gap: 7px; justify-self: start; min-height: 32px; font-size: .88rem; font-weight: 600; color: #E4D3FF; text-decoration: none; }
.sh-trial:hover { color: #fff; } .sh-trial svg { transition: transform var(--t-ui) var(--ease-out); } .sh-trial:hover svg { transform: translateX(4px); }
.trial-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--pink) 32%, var(--line)); border-radius: var(--r-md, 12px); background: color-mix(in srgb, var(--pink) 9%, transparent); font-size: .95rem; }
.trial-page { max-width: 720px; }
.trial-lead { font-size: 1.08rem; margin: 0 0 22px; }
.trial-facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.trial-facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; } .trial-facts svg { margin-top: 2px; color: var(--pink); } .trial-facts strong { font: 600 .98rem var(--font-body); } .trial-facts p { margin: 3px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.trial-card { --gap: 14px; }
@media (max-width: 620px) { .trial-facts { grid-template-columns: minmax(0, 1fr); } }

/* aparelhos bem estreitos: o cabeçalho cabe sem empurrar a página */
@media (max-width: 350px) {
  .site-header .bar { padding: 0 8px; gap: 6px; width: calc(100% - 12px); }
  .site-header .brand { gap: 6px; min-width: 0; }
  .site-header .brand span { font-size: .78rem; letter-spacing: .1em; }
  .site-header .header-actions .btn.sm { padding: 0 10px; }
}


/* celular e tablet: a prévia do estúdio usava uma sombra desfocada (filter) que era recalculada a cada quadro durante a rolagem, sobre a cena 3D.
   Aqui ela vira uma sombra comum, desenhada uma vez, e a área fica isolada para não repintar o resto. O computador continua com o efeito original. */
@media (max-width: 1100px) {
  .stx-preview { filter: none; contain: layout paint; will-change: transform; transform: translateZ(0); }
  .stx-preview > * { box-shadow: 0 22px 44px -24px rgb(0 0 0 / .85); border-radius: 12px; }
}

/* botão carregando: o girador fica no centro (o brilho do botão principal usa o mesmo ::before e o deslocava para o canto) */
.btn.loading::before { inset: 0 !important; margin: auto; width: 18px; height: 18px; border-radius: 50% !important; z-index: 1; opacity: 1 !important; background: none !important; translate: none; }

/* interruptores: texto com respiro e nunca colado no próximo */
.switch { gap: 12px; line-height: 1.35; }
.switch:not(:last-child) { margin-right: 28px; }
.row > .switch, .row-wrap > .switch { margin-block: 4px; }

/* caixas com texto: centralizado, sem quebrar para fora */
.emoji-preview { text-align: center; overflow: hidden; padding: 2px; }
.emoji-none { font-size: .66rem; line-height: 1.15; color: var(--faint); text-align: center; }
.input::placeholder, .textarea::placeholder { text-overflow: ellipsis; }
.input { text-overflow: ellipsis; }


/* ---------- Lojistas · configurações do bot em seções ---------- */
/* Campos lado a lado: o rótulo fica em cima e a caixa logo abaixo dele (antes a caixa "descia" quando o vizinho tinha dica). */
.field { align-content: start; }
.lj-settings { display: grid; gap: 18px; }
.lj-set-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.lj-set { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: clamp(16px, 2.4vw, 24px); scroll-margin-top: 84px; }
.lj-set-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.lj-set-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, transparent); }
.lj-set-head h3 { margin: 0; font-size: 1.08rem; }
.lj-set-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; max-width: 760px; }
.lj-set-body { display: grid; gap: 16px; }
.lj-set-sub { margin: 4px 0 -4px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lj-grid { --gap: 14px 16px; align-items: start; }
.lj-toggles { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.lj-toggles .switch { margin-right: 0; }
.lj-save { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 97%, transparent); backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgba(0, 0, 0, .25); }

/* ---------- Comece aqui (guia gamificado) ---------- */
.wq { display: grid; gap: 18px; }
.wq-hero { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center; position: relative; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, var(--glow-soft), transparent 60%), var(--surface); }
.wq-moon { font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--pink) 45%, transparent)); }
.wq-hero-text { min-width: 0; }
.wq-meter { display: grid; gap: 8px; margin-top: 14px; }
.wq-meter .progress { height: 10px; }
.wq-phases { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.wq-phases li { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--r-sm); background: var(--surface-2); opacity: .45; transition: opacity var(--t-slow, .3s) ease; text-align: center; }
.wq-phases li.on { opacity: 1; background: var(--glow-soft); }
.wq-phases span { font-size: 1.3rem; }
.wq-phases small { font-size: .7rem; color: var(--muted); }
.wq-group { display: grid; gap: 10px; }
.wq-group-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.wq-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); font: 600 .9rem/1 var(--font-display); }
.wq-steps { display: grid; gap: 8px; }
.wq-step { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .2s ease; }
.wq-step.next { border-color: color-mix(in srgb, var(--pink) 55%, transparent); }
.wq-step.done .wq-step-title { color: var(--muted); }
.wq-step-head { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border-radius: inherit; }
.wq-step-head:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.wq-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); font-weight: 700; font-size: .8rem; color: var(--ink-on-pink); }
.wq-step.done .wq-check { background: var(--ok); border-color: var(--ok); color: #05130d; }
.wq-step-title { font-weight: 600; min-width: 0; }
.wq-xp { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.wq-step-body { display: grid; gap: 10px; padding: 0 14px 14px 50px; }
.wq-how { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text-2); }
.wq-burst { position: absolute; left: 26px; top: 25px; pointer-events: none; }
.wq-burst i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); animation: wq-burst .8s ease-out forwards; transform: rotate(var(--a)) translateX(0); }
.wq-burst i:nth-child(3n) { background: var(--ok); } .wq-burst i:nth-child(3n+1) { background: var(--lilac); }
@keyframes wq-burst { to { transform: rotate(var(--a)) translateX(var(--d)); opacity: 0; } }
@media (max-width: 640px) {
  .wq-hero { grid-template-columns: 1fr; }
  .wq-phases small { display: none; }
  .wq-step-body { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .wq-burst { display: none; } }
.wq-card { margin: 16px 0; }
.wq-card > summary { cursor: pointer; padding: 2px 0; }
.wq-card[open] > summary { margin-bottom: 14px; }

/* Vitrine: cartão do servidor com banner e foto do Discord */
.store-card.store-card-v2 { display: block; padding: 0; overflow: hidden; }
.store-card-v2 .store-banner { height: 96px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--pink) 38%, transparent), transparent 62%), linear-gradient(135deg, var(--surface-3), var(--surface-2)); }
.store-card-v2 .store-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-card-v2 .store-body { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: end; padding: 0 16px 16px; margin-top: -30px; }
.store-card-v2 .store-avatar { width: 64px; height: 64px; border-radius: 18px; border: 3px solid var(--surface); box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.store-card-v2 .store-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pedido de avaliação no painel (fácil de achar) */
.review-ask { display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; margin-bottom: 18px; border-color: color-mix(in srgb, var(--pink) 45%, transparent); background: radial-gradient(120% 160% at 100% 0%, var(--glow-soft), transparent 60%), var(--surface); }
.review-ask-stars { display: flex; gap: 2px; }
.review-ask-star { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--faint); transition: color .15s ease, transform .15s ease; }
.review-ask-stars:hover .review-ask-star { color: #fbbf24; }
.review-ask-star:hover ~ .review-ask-star { color: var(--faint); }
.review-ask-star:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; color: #fbbf24; }
@media (prefers-reduced-motion: no-preference) { .review-ask-star:hover { transform: translateY(-2px); } }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-left: auto; box-shadow: 0 0 0 3px var(--glow-soft); }

/* Pop-up de avaliação */
.review-pop { text-align: center; display: grid; justify-items: center; gap: 10px; max-width: 440px; }
.review-pop-moon { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--pink) 50%, transparent)); }
.review-pop-stars { margin: 8px 0 2px; }
.review-pop-stars .review-ask-star { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; color: var(--faint); }
.review-pop-stars:hover .review-ask-star { color: #fbbf24; }
.review-pop-stars .review-ask-star:hover ~ .review-ask-star { color: var(--faint); }
.review-pop-stars .review-ask-star:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; color: #fbbf24; }

/* ---------- Estoque MM2/FTF: arte dos itens, quantidade e seletor em cartões ---------- */
.item-art { --s: 44px; flex: none; width: var(--s); height: var(--s); display: inline-grid; place-items: center; border-radius: var(--r-md); background: radial-gradient(120% 90% at 30% 20%, var(--glow-soft), transparent 70%), var(--surface-3); border: 1px solid var(--line); overflow: hidden; }
.item-art.sm { --s: 30px; border-radius: var(--r-sm); }
.item-art.lg { --s: 56px; border-radius: var(--r-lg); }
.item-art img { width: 78%; height: 78%; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .35)); user-select: none; }
.item-art-initial { font: 700 calc(var(--s) * .4) / 1 var(--font-display); color: var(--muted); }
.inline-art { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); overflow: hidden; height: 40px; }
.stepper-btn { width: 38px; display: grid; place-items: center; border: 0; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.stepper-btn:hover { background: var(--surface-3); color: var(--text); }
.stepper-btn:active { background: var(--line-2); }
.stepper-input { width: 56px; border: 0; border-inline: 1px solid var(--line); background: transparent; color: var(--text); text-align: center; font: 600 .95rem var(--font-body); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-input:focus { outline: none; background: var(--glow-soft); }
.stepper:focus-within { border-color: var(--pink); }

.money-input { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--muted); font: 600 .85rem var(--font-body); cursor: text; }
.money-input:focus-within { border-color: var(--pink); }
.money-input-field { width: 74px; min-width: 0; border: 0; background: transparent; color: var(--text); font: 600 .95rem var(--font-body); font-variant-numeric: tabular-nums; }
.money-input-field:focus { outline: none; }

.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip-scroll .chip-btn { flex: none; white-space: nowrap; }
.chip-count { font-size: .72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip-btn.active .chip-count { color: var(--text-2); }

.ipick { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; align-items: start; }
.ipick-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--t-fast), background var(--t-fast); }
.ipick-item.on { border-color: var(--pink); background: linear-gradient(var(--glow-soft), var(--glow-soft)), var(--surface); }
.ipick-item.off { opacity: .55; }
.ipick-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; border-radius: inherit; font: inherit; }
.ipick-head:disabled { cursor: default; }
.ipick-head:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.ipick-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ipick-name { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ipick-sub { font-size: .78rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipick-note { font-size: .72rem; color: var(--ok); }
.ipick-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background var(--t-fast), border-color var(--t-fast); }
.ipick-item.on .ipick-check { background: var(--pink-3); border-color: var(--pink-3); color: #fff; }
.ipick-extra { display: none; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 12px 12px; }
.ipick-item.on .ipick-extra { display: flex; }
.ipick-extra .money-input { flex: 1 1 110px; }
.ipick-extra .money-input-field { width: 100%; }
.ipick-scroll { max-height: min(52vh, 520px); overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
.ipick-scroll .ipick { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ipick-more { margin: 4px 0 0; }

/* Barra de seleção que acompanha a rolagem */
.pick-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 4px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.pick-bar-count { font-weight: 700; margin-right: auto; font-variant-numeric: tabular-nums; }
.pick-bar-apply { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
dialog .pick-bar { position: static; box-shadow: none; }
.modal-body > * { min-width: 0; }
dialog.modal:has(.ipick-scroll) { width: min(820px, calc(100vw - 32px)); }
.chip-holder { min-width: 0; }
.stepper-btn { flex: none; }
.stepper-input { flex: 1 1 auto; min-width: 0; }

/* Lista de produtos do estoque */
.stock-list { display: grid; gap: 8px; }
.stock-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.stock-row.dirty { border-color: var(--warn); }
.stock-row.is-out .item-art { opacity: .55; }
.stock-main { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.stock-main strong { line-height: 1.25; overflow-wrap: anywhere; }
.stock-fields { display: flex; align-items: center; gap: 10px; }
.stock-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; }
.stock-field > span { font-size: .7rem; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.stock-actions { display: flex; gap: 2px; }
.stock-out { font-size: .72rem; color: var(--warn); }
@media (max-width: 640px) {
  .ipick, .ipick-scroll .ipick { grid-template-columns: 1fr; gap: 8px; }
  .stock-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; }
  .stock-fields { grid-column: 1 / -1; grid-row: 2; }
  .stock-actions { grid-column: 3; grid-row: 1; }
  .stock-fields .stock-field:first-child { flex: 1 1 auto; min-width: 0; }
  .stock-fields .stock-field:last-child { flex: none; }
  .stock-fields .money-input { width: 100%; }
  .stock-fields .money-input-field { flex: 1; width: auto; }
  .stock-fields .stepper { width: 140px; }
  .pick-bar { bottom: calc(8px + env(safe-area-inset-bottom)); }
  .pick-bar .btn.primary { flex: 1 1 100%; justify-content: center; }
  .pick-bar-apply { flex: 1 1 100%; }
  .pick-bar-apply > * { flex: 1 1 auto; }
}

/* ---------- Meus bots: planos que a pessoa possui ---------- */
.section-title { font-size: 1.05rem; margin: 6px 0 12px; }
.plan-own-section { margin-bottom: 28px; }
.plan-own-grid { align-items: stretch; }
.plan-own { display: grid; gap: 14px; align-content: start; min-width: 0; }
.plan-own.is-off { opacity: .82; }
.plan-own-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.plan-own-top .grow > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-own .gicon { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-3); display: grid; place-items: center; color: var(--pink); flex: none; }
.plan-own-name { font-family: var(--font-display); font-size: 1.05rem; }
.plan-own-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.plan-own-facts > div { display: grid; gap: 2px; min-width: 0; }
.plan-own-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .plan-own-actions .btn.primary { flex: 1 1 100%; justify-content: center; }
  .plan-own-actions .btn { flex: 1 1 auto; justify-content: center; }
}.plan-own-facts .label { font-size: .8rem; font-weight: 500; color: var(--muted); }

/* ---------- Opção com explicação (chave + texto): cada uma num bloco próprio, para não parecer que o texto de baixo é da opção de cima ---------- */
:where(div, li):has(> .switch + .hint) { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
:where(div, li):has(> .switch + .hint) > .hint { margin: 0 0 0 58px !important; color: var(--muted); font-size: .86rem; line-height: 1.45; }
:where(div, li):has(> .switch + .hint) + :where(div, li):has(> .switch + .hint) { margin-top: 8px; }
@media (max-width: 640px) { :where(div, li):has(> .switch + .hint) > .hint { margin-left: 0 !important; } }
/* Campos dentro de tabelas: nunca encolhem a ponto de esconder o texto (a tabela rola de lado se precisar). */
.table td > input.input:not([type=number]):not([type=checkbox]) { min-width: 150px; }
.table td > input.input[type=number] { min-width: 96px; }
.table td > .select { min-width: 180px; }
/* Busca e filtros em linha: no celular ocupam a linha inteira em vez de espremer o texto. */
@media (max-width: 640px) {
  .row > input.input[placeholder], .row > select.select { flex: 1 1 100% !important; max-width: none !important; min-width: 0; }
}
/* ---------- Página de verificação: abas por etapa e temas salvos embaixo da prévia ---------- */
.vf-steps-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-themes { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.vf-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vf-theme { display: grid; gap: 4px; align-content: start; text-align: left; padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.vf-theme:hover, .vf-theme:focus-visible { border-color: var(--pink); }
.vf-theme.editing { border-color: var(--pink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pink) 30%, transparent); }
.vf-theme.empty { cursor: default; border-style: dashed; background: transparent; min-height: 96px; }
.vf-theme-thumb { position: relative; height: 84px; overflow: hidden; border-radius: 8px; pointer-events: none; }
.vf-theme-thumb .vf-theme-mini { position: absolute; inset: 0; width: 400%; height: 400%; transform: scale(.25); transform-origin: 0 0; }
@media (max-width: 640px) { .vf-theme-grid { grid-template-columns: 1fr; } }
/* Campos lado a lado numa linha: cada um com espaço mínimo (no celular quebram para a linha de baixo em vez de esmagar o número). */
.row > .field { min-width: 120px; }

/* ---------- Embed Maker: editor dentro da mensagem (como o discord.builders) ---------- */
.ib-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 18px; align-items: start; }
.ib-stage { min-width: 0; }
.ib-aside { display: grid; gap: 12px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; overscroll-behavior: contain; }
.ib-aside .em-panel { position: static; max-height: none; overflow: visible; }
.ib-aside > * { min-width: 0; }
.ib-aside .input-group, .ib-aside .input-group .input, .ib-aside .color-field .input { min-width: 0; }
.ib-aside .row { flex-wrap: wrap; }
.ib-panel h3 { font-size: 1.05rem; }
.ib-panel.flash { box-shadow: 0 0 0 2px var(--pink); transition: box-shadow .2s; }
.ib-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: .86rem; line-height: 1.45; color: var(--muted); }
.ib-note svg { flex: none; margin-top: 2px; color: var(--pink); }
.ib-card { padding: 14px 16px; }
.ib-card > summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.ib-json { margin: 0; max-height: 340px; overflow: auto; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface-2); color: var(--text); padding: 10px 12px; border-radius: 8px; white-space: pre; }
.ib-fmt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 10px 0 0; font-size: .84rem; align-items: center; }
.ib-fmt dt { margin: 0; } .ib-fmt dd { margin: 0; color: var(--muted); }
.ib-fmt code { font-size: .8rem; padding: 1px 6px; border-radius: 5px; background: var(--surface-3, rgba(255,255,255,.06)); white-space: nowrap; }
/* A mensagem tem as cores reais do Discord (tema escuro), em qualquer tema do site. */
.ib-dc { padding: 16px 14px 18px; background: #313338; color: #dbdee1; border-radius: var(--r-md, 14px); border: 1px solid rgba(255,255,255,.06); }
.ib-msg { gap: 4px; margin-left: 28px; }
.ib-help { margin: 10px 0 0; text-align: center; }
/* Cada bloco: alça ⠿ (arrastar) · conteúdo · ações e × (como no discord.builders). */
.ib-node { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 4px; align-items: start; border-radius: 8px; padding: 4px 2px 4px 0; transition: background .15s, box-shadow .15s; min-width: 0; }
.ib-node:hover { background: rgba(255,255,255,.03); }
.ib-node.sel { background: rgba(236,150,215,.06); box-shadow: inset 0 0 0 1px rgba(236,150,215,.55); }
.ib-node.drop { box-shadow: inset 0 3px 0 var(--pink); }
.ib-node.dragging { opacity: .45; }
.ib-grip { cursor: grab; color: #80848e; font-size: 15px; line-height: 1; padding-top: 5px; text-align: center; opacity: 0; user-select: none; transition: opacity .15s; }
.ib-grip:active { cursor: grabbing; }
.ib-grip.off { cursor: default; }
.ib-node:hover > .ib-grip, .ib-node.sel > .ib-grip { opacity: 1; }
.ib-body { min-width: 0; }
.ib-side { display: flex; align-items: center; gap: 2px; opacity: .45; transition: opacity .15s; }
.ib-node:hover > .ib-side, .ib-node.sel > .ib-side, .ib-node:focus-within > .ib-side { opacity: 1; }
.ib-side .ib-tool { font-size: 16px; min-width: 28px; height: 28px; }
.ib-embed-wrap { display: grid; gap: 10px; max-width: 560px; }
.ib-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-part { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px dashed #4e5058; background: transparent; color: #b5bac1; font: inherit; font-size: 13px; cursor: pointer; }
.ib-part:hover, .ib-part:focus-visible { border-color: var(--pink); color: #f2f3f5; }
.ib-part.on { border-style: solid; border-color: rgba(236,150,215,.55); background: rgba(236,150,215,.14); color: #f2f3f5; }
.ib-x { font-size: 16px; line-height: 1; opacity: .75; }
.ib-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ib-line > .ib-edit { flex: 1; min-width: 0; }
.ib-link { display: inline-grid; place-items: center; color: #80848e; } .ib-link.on { color: #00a8fc; }
.ib-mini { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 1px dashed #4e5058; background: #1e1f22; color: #949ba4; cursor: pointer; overflow: hidden; }
.ib-mini img { width: 100%; height: 100%; object-fit: cover; }
.ib-mini:not(.empty) { border: 0; }
.ib-mini:hover { outline: 2px solid var(--pink); }
.ib-ts { white-space: nowrap; }
.ib-img-label { font-size: 12px; }
.ib-tools { position: absolute; top: -14px; right: 6px; z-index: 3; display: none; align-items: center; gap: 2px; padding: 2px; border-radius: 8px; background: #1e1f22; border: 1px solid #3f4147; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.ib-node:hover > .ib-tools, .ib-node.sel > .ib-tools, .ib-node:focus-within > .ib-tools, .ib-field:hover > .ib-tools, .ib-field.sel > .ib-tools { display: inline-flex; }
.ib-tag { font-size: 11px; color: #b5bac1; padding: 0 6px; letter-spacing: .02em; }
.ib-tool { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: #dbdee1; cursor: pointer; font: inherit; font-size: 13px; }
.ib-tool:hover, .ib-tool:focus-visible { background: #35373c; }
.ib-tool.danger:hover { background: #da373c; color: #fff; }
.ib-edit { border-radius: 6px; cursor: text; min-height: 22px; padding: 1px 3px; margin: -1px -3px; }
.ib-edit:hover { background: rgba(255,255,255,.05); }
.ib-edit:focus-visible { outline: 2px solid var(--pink); }
.ib-edit.strong { font-weight: 700; }
.ib-ph { color: #80848e; font-style: italic; }
.ib-input { display: block; width: 100%; resize: none; overflow: hidden; background: #1e1f22; color: #f2f3f5; border: 1px solid var(--pink); border-radius: 6px; padding: 6px 8px; font: inherit; line-height: 1.375; outline: none; min-height: 32px; }
.ib-input.single { white-space: nowrap; }
.ib-container { gap: 10px; }
.ib-cfoot { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.12); }
.ib-cfoot.full { grid-column: 1 / -1; }
.ib-add { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 8px; border: 1px dashed #4e5058; background: transparent; color: #b5bac1; font: inherit; font-size: 13px; cursor: pointer; }
.ib-add:hover, .ib-add:focus-visible { border-color: var(--pink); color: #f2f3f5; background: rgba(255,255,255,.04); }
.ib-add.on { border-style: solid; color: #f2f3f5; }
.ib-add.sm { min-height: 26px; padding: 2px 10px; font-size: 12px; }
.ib-add.big { justify-content: center; min-height: 40px; margin-top: 6px; }
.ib-color { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid #4e5058; color: #b5bac1; font-size: 13px; cursor: pointer; }
.ib-color:hover { border-color: var(--pink); color: #f2f3f5; }
.ib-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); flex: none; }
.ib-dot.blank { border-color: transparent; }
.ib-chip { cursor: pointer; }
.ib-chip.sel { outline: 2px solid var(--pink); outline-offset: 2px; }
.ib-row { align-items: center; }
.ib-select-wrap { display: grid; gap: 6px; }
.ib-select-wrap .em-select .ib-edit { flex: 1; color: #dbdee1; }
.ib-options { display: grid; gap: 4px; padding: 6px; border-radius: 6px; background: #1e1f22; }
.ib-option { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; background: #2b2d31; }
.ib-option > .ib-edit { flex: 1; min-width: 0; }
.ib-img { display: grid; place-items: center; border: 0; padding: 0; background: #1e1f22; border-radius: 6px; overflow: hidden; cursor: pointer; color: #949ba4; font: inherit; font-size: 12px; min-height: 90px; width: 100%; }
.ib-img img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; display: block; }
.ib-img.empty { border: 1px dashed #4e5058; }
.ib-img.empty > span { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 6px; }
.ib-img:hover { outline: 2px solid var(--pink); }
.ib-img.ib-thumb { width: 80px; height: 80px; min-height: 80px; }
.ib-img.wide { min-height: 60px; }
.ib-sep { cursor: pointer; border-radius: 4px; }
.ib-sep:hover { background: rgba(255,255,255,.04); }
.ib-sep-ghost { text-align: center; font-size: 11px; color: #6d6f78; border-top: 1px dashed #3f4147; padding-top: 2px; }
.ib-file { width: 100%; cursor: pointer; font: inherit; text-align: left; }
.ib-embed { max-width: none; }
.ib-field { position: relative; display: grid; gap: 2px; border-radius: 6px; padding: 2px; }
.ib-field:hover { background: rgba(255,255,255,.03); }
.ib-field .ib-tools { top: -12px; }
.ib-pop { position: fixed; z-index: 1000; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); padding: 6px; border-radius: 10px; background: #111214; border: 1px solid #2b2d31; box-shadow: 0 12px 32px rgba(0,0,0,.5); display: grid; gap: 1px; }
.ib-pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #dbdee1; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ib-pop-item:hover, .ib-pop-item:focus-visible { background: #5865f2; color: #fff; outline: none; }
.ib-pop-item.danger { color: #f87171; }
.ib-pop-item.danger:hover, .ib-pop-item.danger:focus-visible { background: #da373c; color: #fff; }
.ib-pop-item.active { color: #fff; font-weight: 600; }
.ib-check { margin-left: auto; }
.ib-pop-sep { height: 1px; background: #2b2d31; margin: 4px 2px; }
@media (max-width: 1100px) { .ib-grid { grid-template-columns: minmax(0, 1fr); } .ib-aside { position: static; max-height: none; overflow: visible; } }
@media (max-width: 640px) {
  .ib-msg, .ib-dc .dc-container { margin-left: 0; }
  .ib-dc { padding: 12px 8px 14px; }
  .ib-node { grid-template-columns: minmax(0, 1fr) auto; gap: 2px; }
  .ib-grip { display: none; }
  .ib-side { opacity: 1; flex-direction: column; }
}
@media (hover: none) { .ib-side, .ib-grip { opacity: 1; } }
/* Combo MM2 + FTF (Planos, páginas de produto e início). */
.combo-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 20px; padding: 20px 24px; border-radius: var(--r-md, 16px); border: 1px solid color-mix(in srgb, var(--pink) 45%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--pink) 14%, var(--surface)), var(--surface)); }
.combo-tag { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 84px; height: 84px; border-radius: 50%; background: var(--pink); color: #1a0f1a; text-align: center; line-height: 1; }
.combo-tag b { font-family: var(--font-display); font-size: 1.45rem; }
.combo-tag small { font-size: .72rem; font-weight: 600; }
.combo-text h3 { font-size: 1.2rem; }
.combo-text h3 small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.combo-old { text-decoration: line-through; color: var(--muted); font-weight: 500; }
@media (max-width: 720px) { .combo-banner { grid-template-columns: auto minmax(0, 1fr); } .combo-banner > .btn { grid-column: 1 / -1; justify-self: stretch; justify-content: center; } .combo-tag { width: 64px; height: 64px; } .combo-tag b { font-size: 1.1rem; } }
/* ---------- Pix das assinaturas: janela central (só fecha em "Cancelar") ---------- */
dialog.modal.pix-modal { width: min(460px, calc(100vw - 24px)); overflow-x: hidden; border-color: color-mix(in srgb, var(--pink) 34%, var(--line-2)); background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--pink) 16%, transparent), transparent 60%), var(--surface); box-shadow: 0 50px 110px -30px rgb(0 0 0 / .85), 0 0 80px -30px var(--glow, rgb(236 150 215 / .5)); }
dialog.modal.pix-modal[open] { animation: pix-in .6s cubic-bezier(.18, 1.3, .32, 1) both; will-change: transform, opacity; }
dialog.modal.pix-modal::backdrop { background: rgb(4 2 10 / .72); backdrop-filter: blur(8px); animation: pix-fade .4s ease-out both; }
dialog.modal.pix-modal.closing { animation: pix-out .24s ease-in both; }
dialog.modal.pix-modal.closing::backdrop { opacity: 0; transition: opacity .24s; }
.pix-modal .modal-body { gap: 12px; padding: 22px clamp(18px, 5vw, 28px) 20px; }
.pix-modal .modal-body > * { animation: pix-rise .5s cubic-bezier(.2, .9, .3, 1) both; }
.pix-modal .modal-body > :nth-child(2) { animation-delay: .06s; } .pix-modal .modal-body > :nth-child(3) { animation-delay: .12s; }
.pix-modal .modal-body > :nth-child(4) { animation-delay: .18s; } .pix-modal .modal-body > :nth-child(5) { animation-delay: .22s; }
.pix-modal .modal-body > :nth-child(n+6) { animation-delay: .26s; }
.pix-head { display: flex; align-items: center; gap: 12px; }
.pix-head h2 { font-size: 1.25rem; }
.pix-logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, #32bcad 22%, transparent); color: #32bcad; }
.pix-amount { display: grid; justify-items: center; gap: 2px; }
.pix-amount small { color: var(--muted); font-size: .8rem; }
.pix-amount strong { font: 700 clamp(1.9rem, 6vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -.01em; }
.pix-qr { position: relative; justify-self: center; padding: 12px; border-radius: 20px; background: #fff; contain: layout paint; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 18px 40px -18px rgb(0 0 0 / .6); overflow: hidden; }
.pix-qr img { display: block; width: min(210px, 56vw); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.pix-scan { position: absolute; inset: 8px; pointer-events: none; animation: pix-scan 2.6s ease-in-out infinite; will-change: transform; }
.pix-scan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #32bcad, transparent); box-shadow: 0 0 14px #32bcad; opacity: .85; }
.pix-time { display: grid; gap: 6px; justify-items: center; }
.pix-time-track { width: 100%; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pix-time-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), #32bcad); transform-origin: left; transition: transform 1s linear; }
.pix-steps { margin: 0; text-align: center; color: var(--muted); line-height: 1.5; }
.pix-steps strong { color: var(--text); }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.pix-status.expired { color: var(--warn, #f59e0b); }
.pix-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #32bcad; }
.pix-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgb(50 188 173 / .55); animation: pix-pulse 1.6s ease-out infinite; will-change: transform, opacity; }
.pix-actions { display: grid; gap: 8px; justify-items: center; text-align: center; }
.pix-actions .btn { min-width: 160px; }
.pix-done { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 18px 0 6px; }
.pix-check { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: #32bcad; color: #fff; box-shadow: 0 0 0 10px rgb(50 188 173 / .16), 0 0 50px rgb(50 188 173 / .5); animation: pix-pop .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes pix-in { from { opacity: 0; transform: translateY(40px) scale(.88); } }
@keyframes pix-out { to { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes pix-fade { from { opacity: 0; } }
@keyframes pix-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pix-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(100% - 3px)); } }
@keyframes pix-pulse { to { transform: scale(3.4); opacity: 0; } }
@keyframes pix-pop { from { transform: scale(.3); opacity: 0; } }
@media (max-height: 820px) { .pix-steps { display: none; } .pix-qr img { width: min(180px, 50vw); } .pix-amount strong { font-size: 1.8rem; } }
/* Olhinho dos campos de senha. */
.pw-wrap { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.pw-wrap > input { width: 100%; padding-right: 46px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); outline: none; }
.pw-eye[aria-pressed="true"] { color: var(--pink); }
/* Pop-up "Senha salva". */
.pw-saved { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 8px 0 4px; }
/* Página /codigo (botão "Copiar código" dos e-mails). */
.code-copy-box { justify-self: center; padding: 18px 26px 18px calc(26px + .38em); border-radius: 18px; border: 1px solid color-mix(in srgb, var(--pink) 40%, var(--line-2)); background: var(--surface-2); font: 700 clamp(2rem, 8vw, 2.8rem)/1.1 ui-monospace, Consolas, monospace; letter-spacing: .38em; cursor: pointer; user-select: all; }
.code-copy-box:hover, .code-copy-box:focus-visible { border-color: var(--pink); outline: none; }
.btn.ok { background: #32bcad; border-color: #32bcad; }
/* Auditoria de acessibilidade (impeccable): texto funcional nunca abaixo de ~11 px. */
.sys-kind { font-size: .72rem; }
.brand small { font-size: .7rem; }
.dash-order .badge { font-size: .72rem; }
