/* ==========================================================================
   PRADDU — Design System
   Vermelho #E63946 · Amarelo #FFCA3A · Creme #FFF8F0 · Grafite #20232A
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --red: #E63946;
  --red-strong: #d63042;
  --red-dark: #b92634;
  --red-soft: #fdecee;
  --red-softer: #fef6f7;
  --yellow: #FFCA3A;
  --yellow-soft: #fff6d8;
  --cream: #FFF8F0;
  --cream-deep: #f6ede2;
  --ink: #20232A;
  --ink-soft: #3a3f4a;
  --muted: #6b7280;
  --muted-2: #9aa1ac;
  --line: rgba(32, 35, 42, .1);
  --line-soft: rgba(32, 35, 42, .06);
  --white: #fff;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --orange: #d97706;
  --orange-soft: #fff4e0;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 40, .06);
  --shadow: 0 8px 32px rgba(20, 24, 40, .08);
  --shadow-lg: 0 24px 64px rgba(20, 24, 40, .14);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 78px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
h1,h2,h3,h4,p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
code { font-family: var(--mono); font-size: .9em; background: rgba(32,35,42,.06); padding: 2px 7px; border-radius: 6px; }
em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--red); letter-spacing: -.5px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; line-height: 1;
  padding: 13px 22px; cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(230,57,70,.7); }
.btn-primary:hover { background: var(--red-strong); transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(230,57,70,.65); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2e323c; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.btn-white:hover { transform: translateY(-1px); background: #fffaf5; }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(32,35,42,.18); }
.btn-outline:hover { border-color: var(--ink); background: rgba(32,35,42,.03); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(32,35,42,.14); }
.btn-ghost:hover { background: rgba(32,35,42,.04); }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-xs { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-danger { background: #fff; color: var(--red); border-color: rgba(230,57,70,.3); }
.btn-danger:hover { background: var(--red-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header público ---------- */
#public-shell { background: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled { border-color: var(--line-soft); box-shadow: 0 6px 24px rgba(20,24,40,.05); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 32px; height: 32px; display: inline-flex; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font-size: 22px; font-weight: 700; letter-spacing: -.9px; color: var(--ink); }
.brand-dot { color: var(--red); }
.brand-light .brand-word { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 8px 12px;
  border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(32,35,42,.05); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); }
.mobile-nav {
  padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--line-soft); background: #fff;
}
.mobile-nav a { padding: 12px 10px; font-size: 15px; font-weight: 500; border-radius: 10px; }
.mobile-nav a:hover { background: var(--cream); }
.mobile-cta { background: var(--red); color: #fff !important; text-align: center; margin-top: 8px; border-radius: 999px !important; font-weight: 600 !important; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -200px 0 auto; height: 800px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 340px at 50% 18%, rgba(230,57,70,.09), transparent 70%),
    radial-gradient(440px 300px at 82% 40%, rgba(255,202,58,.14), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 1.4px;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px; box-shadow: var(--shadow-sm);
}
.eyebrow-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(230,57,70,.12); }
.hero-title {
  margin: 26px auto 20px; max-width: 860px;
  font-size: clamp(42px, 6.4vw, 78px); line-height: 1.04; letter-spacing: -3px; font-weight: 700;
}
.hero-title em { font-size: .98em; }
.hero-sub {
  max-width: 620px; margin: 0 auto 32px; font-size: 17px; line-height: 1.6; color: var(--muted);
}
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-login-link { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-left: 8px; border-bottom: 1px solid rgba(32,35,42,.25); padding-bottom: 2px; }
.hero-login-link:hover { color: var(--red); border-color: var(--red); }
.hero-trust {
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .8px; color: var(--muted);
  text-transform: uppercase;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.tick { width: 15px; height: 15px; border-radius: 50%; background: var(--red-soft); display: inline-block; position: relative; }
.tick::after { content: ''; position: absolute; left: 4.5px; top: 4.5px; width: 5px; height: 3px; border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(-45deg); }

/* ---------- Mockup ---------- */
.mockup-wrap { position: relative; margin-top: 64px; padding-bottom: 40px; }
.mockup-browser {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 0 40px 90px -30px rgba(20,24,40,.28), 0 12px 32px rgba(20,24,40,.08);
}
.browser-bar {
  display: flex; align-items: center; gap: 14px; padding: 11px 16px;
  background: #f7f7f9; border-bottom: 1px solid var(--line-soft);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: #e6e6ea; }
.browser-dots span:first-child { background: #ff6058; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #29c941; }
.browser-url {
  flex: 1; max-width: 420px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #ececef; border-radius: 7px; padding: 5px 12px; font-size: 11.5px; color: var(--muted);
}
.browser-pill { font-family: var(--mono); font-size: 10px; letter-spacing: .5px; color: var(--muted-2); }
.mockup-body { display: flex; min-height: 470px; text-align: left; }
.mockup-sidebar { width: 184px; flex: none; border-right: 1px solid var(--line-soft); padding: 16px 12px; background: #fff; }
.ms-logo { font-weight: 700; font-size: 17px; letter-spacing: -.6px; padding: 0 6px 12px; }
.ms-logo span { color: var(--red); }
.ms-store { display: flex; gap: 8px; align-items: center; padding: 9px; background: #fafafa; border: 1px solid var(--line-soft); border-radius: 10px; }
.ms-avatar { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.ms-store strong { display: block; font-size: 11px; line-height: 1.2; }
.ms-store small { font-size: 9px; color: var(--green); }
.ms-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.ms-nav span { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); padding: 7px 8px; border-radius: 7px; }
.ms-nav span i { width: 6px; height: 6px; border-radius: 2px; background: #d9d9df; }
.ms-nav span.on { background: var(--red-softer); color: var(--red); font-weight: 600; }
.ms-nav span.on i { background: var(--red); }
.ms-plan { margin-top: 18px; padding: 9px; border-radius: 9px; background: var(--cream); }
.ms-plan strong { font-size: 9.5px; display: block; }
.ms-plan small { font-size: 8.5px; color: var(--muted); }
.mockup-main { flex: 1; padding: 18px 20px; min-width: 0; background: #fcfcfd; }
.mm-head { display: flex; align-items: center; justify-content: space-between; }
.mm-title { font-size: 12px; font-weight: 600; color: var(--ink); }
.mm-title span { color: var(--muted-2); font-weight: 500; margin-left: 10px; font-size: 11px; }
.mm-date { font-size: 10px; color: var(--muted-2); }
.mm-total { margin-top: 12px; }
.mm-total small { display: block; font-size: 10px; color: var(--muted); }
.mm-total strong { font-size: 30px; letter-spacing: -1.2px; line-height: 1.15; display: inline-block; }
.mm-total .up { font-family: var(--mono); font-size: 9.5px; color: var(--green); background: var(--green-soft); padding: 3px 6px; border-radius: 5px; margin-left: 8px; vertical-align: 5px; }
.mm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.mm-kpis div { background: #fff; border: 1px solid var(--line-soft); border-radius: 9px; padding: 8px 10px; }
.mm-kpis small { display: block; font-size: 9px; color: var(--muted); }
.mm-kpis b { font-size: 14px; letter-spacing: -.4px; }
.mm-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; margin-top: 10px; }
.mm-chart, .mm-donut-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 11px; padding: 12px; }
.mm-chart-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.mm-chart-head strong { font-size: 10px; }
.mm-chart-head span { font-size: 9px; color: var(--muted-2); }
.bars { width: 100%; height: auto; }
.mm-days { display: flex; justify-content: space-between; padding: 2px 10px 0 12px; }
.mm-days span { font-size: 8px; color: var(--muted-2); }
.mm-side { display: flex; flex-direction: column; gap: 8px; }
.mm-donut-card strong { font-size: 10px; }
.donut-wrap { position: relative; width: 96px; margin: 8px auto 4px; }
.donut { transform: rotate(-90deg); width: 100%; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center b { font-size: 17px; line-height: 1; }
.donut-center small { font-size: 8px; color: var(--muted); }
.donut-legend li { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--muted); padding: 2px 0; }
.donut-legend i { width: 6px; height: 6px; border-radius: 2px; flex: none; }
.donut-legend b { margin-left: auto; color: var(--ink); font-family: var(--mono); font-size: 8px; }
.mm-ai-card { display: flex; gap: 7px; background: #fff; border: 1px solid var(--line-soft); border-left: 2px solid var(--red); border-radius: 9px; padding: 9px; }
.ai-dot { width: 16px; height: 16px; border-radius: 5px; background: var(--red); flex: none; position: relative; }
.ai-dot::after { content: '✦'; color: #fff; font-size: 9px; position: absolute; inset: 0; display: grid; place-items: center; }
.mm-ai-card p { font-size: 8.5px; line-height: 1.45; color: var(--muted); }
.mm-ai-card strong { color: var(--ink); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 12px; line-height: 1.3; }
.float-card small { font-size: 10.5px; color: var(--muted); }
.float-a { left: -14px; bottom: 112px; }
.float-b { right: -10px; top: 130px; animation-delay: -3s; }
.fc-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none; }
.fc-icon.success { background: var(--green-soft); color: var(--green); }
.fc-icon.warning { background: var(--yellow-soft); color: #a16207; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Reveal ---------- */
.reveal { animation: fadeUp .7s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .05s; }
.reveal:nth-child(3) { animation-delay: .1s; }
.reveal:nth-child(4) { animation-delay: .15s; }
.reveal:nth-child(5) { animation-delay: .2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Segmentos ---------- */
.segments { padding: 26px 0 40px; }
.segments-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.segments-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted-2); }
.segments-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.segments-row span {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: #fff;
}
.segments-row span:hover { border-color: rgba(230,57,70,.35); color: var(--red); }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -2px; font-weight: 700; margin-top: 20px; }
.section-sub { font-size: 16px; line-height: 1.65; color: var(--muted); margin-top: 16px; max-width: 640px; }
.section-sub.right { margin: 0 0 0 auto; max-width: 380px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(32,35,42,.16); }
.feature-card.span-2 { grid-column: span 2; }
.feature-card h3 { font-size: 20px; letter-spacing: -.5px; margin: 18px 0 8px; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 460px; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.feature-icon.yellow { background: var(--yellow-soft); color: #a16207; }
.feature-icon.light { background: rgba(255,255,255,.16); color: #fff; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card.red { background: var(--red); border-color: var(--red); color: #fff; margin-top: 0; }
.feature-card.red h3 { color: #fff; }
.feature-card.red p { color: rgba(255,255,255,.82); }
.mini-kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
.mk-col { background: var(--cream); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.mk-col span { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; display: block; }
.mk-col b { font-size: 20px; font-family: var(--mono); }
.mk-col.done { background: var(--green-soft); }
.mk-col.done b { color: var(--green); }
.finance-strip { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.finance-strip small { display: block; font-size: 10.5px; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .7px; }
.finance-strip b { font-size: 19px; font-family: var(--mono); font-weight: 500; }

/* ---------- Agentes ---------- */
.agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.agent-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.agent-card:hover { transform: translateY(-3px); border-color: rgba(230,57,70,.3); box-shadow: var(--shadow); }
.agent-index { font-family: var(--mono); font-size: 10px; color: var(--red); letter-spacing: .8px; }
.agent-card h3 { font-size: 17px; margin: 8px 0 6px; letter-spacing: -.4px; }
.agent-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.agent-card.featured { background: var(--ink); border-color: var(--ink); color: #fff; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
.agent-card.featured h3 { color: #fff; font-size: 23px; }
.agent-card.featured p { color: rgba(255,255,255,.7); font-size: 13.5px; }
.agent-card.featured .agent-index { color: var(--yellow); }
.agent-chip { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 9.5px; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 10px; }
.agents-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.agents-note svg { color: var(--red); flex: none; }

/* ---------- Etapas ---------- */
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.split-head .section-title { margin-top: 20px; }
.split-head .section-sub { margin-bottom: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, #fdfaf7); position: relative; }
.step-num { font-family: var(--mono); font-size: 11px; color: var(--red); letter-spacing: 1px; }
.step h3 { margin: 14px 0 8px; font-size: 17px; letter-spacing: -.4px; }
.step p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.step::after { content: ''; position: absolute; top: 32px; right: -16px; width: 16px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }

.wa-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 80px; }
.tag-inline { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; color: var(--red); background: var(--red-soft); border-radius: 999px; padding: 7px 12px; }
.wa-copy h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1.4px; line-height: 1.12; margin: 18px 0 14px; }
.wa-copy p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.check-list { margin: 22px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.check-list li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--green-soft); margin-top: 1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); background-size: 13px; background-position: center; background-repeat: no-repeat; }
.wa-mockup { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.wa-mockup::before { content: ''; position: absolute; inset: 0 10%; background: radial-gradient(closest-side, rgba(230,57,70,.12), transparent); filter: blur(20px); }
.phone {
  width: 320px; background: #fff; border: 8px solid var(--ink); border-radius: 38px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(20,24,40,.4); position: relative; z-index: 1;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 4px; font-size: 10px; font-weight: 600; color: var(--ink); }
.phone-notch { width: 84px; height: 18px; border-radius: 0 0 12px 12px; background: var(--ink); position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #075e54; color: #fff; }
.ph-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.phone-head strong { display: block; font-size: 13px; }
.phone-head small { font-size: 10px; opacity: .8; }
.phone-chat { background: #efe7dd; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 340px; }
.bubble { max-width: 84%; padding: 9px 11px; border-radius: 10px; font-size: 11.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative; }
.bubble small { display: block; font-size: 8.5px; color: rgba(0,0,0,.38); text-align: right; margin-top: 3px; }
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.bubble.out { background: #dcf8c6; align-self: flex-end; border-top-right-radius: 3px; }
.typing { font-size: 9.5px; color: #5b6b63; display: flex; align-items: center; gap: 3px; padding-left: 4px; }
.typing span { width: 4px; height: 4px; border-radius: 50%; background: #5b6b63; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }
.wa-float {
  position: absolute; right: -6px; bottom: 48px; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px 16px;
}
.wa-float strong { display: block; font-size: 12.5px; }
.wa-float small { font-size: 10.5px; color: var(--muted); }
.wa-badge { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 10px; background: var(--green-soft); color: var(--green); border-radius: 5px; padding: 2px 6px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; }
.price-card.featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-badge { position: absolute; top: -12px; left: 32px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; border-radius: 999px; padding: 5px 11px; }
.price-card h3 { font-size: 19px; letter-spacing: -.4px; }
.price-desc { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 8px; min-height: 40px; }
.price { font-size: 42px; font-weight: 700; letter-spacing: -2px; margin-top: 22px; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.price > span { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.price-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; font-family: var(--mono); }
.price-list { margin: 24px 0; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 11px; }
.price-list li { font-size: 13px; color: var(--ink-soft); display: flex; gap: 9px; line-height: 1.45; }
.price-list li::before { content: ''; width: 16px; height: 16px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E63946' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E") center / 11px no-repeat; }
.price-foot { font-size: 10.5px; color: var(--muted-2); margin-top: 14px; line-height: 1.5; }
.pricing-disclaimer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .9fr 1.4fr; gap: 64px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head .section-title { font-size: clamp(30px, 3.6vw, 46px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px; font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; letter-spacing: -.2px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font); font-size: 20px; font-weight: 400; color: var(--ink);
  width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: transform .25s var(--ease), background .2s;
}
.faq-item[open] summary::after { content: '−'; background: var(--red); color: #fff; border-color: var(--red); }
.faq-item p { padding: 0 44px 24px 4px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-final { padding: 20px 0 96px; }
.cta-box {
  background: var(--red); border-radius: 28px; padding: 64px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center;
}
.cta-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: rgba(255,202,58,.16); filter: blur(90px); right: 8%; top: -30%; pointer-events: none; }
.cta-badge { font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; color: rgba(255,255,255,.8); }
.cta-copy h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -2px; color: #fff; margin-top: 18px; }
.cta-copy h2 em { color: var(--yellow); }
.cta-copy p { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.65; margin-top: 16px; max-width: 440px; }
.cta-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.cta-card { background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 28px; backdrop-filter: blur(8px); }
.cta-card > small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.4px; color: rgba(255,255,255,.65); }
.cta-card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.cta-card li { font-size: 13.5px; color: #fff; display: flex; gap: 9px; }
.cta-card li span { color: var(--yellow); }
.cta-tags { display: flex; gap: 8px; margin-top: 22px; }
.cta-tags span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .8px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 9px; color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-tagline { font-size: 21px; line-height: 1.3; letter-spacing: -.5px; margin-top: 22px; font-weight: 600; }
.footer-tagline em { color: var(--yellow); }
.footer-desc { font-size: 12.5px; color: rgba(255,255,255,.5); line-height: 1.6; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.72); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; font-size: 11px; color: rgba(255,255,255,.42); flex-wrap: wrap; gap: 10px; }
.footer-status { display: inline-flex; align-items: center; gap: 6px; }
.footer-status i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.15); }

/* ==========================================================================
   APP SHELL
   ========================================================================== */
#app-shell { display: flex; min-height: 100vh; background: #faf7f3; }
.app-sidebar {
  width: 258px; flex: none; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh;
  z-index: 70; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3f4a transparent;
}
.app-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 18px; }
.app-brand .brand-word { color: #fff; font-size: 21px; }
.app-store {
  display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); margin-bottom: 16px;
}
.app-store-avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--red); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.app-store-info { min-width: 0; }
.app-store-info strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-store-info span { font-size: 9.5px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 4px; }
.app-store-info span i { width: 5px; height: 5px; border-radius: 50%; background: #34d399; }
.app-store-switch { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.5); padding: 3px; }
.app-store-switch:hover { color: #fff; }
.app-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.app-nav .nav-group { font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.3px; color: rgba(255,255,255,.28); padding: 16px 10px 7px; }
.app-nav a {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,.62); padding: 8.5px 10px; border-radius: 9px; transition: background .18s, color .18s;
}
.app-nav a svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.app-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav a.active { background: rgba(230,57,70,.16); color: #fff; font-weight: 600; }
.app-nav a.active svg { color: var(--yellow); opacity: 1; }
.app-nav .nav-badge { margin-left: auto; font-family: var(--mono); font-size: 9px; background: var(--red); color: #fff; border-radius: 999px; padding: 1px 6px; }
.app-sidebar-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.app-plan { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: rgba(255,202,58,.08); }
.app-plan:hover { background: rgba(255,202,58,.13); }
.plan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: none; box-shadow: 0 0 0 3px rgba(255,202,58,.14); }
.app-plan strong { display: block; font-size: 11.5px; color: #fff; }
.app-plan small { font-size: 9.5px; color: rgba(255,255,255,.5); }
.app-help, .app-logout {
  display: flex; align-items: center; gap: 8px; background: none; border: none;
  color: rgba(255,255,255,.5); font-size: 11.5px; padding: 9px 10px; border-radius: 8px; text-align: left;
}
.app-help:hover, .app-logout:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  height: 76px; flex: none; display: flex; align-items: center; gap: 18px;
  padding: 0 28px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 40;
}
.app-menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 6px; color: var(--ink); }
.app-topbar-title { min-width: 0; }
.app-topbar-title h1 { font-size: 19px; letter-spacing: -.5px; line-height: 1.2; }
.app-topbar-title p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.app-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 10px; color: var(--muted-2); font-size: 12px; min-width: 190px;
}
.topbar-search kbd { margin-left: auto; font-family: var(--mono); font-size: 9px; background: #f3f3f5; border: 1px solid var(--line-soft); border-radius: 4px; padding: 1px 4px; }
.icon-btn { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 9px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-soft); }
.icon-btn:hover { border-color: rgba(230,57,70,.4); color: var(--red); }
.notif-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); border: 1.5px solid #fff; }
.user-chip { display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 4px; border-radius: 9px; }
.user-chip:hover { background: rgba(32,35,42,.04); }
.user-avatar { width: 31px; height: 31px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; }
.user-meta { text-align: left; }
.user-meta strong { display: block; font-size: 11.5px; }
.user-meta small { font-size: 9.5px; color: var(--muted); }
.app-main { padding: 26px 28px 48px; max-width: 1440px; width: 100%; margin: 0 auto; }
.app-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 80px 0; color: var(--muted); font-size: 13px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(16,18,22,.45); z-index: 65; backdrop-filter: blur(2px); }

/* ---------- Componentes do app ---------- */
.view { animation: viewIn .4s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; letter-spacing: -.7px; }
.page-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.col-span-2 { grid-column: span 2; }
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { font-size: 14.5px; letter-spacing: -.2px; }
.card-head p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.card-head .link { font-size: 11.5px; font-weight: 600; color: var(--red); }
.section-label { font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted-2); }
.metric-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.metric-card .metric-label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.metric-card .metric-value { font-size: 25px; font-weight: 700; letter-spacing: -1px; margin-top: 8px; line-height: 1.1; }
.metric-card .metric-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.metric-card .delta { font-family: var(--mono); font-size: 9.5px; padding: 2px 6px; border-radius: 5px; background: var(--green-soft); color: var(--green); }
.metric-card .delta.down { background: var(--red-soft); color: var(--red); }
.metric-icon { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 9px; background: var(--cream); display: grid; place-items: center; color: var(--red); }
.metric-icon svg { width: 15px; height: 15px; }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 11.5px; font-weight: 500; color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: rgba(230,57,70,.35); color: var(--red); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active.red { background: var(--red); border-color: var(--red); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.green { background: var(--green-soft); color: #15803d; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.yellow { background: var(--yellow-soft); color: #a16207; }
.badge.blue { background: var(--blue-soft); color: #1d4ed8; }
.badge.gray { background: #f1f2f4; color: var(--muted); }
.badge.no-dot::before { display: none; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th { text-align: left; font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); padding: 9px 12px; border-bottom: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
table.data td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fdfaf7; }
table.data .strong { font-weight: 600; }
table.data .muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .95em; }
.t-right { text-align: right; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; margin-bottom: 12px; color: var(--muted-2); }
.empty-state strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.empty-state p { font-size: 12.5px; max-width: 320px; margin: 0 auto 16px; }

.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%; font-size: 13px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,57,70,.1); }
.field small { font-size: 10.5px; color: var(--muted-2); }
.field textarea { min-height: 78px; resize: vertical; }
.field input[type=color] { padding: 3px; height: 38px; cursor: pointer; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d9dbe0; cursor: pointer; transition: .2s; }
.switch span::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }

/* ---------- Dashboard ---------- */
.dash-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-hero h2 { font-size: 24px; letter-spacing: -.8px; }
.dash-hero p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chart-box { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 20px; }
.chart-area { width: 100%; height: 230px; }
.chart-legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.dash-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 14px; }
.alert-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.alert-item:last-child { border-bottom: none; padding-bottom: 0; }
.alert-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 13px; }
.alert-icon svg { width: 15px; height: 15px; }
.alert-item strong { display: block; font-size: 12px; line-height: 1.35; }
.alert-item small { font-size: 10.5px; color: var(--muted); }
.alert-item .alert-action { margin-left: auto; align-self: center; font-size: 10.5px; font-weight: 600; color: var(--red); white-space: nowrap; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.rank-num { width: 20px; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.rank-info { min-width: 0; flex: 1; }
.rank-info strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { height: 4px; border-radius: 999px; background: #f1f2f4; margin-top: 5px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; border-radius: 999px; background: var(--red); }
.rank-val { font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft); }
.goal-card { background: var(--ink); color: #fff; border-radius: 16px; padding: 20px; position: relative; overflow: hidden; }
.goal-card::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,202,58,.15); filter: blur(30px); right: -30px; top: -40px; }
.goal-top { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.65); }
.goal-card h3 { font-size: 26px; letter-spacing: -1px; margin: 8px 0 2px; font-family: var(--mono); font-weight: 500; }
.goal-card p { font-size: 11px; color: rgba(255,255,255,.6); }
.goal-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.14); margin-top: 16px; overflow: hidden; }
.goal-track span { display: block; height: 100%; border-radius: 999px; background: var(--yellow); transition: width .8s var(--ease); }
.goal-foot { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,.55); margin-top: 7px; }

/* ---------- Kanban de pedidos ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kb-col { background: #f5f1eb; border-radius: 12px; padding: 10px; min-height: 160px; }
.kb-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 9px; }
.kb-head strong { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--ink-soft); }
.kb-count { font-family: var(--mono); font-size: 9.5px; background: #fff; border-radius: 999px; padding: 1px 7px; color: var(--muted); }
.kb-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px; margin-bottom: 8px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.kb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kb-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.kb-id { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.kb-time { font-size: 9px; color: var(--muted-2); }
.kb-card strong { font-size: 12px; display: block; }
.kb-card small { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.kb-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.kb-total { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.kb-late { font-size: 9px; color: var(--red); background: var(--red-soft); border-radius: 4px; padding: 1px 5px; }
.sla-line { height: 3px; border-radius: 999px; background: #eee; margin-top: 8px; overflow: hidden; }
.sla-line span { display: block; height: 100%; background: var(--green); }
.sla-line.late span { background: var(--red); }

/* ---------- Cardápio ---------- */
.menu-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.cat-list { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 8px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 8px; font-size: 12px; cursor: pointer; color: var(--ink-soft); }
.cat-item:hover { background: var(--cream); }
.cat-item.active { background: var(--red-soft); color: var(--red); font-weight: 600; }
.cat-item span { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.product-row { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line-soft); }
.product-row:last-child { border-bottom: none; }
.product-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cream); display: grid; place-items: center; color: var(--muted-2); font-size: 18px; }
.product-info { flex: 1; min-width: 0; }
.product-info strong { display: block; font-size: 12.5px; }
.product-info small { font-size: 10.5px; color: var(--muted); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.product-actions { display: flex; gap: 4px; }

/* ---------- Menu público ---------- */
.pubmenu { min-height: 100vh; background: #f7f3ee; }
.pub-header { background: #fff; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 30; }
.pub-header-inner { max-width: 880px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.pub-logo { width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.pub-store h1 { font-size: 16px; letter-spacing: -.4px; }
.pub-store small { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.pub-store small i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.pub-header-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pub-banner { max-width: 880px; margin: 16px auto 0; padding: 0 20px; }
.pub-banner-inner { background: linear-gradient(120deg, var(--ink), #343946); border-radius: 16px; padding: 22px 24px; color: #fff; display: flex; justify-content: space-between; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.pub-banner-inner::after { content: '🍔'; position: absolute; right: 84px; bottom: -18px; font-size: 90px; opacity: .12; transform: rotate(-12deg); }
.pub-banner-inner h2 { font-size: 20px; letter-spacing: -.6px; }
.pub-banner-inner p { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px; }
.pub-badge { font-family: var(--mono); font-size: 9px; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 5px 10px; align-self: flex-start; white-space: nowrap; }
.pub-nav { max-width: 880px; margin: 14px auto 0; padding: 0 20px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pub-nav::-webkit-scrollbar { display: none; }
.pub-nav button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 11.5px; white-space: nowrap; color: var(--muted); font-weight: 500; }
.pub-nav button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pub-content { max-width: 880px; margin: 0 auto; padding: 18px 20px 120px; display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.pub-products { display: flex; flex-direction: column; gap: 10px; }
.pub-cat-title { font-size: 15px; letter-spacing: -.3px; margin: 10px 0 2px; }
.pub-item { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; padding: 12px; display: flex; gap: 12px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.pub-item:hover { border-color: rgba(230,57,70,.35); transform: translateY(-1px); }
.pub-item-body { flex: 1; min-width: 0; }
.pub-item-body strong { font-size: 13px; display: block; }
.pub-item-body p { font-size: 10.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-item-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pub-price { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.pub-old { font-size: 10px; color: var(--muted-2); text-decoration: line-through; }
.pub-add { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; background: var(--red); color: #fff; border: none; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.pub-add:hover { background: var(--red-strong); }
.pub-thumb { width: 82px; height: 82px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cream); }
.pub-ph { width: 82px; height: 82px; border-radius: 10px; background: linear-gradient(135deg, var(--cream), var(--cream-deep)); display: grid; place-items: center; font-size: 26px; flex: none; color: var(--muted-2); }
.pub-ph svg { width: 28px; height: 28px; }
.cart-box { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; position: sticky; top: 86px; }
.cart-box h3 { font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.cart-box h3 span { margin-left: auto; font-family: var(--mono); font-size: 10px; background: var(--red-soft); color: var(--red); border-radius: 999px; padding: 1px 7px; }
.cart-items { margin: 12px 0; display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; }
.cart-line { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; }
.cart-line strong { display: block; font-size: 11.5px; }
.cart-line small { color: var(--muted); font-size: 10px; }
.cart-line .qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; background: var(--cream); border-radius: 6px; padding: 2px 5px; }
.cart-line .qty button { background: none; border: none; font-size: 12px; line-height: 1; color: var(--ink); padding: 0 2px; }
.cart-line .qty b { font-family: var(--mono); font-size: 10px; }
.cart-line-price { margin-left: auto; font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.cart-total { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 8px; font-size: 11.5px; display: flex; flex-direction: column; gap: 6px; }
.cart-total .row { display: flex; justify-content: space-between; color: var(--muted); }
.cart-total .grand { font-size: 14px; font-weight: 700; color: var(--ink); }
.cart-empty { text-align: center; padding: 20px 0; color: var(--muted); font-size: 11.5px; }
.cart-empty svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--muted-2); }
.pub-secure { display: flex; align-items: center; gap: 5px; justify-content: center; font-size: 9.5px; color: var(--muted-2); margin-top: 10px; }

/* ---------- Login / Cadastro ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(230,57,70,.35), transparent 65%); right: -140px; top: -80px; }
.auth-side::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,202,58,.16), transparent 65%); left: -100px; bottom: 40px; }
.auth-side-content { position: relative; z-index: 1; margin-top: auto; margin-bottom: auto; }
.auth-side-content h2 { font-size: 34px; line-height: 1.12; letter-spacing: -1.2px; max-width: 420px; margin-bottom: 16px; }
.auth-side-content h2 em { color: var(--yellow); }
.auth-side-content p { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.7; max-width: 380px; }
.auth-quote { position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; background: rgba(255,255,255,.04); max-width: 400px; }
.auth-quote p { font-size: 12.5px; color: rgba(255,255,255,.8); line-height: 1.6; }
.auth-quote small { font-size: 10.5px; color: rgba(255,255,255,.45); display: block; margin-top: 8px; }
.auth-main { padding: 32px 48px; display: flex; flex-direction: column; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-back { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.auth-back:hover { color: var(--red); }
.auth-card { max-width: 400px; width: 100%; margin: auto; }
.auth-card h1 { font-size: 27px; letter-spacing: -1px; }
.auth-card > p { font-size: 13px; color: var(--muted); margin-top: 6px; margin-bottom: 26px; }
.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-form .field input { padding: 11px 13px; font-size: 13.5px; }
.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; margin-top: 2px; }
.auth-options label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.auth-options a { color: var(--red); font-weight: 600; }
.auth-sep { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--muted-2); margin: 16px 0; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-demo { border: 1px dashed rgba(230,57,70,.35); background: var(--red-softer); border-radius: 11px; padding: 13px; margin-top: 16px; font-size: 11px; color: var(--muted); line-height: 1.55; }
.auth-demo strong { color: var(--ink); display: block; font-size: 11.5px; margin-bottom: 2px; }
.auth-demo button { margin-top: 8px; }
.auth-foot { margin-top: 22px; font-size: 11.5px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--red); font-weight: 600; }
.auth-note { font-size: 10.5px; color: var(--muted-2); line-height: 1.55; margin-top: 14px; }

/* ---------- Onboarding ---------- */
.ob-page { min-height: 100vh; background: var(--cream); padding: 28px 20px 60px; }
.ob-wrap { max-width: 940px; margin: 0 auto; }
.ob-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ob-progress { display: flex; gap: 5px; margin-bottom: 26px; }
.ob-progress span { height: 4px; flex: 1; background: rgba(32,35,42,.1); border-radius: 999px; overflow: hidden; }
.ob-progress span.done { background: var(--red); }
.ob-progress span.current { background: linear-gradient(90deg, var(--red) 50%, rgba(32,35,42,.1) 50%); }
.ob-shell { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-sm); }
.ob-step-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.3px; color: var(--red); }
.ob-shell h2 { font-size: 25px; letter-spacing: -.9px; margin: 8px 0 6px; }
.ob-shell > p { font-size: 12.5px; color: var(--muted); margin-bottom: 24px; }
.ob-fields { display: grid; gap: 14px; }
.ob-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; cursor: pointer; background: #fff; transition: all .2s; }
.choice:hover { border-color: rgba(230,57,70,.4); }
.choice.selected { border-color: var(--red); background: var(--red-softer); box-shadow: 0 0 0 1px var(--red); }
.choice .ci { font-size: 22px; display: block; margin-bottom: 6px; }
.choice .ci svg { width: 22px; height: 22px; }
.choice strong { font-size: 12px; display: block; }
.choice small { font-size: 10px; color: var(--muted); }
.color-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.color-swatch { width: 30px; height: 30px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.color-swatch.selected { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }

/* ---------- IA ---------- */
.ai-layout { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: start; }
.agent-list { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 7px; max-height: 640px; overflow-y: auto; }
.agent-list-item { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 9px; cursor: pointer; }
.agent-list-item:hover { background: var(--cream); }
.agent-list-item.active { background: var(--red-soft); }
.agent-list-avatar { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.agent-list-item strong { display: block; font-size: 11.5px; }
.agent-list-item small { font-size: 9.5px; color: var(--muted); display: block; }
.chat-shell { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; display: flex; flex-direction: column; height: 640px; overflow: hidden; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
.chat-head .agent-list-avatar { width: 34px; height: 34px; }
.chat-head strong { font-size: 13px; display: block; }
.chat-head small { font-size: 10px; color: var(--muted); }
.chat-head .badge { margin-left: auto; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fdfbf9; }
.msg { max-width: 78%; font-size: 12.5px; line-height: 1.6; padding: 11px 14px; border-radius: 12px; }
.msg.ai { background: #fff; border: 1px solid var(--line-soft); border-top-left-radius: 3px; align-self: flex-start; box-shadow: var(--shadow-sm); }
.msg.user { background: var(--red); color: #fff; border-top-right-radius: 3px; align-self: flex-end; }
.msg small { display: block; font-size: 9px; opacity: .55; margin-top: 5px; }
.msg .msg-data { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink-soft); }
.chat-suggestions { display: flex; gap: 6px; padding: 10px 14px 0; flex-wrap: wrap; }
.chat-suggestions button { font-size: 10.5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; color: var(--muted); }
.chat-suggestions button:hover { border-color: var(--red); color: var(--red); }
.chat-inputbar { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.chat-inputbar input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; }
.chat-inputbar input:focus { outline: none; border-color: var(--red); }
.chat-inputbar button { width: 38px; height: 38px; border-radius: 9px; border: none; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.ai-tools-card { margin-top: 12px; }

/* ---------- WhatsApp inbox ---------- */
.inbox { display: grid; grid-template-columns: 280px 1fr; gap: 0; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; height: 660px; }
.inbox-list { border-right: 1px solid var(--line-soft); overflow-y: auto; }
.inbox-search { padding: 12px; border-bottom: 1px solid var(--line-soft); }
.inbox-search input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 11.5px; }
.conv-item { display: flex; gap: 9px; padding: 12px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.conv-item:hover { background: #fdfbf9; }
.conv-item.active { background: var(--red-softer); border-left: 2px solid var(--red); }
.conv-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cream-deep); color: var(--ink-soft); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.conv-info { min-width: 0; flex: 1; }
.conv-info strong { display: block; font-size: 11.5px; }
.conv-info p { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-time { font-size: 8.5px; color: var(--muted-2); }
.conv-channel { font-size: 8px; background: var(--green-soft); color: var(--green); border-radius: 4px; padding: 1px 4px; }
.inbox-chat { display: flex; flex-direction: column; min-width: 0; }
.inbox-head { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
.inbox-head strong { font-size: 12.5px; display: block; }
.inbox-head small { font-size: 10px; color: var(--green); }
.inbox-head .page-head-actions { margin-left: auto; }
.inbox-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f7f4ef; }
.inbox-body .msg { max-width: 72%; font-size: 12px; }
.inbox-body .msg.human { background: #dcf8c6; align-self: flex-end; color: var(--ink); border: 1px solid #cdeab6; }
.inbox-body .msg.bot { background: #fff; border: 1px solid var(--line-soft); align-self: flex-start; }
.inbox-body .msg.client { background: #fff; border: 1px solid var(--line-soft); align-self: flex-start; }
.inbox-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); }
.inbox-input input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 12px; }

/* ---------- Integrações ---------- */
.integration-card { border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.integration-head { display: flex; align-items: center; gap: 10px; }
.integration-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none; }
.integration-head strong { font-size: 13px; display: block; }
.integration-head small { font-size: 10px; color: var(--muted); }
.integration-card p { font-size: 11.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.cred-box { background: #fbfaf8; border: 1px solid var(--line-soft); border-radius: 9px; padding: 10px; font-family: var(--mono); font-size: 10px; color: var(--muted); line-height: 1.7; }

/* ---------- Master ---------- */
.master-body { background: #12141a; min-height: 100vh; color: #e9eaee; }
.master-body .app-sidebar { background: #0c0e12; }
.master-body .app-topbar { background: rgba(18,20,26,.9); border-color: rgba(255,255,255,.08); }
.master-body .app-topbar-title h1 { color: #fff; }
.master-body .app-topbar-title p { color: rgba(255,255,255,.5); }
.master-body .app-main { color: #e9eaee; }
.master-body .card, .master-body .metric-card, .master-body .chart-box { background: #191c23; border-color: rgba(255,255,255,.08); color: #e9eaee; }
.master-body .metric-card .metric-label, .master-body .card-head p { color: rgba(255,255,255,.5); }
.master-body table.data th { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.08); }
.master-body table.data td { border-color: rgba(255,255,255,.06); }
.master-body table.data tr:hover td { background: rgba(255,255,255,.03); }
.master-body .section-label { color: rgba(255,255,255,.4); }
.master-banner { background: linear-gradient(120deg, #241a1c, #1a1d24); border: 1px solid rgba(230,57,70,.25); border-radius: 16px; padding: 20px 22px; display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.master-banner strong { font-size: 14px; color: #fff; display: block; }
.master-banner p { font-size: 11.5px; color: rgba(255,255,255,.5); }

/* ---------- Modal / toast / notificações ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16,18,22,.55); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-panel {
  position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; padding: 26px;
  animation: modalIn .3s var(--ease);
}
.modal-panel.wide { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { font-size: 19px; letter-spacing: -.5px; }
.modal-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.modal-close { background: #f4f2ef; border: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); flex: none; }
.modal-close:hover { background: var(--red-soft); color: var(--red); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-section { margin-top: 16px; }
.modal-section h4 { font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; color: var(--muted-2); margin-bottom: 9px; text-transform: uppercase; }
.order-detail-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12px; }
.order-detail-row span:first-child { color: var(--muted); }
.order-detail-items { background: #fbfaf8; border-radius: 9px; padding: 10px 12px; margin: 6px 0; }
.order-detail-items div { display: flex; justify-content: space-between; font-size: 11.5px; padding: 3px 0; }

.toast-root { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 16px; font-size: 12.5px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; max-width: 380px;
  animation: toastIn .35s var(--ease); border-left: 3px solid var(--green);
}
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--yellow); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

.notif-panel {
  position: fixed; top: 70px; right: 28px; width: 340px; background: #fff; border: 1px solid var(--line-soft);
  border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 150; padding: 8px; animation: modalIn .25s var(--ease);
}
.notif-panel h4 { font-size: 11px; padding: 8px 10px; font-family: var(--mono); letter-spacing: 1px; color: var(--muted-2); }
.notif-item { display: flex; gap: 9px; padding: 10px; border-radius: 9px; }
.notif-item:hover { background: var(--cream); }
.notif-item strong { display: block; font-size: 11.5px; }
.notif-item small { font-size: 10px; color: var(--muted); }

/* ---------- Planos/config ---------- */
.plan-active-card { background: linear-gradient(135deg, var(--ink), #2c313b); color: #fff; border-radius: 16px; padding: 26px; position: relative; overflow: hidden; }
.plan-active-card::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(230,57,70,.3); filter: blur(50px); right: -60px; top: -70px; }
.plan-active-card h3 { font-size: 20px; color: #fff; letter-spacing: -.5px; }
.plan-active-card .price { color: #fff; font-size: 34px; margin-top: 12px; }
.plan-active-card .price small { color: rgba(255,255,255,.5); }
.plan-active-card p { font-size: 12px; color: rgba(255,255,255,.6); }
.stat-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.stat-line span { color: var(--muted); }

.settings-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.settings-tabs button { background: none; border: none; padding: 10px 14px; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.settings-tabs button.active { color: var(--red); border-color: var(--red); font-weight: 600; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .header-inner { justify-content: space-between; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: repeat(3, 1fr); }
  .agent-card.featured { grid-row: auto; grid-column: span 3; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .wa-showcase { grid-template-columns: 1fr; gap: 24px; }
  .cta-box { grid-template-columns: 1fr; padding: 40px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .menu-layout { grid-template-columns: 1fr; }
  .cat-list { display: flex; overflow-x: auto; gap: 4px; }
  .cat-item { white-space: nowrap; }
  .ai-layout { grid-template-columns: 220px 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .mockup-sidebar { display: none; }
  .float-a { left: 6px; }
  .float-b { right: 6px; }
}
@media (max-width: 900px) {
  .app-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%);
    transition: transform .3s var(--ease); width: 270px;
  }
  .app-sidebar.open { transform: none; }
  .app-menu-btn { display: grid; place-items: center; }
  .app-topbar { padding: 0 16px; height: 68px; }
  .app-main { padding: 18px 16px 40px; }
  .topbar-search { display: none; }
  .user-meta { display: none; }
  .topbar-menu-link { display: none; }
  .pub-content { grid-template-columns: 1fr; padding-bottom: 40px; }
  .cart-box { position: static; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox-list { max-height: 210px; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .inbox-chat { height: 470px; }
  .ai-layout { grid-template-columns: 1fr; }
  .agent-list { display: flex; overflow-x: auto; max-height: none; }
  .agent-list-item { flex: none; }
  .chat-shell { height: 560px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .hero-title { letter-spacing: -2px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-login-link { margin: 8px auto 0; }
  .hero-trust { gap: 12px; font-size: 9.5px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.span-2 { grid-column: auto; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-card.featured { grid-column: span 2; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-sub.right { margin: 0; max-width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .cta-box { padding: 30px 22px; border-radius: 20px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .float-card { display: none; }
  .mm-kpis { grid-template-columns: repeat(2, 1fr); }
  .mm-row { grid-template-columns: 1fr; }
  .mm-donut-card { display: none; }
  .mockup-body { min-height: 0; }
  .browser-pill { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .kanban { grid-template-columns: repeat(5, 240px); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .ob-shell { padding: 24px 18px; }
  .auth-main { padding: 24px 20px; }
  .notif-panel { right: 12px; left: 12px; width: auto; }
  .toast-root { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { max-width: none; }
  .modal-panel { padding: 20px; }
  .pub-content { grid-template-columns: 1fr; padding: 14px 14px 40px; }
  .pub-header-inner { padding: 10px 14px; }
  .pub-banner { padding: 0 14px; }
  .pub-banner-inner h2 { font-size: 16px; }
  .pub-badge { display: none; }
  .pub-nav { padding: 0 14px; }
  .pub-thumb, .pub-ph { width: 64px; height: 64px; }
  .app-topbar-title h1 { font-size: 16px; }
  .app-topbar-title p { display: none; }
}
@media (max-width: 430px) {
  .agents-grid { grid-template-columns: 1fr; }
  .agent-card.featured { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .hero-trust span { width: 100%; justify-content: center; }
  .mm-total strong { font-size: 24px; }
  .mob-hide { display: none; }
}

/* ---------- Campanha publicada e Praddu Recomenda ---------- */
.pub-campaign { max-width: 880px; margin: 12px auto 0; padding: 12px 16px; background: #fff8f0; border: 1px solid rgba(255,202,58,.65); border-left: 4px solid #ffca3a; border-radius: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.pub-campaign strong { font-size: 12.5px; color: #20232a; }
.pub-campaign span { font-size: 11.5px; color: #5c6270; line-height: 1.5; }
.pub-reco-cta { max-width: 880px; margin: 14px auto 0; padding: 20px 24px; background: radial-gradient(circle at 88% 18%, rgba(255,202,58,.22), transparent 38%), #20232a; color: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; }
.pub-reco-kicker { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: 1.6px; color: #ffca3a; background: rgba(255,202,58,.12); border: 1px solid rgba(255,202,58,.32); border-radius: 999px; padding: 3px 9px; margin-bottom: 8px; }
.pub-reco-cta h2 { font-size: 20px; line-height: 1.15; letter-spacing: -.6px; max-width: 440px; }
.pub-reco-cta p { font-size: 11.5px; color: rgba(255,255,255,.62); line-height: 1.55; margin-top: 5px; max-width: 460px; }
.pub-reco-cta button { flex: none; background: #ffca3a; color: #20232a; border: none; border-radius: 10px; padding: 11px 18px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); box-shadow: 0 8px 24px rgba(255,202,58,.22); }
.pub-reco-cta button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,202,58,.3); }

.reco-progress { display: flex; gap: 5px; margin-bottom: 20px; }
.reco-progress span { height: 4px; flex: 1; border-radius: 999px; background: rgba(32,35,42,.1); }
.reco-progress span.done { background: #e63946; }
.reco-progress span.current { background: linear-gradient(90deg, #e63946 55%, rgba(32,35,42,.1) 55%); }
.reco-question h3 { font-size: 22px; letter-spacing: -.7px; margin: 5px 0 4px; }
.reco-question > p { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.reco-kicker { font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; color: var(--red); }
.reco-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.reco-option { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease); }
.reco-option:hover { border-color: rgba(230,57,70,.4); transform: translateY(-1px); }
.reco-option.selected { border-color: #e63946; background: #fff5f5; box-shadow: 0 0 0 2px rgba(230,57,70,.12); }
.reco-option strong { display: block; font-size: 12.5px; color: var(--ink); }
.reco-option small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.reco-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.reco-summary { background: #f7f3ee; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 13px; margin-bottom: 14px; }
.reco-summary span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.reco-summary p { font-size: 11px; color: var(--ink-soft); line-height: 1.5; margin-top: 2px; }
.reco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.reco-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.reco-card:hover { transform: translateY(-2px); border-color: rgba(230,57,70,.28); }
.reco-card > .pub-thumb, .reco-card > .pub-ph { width: 100% !important; height: 132px !important; border-radius: 0; }
.reco-card-body { padding: 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.reco-card-body > strong { font-size: 13px; line-height: 1.3; color: var(--ink); }
.reco-desc { font-size: 10.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reco-price { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); }
.reco-reason { font-size: 9.5px; color: var(--muted); line-height: 1.5; border-top: 1px dashed var(--line); padding-top: 7px; margin-top: 2px; }
.reco-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 7px; flex-wrap: wrap; }
.reco-empty { background: #fff8f0; border: 1px dashed rgba(230,57,70,.35); border-radius: 12px; padding: 20px; text-align: center; }
.reco-empty strong { font-size: 14px; display: block; margin-bottom: 6px; }
.reco-empty p { font-size: 11.5px; color: var(--muted); line-height: 1.6; max-width: 520px; margin: 0 auto 6px; }
.reco-note { font-size: 9.5px; color: var(--muted-2); line-height: 1.55; margin-top: 14px; text-align: center; }

@media (max-width: 720px) {
  .pub-campaign { margin: 10px 14px 0; }
  .pub-reco-cta { margin: 12px 14px 0; padding: 18px 16px; flex-direction: column; align-items: flex-start; }
  .pub-reco-cta h2 { font-size: 17px; }
  .pub-reco-cta button { width: 100%; }
  .reco-options, .reco-grid { grid-template-columns: 1fr; }
  .reco-question h3 { font-size: 19px; }
  .reco-card > .pub-thumb, .reco-card > .pub-ph { height: 170px !important; }
  .reco-foot .btn { flex: 1; }
}
