/* ==========================================================================
   Kairo Compute — design system
   ========================================================================== */
:root {
  --bg: #06080c;
  --bg-2: #0a0d13;
  --surface: #0e1219;
  --surface-2: #131923;
  --surface-3: #1a212d;
  --line: #1c2430;
  --line-2: #273141;
  --text: #e8edf4;
  --text-2: #b4bfcd;
  --muted: #7d8899;
  --dim: #566173;
  --blue: #4d8dff;
  --blue-2: #2f6ef0;
  --blue-soft: rgba(var(--blue-rgb), .12);
  --blue-rgb: 77, 141, 255;
  --blue-2-rgb: 47, 110, 240;
  --blue-hi: #5596ff;
  --cyan: #67d3ff;
  --green: #2ed37f;
  --green-soft: rgba(46, 211, 127, .12);
  --amber: #f2b64c;
  --amber-soft: rgba(242, 182, 76, .12);
  --red: #f26464;
  --red-soft: rgba(242, 100, 100, .12);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -24px rgba(0,0,0,.6);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(var(--blue-rgb), .35); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.mono, .num { font-family: var(--mono); font-feature-settings: 'zero'; letter-spacing: -.01em; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .pos { color: var(--green); } .neg { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ---------- Buttons ---------- */
.btn { --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--b); background: var(--surface-2); color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--surface-3); border-color: #34405a; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg.i { width: 16px; height: 16px; flex: none; }
.btn-primary { background: linear-gradient(180deg, var(--blue-hi), var(--blue-2)); border-color: rgba(255,255,255,.1); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 24px -10px rgba(var(--blue-2-rgb), .7); }
.btn-primary:hover { background: linear-gradient(180deg, #67a2ff, #3a78f5); border-color: rgba(255,255,255,.18); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-green { background: var(--green-soft); border-color: rgba(46,211,127,.35); color: var(--green); }
.btn-green:hover { background: rgba(46,211,127,.2); border-color: rgba(46,211,127,.5); }
.btn-danger { background: var(--red-soft); border-color: rgba(242,100,100,.35); color: var(--red); }
.btn-danger:hover { background: rgba(242,100,100,.2); border-color: rgba(242,100,100,.5); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--blue); } .link:hover { text-decoration: underline; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge svg.i { width: 12px; height: 12px; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: rgba(46,211,127,.25); }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(var(--blue-rgb), .25); }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(242,182,76,.25); }
.badge.red { background: var(--red-soft); color: var(--red); border-color: rgba(242,100,100,.25); }
.badge.violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(167,139,250,.28); }
.badge.muted { color: var(--muted); }
.badge.live::before { box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,211,127,.6); } 70% { box-shadow: 0 0 0 6px rgba(46,211,127,0); } 100% { box-shadow: 0 0 0 0 rgba(46,211,127,0); } }

/* ---------- Cards ---------- */
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; }
.card-head .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 22px; }
@media (max-width: 640px) { .card-pad, .card-body { padding: 18px; } .card-head { padding: 16px 18px; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: var(--dim); }
.input:hover { border-color: #33405a; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .15); background: var(--surface); }
.input.err { border-color: rgba(242,100,100,.6); }
.field .err-msg { color: var(--red); font-size: 12.5px; }
.field .hint { color: var(--dim); font-size: 12.5px; }
.input-prefix { position: relative; } .input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); font-size: 14px; } .input-prefix .input { padding-left: 42px; font-family: var(--mono); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid > *, .field { min-width: 0; }
.input { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.alert strong { color: var(--text); font-weight: 600; }
.alert .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.alert.success { background: var(--green-soft); border-color: rgba(46,211,127,.28); } .alert.success .ico { color: var(--green); }
.alert.error { background: var(--red-soft); border-color: rgba(242,100,100,.3); } .alert.error .ico { color: var(--red); }
.alert.warning { background: var(--amber-soft); border-color: rgba(242,182,76,.28); } .alert.warning .ico { color: var(--amber); }
.alert.info { background: var(--blue-soft); border-color: rgba(var(--blue-rgb), .28); } .alert.info .ico { color: var(--blue); }
.alert.demo { background: var(--violet-soft); border-color: rgba(167,139,250,.3); } .alert.demo .ico { color: var(--violet); }
.flash { position: fixed; z-index: 100; right: 20px; top: 20px; max-width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); animation: flashIn .45s var(--ease) both; backdrop-filter: blur(12px); background-color: rgba(14,18,25,.92); }
.flash.hide { animation: flashOut .35s var(--ease) forwards; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes flashOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 22px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255,255,255,.01); }
.table td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.015); }
.table td.r, .table th.r { text-align: right; }
.table .strong { color: var(--text); font-weight: 500; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .table.stack tr:last-child { border-bottom: 0; }
  .table.stack td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; text-align: right; }
  .table.stack td::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  .table.stack td.r { text-align: right; }
  .table.stack .actions { justify-content: flex-end; }
}
.empty { padding: 44px 22px; text-align: center; color: var(--muted); font-size: 14px; }
.empty svg { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--dim); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Public site
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(6,8,12,.78); backdrop-filter: saturate(160%) blur(14px); border-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 16.5px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: 16.5px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta .hide-m { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.open { display: grid; gap: 4px; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); background: rgba(6,8,12,.96); backdrop-filter: blur(14px); }
  .mobile-menu a { padding: 12px; border-radius: 10px; color: var(--text-2); }
  .mobile-menu a:hover { background: var(--surface-2); }
  .mobile-menu .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
}

.announce-bar { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(var(--blue-rgb), .08), transparent 60%); font-size: 13px; color: var(--text-2); }
.announce-bar .container { display: flex; gap: 10px; align-items: center; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.announce-bar strong { color: var(--text); font-weight: 600; }

.hero { position: relative; padding: 88px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -2; background: radial-gradient(50% 50% at 70% 30%, rgba(var(--blue-2-rgb), .22), transparent 70%), radial-gradient(35% 40% at 20% 10%, rgba(103,211,255,.08), transparent 70%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 60% 20%, #000 20%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; border: 1px solid var(--line-2); background: rgba(14,18,25,.7); border-radius: 999px; font-size: 13px; color: var(--text-2); }
.eyebrow .tag { white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.035em; line-height: 1.04; margin: 22px 0 20px; font-weight: 600; }
.hero h1 .grad { background: linear-gradient(92deg, #fff 10%, #9cc0ff 55%, #5b95ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--text-2); max-width: 560px; line-height: 1.6; }
.hero .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero .trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero .trust svg { width: 16px; height: 16px; color: var(--green); }
.hero-visual { position: relative; aspect-ratio: 1 / .92; }
.hero-visual svg.chip { width: 100%; height: 100%; }
.hero-visual .note { position: absolute; bottom: -6px; right: 0; font-size: 11px; color: var(--dim); }
.chip .trace { stroke-dasharray: 6 10; animation: flow 3.2s linear infinite; }
.chip .trace.slow { animation-duration: 5s; }
.chip .core { animation: corePulse 3.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.chip .cell { animation: cell 2.6s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -64; } }
@keyframes corePulse { 50% { opacity: .65; } }
@keyframes cell { 0%, 100% { opacity: .25; } 50% { opacity: .95; } }
@media (max-width: 960px) { .hero { padding: 56px 0 48px; } .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; } }
/* Celular/tablet: o card de volume entra logo após título e subtítulo, antes dos botões */
@media (max-width: 960px) {
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 1; justify-self: start; }
  .hero-copy > h1 { order: 2; }
  .hero-copy > .lead { order: 3; }
  .hero-grid > .vol-card { order: 4; margin-top: 24px; }
  .hero-copy > .ctas { order: 5; margin-top: 24px; }
  .hero-copy > .trust { order: 6; margin-top: 24px; }
}
@media (max-width: 640px) {
  .hero { padding: 24px 0 40px; }
  .hero h1 { font-size: 34px; margin: 16px 0 12px; }
  .hero .lead { font-size: 15.5px; line-height: 1.55; }
  .hero-grid > .vol-card { margin-top: 20px; }
  .hero .ctas .btn { flex: 1; }
  .eyebrow { font-size: 12px; max-width: 100%; }
  .eyebrow .tag { white-space: nowrap; flex: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.section { padding: 96px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(14,18,25,.6) 20%, rgba(14,18,25,.6) 80%, transparent); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; line-height: 1.6; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

.logos { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--dim); font-size: 13px; letter-spacing: .02em; }
.logos span { display: inline-flex; gap: 8px; align-items: center; }
.logos svg { width: 16px; height: 16px; }

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech { padding: 26px; position: relative; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.tech:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tech .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(var(--blue-rgb), .2); margin-bottom: 20px; }
.tech .ico svg { width: 20px; height: 20px; }
.tech h3 { font-size: 17px; margin-bottom: 8px; }
.tech p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .tech-grid { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 18px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.plan.featured { border-color: transparent; background: linear-gradient(180deg, #111a2a, #0b0f17) padding-box, linear-gradient(180deg, rgba(var(--blue-rgb), .75), rgba(var(--blue-rgb), .08) 60%, rgba(var(--blue-rgb), .25)) border-box; border: 1px solid transparent; box-shadow: 0 30px 80px -40px rgba(var(--blue-2-rgb), .55); }
.plan .ribbon { position: absolute; top: -11px; left: 22px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(180deg, var(--blue-hi), var(--blue-2)); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(var(--blue-2-rgb), .8); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-code { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; color: var(--text-2); font-weight: 500; }
.plan-tier { display: flex; gap: 3px; } .plan-tier i { width: 6px; height: 14px; border-radius: 2px; background: var(--surface-3); } .plan-tier i.on { background: var(--blue); }
.plan h3 { font-size: 22px; margin-top: 18px; }
.plan .tagline { color: var(--muted); font-size: 13.5px; margin-top: 6px; min-height: 40px; }
.plan .price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price .v { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: var(--text); }
.plan .price .c { font-size: 13px; color: var(--muted); }
.plan .price-sub { font-size: 12.5px; color: var(--dim); }
.plan .est { margin: 18px 0; padding: 14px; border-radius: 12px; background: rgba(46,211,127,.06); border: 1px solid rgba(46,211,127,.16); }
.plan .est .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.plan .est .v { font-family: var(--mono); font-size: 20px; color: var(--green); margin-top: 2px; }
.plan .est .v small { font-size: 12px; color: var(--muted); font-family: var(--font); }
.plan .est .n { font-size: 11.5px; color: var(--dim); margin-top: 4px; line-height: 1.4; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; color: var(--blue); flex: none; margin-top: 2px; }
.plan li b { color: var(--text); font-weight: 500; }
.plan .foot { margin-top: auto; display: grid; gap: 10px; }
.plan .avail { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.plan .bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.plan .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-2), var(--cyan)); border-radius: 4px; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list svg { width: 16px; height: 16px; color: var(--blue); flex: none; margin-top: 2px; }
/* ---------- Editor de planos ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.editor-main { display: grid; gap: 16px; min-width: 0; }
.editor-side { position: sticky; top: 80px; display: grid; gap: 12px; }
@media (max-width: 1200px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor-side { position: static; order: -1; } }
.editor-side, .preview-card, .pv-body, .pv-stage, .pv-frame { min-width: 0; }
.pv-landing { width: 100%; }
.ed-sec textarea.input { min-height: 64px; }
.sec-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.sec-toggle input { accent-color: var(--blue); }
.feat-list { display: grid; gap: 8px; }
.feat-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.feat-row .input { height: 38px; }
.feat-actions { display: flex; gap: 2px; }
.feat-actions .btn { padding: 0 8px; }
@media (max-width: 560px) { .feat-row { grid-template-columns: 1fr; } .feat-actions { justify-content: flex-end; } }
.placeholders { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.placeholders code { font-family: var(--mono); font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--text-2); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch input, .icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 30px; height: 30px; border-radius: 9px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); cursor: pointer; transition: transform .15s; }
.swatch input:checked + span { border-color: #fff; transform: scale(1.08); }
.swatch input:focus-visible + span, .icon-pick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); cursor: pointer; }
.icon-pick span svg { width: 16px; height: 16px; }
.icon-pick input:checked + span { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.avail-calc { height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--text); font-size: 15px; }
.preview-card .card-head { flex-wrap: wrap; }
.pv-body { padding: 16px; background: radial-gradient(80% 60% at 50% 0%, rgba(var(--blue-2-rgb), .08), transparent 70%); }
.pv-frame { display: none; }
.pv-stage[data-mode="desktop"] .pv-desktop, .pv-stage[data-mode="mobile"] .pv-mobile, .pv-stage[data-mode="landing"] .pv-landing { display: block; }
.pv-desktop .pv-card { max-width: 290px; margin: 0 auto; }
.pv-phone { width: 300px; max-width: 100%; margin: 0 auto; padding: 14px 12px; border-radius: 28px; border: 1px solid var(--line-2); background: var(--bg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.pv-phone .plan { padding: 22px 18px 18px; }
.pv-landing { overflow: hidden; }
.pv-scale { width: 1200px; transform-origin: top left; padding-top: 16px; }
.pv-desktop, .pv-mobile { padding-top: 12px; }
.pv-scale .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv-card .plan:hover, .pv-scale .plan:hover { transform: none; }
.pv-errors { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); border: 1px solid rgba(242,100,100,.3); font-size: 12.5px; color: #fca5a5; display: grid; gap: 4px; }
.ed-actions { display: grid; gap: 8px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border-left: 3px solid var(--accent, var(--blue)); }
.plan-row-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.plan-row-order { display: grid; justify-items: center; gap: 0; }
.plan-row-order .btn { height: 22px; padding: 0 8px; }
.plan-row-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.plan-row-ico svg { width: 18px; height: 18px; }
.plan-row-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; font-size: 13px; }
.plan-row-stats > div { display: grid; gap: 2px; min-width: 0; }
.plan-row-stats .k { font-size: 11.5px; color: var(--dim); }
.plan-row-actions { display: flex; gap: 6px; }
@media (max-width: 1200px) { .plan-row { grid-template-columns: 1fr; } .plan-row-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plan-row-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xp-admin-player { border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.xp-admin-player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
/* Parâmetros internos (admin) */
.internal-card { border-color: rgba(242,182,76,.28); background: linear-gradient(180deg, rgba(242,182,76,.04), transparent 120px), linear-gradient(180deg, var(--surface), var(--bg-2)); }
.internal-card .card-head h3 { display: inline-flex; align-items: center; gap: 8px; }
.internal-card .card-head h3 svg { width: 16px; height: 16px; color: var(--amber); }
.cmp { display: grid; gap: 12px; }
.cmp { gap: 16px; }
.cmp-group { display: grid; gap: 5px; font-size: 13px; }
.cmp-line { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; align-items: center; }
.cmp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-bar { height: 9px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 6px; background: var(--green); }
.cmp-bar i.k-rev, .cmp-legend .k-rev { background: var(--blue); }
.cmp-bar i.k-cost, .cmp-legend .k-cost { background: var(--amber); }
.cmp-bar i.k-prof, .cmp-legend .k-prof { background: var(--green); }
.cmp-bar i.neg { background: var(--red); }
.cmp-v { text-align: right; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted, inherit); margin-bottom: 12px; }
.cmp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.auto-toggle { display: flex !important; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; margin-top: 6px; cursor: pointer; }
.auto-info { font-size: 11.5px; margin-top: 4px; color: var(--amber); line-height: 1.45; }
.field.is-auto .input { opacity: .75; }
.auto-badge { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px; font-size: 10px; line-height: 16px; vertical-align: 1px; color: var(--amber); border: 1px solid rgba(242,182,76,.4); cursor: help; font-family: inherit; }
/* Cor de destaque por plano (editável) */
.plan { --accent: var(--blue); }
.plan .plan-tier i.on { background: var(--accent); }
.plan li svg { color: var(--accent); }
.plan .plan-code { display: inline-flex; align-items: center; gap: 8px; }
.plan .plan-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.plan .plan-ico svg { width: 14px; height: 14px; }
.plan-promo { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.plan .plan-desc, .plan .plan-tech { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 14px; }
.plan .plan-tech { font-size: 12.5px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.plan .tagline { margin-bottom: 4px; }
.plan .bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #000), var(--accent)); }
.plan.featured { background: linear-gradient(180deg, #111a2a, #0b0f17) padding-box, linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, transparent), color-mix(in srgb, var(--accent) 8%, transparent) 60%, color-mix(in srgb, var(--accent) 25%, transparent)) border-box; box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 55%, transparent); }
.plan .ribbon { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 80%, transparent); }
.plan.in { opacity: 1; transform: none; }
.plans-note { margin-top: 24px; font-size: 13px; color: var(--dim); text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 24px; position: relative; }
.step::before { counter-increment: s; content: '0' counter(s); font-family: var(--mono); font-size: 12.5px; color: var(--blue); display: block; margin-bottom: 26px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
.step .line { position: absolute; top: 33px; left: 56px; right: 24px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 18px; }
.flow .n { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; font-size: 13px; color: var(--text-2); }
.flow .n b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.flow .a { color: var(--dim); }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .flow .a { transform: rotate(90deg); justify-self: center; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .l { font-size: 13px; color: var(--muted); }
.stat .v { font-family: var(--mono); font-size: 30px; margin-top: 8px; letter-spacing: -.03em; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.stats-empty { display: flex; gap: 20px; align-items: center; padding: 28px; border: 1px dashed var(--line-2); border-radius: 18px; background: rgba(14,18,25,.5); }
.stats-empty .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); flex: none; }
@media (max-width: 600px) { .stats-empty { flex-direction: column; align-items: flex-start; } }

/* Advantages */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.adv { display: flex; gap: 18px; padding: 24px; }
.adv .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.adv .ico svg { width: 19px; height: 19px; }
.adv h3 { font-size: 16px; margin-bottom: 6px; }
.adv p { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .adv-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .a { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: 56px; border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(60% 120% at 100% 0%, rgba(var(--blue-2-rgb), .28), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2)); display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.cta-band p { color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; } }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 32px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: .02em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--text); }
.footer .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.footer .disclaimer { margin-top: 18px; font-size: 12px; color: var(--dim); line-height: 1.6; max-width: 900px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Legal pages */
.legal-page { max-width: 820px; margin: 0 auto; padding: 64px 0 40px; }
.legal-page h1 { font-size: 36px; margin-bottom: 8px; letter-spacing: -.03em; }
.legal-page .upd { color: var(--muted); font-size: 13px; margin-bottom: 36px; }
.legal-page h2 { font-size: 19px; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-2); font-size: 15px; line-height: 1.75; }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 20px; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: radial-gradient(70% 60% at 30% 20%, rgba(var(--blue-2-rgb), .2), transparent 70%), var(--bg-2); }
.auth-side::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 30% 40%, #000, transparent); pointer-events: none; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: 34px; letter-spacing: -.03em; max-width: 440px; }
.auth-side p { color: var(--muted); margin-top: 14px; max-width: 420px; }
.auth-side .points { display: grid; gap: 14px; margin-top: 32px; color: var(--text-2); font-size: 14px; }
.auth-side .points div { display: flex; gap: 12px; align-items: center; }
.auth-side .points svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 28px; letter-spacing: -.03em; }
.auth-box .sub { color: var(--muted); margin: 8px 0 28px; }
.auth-box .alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth-mobile-brand { display: none; margin-bottom: 32px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-mobile-brand { display: inline-flex; } .auth-main { align-items: flex-start; padding-top: 48px; } }

/* Message page */
.msg-page { min-height: 72vh; display: grid; place-items: center; padding: 48px 16px; }
.msg-box { max-width: 460px; text-align: center; }
.msg-box .ico { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 22px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.msg-box .ico svg { width: 24px; height: 24px; }
.msg-box h1 { font-size: 26px; } .msg-box p { color: var(--muted); margin: 12px 0 26px; }

/* ==========================================================================
   App shell (client + admin)
   ========================================================================== */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-2); padding: 18px 14px; overflow-y: auto; }
.side .brand { padding: 4px 8px 20px; }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding: 16px 10px 8px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s, background .15s; position: relative; }
.side nav a svg { width: 18px; height: 18px; flex: none; }
.side nav a:hover { color: var(--text); background: var(--surface); }
.side nav a.on { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.side nav a.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.side nav a .count { margin-left: auto; font-size: 11.5px; font-family: var(--mono); background: var(--amber-soft); color: var(--amber); border-radius: 6px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--blue-2), #67d3ff); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; flex: none; }
.user-chip .n { font-size: 13.5px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .e { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(6,8,12,.82); backdrop-filter: blur(12px); }
.topbar h1 { font-size: 17px; letter-spacing: -.01em; }
.topbar .crumb { font-size: 12.5px; color: var(--dim); }
.topbar .right { display: flex; gap: 10px; align-items: center; }
.content { padding: 28px 32px 56px; max-width: 1360px; }
.menu-btn { display: none; }
.side-backdrop { display: none; }
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: 30px 0 60px -20px rgba(0,0,0,.7); }
  .side.open { transform: none; }
  .side-backdrop.open { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
  .menu-btn { display: inline-flex; width: 38px; padding: 0; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 48px; }
}

.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1200px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .g-21, .g-12, .g-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g-2 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .g-4 { grid-template-columns: 1fr; } }
.mt { margin-top: 16px; } .mt-2 { margin-top: 24px; } .mb { margin-bottom: 16px; } .mb-2 { margin-bottom: 24px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.kpi { padding: 20px 22px; position: relative; overflow: hidden; }
.kpi .l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.kpi .l svg { width: 15px; height: 15px; }
.kpi .v { font-family: var(--mono); font-size: 27px; letter-spacing: -.035em; margin-top: 10px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.kpi.hl { background: radial-gradient(120% 120% at 100% 0%, rgba(var(--blue-2-rgb), .2), transparent 55%), linear-gradient(180deg, var(--surface), var(--bg-2)); border-color: #23314a; }
.kpi .spark { position: absolute; right: 0; bottom: 0; width: 46%; height: 52px; opacity: .55; }

.chartbox { position: relative; display: flex; padding: 8px 0 24px; }
.chartbox .ylab { position: relative; width: 58px; flex: none; }
.chartbox .ylab span, .chartbox .xlab span { position: absolute; font: 500 11px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.chartbox .ylab span { right: 10px; transform: translateY(-50%); }
.chartbox .plot { position: relative; flex: 1; min-width: 0; }
.chartbox svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chartbox .xlab { position: absolute; left: 0; right: 0; bottom: -20px; height: 14px; }
.chartbox .xlab span { transform: translateX(-50%); }
.chartbox .grid { stroke: var(--line); stroke-width: 1; }
.chartbox .bar { opacity: .82; transition: opacity .2s; } .chartbox .bar:hover { opacity: 1; }
.chartbox .hit { fill: transparent; } .chartbox .hit:hover { fill: rgba(var(--blue-rgb), .08); }
.tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); gap: 2px; }
.tabs a, .tabs button { padding: 6px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); font-weight: 500; border: 0; background: transparent; cursor: pointer; }
.tabs a.on, .tabs button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.chart-pane { display: none; } .chart-pane.on { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.dl { display: grid; gap: 0; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl > div:last-child { border-bottom: 0; }
.dl dt, .dl .k { color: var(--muted); }
.dl dd, .dl .v { margin: 0; color: var(--text); text-align: right; font-weight: 500; }
.dl .v.pos { color: var(--green); } .dl .v.neg { color: var(--red); }

.meter { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--blue-2), var(--cyan)); transition: width 1s var(--ease); }
.meter.green i { background: linear-gradient(90deg, #1ea865, var(--green)); }

/* GPU card */
.gpu-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.gpu-hero .vis { position: relative; padding: 28px; border-right: 1px solid var(--line); background: radial-gradient(80% 80% at 30% 30%, rgba(var(--blue-2-rgb), .18), transparent 70%); }
.gpu-hero .vis h2 { font-size: 24px; letter-spacing: -.02em; margin: 10px 0 4px; }
.gauge { width: 168px; height: 168px; margin: 24px 0 8px; position: relative; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .t { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .t b { font-family: var(--mono); font-size: 34px; font-weight: 500; letter-spacing: -.03em; display: block; }
.gauge .t span { font-size: 12px; color: var(--muted); }
.gpu-hero .specs { padding: 22px 28px; }
@media (max-width: 900px) { .gpu-hero { grid-template-columns: 1fr; } .gpu-hero .vis { border-right: 0; border-bottom: 1px solid var(--line); } }

.demo-ribbon { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--violet-soft); border: 1px solid rgba(167,139,250,.3); color: #d5c9ff; font-size: 13.5px; margin-bottom: 20px; }
.demo-ribbon svg { width: 18px; height: 18px; color: var(--violet); flex: none; }

.plan-mini { display: flex; align-items: center; gap: 14px; }
.plan-mini .chipico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); border: 1px solid rgba(var(--blue-rgb), .25); display: grid; place-items: center; color: var(--blue); flex: none; }
.plan-mini .chipico svg { width: 22px; height: 22px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.filters a.on, .filters a:hover { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form .input { height: 32px; font-size: 13px; padding: 0 10px; width: auto; min-width: 140px; border-radius: 8px; }
pre.code { margin: 0; padding: 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); overflow-x: auto; white-space: pre; }
.keybox { display: flex; gap: 8px; align-items: center; padding: 12px 14px; background: var(--bg); border: 1px solid rgba(46,211,127,.35); border-radius: 10px; font-family: var(--mono); font-size: 13px; word-break: break-all; }
dialog.modal { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--text); padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
dialog.modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: flashIn .3s var(--ease); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 22px; } .modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
/* ---------- Volume (hero) ---------- */
.vol-card { position: relative; isolation: isolate; overflow: hidden; padding: 28px; border-radius: 22px; border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(17,24,38,.92), rgba(9,13,20,.95)) padding-box, linear-gradient(140deg, rgba(103,165,255,.7), rgba(var(--blue-rgb), .08) 40%, rgba(46,211,127,.35)) border-box;
  box-shadow: 0 40px 100px -40px rgba(var(--blue-2-rgb), .55), 0 1px 0 rgba(255,255,255,.06) inset; backdrop-filter: blur(10px); }
.vol-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.vol-glow { position: absolute; z-index: -1; width: 380px; height: 380px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--blue-rgb), .35), transparent 65%); animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }
.vol-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vol-title { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.vol-time { font-size: 11.5px; color: var(--dim); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46,211,127,.6); animation: pulse 2s infinite; }
.vol-value { margin: 18px 0 22px; font-size: clamp(38px, 5.6vw, 60px); font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, #a9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.vol-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vol-cell { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.vol-cell:hover { border-color: var(--line-2); transform: translateY(-2px); }
.vol-cell .k { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.vol-cell .v { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.vol-cell .n { font-size: 11.5px; color: var(--dim); }
.sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; } .sw-blue { background: var(--blue); } .sw-green { background: var(--green); }
.vol-bar { height: 4px; border-radius: 4px; background: var(--green); margin-top: 14px; overflow: hidden; opacity: .9; }
.vol-bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px 0 0 4px; transition: width 1.2s var(--ease); }
.vol-src { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 12px; color: var(--dim); line-height: 1.5; }
.vol-src svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
@media (max-width: 520px) {
  .vol-card { padding: 20px; border-radius: 18px; }
  .vol-head { flex-wrap: nowrap; }
  .vol-title { font-size: 11px; letter-spacing: .07em; gap: 8px; }
  .vol-time { font-size: 10.5px; white-space: nowrap; }
  .vol-value { margin: 14px 0 16px; }
  .vol-split { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vol-cell { padding: 10px 12px; }
  .vol-cell .v { font-size: 15px; }
}
@media (max-width: 340px) { .vol-split { grid-template-columns: 1fr; } }

/* ---------- Infraestrutura ---------- */
.infra-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.infra-status { display: flex; gap: 8px; flex-wrap: wrap; }
.infra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.icard, [data-glow].card { position: relative; overflow: hidden; }
.icard { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.icard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.85); }
[data-glow]::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--blue-rgb), .10), transparent 60%); }
[data-glow]:hover::after { opacity: 1; }
.icard .l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.icard .l svg { width: 16px; height: 16px; color: var(--blue); }
.icard .v { font-size: 32px; letter-spacing: -.035em; margin-top: 12px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.icard .v small { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.icard .s { font-size: 12.5px; color: var(--dim); margin-top: 6px; }
@media (max-width: 900px) { .infra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .infra-grid { grid-template-columns: 1fr; } .icard .v { font-size: 28px; } }
.node-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.node-id { display: grid; min-width: 0; flex: 1; font-size: 13px; } .node-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .node-id .dim { font-size: 12px; }
.node-util { display: flex; align-items: center; gap: 10px; width: 130px; font-size: 12px; } .node-util .meter { flex: 1; height: 6px; }
.node-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--dim); }
.node-dot.online { background: var(--green); animation: pulse 2s infinite; } .node-dot.maintenance { background: var(--amber); } .node-dot.offline { background: var(--red); }
@media (max-width: 400px) { .node-list { grid-template-columns: 1fr; } .node-util { width: 96px; } }

/* ---------- Notificações (toasts) ---------- */
.toasts { position: fixed; z-index: 90; left: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; max-width: min(340px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px; background: rgba(14,18,25,.92); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); backdrop-filter: blur(14px); font-size: 13px; color: var(--text-2);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast .ok { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--green); background: var(--green-soft); border: 1px solid rgba(46,211,127,.3); }
.toast .ok svg { width: 16px; height: 16px; }
.toast strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.toast .amt { font-family: var(--mono); color: var(--green); }
.toast time { display: block; font-size: 11px; color: var(--dim); margin-top: 1px; }
@media (max-width: 640px) { .toasts { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: none; } .toast { padding: 10px 12px 10px 10px; } }

/* Indicações */
.ref-card { position: relative; overflow: hidden; background: radial-gradient(70% 140% at 100% 0%, rgba(var(--blue-2-rgb), .22), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2)); border-color: #23314a; }
.ref-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 26px; align-items: center; }
.ref-title { font-size: 20px; margin: 12px 0 16px; letter-spacing: -.02em; }
.ref-link { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); font-size: 14px; color: var(--text); word-break: break-all; }
.ref-qr { display: grid; justify-items: center; gap: 8px; }
.qr-box { width: 152px; height: 152px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.qr-box svg { width: 100%; height: 100%; }
.btn-wa { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.35); color: #4ade80; }
.btn-wa:hover { background: rgba(37,211,102,.2); border-color: rgba(37,211,102,.5); }
@media (max-width: 760px) { .ref-grid { grid-template-columns: 1fr; padding: 20px; } .ref-qr { justify-self: start; } .ref-card .row .btn { flex: 1; } }
.welcome { max-width: 720px; margin: 24px auto 0; text-align: center; }
.welcome .burst { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 22px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border: 1px solid rgba(46,211,127,.35); box-shadow: 0 0 0 10px rgba(46,211,127,.05), 0 20px 50px -20px rgba(46,211,127,.5); animation: pop .6s var(--ease) both; }
.welcome .burst svg { width: 34px; height: 34px; }
.welcome h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; }
.welcome .lead { color: var(--text-2); font-size: 16.5px; margin: 14px auto 0; max-width: 560px; line-height: 1.6; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
.section-pix { margin: 6px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); }
.section-pix legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Checkout PIX */
.pix-box{display:flex;flex-direction:column;align-items:center;text-align:center}
.pix-qr{background:#fff;border-radius:14px;padding:10px;width:260px;max-width:100%}
.pix-qr img,.pix-qr svg{display:block;width:100%;height:auto}
.pix-box .field{width:100%;text-align:left}
.gw-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.gw-card .dl>div{padding:7px 0}
.code-inline{font-family:var(--mono, 'JetBrains Mono', monospace);font-size:12px;word-break:break-all}
/* Dashboard do cliente: banner com vídeo cinematográfico de fundo (somente /app) */
.dash-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 280px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 140% at 85% 20%, rgba(var(--blue-2-rgb), .18), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow); display: flex; align-items: center; }
.dash-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 72%; z-index: -2; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%); }
.dash-hero-poster, .dash-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; display: block; }
.dash-hero-poster { filter: saturate(.9) contrast(1.04); transition: opacity .9s var(--ease); }
.dash-hero-video { opacity: 0; filter: saturate(.9) contrast(1.04); transition: opacity 1.1s var(--ease); }
.dash-hero.is-playing .dash-hero-video { opacity: 1; }
.dash-hero.is-playing .dash-hero-poster { opacity: 0; }
.dash-hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,8,12,.88) 0%, rgba(6,8,12,.72) 38%, rgba(6,8,12,.5) 70%, rgba(6,8,12,.42) 100%),
    linear-gradient(180deg, rgba(6,8,12,.18) 0%, rgba(6,8,12,0) 40%, rgba(6,8,12,.55) 100%),
    radial-gradient(60% 90% at 100% 0%, rgba(103,211,255,.07), transparent 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.02); }
.dash-hero-content { position: relative; padding: 30px 34px; max-width: 640px; }
.dash-hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; padding: 5px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(6,8,12,.45); backdrop-filter: blur(6px); }
.dash-hero h2 { margin: 14px 0 6px; font-size: 28px; font-weight: 650; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.dash-hero p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; max-width: 520px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.dash-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dash-hero-meta > span, .dash-hero-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text); padding: 7px 11px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.08); background: rgba(10,13,19,.55); backdrop-filter: blur(8px); }
.dash-hero-meta .i { width: 15px; height: 15px; color: var(--blue); }
.dash-hero-link { color: #fff; border-color: rgba(var(--blue-rgb), .35); background: rgba(var(--blue-2-rgb), .22); transition: background .2s var(--ease), border-color .2s var(--ease); }
.dash-hero-link:hover { background: rgba(var(--blue-2-rgb), .34); border-color: rgba(var(--blue-rgb), .55); }
@media (max-width: 760px) {
  .dash-hero { min-height: 0; }
  .dash-hero-media { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .dash-hero-content { padding: 22px 20px; }
  .dash-hero h2 { font-size: 23px; margin-top: 12px; }
  .dash-hero p { font-size: 13.5px; }
  .dash-hero-shade { background: linear-gradient(180deg, rgba(6,8,12,.64) 0%, rgba(6,8,12,.76) 50%, rgba(6,8,12,.88) 100%), radial-gradient(80% 60% at 100% 0%, rgba(103,211,255,.06), transparent 70%); }
}
@media (prefers-reduced-motion: reduce) { .dash-hero-video { display: none; } .dash-hero.is-playing .dash-hero-poster { opacity: 1; } }
/* Tela de confirmação após o pagamento */
.pp { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.pp-main { text-align: center; padding: 40px 28px; background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2)); }
.pp-burst { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.pp-burst .i { width: 36px; height: 36px; }
.pp-main h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 8px; color: #fff; }
.pp-lead { color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 560px; margin: 0 auto; }
.pp-ref h3 { font-size: 16px; }
.btn-wa .i { color: currentColor; }
@media (max-width: 640px) { .pp-main { padding: 32px 20px; } .pp-main h1 { font-size: 22px; } .pp-main .row .btn { flex: 1; } }
/* Identidade da plataforma: logotipo enviado pelo painel */
.brand-logo { height: 30px; width: auto; max-width: 180px; object-fit: contain; flex: none; display: block; }
.brand-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--bg); min-height: 56px; }
.brand-preview img { max-height: 40px; max-width: 200px; object-fit: contain; }
.share-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #1f2c34; max-width: 380px; }
.share-preview img { display: block; width: 100%; max-height: 200px; object-fit: cover; }
.share-preview .sp-body { padding: 10px 12px; font-size: 12.5px; color: #d1d7db; display: grid; gap: 3px; }
.share-preview .sp-body b { color: #e9edef; font-size: 13.5px; font-weight: 600; }
.share-preview .sp-body .u { color: #8696a0; font-size: 11.5px; }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type=color] { width: 44px; height: 38px; padding: 2px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; flex: none; }

/* Botão flutuante de suporte via WhatsApp (landing e área do cliente) */
.wa-float { position: fixed; z-index: 80; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25d366; box-shadow: 0 10px 28px -8px rgba(37,211,102,.55), 0 2px 6px rgba(0,0,0,.35); transition: transform .25s var(--ease), box-shadow .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.wa-float svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: .45; animation: waPulse 2.8s var(--ease) infinite; z-index: 0; pointer-events: none; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px -8px rgba(37,211,102,.65), 0 2px 6px rgba(0,0,0,.35); }
.wa-float:active { transform: scale(.96); }
.wa-float:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .wa-float svg { width: 26px; height: 26px; }
  body:has(.wa-float) .toasts { right: 76px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; display: none; } .wa-float { transition: none; } }
@media print { .wa-float { display: none; } }
/* Prévia estilo conversa do WhatsApp (Admin › Identidade da Plataforma) */
.wa-chat { padding: 16px; border-radius: 12px; background: #0b141a; border: 1px solid var(--line-2); }
.wa-bubble { margin-left: auto; max-width: 360px; padding: 4px 4px 6px; border-radius: 10px 0 10px 10px; background: #005c4b; box-shadow: 0 1px 1px rgba(0,0,0,.3); }
.wa-bubble .share-preview { border: 0; border-radius: 8px; background: #025144; max-width: none; }
.wa-bubble .share-preview img { max-height: 190px; }
.wa-bubble .sp-body span:not(.u) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-bubble .sp-body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-link { padding: 6px 6px 0; font-size: 13px; color: #53bdeb; word-break: break-all; }
/* Pagamento diário contratado (dashboard do cliente) */
.dp-card { overflow: hidden; background: radial-gradient(90% 140% at 100% 0%, rgba(var(--blue-2-rgb), .16), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2)); }
.dp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dp-kpi { background: var(--surface); padding: 18px 22px; display: flex; flex-direction: column; min-width: 0; }
.dp-kpi.hl { background: linear-gradient(180deg, rgba(var(--blue-rgb), .08), var(--surface)); }
.dp-kpi .l { font-size: 12.5px; color: var(--muted); }
.dp-kpi .v { font-size: 24px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; color: var(--text); overflow-wrap: anywhere; }
.dp-kpi .v small { font-size: 13px; color: var(--muted); font-weight: 500; }
.dp-kpi .s { font-size: 12px; color: var(--dim); margin-top: 6px; }
.dp-action { justify-content: space-between; }
.dp-foot { margin: 0; padding: 14px 22px; font-size: 12.5px; color: var(--dim); line-height: 1.55; }
.dp-success { display: flex; gap: 12px; align-items: center; margin: 0 22px 16px; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); border: 1px solid rgba(46,211,127,.35); color: var(--text); font-size: 13.5px; animation: dpIn .5s var(--ease) both; }
.dp-check { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--green); background: rgba(46,211,127,.15); animation: pop .6s var(--ease) both; }
.dp-check .i { width: 20px; height: 20px; }
@keyframes dpIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 1000px) { .dp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dp-grid { grid-template-columns: 1fr; } .dp-kpi { padding: 16px 18px; } .dp-success { margin: 0 16px 14px; } .dp-foot { padding: 12px 18px; } }
@media (prefers-reduced-motion: reduce) { .dp-success, .dp-check { animation: none; } }
details.amend summary { list-style: none; cursor: pointer; } details.amend summary::-webkit-details-marker { display: none; }
details.amend[open] { min-width: 220px; }