/* Momentum CRM · Demo do Agente IA de Renting
   Tokens copiados do CRM real (momentum-crm-imobiliario/src/index.css — "Premium Navy/Blue") */

:root {
  --bg: hsl(220 40% 5%);
  --card: hsl(220 35% 9%);
  --card-2: hsl(220 30% 12%);
  --muted: hsl(220 25% 14%);
  --muted-fg: hsl(215 20% 55%);
  --fg: hsl(210 40% 95%);
  --fg-70: hsl(210 40% 95% / .7);
  --border: hsl(220 25% 16%);
  --sidebar: hsl(220 38% 6%);
  --sidebar-border: hsl(220 25% 14%);
  --primary: hsl(217 91% 60%);
  --primary-10: hsl(217 91% 60% / .10);
  --primary-15: hsl(217 91% 60% / .15);
  --primary-30: hsl(217 91% 60% / .30);
  --secondary: hsl(221 83% 53%);
  --accent: hsl(199 89% 48%);
  --emerald: hsl(160 72% 39%);
  --warning: hsl(38 92% 50%);
  --destructive: hsl(0 72% 51%);
  --gradient-primary: linear-gradient(135deg, hsl(217 91% 60%), hsl(199 89% 48%));
  --shadow-glow: 0 0 30px hsl(217 91% 60% / .15);
  --shadow-primary: 0 0 20px hsl(217 91% 60% / .25);
  --radius: 10px;

  --display: "Playfair Display", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --code: "IBM Plex Mono", ui-monospace, monospace;
  --mono: "Space Mono", ui-monospace, monospace;

  /* WhatsApp (tema escuro real) */
  --wa-bg: #0b141a;
  --wa-head: #202c33;
  --wa-in: #202c33;
  --wa-out: #005c4b;
  --wa-green: #25d366;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 15% -10%, hsl(217 91% 60% / .10), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, hsl(199 89% 48% / .07), transparent 60%);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, .box-v, .stats b, .call-av b, .em-v, .lead-name, .call-name { font-family: var(--display); margin: 0; font-feature-settings: "lnum" 1; font-variant-numeric: lining-nums; }
code, .mono { font-family: var(--code); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hidden { display: none !important; }

/* ---------- Topo ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px) 10px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 10px hsl(45 90% 55% / .35)); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.brand-sub { font-family: var(--code); font-size: 11px; color: var(--muted-fg); letter-spacing: .04em; margin-top: 2px; }
.tag {
  display: inline-block; font-family: var(--code); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--fg-70); background: var(--card);
  vertical-align: middle;
}
.tag.hot { color: hsl(0 80% 70%); border-color: hsl(0 72% 51% / .4); background: hsl(0 72% 51% / .12); }
.tag.ok { color: var(--primary); border-color: var(--primary-30); background: var(--primary-15); }

.controls { display: flex; gap: 8px; }
.btn {
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 500;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--muted); border-color: hsl(220 25% 24%); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: hsl(220 40% 5%); font-weight: 600; box-shadow: var(--shadow-primary); }
.btn.primary:hover { background: hsl(217 91% 66%); }
.btn.ghost { background: transparent; }
.btn.tiny { padding: 5px 11px; font-size: 12px; border-radius: 8px; }

/* ---------- Carril de passos (assinatura) ---------- */
.rail { padding: 6px clamp(16px, 4vw, 40px) 0; }
.rail ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
}
.rail li.live button { border-top-style: dashed; }
.rail li.live .n { color: var(--emerald); }
.rail li.live.active button { border-top-style: solid; border-top-color: var(--emerald); }
.rail li { position: relative; min-width: 0; }
.rail li button {
  width: 100%; text-align: left; background: transparent; border: 0; padding: 10px 0 6px;
  border-top: 2px solid var(--border); transition: border-color .3s;
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden;
}
.rail .n { font-family: var(--code); font-size: 11px; color: var(--muted-fg); }
.rail .l { font-size: 13px; font-weight: 500; color: var(--fg-70); }
.rail li.done button { border-top-color: var(--primary-30); }
.rail li.done .n, .rail li.done .l { color: var(--fg-70); }
.rail li.active button { border-top-color: var(--primary); }
.rail li.active .n { color: var(--primary); }
.rail li.active .l { color: var(--fg); font-weight: 600; }
.rail .fact {
  display: block; font-style: normal; font-family: var(--code); font-size: 10.5px; letter-spacing: .02em;
  color: var(--primary); min-height: 16px; opacity: 0; transform: translateY(-3px); transition: opacity .4s .1s, transform .4s .1s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail li.done .fact { opacity: .9; transform: none; }
.rail .fact::after { content: attr(data-fact); }
.rail li.done .fact::before { content: "✓ "; color: var(--emerald); }
.rail li.active .fact { opacity: .35; transform: none; }
.rail li.active .fact::before { content: "… "; }
.progress { height: 2px; background: var(--border); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gradient-primary); transition: width .25s linear; }
body.paused .progress span { opacity: .5; }

/* ---------- Palco ---------- */
#stages { flex: 1; padding: 14px clamp(16px, 4vw, 40px) 24px; display: grid; min-width: 0; }
.stage { display: none; grid-area: 1 / 1; min-width: 0; animation: fadeUp .45s cubic-bezier(.2,.7,.2,1) both; max-width: 1180px; width: 100%; margin: 0 auto; }
.stage.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stage-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; margin: 0 0 14px; color: var(--fg); }
.stage-title::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin: 0 12px 4px 0; box-shadow: 0 0 10px var(--primary); }
.caption { color: var(--muted-fg); font-size: 13.5px; margin: 14px 0 0; max-width: 900px; }
.caption code { color: var(--fg-70); font-size: 12px; }
.caption b { color: var(--fg); font-weight: 600; }

.frame {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card);
  box-shadow: 0 30px 80px -30px hsl(220 60% 2% / .9), var(--shadow-glow);
}
.frame.light { color: #202124; background: #fff; }

/* ---------- 01 Gmail ---------- */
.gmail { font-family: "Inter", Roboto, Arial, sans-serif; }
.gm-top { display: flex; align-items: center; gap: 20px; padding: 10px 18px; border-bottom: 1px solid #e8eaed; }
.gm-logo { display: flex; align-items: center; gap: 6px; font-size: 20px; color: #5f6368; font-weight: 500; min-width: 120px; }
.gm-logo .g { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.g1 { background: #4285f4; } .g2 { background: #ea4335; } .g3 { background: #fbbc04; } .g4 { background: #34a853; }
.gm-search { flex: 1; background: #eaf1fb; border-radius: 24px; padding: 10px 16px; color: #5f6368; font-size: 14px; }
.gm-avatar { width: 32px; height: 32px; border-radius: 50%; background: #7b1fa2; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.gm-body { display: flex; min-height: 300px; }
.gm-side { width: 190px; padding: 12px; border-right: 1px solid #f1f3f4; }
.gm-compose { background: #c2e7ff; border-radius: 16px; padding: 12px 18px; font-weight: 500; margin-bottom: 14px; font-size: 14px; }
.gm-nav { padding: 7px 14px; border-radius: 0 16px 16px 0; font-size: 14px; color: #202124; display: flex; justify-content: space-between; }
.gm-nav.active { background: #d3e3fd; font-weight: 700; }
.gm-list { flex: 1; }
.gm-row { display: grid; grid-template-columns: 24px 32px 150px 1fr 60px; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f1f3f4; font-size: 14px; }
.gm-star { color: #bdc1c6; }
.gm-av { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.gm-from { color: #202124; }
.gm-subj { color: #5f6368; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gm-subj b { color: #202124; font-weight: 700; }
.gm-time { text-align: right; color: #5f6368; font-size: 12px; }
.gm-row.hi { background: #fff; font-weight: 600; position: relative; }
.gm-row.hi .gm-from, .gm-row.hi .gm-time { color: #202124; font-weight: 700; }
.gm-row.hi::after {
  content: ""; position: absolute; inset: 2px 6px; border-radius: 8px; border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px hsl(217 91% 60% / .18); opacity: 0; animation: ring .6s .8s ease-out forwards;
}
@keyframes ring { to { opacity: 1; } }

/* ---------- 02 Email ---------- */
.email { max-width: 860px; margin: 0 auto; font-family: "Inter", Arial, sans-serif; }
.em-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #e8eaed; }
.em-subj { font-weight: 700; font-size: 16px; }
.em-meta { font-size: 12px; color: #5f6368; margin-top: 2px; }
.em-brand { font-family: var(--code); font-weight: 600; letter-spacing: .12em; font-size: 12px; background: #0f2a4a; color: #fff; padding: 6px 12px; border-radius: 6px; }
.em-body { padding: 28px 32px 24px; }
.em-eyebrow { font-family: var(--code); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #0f2a4a; opacity: .7; }
.em-h { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.1; margin: 8px 0 18px; color: #0f2a4a; }
.em-h em { font-style: italic; color: var(--secondary); }
.em-body p { color: #3c4043; margin: 0 0 12px; }
.em-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 16px; }
.em-card { border: 1px solid #e3e6ea; border-radius: 12px; padding: 18px; }
.em-card.dark { background: #0f2a4a; color: #fff; border-color: #0f2a4a; }
.em-k { font-family: var(--code); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.em-v { font-family: var(--display); font-weight: 700; font-size: 22px; margin-top: 8px; }
.em-v.big { font-size: 34px; color: #0f2a4a; }
.em-s { font-size: 13px; margin-top: 6px; opacity: .85; }
.em-card:not(.dark) .em-s { color: #5f6368; }
.em-mono { font-family: var(--code); font-size: 12px; margin-top: 12px; opacity: .8; }
.em-alert { background: #fff6e0; border: 1px solid #f5d38a; color: #6b4b00; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.em-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e8eaed; }
.em-cta p { margin: 4px 0 0; font-size: 13.5px; }
.em-btns { display: flex; gap: 8px; flex-shrink: 0; }
.em-btn { background: #0f2a4a; color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 13.5px; box-shadow: 0 0 0 0 var(--primary); animation: pulse 2s 1s infinite; }
.em-btn.ghost { background: transparent; color: #5f6368; border: 1px solid #dadce0; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 hsl(217 91% 60% / .5); } 70% { box-shadow: 0 0 0 10px hsl(217 91% 60% / 0); } 100% { box-shadow: 0 0 0 0 hsl(217 91% 60% / 0); } }

/* ---------- 03 WhatsApp ---------- */
.wa {
  max-width: 560px; margin: 0 auto; background: var(--wa-bg); border-radius: 22px; overflow: hidden;
  border: 1px solid hsl(200 20% 20%); box-shadow: 0 30px 80px -30px #000, var(--shadow-glow);
  height: min(70vh, 640px); display: flex; flex-direction: column;
}
.wa-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--wa-head); }
.wa-av { width: 40px; height: 40px; border-radius: 50%; background: #0f2a4a; color: #fff; display: grid; place-items: center; font-family: var(--code); font-size: 12px; font-weight: 600; }
.wa-name { font-weight: 600; font-size: 15px; color: #e9edef; }
.wa-status { font-size: 12px; color: #8696a0; display: flex; align-items: center; gap: 6px; }
.wa-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-green); box-shadow: 0 0 8px var(--wa-green); }
.wa-head .btn { margin-left: auto; background: transparent; border-color: hsl(200 12% 30%); color: #aebac1; }
.wa-body {
  flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 5px;
  background-image: radial-gradient(hsl(200 20% 14% / .6) 1px, transparent 1px); background-size: 22px 22px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 82%; padding: 7px 10px 6px; border-radius: 9px; font-size: 14px; line-height: 1.4; color: #e9edef;
  position: relative; animation: pop .25s cubic-bezier(.2,.8,.2,1) both; white-space: pre-line;
}
.msg.in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.msg time { display: block; text-align: right; font-size: 10.5px; color: #8696a0; margin-top: 3px; }
.msg.out time::after { content: " ✓✓"; color: #53bdeb; }
.msg.typing { padding: 10px 14px; display: flex; gap: 4px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.wa-day { align-self: center; background: #182229; color: #8696a0; font-size: 11.5px; padding: 4px 10px; border-radius: 6px; margin-bottom: 6px; }
.wa-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--wa-head); color: #8696a0; font-size: 14px; }
.wa-foot span:first-child { flex: 1; background: #2a3942; border-radius: 20px; padding: 9px 14px; margin-right: 10px; }
.wa-send { color: #8696a0; }

/* ---------- CRM (04, 05) — réplica do layout real ---------- */
.frame.crm { display: flex; min-height: 480px; background: var(--bg); }
.crm-side { width: 196px; flex-shrink: 0; background: var(--sidebar); border-right: 1px solid var(--sidebar-border); display: flex; flex-direction: column; padding: 12px 10px; }
.crm-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 14px; }
.crm-logo img { width: 84px; height: 66px; object-fit: contain; }
.crm-logo small { font-family: var(--code); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: hsl(210 40% 95% / .6); }
.crm-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.crm-nav span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--fg); }
.crm-nav span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .55; }
.crm-nav span.active { background: var(--primary-10); color: var(--primary); box-shadow: 0 0 12px hsl(217 91% 60% / .2), inset 0 0 12px hsl(217 91% 60% / .05); }
.crm-newlead { margin-top: 8px; background: var(--primary); color: hsl(220 40% 5%); font-family: var(--mono); font-weight: 700; font-size: 12.5px; padding: 9px 12px; border-radius: 8px; display: flex; gap: 8px; align-items: center; }
.crm-user { display: flex; align-items: center; gap: 8px; padding: 10px 8px 4px; border-top: 1px solid var(--sidebar-border); margin-top: 8px; font-size: 12.5px; }
.crm-uav { width: 24px; height: 24px; border-radius: 50%; background: var(--muted); border: 1px solid var(--border); display: grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--muted-fg); }
.crm-user small { display: block; color: var(--muted-fg); font-size: 11px; }
.crm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crm-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--border); background: hsl(220 35% 7%); }
.crumb { font-family: var(--code); font-size: 11px; color: var(--muted-fg); }
.crm-search { font-size: 12px; color: var(--muted-fg); background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; width: 220px; }
.crm-h { display: flex; justify-content: space-between; align-items: flex-end; padding: 18px 18px 10px; gap: 12px; flex-wrap: wrap; }
.crm-h h3 { font-size: 24px; font-weight: 700; }
.crm-sub { font-family: var(--code); font-size: 11px; color: var(--muted-fg); margin-top: 2px; }
.crm-sub b { color: var(--primary); font-weight: 500; }
.chips { display: flex; gap: 6px; }
.chips span { font-size: 11px; padding: 5px 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--border); color: var(--fg-70); }
.chips span:last-child { background: var(--primary-15); color: var(--primary); border-color: var(--primary-30); }
.stale { margin: 0 18px 12px; background: hsl(38 92% 50% / .10); border: 1px solid hsl(38 92% 50% / .3); border-radius: 8px; padding: 9px 12px; font-size: 12.5px; color: var(--fg-70); }
.stale b { font-family: var(--mono); color: var(--warning); }

.kanban { display: flex; gap: 8px; padding: 0 14px 16px; overflow-x: auto; scrollbar-width: thin; }
.col { flex: 1 0 140px; min-width: 140px; background: var(--card); border: 1px solid var(--border); border-top: 2px solid var(--c, var(--muted-fg)); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 240px; }
.col-h { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 2px 2px 8px; white-space: nowrap; }
.col-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.col-h b { margin-left: auto; font-family: var(--code); font-weight: 400; font-size: 10px; background: var(--muted); color: var(--fg-70); padding: 1px 7px; border-radius: 999px; }
.col:has(.col-h i[style*="8B8F98"]) { border-top-color: var(--muted-fg); }
.col:has(.col-h i[style*="3DDC84"]) { border-top-color: var(--accent); }
.col:has(.col-h i[style*="D9B06A"]) { border-top-color: var(--secondary); }
.col:has(.col-h i[style*="E8A33D"]) { border-top-color: var(--warning); }
.col:has(.col-h i[style*="E5484D"]) { border-top-color: var(--destructive); }
.col.hot { border-top-color: var(--accent); }
.col:nth-child(5) { border-top-color: var(--primary); }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 9px 10px; font-size: 12px; }
.c-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.c-top span:first-child { overflow: hidden; text-overflow: ellipsis; }
.c-top em { font-style: normal; font-size: 11px; }
.score { font-family: var(--code); font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--muted); color: var(--fg-70); flex-shrink: 0; }
.score.hi { background: var(--primary-15); color: var(--primary); border: 1px solid var(--primary-30); }
.c-car { color: var(--fg-70); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-val { font-family: var(--code); color: var(--primary); font-size: 11px; margin-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.pill { font-family: var(--code); font-size: 9px; padding: 1px 6px; border-radius: 4px; background: var(--primary-10); color: var(--primary); }
.age { font-family: var(--code); font-size: 10px; color: var(--warning); }
.card.warn { border-color: hsl(38 92% 50% / .5); background: hsl(38 92% 50% / .05); }
.card.won { border-color: hsl(160 72% 39% / .5); }
.card.lost { opacity: .6; }
.card.hero { border-color: var(--primary); box-shadow: 0 0 0 3px hsl(217 91% 60% / .18), var(--shadow-primary); animation: land .6s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes land { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }

/* Lead */
.lead-h { padding: 16px 18px 8px; }
.lead-name { font-family: var(--display); font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead-meta { font-size: 12px; color: var(--muted-fg); margin-top: 6px; }
.lead-meta code { color: var(--fg-70); font-size: 11.5px; }
.lead-actions { display: flex; gap: 6px; margin-top: 10px; }
.lead-left { min-width: 0; }
.lead-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; padding: 4px 18px 18px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.tabs button { background: transparent; border: 0; padding: 8px 12px; font-size: 13px; color: var(--muted-fg); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.panel-t { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.bul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--fg-70); }
.bul li { margin: 5px 0; }
.bul li::marker { color: var(--primary); }
.bul code { color: var(--fg); font-size: 12px; }
.bul b { color: var(--fg); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.kv dt { font-family: var(--code); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-fg); padding-top: 2px; }
.kv dd { margin: 0; color: var(--fg); }
.kv small { color: var(--muted-fg); }
.mini-wa { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.mini-wa div { padding: 6px 10px; border-radius: 8px; max-width: 85%; color: #e9edef; }
.mini-wa .in { background: var(--wa-in); align-self: flex-start; }
.mini-wa .out { background: var(--wa-out); align-self: flex-end; }
.lead-right { display: flex; flex-direction: column; gap: 10px; }
.box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.box-k { font-family: var(--code); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-fg); }
.box-k.mt { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.box-v { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.box-v.sm { font-size: 20px; color: var(--warning); }
.box-s { font-size: 11.5px; color: var(--muted-fg); margin-top: 2px; }
.tl { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; }
.tl li { padding: 5px 0 5px 14px; position: relative; }
.tl li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.tl li:last-child::before { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.tl b { font-family: var(--code); font-weight: 500; color: var(--fg-70); margin-right: 4px; }
.tl small { display: block; color: var(--muted-fg); font-size: 11.5px; }
.box.next { border-color: var(--primary-30); background: var(--primary-10); }
.box-n { font-weight: 600; margin-top: 4px; color: var(--fg); }

/* ---------- 06 Chamada ---------- */
.call {
  max-width: 340px; margin: 20px auto 0; text-align: center; background: var(--card); border: 1px solid var(--border);
  border-radius: 28px; padding: 28px 24px 26px; box-shadow: 0 30px 80px -30px #000, var(--shadow-glow);
}
.call-k { font-family: var(--code); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-fg); animation: blink 1.6s infinite; }
.call-av { position: relative; width: 116px; height: 116px; margin: 22px auto 16px; display: grid; place-items: center; }
.call-av b { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; background: var(--gradient-primary); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 30px; font-weight: 700; }
.call-av span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: ripple 2.2s infinite; }
.call-av span:nth-child(2) { animation-delay: 1.1s; }
@keyframes ripple { 0% { transform: scale(.75); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.call-name { font-family: var(--display); font-size: 24px; font-weight: 700; }
.call-num { font-family: var(--code); color: var(--fg-70); margin-top: 4px; }
.call-s { font-size: 12.5px; color: var(--muted-fg); margin: 12px auto 0; max-width: 260px; }
.call-btns { display: flex; justify-content: center; gap: 18px; margin-top: 24px; }
.call-btns span { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted-fg); font-size: 16px; }
.call-btns .end { background: var(--destructive); border-color: var(--destructive); color: #fff; width: 58px; height: 58px; font-size: 22px; box-shadow: 0 0 24px hsl(0 72% 51% / .45); }

/* ---------- 07 Fecho ---------- */
.fecho { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.fecho-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px -30px #000, var(--shadow-glow); aspect-ratio: 4/3; }
.fecho-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eyebrow { font-family: var(--code); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); }
.fecho h3 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.08; margin: 10px 0 16px; }
.fecho h3 em { font-style: italic; color: var(--primary); }
.fecho p { color: var(--fg-70); margin: 0 0 20px; max-width: 480px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 12px 10px; }
.stats b { display: block; font-family: var(--display); font-size: 26px; color: var(--primary); }
.stats span { font-size: 11px; color: var(--muted-fg); }

/* ---------- Rodapé ---------- */
.foot { display: flex; gap: 22px; justify-content: center; padding: 8px 16px 16px; font-size: 11.5px; color: var(--muted-fg); font-family: var(--code); }
kbd { font-family: var(--code); font-size: 10px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; margin-right: 4px; background: var(--card); color: var(--fg-70); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .lead-grid, .fecho, .em-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .crm-side { display: none; }
  .gm-side { display: none; }
  .gm-row { grid-template-columns: 20px 28px 1fr 50px; }
  .gm-row .gm-subj { grid-column: 1 / -1; padding-left: 58px; }
}
@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .brand-sub { display: none; }
  .controls { width: 100%; justify-content: flex-end; }
  .rail ol { display: flex; overflow-x: auto; gap: 14px; scrollbar-width: none; }
  .rail li { flex: 0 0 auto; }
  .rail li button { width: auto; padding-right: 8px; }
  .rail .fact { display: none; }
  .wa { height: 70vh; border-radius: 16px; }
  .foot { display: none; }
  .em-cta { flex-direction: column; align-items: flex-start; }
  .crm-h h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- 08 Ao vivo ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 20px; align-items: start; }
.wa.real { margin: 0; max-width: none; }
.wa-foot.form { gap: 10px; }
.wa-foot.form input { flex: 1; background: #2a3942; border: 0; border-radius: 20px; padding: 10px 14px; color: #e9edef; font: inherit; font-size: 14px; outline: none; }
.wa-foot.form input:focus-visible { box-shadow: 0 0 0 2px var(--wa-green); }
.wa-foot.form .wa-send { background: var(--wa-green); color: #0b141a; border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.wa-foot.form .wa-send:disabled { opacity: .4; cursor: default; }
.msg.erro { align-self: center; background: hsl(0 72% 51% / .15); color: hsl(0 80% 75%); border: 1px solid hsl(0 72% 51% / .4); font-size: 12.5px; }
.live-side { display: flex; flex-direction: column; gap: 10px; }
.how { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--fg-70); }
.how li { margin: 5px 0; }
.how li::marker { color: var(--emerald); font-family: var(--code); }
.how code { color: var(--fg); background: var(--muted); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.kv.small { grid-template-columns: 96px 1fr; font-size: 12.5px; margin-top: 8px; }
.box.next .box-k { color: var(--emerald); }
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 10px;
  background: var(--card); color: var(--fg); border: 1px solid var(--border); border-radius: 999px; padding: 11px 18px 11px 14px;
  font-size: 13px; font-weight: 600; box-shadow: 0 16px 40px -12px #000, var(--shadow-glow); transition: transform .2s, border-color .2s;
}
.fab:hover { transform: translateY(-2px); border-color: var(--emerald); }
.fab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa-green); box-shadow: 0 0 10px var(--wa-green); animation: blink 1.8s infinite; }
body.on-live .fab { display: none; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .fab { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 12px; } }
.box.alerta { border-color: hsl(38 92% 50% / .45); background: hsl(38 92% 50% / .07); }
.box.alerta .box-k { color: var(--warning); }
