/* V12 UI CLEANUP
   CSS principal da área autenticada.
   ALTERAR AQUI: cores globais, cards, sidebar, responsivo e mobile bottom nav.
*/
:root{--bg:#080f1f;--panel:#0f172a;--soft:#172036;--card:#ffffff;--text:#0f172a;--muted:#64748b;--primary:#2563eb;--primary2:#7c3aed;--line:#e2e8f0;--ok:#16a34a;--warn:#ca8a04;--bad:#dc2626;--shadow:0 18px 42px rgba(15,23,42,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at top left,#eef2ff 0,#f8fafc 35%,#eef2f7 100%);color:var(--text)}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;background:linear-gradient(180deg,#081020,#111827);color:white;padding:26px;box-shadow:8px 0 30px rgba(15,23,42,.15)}.brand{display:flex;gap:12px;align-items:center;margin-bottom:36px}.brand span{display:block;color:#94a3b8;font-size:12px}.logoMark{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#60a5fa,#22c55e);display:grid;place-items:center;font-weight:900;box-shadow:0 12px 28px rgba(37,99,235,.35)}.sidebar nav{display:grid;gap:8px}.sidebar a{color:#cbd5e1;text-decoration:none;padding:13px 14px;border-radius:16px;transition:.2s}.sidebar a:hover{background:#1e293b;color:white;transform:translateX(3px)}.sideNote{margin-top:38px;padding:14px;border-radius:18px;background:rgba(255,255,255,.06);color:#cbd5e1;font-size:13px;line-height:1.4}.main{margin-left:270px;padding:34px;min-height:100vh}.hero{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.86);border:1px solid rgba(226,232,240,.9);border-radius:28px;padding:26px;margin-bottom:22px;box-shadow:var(--shadow);backdrop-filter:blur(12px)}.premiumHero{background:linear-gradient(135deg,#ffffff 0%,#eff6ff 55%,#f5f3ff 100%)}.hero h1,h1{margin:0 0 8px;font-size:34px;letter-spacing:-.04em}.hero p{margin:0;color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:12px;color:var(--primary)!important;font-weight:800}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.card{background:white;border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:var(--shadow)}.card span{display:block;color:var(--muted);font-size:13px;margin-bottom:10px}.card strong{font-size:27px;letter-spacing:-.03em}.panel{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:26px;padding:24px;margin-bottom:20px;box-shadow:var(--shadow)}.panel h2{margin-top:0}.panelHead{display:flex;align-items:center;justify-content:space-between}.muted{color:var(--muted)}table{width:100%;border-collapse:collapse}th{text-align:left;color:var(--muted);font-size:13px;border-bottom:1px solid var(--line);padding:12px}td{border-bottom:1px solid var(--line);padding:14px 12px;vertical-align:top}a{color:var(--primary)}.badge{padding:7px 11px;border-radius:999px;font-size:12px;background:#e5e7eb;font-weight:800}.badge.aceite{background:#dcfce7;color:#166534}.badge.enviado{background:#dbeafe;color:#1d4ed8}.badge.recusado{background:#fee2e2;color:#991b1b}.btn{border:0;border-radius:16px;padding:12px 16px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-weight:800;cursor:pointer;transition:.2s}.btn:hover{transform:translateY(-1px)}.btn.big{padding:15px 20px}.primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;box-shadow:0 12px 24px rgba(37,99,235,.22)}.secondary{background:#eef2ff;color:#1d4ed8}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:white;border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:var(--shadow)}.formStack{display:grid;gap:14px}.full{grid-column:1/-1}label{display:grid;gap:7px;font-size:14px;font-weight:800;color:#1e293b}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:15px;padding:12px 13px;font:inherit;background:#fff;outline:none}input:focus,textarea:focus,select:focus{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(147,197,253,.28)}textarea{resize:vertical}.logoPreview img{max-width:180px;max-height:110px;border:1px solid var(--line);border-radius:18px;padding:10px;background:white}.twoCols{display:grid;grid-template-columns:.9fr 1.1fr;gap:20px}.twoCols.wideLeft{grid-template-columns:.72fr 1.28fr}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.flash{padding:13px 16px;border-radius:16px;margin-bottom:16px;background:#dcfce7;color:#166534;font-weight:700}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}hr{border:0;border-top:1px solid var(--line);margin:18px 0}.aiBox{position:sticky;top:24px;align-self:start}.aiResult{padding:14px;border-radius:18px;background:#ecfdf5;border:1px solid #bbf7d0}.itemsHeader{display:flex;justify-content:space-between;align-items:center;gap:12px}.itemRow{display:grid;grid-template-columns:90px 1fr 145px 44px;gap:10px;margin-bottom:10px}.removeItem{border:0;border-radius:12px;background:#fee2e2;color:#991b1b;font-weight:900;font-size:18px;cursor:pointer}.calcBox{background:#f8fafc;border:1px solid var(--line);border-radius:20px;padding:14px}.liveTotals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.liveTotals span{background:#0f172a;color:#cbd5e1;border-radius:18px;padding:14px}.liveTotals b{display:block;color:white;font-size:22px;margin-top:4px}.quoteTop{display:flex;justify-content:space-between;align-items:center}@media(max-width:980px){.sidebar{position:static;width:auto}.main{margin-left:0;padding:18px}.cards,.twoCols,.twoCols.wideLeft,.formGrid,.grid3,.grid2,.liveTotals{grid-template-columns:1fr}.hero,.quoteTop{display:grid;gap:16px}.itemRow{grid-template-columns:1fr}.aiBox{position:static}}
.itemLabels{display:grid;grid-template-columns:90px 100px 1fr 145px 120px 44px;gap:10px;margin:6px 0 8px;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.itemLabels small{font-weight:700;text-transform:none;letter-spacing:0;color:#94a3b8}.itemRow{grid-template-columns:90px 100px 1fr 145px 120px 44px}.lineTotal{display:flex;align-items:center;justify-content:flex-end;border:1px solid var(--line);border-radius:15px;padding:12px 13px;background:#f8fafc;font-weight:900}.hintBox{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:14px;color:#475569;font-weight:700}.danger{background:#fee2e2;color:#991b1b}.dangerBox{padding:14px;border-radius:18px;background:#fee2e2;border:1px solid #fecaca;color:#991b1b}.acceptPanel{max-width:900px}@media(max-width:980px){.itemLabels{display:none}.itemRow{grid-template-columns:1fr}.lineTotal{justify-content:flex-start}}


.signatureBox{
  background:#f8fafc;
  border:1px solid #dbe5f4;
  border-radius:18px;
  padding:16px;
}
.signatureHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
#signaturePad{
  width:100%;
  height:220px;
  background:white;
  border:2px dashed #94a3b8;
  border-radius:16px;
  touch-action:none;
  cursor:crosshair;
}
.btn.small{
  padding:8px 12px;
  font-size:13px;
}
.btn.danger{
  background:#fee2e2;
  color:#991b1b;
}
.dangerBox{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
  border-radius:16px;
  padding:16px;
}
.clientSmart{position:relative}.clientDropdown{display:none;position:absolute;left:0;right:0;top:74px;z-index:30;background:#fff;border:1px solid #dbe5f4;border-radius:16px;box-shadow:0 18px 38px rgba(15,23,42,.14);overflow:hidden}.clientDropdown.show{display:block}.clientOption{padding:12px 14px;border-bottom:1px solid #eef2f7;cursor:pointer;display:grid;gap:3px}.clientOption:hover{background:#eff6ff}.clientOption span{font-size:12px;color:#64748b}.clientInfoGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.clientInfoGrid div{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:14px}.clientInfoGrid span{display:block;color:#64748b;font-size:12px;margin-bottom:6px}.dangerZone{border-color:#fecaca;background:#fff7f7}@media(max-width:980px){.clientInfoGrid{grid-template-columns:1fr}.clientDropdown{top:78px}}
.narrow{max-width:560px;margin:auto}.warning{background:#fef3c7!important;color:#92400e!important}.error{background:#fee2e2!important;color:#991b1b!important}
select{width:100%;border:1px solid #dbe4f0;border-radius:14px;padding:12px;background:white;font-weight:700;color:#0f172a}

/* v2.6 — estado da IA + descrições completas */
.aiTitleRow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.aiTitleRow h2{margin:0}
.aiBadge{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}
.aiBadge.openai,.aiBadge.ready{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
.aiBadge.demo{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.descInput{min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.descInput:hover{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.18);cursor:help}


/* v3 SaaS landing */
.hero-card{
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(124,58,237,.12));
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 28px;
  padding: 44px;
  margin: 24px 0;
  box-shadow: 0 20px 60px rgba(15,23,42,.10);
}
.eyebrow{
  color:#2563eb;
  font-weight:800;
  letter-spacing:.08em;
  font-size:12px;
}
.hero-card h1{
  font-size:42px;
  line-height:1.05;
  margin:10px 0;
}
.hero-text{
  max-width:760px;
  color:#64748b;
  font-size:16px;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}
.btn-primary,.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:14px;
  text-decoration:none;
  font-weight:800;
}
.btn-primary{
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:white;
}
.btn-secondary{
  background:white;
  color:#0f172a;
  border:1px solid #e2e8f0;
}
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.cards-grid .card{
  background:white;
  border:1px solid #e2e8f0;
  border-radius:22px;
  padding:22px;
}
.cards-grid .card p{
  color:#64748b;
}
@media(max-width:900px){
  .hero-card h1{font-size:30px;}
  .cards-grid{grid-template-columns:1fr;}
}

/* v3.4 Aceitação Online + Feature Gates */
.locked{opacity:.72;cursor:not-allowed;background:#f1f5f9 !important;color:#64748b !important;}
.proFeatureBox{margin-top:16px;padding:16px;border:1px dashed #94a3b8;border-radius:18px;background:#f8fafc;}
.publicWrap{max-width:1050px;margin:0 auto;}
.publicHeader{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:28px;border-radius:26px;background:linear-gradient(135deg,#eff6ff,#f5f3ff);border:1px solid #dbeafe;margin-bottom:18px;}
.publicTotal{background:white;border:1px solid #e2e8f0;border-radius:20px;padding:18px 24px;min-width:180px;text-align:right;}
.publicTotal span{display:block;color:#64748b;}
.publicTotal strong{font-size:28px;}
.acceptForm{display:grid;gap:10px;max-width:620px;}
.acceptForm textarea{min-height:90px;}
.acceptedBox{background:#dcfce7 !important;border:1px solid #86efac !important;}
.lockedPage{max-width:720px;margin:50px auto;text-align:center;}

/* v3.7 Landing Page PRO */
.lp-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center;min-height:calc(100vh - 90px);padding:24px 0 36px}.lp-hero-copy,.lp-product-card,.lp-section,.lp-final-cta{background:rgba(255,255,255,.88);border:1px solid rgba(226,232,240,.9);box-shadow:0 24px 70px rgba(15,23,42,.10);backdrop-filter:blur(14px)}.lp-hero-copy{padding:46px;border-radius:34px}.lp-pill{display:inline-flex;padding:9px 13px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.lp-hero h1{font-size:54px;line-height:.98;letter-spacing:-.06em;margin:18px 0 18px;max-width:870px}.lp-subtitle{font-size:18px;line-height:1.65;color:#475569;max-width:780px}.lp-actions{display:flex;gap:13px;flex-wrap:wrap;margin-top:28px}.lp-cta{font-size:16px;padding:15px 22px}.lp-trust{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px;color:#334155;font-weight:800}.lp-trust span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:8px 12px}.lp-product-card{border-radius:32px;padding:24px;background:linear-gradient(180deg,#ffffff,#f8fafc)}.lp-browser-dots{display:flex;gap:7px;margin-bottom:18px}.lp-browser-dots i{width:11px;height:11px;border-radius:999px;background:#cbd5e1}.lp-mock-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e8f0;padding-bottom:15px;margin-bottom:15px}.lp-mock-header strong{font-size:25px}.lp-mock-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.lp-mock-grid div,.lp-lines,.lp-signature{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:15px}.lp-mock-grid small{display:block;color:#64748b;margin-bottom:5px}.lp-mock-grid b{font-size:21px}.lp-lines{display:grid;gap:10px}.lp-lines p{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;margin:0}.lp-lines span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#dbeafe;color:#1d4ed8;font-weight:900}.lp-lines b{white-space:nowrap}.lp-signature{margin-top:14px;display:flex;justify-content:space-between;gap:12px;align-items:center;background:#ecfdf5;border-color:#bbf7d0}.lp-signature span{color:#047857}.lp-section{border-radius:30px;padding:34px;margin:24px 0}.lp-section h2,.lp-final-cta h2{font-size:34px;letter-spacing:-.04em;margin:8px 0 14px}.lp-problem{display:grid;grid-template-columns:1fr 1fr;gap:24px}.lp-problem p{color:#64748b;font-size:16px;line-height:1.65}.lp-checklist{display:grid;gap:12px}.lp-checklist span{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:17px;padding:14px;font-weight:850}.lp-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.lp-feature-grid article{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:22px;transition:.2s}.lp-feature-grid article:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(15,23,42,.10)}.lp-icon{font-size:28px;margin-bottom:12px}.lp-feature-grid h3{margin:0 0 8px}.lp-feature-grid p{color:#64748b;line-height:1.55;margin:0}.lp-demo{background:linear-gradient(135deg,#0f172a,#1e1b4b);color:white}.lp-demo .eyebrow{color:#93c5fd!important}.lp-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px}.lp-steps div{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:22px;padding:20px}.lp-steps b{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:white;color:#1d4ed8;margin-bottom:16px}.lp-steps span{display:block;font-weight:900;font-size:18px;margin-bottom:8px}.lp-steps p{color:#cbd5e1;margin:0;line-height:1.5}.lp-pricing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}.lp-pricing article{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:28px;padding:26px;display:grid;gap:13px}.lp-pricing article.featured{border:2px solid #2563eb;box-shadow:0 24px 70px rgba(37,99,235,.16);transform:translateY(-6px)}.lp-best{position:absolute;top:-14px;right:22px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;padding:8px 12px;border-radius:999px;font-weight:900;font-size:12px}.lp-pricing h3{font-size:24px;margin:0}.lp-pricing strong{font-size:42px;letter-spacing:-.05em}.lp-pricing small{font-size:15px;color:#64748b}.lp-pricing p{color:#64748b;line-height:1.55}.lp-pricing ul{margin:0 0 8px;padding-left:20px;line-height:1.9;color:#334155}.lp-pricing a{width:100%}.lp-final-cta{text-align:center;border-radius:34px;padding:46px;margin:24px 0 10px;background:linear-gradient(135deg,#eff6ff,#f5f3ff)}.lp-final-cta p{color:#64748b;font-size:17px;margin-bottom:22px}@media(max-width:1100px){.lp-hero,.lp-problem{grid-template-columns:1fr}.lp-hero{min-height:auto}.lp-hero h1{font-size:40px}.lp-feature-grid,.lp-steps,.lp-pricing{grid-template-columns:1fr}.lp-pricing article.featured{transform:none}}@media(max-width:640px){.lp-hero-copy,.lp-section,.lp-final-cta{padding:24px}.lp-hero h1{font-size:34px}.lp-mock-grid,.lp-lines p{grid-template-columns:1fr}.lp-signature{display:grid}.lp-trust{display:grid}}

/* ============================================================
   RGPD / Cookies / Legal
   ============================================================ */
.legalFooter{display:flex;gap:14px;justify-content:center;margin:28px 0 8px;color:#64748b;font-size:14px}.legalFooter a{color:#475569;text-decoration:none}.legalFooter a:hover{text-decoration:underline}.legal-card{line-height:1.7}.legal-card h2{margin-top:22px}.cookieBanner{position:fixed;left:24px;right:24px;bottom:24px;z-index:9999;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#0f172a;color:white;border-radius:22px;padding:18px 20px;box-shadow:0 24px 70px rgba(15,23,42,.30)}.cookieBanner p{margin:4px 0 0;color:#cbd5e1}.cookieActions{display:flex;gap:12px;align-items:center;white-space:nowrap}.cookieActions a{color:#bfdbfe}.cookieActions button{border:0;border-radius:14px;padding:11px 16px;background:#22c55e;color:white;font-weight:900;cursor:pointer}@media(max-width:760px){.cookieBanner{display:grid;left:12px;right:12px;bottom:12px}.cookieActions{justify-content:space-between}}

/* Assinatura digital na página pública */
.signaturePad{width:100%;max-width:620px;height:180px;border:2px dashed #94a3b8;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fafc);touch-action:none;display:block}.acceptForm .btn-secondary{width:max-content;border:0;cursor:pointer}


/* ============================================================
   v3.9 — Correção do botão de cookies + RGPD
   IMPORTANTE: a classe .cookieBanner tinha display:flex; isso podia ignorar
   o atributo hidden em alguns browsers. Esta regra força o banner a desaparecer.
   ============================================================ */
.cookieBanner[hidden]{display:none!important;}
.checkLine{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:10px;font-weight:700;line-height:1.45;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.checkLine input{width:auto;margin-top:3px}.checkLine span{display:block}.legalNotice{margin-top:22px;padding:16px;border-radius:18px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;font-weight:700}.cookieActions button:hover{filter:brightness(1.05);transform:translateY(-1px)}

/* ============================================================
   IA PREÇOS DE MERCADO — v4.0
   ALTERAR AQUI: estilos do bloco localização/preços.
   ============================================================ */
.locationBox{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:10px}
.locationBox label{grid-column:1 / 2;margin:0}
.locationBox small{grid-column:1 / -1}
.marketHint{margin-top:8px;padding:10px 12px;border-radius:14px;background:#eef6ff;color:#1d4ed8;font-weight:700;font-size:.9rem}
@media(max-width:800px){.locationBox{grid-template-columns:1fr}.locationBox label{grid-column:auto}}


/* ============================================================
   UX DE NAVEGAÇÃO — v4.1
   ALTERAR AQUI: estilos globais para botões Voltar/Cancelar.
   Objetivo comercial: o utilizador nunca fica "preso" num formulário.
   ============================================================ */
.formActions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:10px}.formActions .btn,.formActions button{min-width:130px}.btn.cancel,.cancel{background:#f8fafc;color:#334155;border:1px solid #cbd5e1}.btn.back,.back{background:#eef2ff;color:#1d4ed8}.locationAdvice{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:16px;padding:12px 14px;font-size:13px;line-height:1.45}.locationAdvice strong{display:block;margin-bottom:4px}.locationBox .btn{margin-top:4px}.grid-form .formActions{margin-top:2px}

.unitSelect{border:1px solid var(--line);border-radius:15px;padding:12px 10px;background:#fff;font-weight:800;color:#0f172a}.unitHelp{margin:0 0 10px;color:#64748b;font-size:13px}.unitTag{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-weight:900;font-size:12px}

/* ============================================================
   V4.4 FINAL PRODUÇÃO — UX/legal helpers
   ALTERAR AQUI: estilo dos botões/avisos legais sem mexer na lógica.
   ============================================================ */
.ivaCombo{display:grid;grid-template-columns:160px 1fr;gap:10px;align-items:center}
.ivaCombo select,.ivaCombo input{width:100%}
.compactActions{align-items:center;gap:10px;margin:8px 0 12px}
.legalNotice{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;border-radius:16px;padding:12px 14px;font-size:.92rem;line-height:1.35}
.dangerZone{border:1px solid #fecaca!important;background:#fffafa!important}
.btn.danger{background:#dc2626;color:#fff;border:0;border-radius:14px;padding:12px 16px;font-weight:800;cursor:pointer}
.legalDoc{line-height:1.55;max-width:1050px}
.legalDoc h2{margin-top:18px}
@media(max-width:900px){.ivaCombo{grid-template-columns:1fr}.compactActions{align-items:stretch}}

/* B2B / White-label */
.brandLogoImg{width:42px;height:42px;object-fit:contain;border-radius:12px;background:#fff;padding:4px;box-shadow:0 8px 24px rgba(15,23,42,.10)}
.formGrid.compact{grid-template-columns:1fr 220px;align-items:end}
@media(max-width:760px){.formGrid.compact{grid-template-columns:1fr}}

/* ============================================================
   v5.3 DASHBOARDS PROFISSIONAIS
   ALTERAR AQUI: ajustar alturas, cartões e grelha dos gráficos.
   ============================================================ */
.metricCards .metricCard small{display:block;margin-top:6px;color:var(--muted,#64748b);font-size:.82rem}
.metricsGrid{align-items:stretch}
.chartCard{min-height:340px;position:relative;overflow:hidden}
.chartCard.large{grid-column:span 2}
.chartCard canvas{width:100%!important;height:260px!important;margin-top:12px}
@media(max-width:900px){.chartCard.large{grid-column:span 1}.chartCard canvas{height:230px!important}}

/* ============================================================
   v5.4.2 — correções mobile, rodapé, tabelas e planos
   ============================================================ */
.locked{background:#fff7ed!important;color:#9a3412!important;border:1px solid #fed7aa!important;box-shadow:none!important}.infoBox{background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a}.enterprise-card{border:2px dashed #c4b5fd;background:linear-gradient(180deg,#fff,#faf5ff)}.aiBadge{display:inline-flex;align-items:center;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900}.aiBadge.openai,.aiBadge.ready{background:#dcfce7;color:#166534}.aiBadge.demo{background:#fef3c7;color:#92400e}.mobileMenuToggle{display:none;position:fixed;left:12px;top:12px;z-index:10001;border:0;border-radius:999px;padding:10px 14px;background:#0f172a;color:#fff;font-weight:900;box-shadow:0 10px 25px rgba(15,23,42,.25)}
.tableWrap, .panel table{max-width:100%;overflow-x:auto}.panel table{display:table}.legalFooter{flex-wrap:wrap;text-align:center;line-height:1.4}.cards-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.cards-grid .card{min-width:0}.sideNote{word-break:break-word}.main{overflow-x:hidden}.itemRow input,.itemRow select{min-width:0}.descInput{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.descInput:focus{white-space:normal;overflow:visible}
@media(max-width:980px){
  body{padding-top:54px}.mobileMenuToggle{display:inline-flex}.sidebar{position:fixed;top:0;bottom:0;left:0;width:82vw;max-width:310px;transform:translateX(-105%);transition:transform .22s ease;z-index:10000;overflow-y:auto}.sidebar.open{transform:translateX(0)}.main{margin-left:0;padding:16px}.hero h1,h1{font-size:30px}.cards{grid-template-columns:1fr!important}.cards-grid{grid-template-columns:1fr!important}.panel{padding:18px;border-radius:22px}.card{border-radius:22px}.legalFooter{gap:10px;font-size:13px;padding:0 8px}.quoteTop .actions,.actions,.formActions{display:grid;grid-template-columns:1fr;align-items:stretch}.btn,.formActions .btn,.formActions button{width:100%;min-width:0}.stats{display:grid!important;grid-template-columns:1fr!important}.twoCols,.twoCols.wideLeft{grid-template-columns:1fr!important}.aiBox{position:static!important}.itemRow{grid-template-columns:72px 88px 1fr!important;gap:8px}.itemRow .descInput{grid-column:1/-1}.itemRow output{grid-column:1/3}.itemRow .removeItem{grid-column:3/4;min-height:44px}.liveTotals{grid-template-columns:1fr!important}.formGrid,.grid3,.grid2{grid-template-columns:1fr!important}.ivaCombo{grid-template-columns:1fr!important}
}
@media(max-width:520px){.main{padding:12px}.hero h1,h1{font-size:26px}.card strong{font-size:24px}.itemRow{grid-template-columns:1fr!important}.itemRow output,.itemRow .removeItem,.itemRow .descInput{grid-column:auto}.cookieActions{display:grid;grid-template-columns:1fr}.cookieActions a,.cookieActions button{width:100%;text-align:center}.legalFooter a{padding:4px 6px}}

/* ============================================================
   v5.5 UX PRO — Landing cards clicáveis + onboarding comercial
   ALTERAR AQUI: cada .lp-feature-card deve ter href para uma ação real.
   Regra de UX: se o card mexe no hover, tem de clicar e fazer algo.
   ============================================================ */
.lp-feature-grid .lp-feature-card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:24px;
  padding:22px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor:pointer;
  min-height:100%;
}
.lp-feature-grid .lp-feature-card:hover,
.lp-feature-grid .lp-feature-card:focus-visible{
  transform:translateY(-5px);
  border-color:#bfdbfe;
  box-shadow:0 18px 45px rgba(37,99,235,.14);
  outline:none;
}
.lp-feature-grid .lp-feature-card:active{transform:translateY(-2px)}
.lp-card-cta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:14px;
  color:#2563eb;
  font-weight:900;
  font-size:14px;
}
.lp-feature-grid .lp-feature-card:hover .lp-card-cta{text-decoration:underline}
.lp-onboarding{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  margin-top:22px;
  padding:18px;
  border-radius:22px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
}
.lp-onboarding strong{display:block;margin-bottom:4px;color:#1e3a8a}
.lp-onboarding span{color:#475569}
@media(max-width:760px){
  .lp-feature-grid .lp-feature-card{padding:18px;border-radius:20px}
  .lp-card-cta{font-size:13px}
  .lp-onboarding{grid-template-columns:1fr}
}

/* ============================================================
   v5.6 Growth Engine — tabelas, funil e emails
   ALTERAR AQUI se quiseres mudar cores/estilo do painel de emails.
   ============================================================ */
.statsGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.statCard{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:20px;box-shadow:0 12px 35px rgba(15,23,42,.06)}.statCard span{display:block;color:#64748b;font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.06em}.statCard strong{display:block;font-size:34px;margin:8px 0;color:#0f172a}.statCard small{color:#64748b}.tableWrap{overflow-x:auto;border-radius:18px;border:1px solid #e2e8f0}.dataTable{width:100%;border-collapse:collapse;background:#fff}.dataTable th,.dataTable td{padding:12px 14px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}.dataTable th{background:#f8fafc;color:#334155;font-size:12px;text-transform:uppercase;letter-spacing:.07em}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900}.pill.ok{background:#dcfce7;color:#166534}.pill.warn{background:#fef3c7;color:#92400e}@media(max-width:760px){.statsGrid{grid-template-columns:1fr}.dataTable{min-width:760px}.pageHeader{display:grid;gap:12px}}

/* ============================================================
   v5.7 UX PRO — Slider funcional + subscrição comercial
   ALTERAR AQUI: estes estilos controlam o slider da landing.
   Regra: se há pontos/dots visíveis, têm de ser clicáveis.
   ============================================================ */
.lp-slider{position:relative;overflow:hidden;min-height:520px}
.lp-slider-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.lp-browser-dots button{width:12px;height:12px;border:0;border-radius:999px;background:#cbd5e1;cursor:pointer;padding:0;transition:.18s transform,.18s background}
.lp-browser-dots button.active{background:#2563eb;transform:scale(1.2)}
.lp-slider-actions{display:flex;gap:8px}
.lp-slider-actions button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:22px;font-weight:900;cursor:pointer}
.lp-slider-actions button:hover{background:#dbeafe}
.lp-slide{display:none;animation:lpFade .28s ease}
.lp-slide.active{display:block}
@keyframes lpFade{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:none}}
.lp-lines.compact p{grid-template-columns:42px 1fr auto}
.lp-lines.compact span{font-size:12px}
.badge.aceite{background:#dcfce7;color:#166534}
.subscriptionBox{background:linear-gradient(180deg,#fff,#f8fafc)}
.cleanList{margin:12px 0 14px;padding-left:20px;line-height:1.9;color:#334155;font-weight:800}
@media(max-width:760px){.lp-slider{min-height:auto}.lp-slider-top{align-items:flex-start}.lp-slider-actions button{width:42px;height:42px}.lp-browser-dots button{width:14px;height:14px}.lp-lines.compact p{grid-template-columns:1fr}}

/* ============================================================
   v6.2 — Conversão inspirada em área de cliente/checkout
   ALTERAR AQUI: copy e cores dos planos, meios de pagamento e passos.
   ============================================================ */
.clientHomeGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.clientHomeTile{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:var(--shadow);display:grid;gap:8px}.clientHomeTile .tileIcon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#ecfdf5;font-size:22px}.clientHomeTile small{color:var(--muted);font-weight:700}.clientHomeTile strong{font-size:26px;letter-spacing:-.03em}.clientHomeTile p{margin:0;color:var(--muted);line-height:1.45}.checkoutSteps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px;background:#f8fafc}.checkoutSteps .step{display:flex;gap:10px;align-items:center;padding:12px;border-radius:16px;background:#fff;border:1px solid var(--line);color:#64748b;font-weight:800}.checkoutSteps .step b{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:#e0e7ff;color:#1d4ed8}.checkoutSteps .step.active{border-color:#93c5fd;color:#0f172a}.pricingGrid .plan-card{display:flex;flex-direction:column;gap:12px}.pricingGrid .plan-card ul{line-height:1.75;margin:0 0 8px;padding-left:22px}.pricingGrid .plan-card .btn,.pricingGrid .plan-card button{margin-top:auto;width:max-content}.planTop{display:flex;align-items:center;justify-content:space-between;gap:10px}.popular{background:#ede9fe!important;color:#5b21b6!important}.currentPlan{border:2px solid #93c5fd!important}.benefitGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.benefitGrid span{padding:12px;border-radius:16px;background:#f8fafc;border:1px solid var(--line);font-weight:800}.paymentStrip{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.paymentStrip span{display:inline-flex;align-items:center;gap:6px;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid var(--line);font-weight:900;color:#1e293b}.copyLine{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.affiliateBox input[readonly]{font-weight:800;background:#f8fafc}.btn-secondary[disabled],button[disabled]{opacity:.65;cursor:not-allowed}.enterprise-card .btn{width:max-content}@media(max-width:980px){.clientHomeGrid,.checkoutSteps,.benefitGrid{grid-template-columns:1fr}.copyLine{grid-template-columns:1fr}.paymentStrip span{flex:1 1 140px;justify-content:center}.pricingGrid .plan-card .btn,.pricingGrid .plan-card button{width:100%}}

/* ============================================================
   V6.3 PRO — UX COMERCIAL / SEGURANÇA / IDIOMA
   ============================================================ */
.langSelector{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px;padding:8px;background:rgba(255,255,255,.06);border-radius:14px}.langSelector a{font-size:12px;padding:7px 8px!important}.langSelector a.active{background:rgba(255,255,255,.14);color:#fff}.checkLine{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:10px}.checkLine input{width:auto;margin-top:3px}.optionalConsent{font-weight:600;color:#475569}.cookieBanner{position:fixed;left:24px;right:24px;bottom:24px;z-index:9999;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#0f172a;color:#fff;border:1px solid rgba(255,255,255,.18);box-shadow:0 24px 60px rgba(2,6,23,.35);border-radius:22px;padding:18px}.cookieBanner p{margin:5px 0 0;color:#cbd5e1}.cookieActions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.cookieActions a{color:#bfdbfe}.cookieActions button{border:0;border-radius:14px;padding:12px 16px;font-weight:900;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;cursor:pointer}.cookieGateActive body{padding-bottom:120px}meter{width:100%;height:10px}.formActions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.paymentStrip{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.paymentStrip span{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:9px 12px;background:#fff;font-weight:900}.tableWrap{overflow-x:auto}.liveTotals{margin-top:16px}.window-bar{display:flex;gap:8px}.window-bar button{width:12px;height:12px;border-radius:50%;border:0;background:#94a3b8;cursor:pointer;opacity:.55}.window-bar button.active,.window-bar button:hover{opacity:1;background:#2563eb}@media(max-width:760px){.cookieBanner{left:12px;right:12px;bottom:12px;display:grid}.cookieActions{display:grid}.formActions .btn,.formActions a,.formActions button{width:100%}.paymentStrip span{width:100%;justify-content:center}}

/* ============================================================
   V6.4 — Demo comercial + MB WAY + UX conversão
   ALTERAR AQUI: ajusta cores se mudares branding Nexora/ORZUVO.
   ============================================================ */
.formStack{display:grid;gap:12px}.formStack input,.formStack select{padding:14px;border:1px solid #d8e1ef;border-radius:14px;font-weight:700}.notice{padding:12px 14px;border:1px solid #fde68a;background:#fffbeb;border-radius:14px;color:#92400e}.demoHero{display:flex;justify-content:space-between;align-items:center}.demoPlayer{display:grid;grid-template-columns:320px 1fr;gap:22px}.demoSteps{display:grid;gap:12px}.demoStep{display:grid;grid-template-columns:38px 1fr;gap:8px;text-align:left;padding:14px;border:1px solid #dbe5f2;background:white;border-radius:18px;cursor:pointer}.demoStep span{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#e0ecff;color:#174dd8;font-weight:900}.demoStep b{font-size:1rem}.demoStep small{color:#65758b}.demoStep.active{border-color:#2563eb;box-shadow:0 12px 30px rgba(37,99,235,.16);transform:translateY(-1px)}.demoScreen{background:#0f172a;color:white;border-radius:24px;padding:24px;box-shadow:0 28px 80px rgba(15,23,42,.24)}.demoWindowBar{display:flex;gap:8px;margin-bottom:18px}.demoWindowBar span{width:12px;height:12px;border-radius:50%;background:#64748b}.demoWindowBar span:nth-child(3){background:#3b82f6}.demoMock{background:#f8fafc;color:#0f172a;border-radius:20px;padding:18px;display:grid;gap:10px}.mockLine{display:grid;grid-template-columns:80px 1fr auto;gap:10px;background:#e2e8f0;border-radius:12px;padding:12px}.mockTotal{display:flex;justify-content:space-between;border-top:1px solid #cbd5e1;padding-top:14px;margin-top:8px;font-size:1.2rem}@media(max-width:900px){.demoPlayer{grid-template-columns:1fr}.demoHero{display:block}.mockLine{grid-template-columns:1fr}}

/* ============================================================
   V6.5 FINAL COMERCIAL — UX, carrinho, demo e pagamentos
   ALTERAR AQUI: cores e espaçamentos da experiência comercial.
   ============================================================ */
.cartLayout{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.bigPrice{font-size:34px;font-weight:900}.cleanList{line-height:1.9}.paymentOptions .full{display:block;width:100%;text-align:center;margin:10px 0}.paymentChoices{margin:16px 0;display:flex;gap:10px;flex-wrap:wrap}.demoCinema{display:grid;grid-template-columns:300px 1fr;gap:22px}.demoTimeline{display:flex;flex-direction:column;gap:10px}.demoStep{border:1px solid #dbe4f0;background:#fff;border-radius:18px;padding:14px;text-align:left;cursor:pointer;display:grid;grid-template-columns:40px 1fr;gap:4px 12px;align-items:center}.demoStep span{background:#eef4ff;color:#164adb;border-radius:12px;width:36px;height:36px;display:grid;place-items:center;font-weight:900}.demoStep small{grid-column:2;color:#64748b}.demoStep.active{border-color:#2563eb;box-shadow:0 12px 30px rgba(37,99,235,.16);transform:translateY(-2px)}.demoStage{background:linear-gradient(135deg,#f8fbff,#eef4ff);border:1px solid #dbe4f0;border-radius:26px;padding:24px}.demoWindowBar{display:flex;gap:8px;margin-bottom:18px}.demoWindowBar span{width:12px;height:12px;border-radius:999px;background:#94a3b8}.animatedDemo{margin-top:16px}.mockInput,.mockLine,.mockTotal,.mockAccepted{background:white;border-radius:14px;padding:14px;margin:10px 0;box-shadow:0 8px 18px rgba(15,23,42,.06)}.mockLine,.mockTotal{display:grid;grid-template-columns:100px 1fr 100px;gap:12px;align-items:center}.mockTotal{font-size:18px}.mockAccepted{background:#dcfce7;color:#166534;font-weight:800}.demoActions{margin-top:18px;display:flex;gap:12px}.langSelector a{font-size:12px;line-height:1}.legalFooter{flex-wrap:wrap}.locked[href]{cursor:pointer;opacity:1}.locked[href]:hover{filter:brightness(.97);transform:translateY(-1px)}
@media(max-width:900px){.cartLayout,.demoCinema{grid-template-columns:1fr}.mockLine,.mockTotal{grid-template-columns:1fr}.demoTimeline{display:grid;grid-template-columns:1fr 1fr}.paymentChoices{flex-direction:column}.paymentChoices .btn{width:100%;text-align:center}}


/* ============================================================
   V6.6 — UIX Comercial / Formatação Global
   ALTERAR AQUI: estilos globais da app. Mantém no fim do ficheiro
   para sobrepor versões antigas sem mexer no core.
   ============================================================ */
.main{max-width:1680px;margin-left:270px;}
.hero,.panel,.card{overflow:hidden;}
.tableWrap,.panel{overflow-x:auto;}
.panel table{min-width:720px;}
.btn,.btn-primary,.btn-secondary,button{min-height:42px;}
.btn.locked,.locked{background:#fff7ed!important;color:#9a3412!important;border:1px solid #fed7aa!important;box-shadow:none!important;cursor:pointer!important;}
.btn.locked:hover,.locked:hover{background:#ffedd5!important;transform:translateY(-1px)!important;}
.formActions,.actions{align-items:center;}
.checkLine{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;}
.checkLine input{width:auto;margin-top:3px;}
.optionalConsent{background:#fff;}
.narrow{width:min(640px,100%);}
.legalNotice{background:#f8fafc;border:1px solid #e2e8f0;color:#334155;border-radius:18px;padding:16px;margin:18px 0;}
.pricingGrid,.clientHomeGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.plan-card{display:flex;flex-direction:column;gap:12px;min-height:270px;}
.plan-card .btn,.plan-card button{margin-top:auto;width:max-content;}
.subscriptionBox .benefitGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0;}
.subscriptionBox .benefitGrid span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:11px;color:#0f172a;font-weight:800;}
.copyLine{display:flex;gap:10px;align-items:center;}
.copyLine input{font-weight:800;background:#f8fafc;}
.paymentStrip{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0;}
.paymentStrip span{display:inline-flex;align-items:center;border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:8px 12px;font-weight:800;color:#334155;}
.demoCinema{display:grid;grid-template-columns:330px 1fr;gap:22px;}
.demoTimeline{display:grid;gap:10px;align-content:start;}
.demoStep{border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:13px;display:grid;grid-template-columns:36px 1fr;gap:8px;text-align:left;cursor:pointer;}
.demoStep span{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#eef2ff;color:#1d4ed8;font-weight:900;}
.demoStep.active{border-color:#93c5fd;background:#eff6ff;}
.demoStage{background:linear-gradient(135deg,#ffffff,#f8fafc);border:1px solid #e2e8f0;border-radius:24px;padding:22px;}
.demoWindowBar{display:flex;gap:8px;margin-bottom:16px;}
.demoWindowBar span{width:12px;height:12px;border-radius:999px;background:#cbd5e1;}
.mockLine,.mockInput,.mockTotal,.mockAccepted{border:1px solid #e2e8f0;background:#fff;border-radius:16px;padding:12px;margin:10px 0;}
.mockLine{display:grid;grid-template-columns:90px 1fr auto;gap:12px;align-items:center;}
.mockAccepted{background:#dcfce7;border-color:#bbf7d0;color:#166534;font-weight:900;}
.legalFooter{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:30px;padding:20px 0;color:#64748b;font-size:13px;}
.mobileMenuToggle{display:none;}
@media(max-width:1200px){.pricingGrid,.clientHomeGrid{grid-template-columns:repeat(2,minmax(0,1fr));}.demoCinema{grid-template-columns:1fr}.subscriptionBox .benefitGrid{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.mobileMenuToggle{display:block;position:fixed;top:12px;left:12px;z-index:1000;border:0;border-radius:999px;background:#0f172a;color:white;padding:10px 14px;font-weight:900}.sidebar{position:fixed;left:-290px;top:0;bottom:0;width:270px;z-index:999;transition:left .2s ease}.sidebar.open{left:0}.main{margin-left:0;padding:64px 16px 20px;max-width:none}.pricingGrid,.clientHomeGrid,.subscriptionBox .benefitGrid{grid-template-columns:1fr}.copyLine{display:grid}.mockLine{grid-template-columns:1fr}.plan-card .btn,.plan-card button{width:100%}.legalFooter{font-size:12px;gap:10px}.hero h1,h1{font-size:28px}.cards{grid-template-columns:1fr}}

/* ============================================================
   V6.7 — Comercialização / UX pagamentos / idiomas
   ALTERAR AQUI: estilos finais de conversão, bandeiras e checkout.
   ============================================================ */
.flagSelector{display:flex;gap:8px;align-items:center;background:rgba(255,255,255,.06);border-radius:16px;padding:7px}.flagSelector a{display:inline-flex!important;align-items:center;gap:5px;border-radius:999px;padding:7px 9px!important;text-decoration:none!important;color:#cbd5e1!important}.flagSelector a.active{background:#fff!important;color:#0f172a!important}.flagSelector .flag{font-size:16px}.flagSelector small{font-size:11px;font-weight:900}.landing-lang{display:inline-flex;gap:7px;align-items:center}.landing-lang a{padding:8px 10px!important;border-radius:999px;background:rgba(255,255,255,.06);font-weight:900}.landing-lang a.active{background:#fff;color:#0f172a!important}.paymentMethodGrid{display:grid;grid-template-columns:1fr;gap:14px;margin:18px 0}.paymentMethod{position:relative;display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;padding:18px;border:1px solid #e2e8f0;border-radius:22px;background:#fff;text-decoration:none;color:#0f172a;box-shadow:0 12px 34px rgba(15,23,42,.06);transition:.18s transform,.18s box-shadow,.18s border-color}.paymentMethod:hover{transform:translateY(-3px);box-shadow:0 22px 55px rgba(15,23,42,.12);border-color:#93c5fd}.paymentMethod strong{display:block;font-size:16px}.paymentMethod small{display:block;color:#64748b;margin-top:4px;line-height:1.35}.paymentMethod em{font-style:normal;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:7px 10px;font-weight:900;font-size:12px}.paymentMethod.disabled{opacity:.65;cursor:not-allowed}.methodIcon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-weight:1000}.stripeIcon{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff}.mbwayIcon{background:linear-gradient(135deg,#e11d48,#111827);color:#fff;border-bottom:4px solid #ef4444;letter-spacing:-.05em}.mbwayMethod{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fff7f7)}.mbwayMethod em{background:#fee2e2;color:#991b1b}.paymentMiniStrip{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.cardBrand{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:1000;border:1px solid #e2e8f0;background:#fff}.cardBrand.visa{color:#1d4ed8}.cardBrand.mc{color:#b45309}.cardBrand.apple{color:#111827}.cardBrand.google{color:#0f766e}.cardBrand.klarna{background:#fce7f3;color:#9d174d}.cardBrand.mbway{background:#111827;color:white;border-bottom:3px solid #ef4444}.checkoutProLayout{grid-template-columns:.85fr 1.15fr}.checkoutPlanCard{background:linear-gradient(180deg,#fff,#f8fafc)}.checkoutBadge{display:inline-flex;width:max-content;border-radius:999px;background:#eef2ff;color:#1d4ed8;padding:7px 11px;font-weight:900;font-size:12px}.paymentProCard h2{margin-bottom:6px}.accountPaymentGrid{grid-template-columns:repeat(2,minmax(0,1fr));}.mbwayHero{display:grid;grid-template-columns:1fr auto;align-items:center}.mbwayLogoBig{font-weight:1000;font-size:42px;letter-spacing:-.08em;background:#111827;color:#fff;border-radius:22px;padding:18px 22px;border-bottom:7px solid #ef4444}.mbwayPanel{max-width:780px}.mbwayInfoCard{border:1px solid #fecaca;background:#fff7f7;color:#7f1d1d;border-radius:18px;padding:16px;margin-bottom:18px}.demoValueStrip{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 18px}.demoValueStrip span{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:10px 14px;font-weight:900;color:#334155}.sidebar nav a[href*="landing"]{font-weight:900;background:rgba(255,255,255,.08);border-radius:14px}.site-nav .login-link,.site-nav .nav-cta{white-space:nowrap}@media(max-width:900px){.checkoutProLayout,.accountPaymentGrid,.mbwayHero{grid-template-columns:1fr}.paymentMethod{grid-template-columns:44px 1fr}.paymentMethod em{grid-column:2}.paymentMiniStrip .cardBrand{flex:1;justify-content:center}.landing-lang{width:100%;justify-content:center}.demoValueStrip{display:grid;grid-template-columns:1fr 1fr}.mbwayLogoBig{font-size:30px;text-align:center}}

/* ============================================================
   V6.8 — UX comercial: idiomas, bandeiras e pagamentos PT
   ALTERAR AQUI: podes ajustar cores se alterares branding Nexora/ORZUVO.
   ============================================================ */
.flagSelector{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:6px;background:rgba(255,255,255,.055);border-radius:18px;margin-bottom:14px}
.flagSelector a{display:inline-flex!important;align-items:center;gap:6px;padding:8px 10px!important;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.04);line-height:1;text-decoration:none;transform:none!important}
.flagSelector a .flag{font-size:18px;color:inherit;margin:0!important}.flagSelector a small{font-weight:900;color:#cbd5e1}.flagSelector a b{display:none;font-size:11px;color:#cbd5e1}.flagSelector a.active{background:#fff!important;color:#0f172a!important;border-color:#fff}.flagSelector a.active small,.flagSelector a.active b{color:#0f172a}
@media(min-width:1180px){.flagSelector a b{display:inline}}

.paymentMethodGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.paymentMethod{display:grid;grid-template-columns:54px 1fr auto;gap:14px;align-items:center;text-decoration:none;border:1px solid #e2e8f0;border-radius:24px;padding:20px;background:linear-gradient(180deg,#fff,#f8fafc);color:#0f172a;box-shadow:0 16px 35px rgba(15,23,42,.07);transition:.2s}.paymentMethod:hover{transform:translateY(-3px);box-shadow:0 20px 45px rgba(15,23,42,.12)}.paymentMethod strong{font-size:16px}.paymentMethod small{color:#64748b}.paymentMethod em{font-style:normal;font-weight:900;border-radius:999px;padding:7px 10px;background:#e0f2fe;color:#075985}.paymentMethod.recommended{border-color:#bfdbfe;background:linear-gradient(135deg,#ffffff,#eff6ff)}.paymentMethod.mbwayMethod{border-color:#cbd5e1;background:linear-gradient(135deg,#ffffff,#f8fafc)}.paymentMethod.mbwayMethod:hover{border-color:#111827}.methodIcon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-weight:950}.stripeIcon{background:linear-gradient(135deg,#635bff,#00d4ff);color:white}.mbwayIcon{background:linear-gradient(135deg,#0f172a 0%,#111827 45%,#e30613 100%);color:white;border:2px solid #111827;letter-spacing:-.08em}.paymentMiniStrip{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.cardBrand{display:inline-flex!important;align-items:center;justify-content:center;border:1px solid #e2e8f0;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:950;line-height:1;background:white;color:#0f172a}.cardBrand.visa{color:#1a1f71}.cardBrand.mc{color:#eb001b;background:#fff7ed}.cardBrand.apple{background:#111827;color:#fff}.cardBrand.google{background:#ecfeff;color:#0f766e}.cardBrand.klarna{background:#ffb3c7;color:#111827}.cardBrand.mbway{background:#111827;color:#fff;border-color:#ef4444}.mbwayPanel,.mbwayHero{border-color:#cbd5e1}.mbwayInfoCard{border-left:5px solid #111827;background:#fff;border-radius:18px;padding:16px;box-shadow:0 10px 28px rgba(15,23,42,.08)}.mbwayLogoBig{background:linear-gradient(135deg,#111827,#e30613);color:white;border-radius:22px;padding:20px 24px;font-weight:950;box-shadow:0 16px 35px rgba(15,23,42,.18)}

.sidebar nav a[href*="landing"]{background:rgba(37,99,235,.16)!important;border:1px solid rgba(147,197,253,.20);font-weight:950}.legalFooter{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin:28px 0 10px}.tableWrap{overflow:auto}.checkoutProLayout{display:grid;grid-template-columns:.85fr 1.15fr;gap:22px}.checkoutPlanCard,.paymentProCard{min-height:100%}
@media(max-width:980px){.paymentMethodGrid,.checkoutProLayout{grid-template-columns:1fr}.paymentMethod{grid-template-columns:48px 1fr}.paymentMethod em{grid-column:2}.flagSelector a b{display:none}.main{padding-bottom:60px}.legalFooter a{font-size:12px}}


/* ============================================================
   V6.9 — Idiomas com bandeiras reais em CSS (não depende de emoji).
   ============================================================ */
.flagIcon{display:inline-block;width:22px;height:15px;border-radius:3px;box-shadow:0 0 0 1px rgba(15,23,42,.18);overflow:hidden;vertical-align:middle;flex:0 0 auto}
.flagPT{background:linear-gradient(90deg,#046a38 0 42%,#da291c 42% 100%);position:relative}.flagPT:after{content:"";position:absolute;left:7px;top:4px;width:7px;height:7px;border-radius:50%;background:#ffcd00;box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.flagGB{background:linear-gradient(180deg,#012169 0 100%);position:relative}.flagGB:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0 42%,#fff 42% 58%,transparent 58%),linear-gradient(0deg,transparent 0 38%,#fff 38% 62%,transparent 62%)}.flagGB:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0 46%,#c8102e 46% 54%,transparent 54%),linear-gradient(0deg,transparent 0 43%,#c8102e 43% 57%,transparent 57%)}
.flagES{background:linear-gradient(180deg,#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75% 100%)}
.flagSelector a,.landing-lang a{gap:8px!important;min-width:64px;justify-content:center}.flagSelector a small,.landing-lang a b{font-weight:950!important}.landing-lang a .flagIcon{margin-right:2px}.flagSelector a.active,.landing-lang a.active{box-shadow:0 0 0 2px rgba(255,255,255,.18),0 10px 25px rgba(15,23,42,.18)}

/* V6.9 — métodos de pagamento com cores confiáveis, não parecem erro. */
.paymentMethod.mbwayMethod{border-color:#e2e8f0!important;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 60%,#fff1f2 100%)!important}.paymentMethod.mbwayMethod:hover{border-color:#111827!important}.paymentMethod.mbwayMethod em{background:#111827!important;color:#fff!important}.mbwayIcon,.mbwayLogoBig{background:linear-gradient(135deg,#111827 0%,#111827 55%,#e30613 100%)!important;color:white!important;border-bottom:4px solid #e30613!important}.cardBrand.visa{background:#fff;color:#1a1f71;border-color:#1a1f71}.cardBrand.mc{background:linear-gradient(90deg,#fff7ed,#fff);color:#eb001b;border-color:#f59e0b}.cardBrand.apple{background:#111827;color:#fff;border-color:#111827}.cardBrand.google{background:#fff;color:#0f766e;border-color:#34a853}.cardBrand.klarna{background:#ffb3c7;color:#111827;border-color:#ff8aae}.cardBrand.mbway{background:#111827;color:#fff;border-color:#e30613;border-bottom:3px solid #e30613}
.logoSymbol{width:46px;height:46px;border-radius:16px;display:block;box-shadow:0 12px 28px rgba(37,99,235,.35)}


/* V7.4 — mobile first, icons and clearer actions */
.navIconLogo{width:20px;height:20px;border-radius:7px;vertical-align:middle;margin-right:7px;box-shadow:0 4px 10px rgba(37,99,235,.25)}
.mobileMenuToggle{display:none;position:fixed;right:14px;bottom:14px;z-index:1000;width:54px;height:54px;border:0;border-radius:18px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:white;font-size:22px;font-weight:900;box-shadow:0 16px 36px rgba(37,99,235,.35)}
.publicWrap .actions .btn,.publicWrap .actions .btn-secondary,.acceptForm button[type="submit"],.strongCta{box-shadow:0 12px 26px rgba(37,99,235,.25);border-radius:16px;font-weight:950;text-decoration:none}
.publicWrap .actions .btn:hover,.strongCta:hover{transform:translateY(-2px);filter:brightness(1.02)}
.paymentMethod{position:relative;overflow:hidden}.paymentMethod:not(.disabled){border:1px solid #bfdbfe;background:linear-gradient(135deg,#ffffff,#eff6ff)}.paymentMethod:not(.disabled):hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(37,99,235,.14)}
.methodIcon,.stripeIcon,.mbwayIcon{font-family:Inter,Segoe UI,Arial,sans-serif!important;display:grid!important;place-items:center!important;width:52px!important;height:52px!important;border-radius:16px!important;background:linear-gradient(135deg,#2563eb,#06b6d4)!important;color:#fff!important;font-weight:950!important;letter-spacing:-.03em!important;box-shadow:0 14px 28px rgba(37,99,235,.2)!important}.mbwayIcon{background:linear-gradient(135deg,#0f172a,#ef4444)!important;font-size:13px!important}
.cardBrand{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:26px;padding:6px 10px;border-radius:999px;border:1px solid #dbeafe;background:white;font-size:12px;font-weight:950;line-height:1}.cardBrand.mbway{background:#0f172a;color:#fff;border-color:#ef4444}.cardBrand.klarna{background:#ffd6e7;color:#7f1d1d}.paymentMiniStrip{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.checkoutBadge{display:inline-flex!important;align-items:center;justify-content:center;width:max-content;padding:8px 12px;border-radius:999px;background:#dbeafe;color:#075985;font-weight:950;box-shadow:inset 0 -2px 0 rgba(37,99,235,.18)}
@media(max-width:980px){body{background:#f8fafc}.mobileMenuToggle{display:grid;place-items:center}.sidebar{position:fixed;z-index:999;left:12px;right:12px;top:12px;bottom:auto;width:auto;max-height:82vh;overflow:auto;border-radius:24px;transform:translateY(-120%);transition:.25s ease;padding:18px}.sidebar.open{transform:translateY(0)}.sidebar .brand{margin-bottom:16px}.sidebar nav{gap:5px}.sidebar a{padding:10px 12px}.main{margin-left:0;padding:16px 12px 84px}.hero,.premiumHero{padding:18px;border-radius:22px}.hero h1,h1{font-size:clamp(26px,8vw,34px)}.panel,.card{padding:16px;border-radius:20px}.cartLayout,.checkoutProLayout,.paymentMethodGrid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}.paymentMiniStrip{gap:6px}.publicWrap{padding:0}.publicHeader{display:grid!important;gap:12px}.publicTotal{justify-self:start}.tableCard{overflow-x:auto}.adminTable{min-width:680px}.actions{display:grid}.actions a,.actions button,.acceptForm button{width:100%}.signaturePad,#signaturePad{height:170px!important}.flash{font-size:14px;line-height:1.35}.twoCols,.twoCols.wideLeft,.formGrid{gap:14px}.clientSmart .clientDropdown{position:static;margin-top:8px}}
@media(min-width:981px){.sidebar{width:250px}.main{margin-left:250px}.twoCols.wideLeft{grid-template-columns:minmax(360px,.72fr) minmax(520px,1.28fr)}}

/* V7.5 — checkout limpo e tradutor do orçamento */
.paymentAfterChoice{margin-top:18px;border-top:1px solid #e5e7eb;padding-top:14px}
.mbwayPanelClean{max-width:760px;margin-left:0}
.mbwayPageStrip{justify-content:flex-start;margin-bottom:16px;border-bottom:1px solid #e5e7eb;padding-bottom:12px}
.quoteTranslateBox{display:grid;grid-template-columns:1fr 180px auto;gap:12px;align-items:center;padding:14px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:18px;margin:12px 0 16px}
.quoteTranslateBox p{margin:.25rem 0 0}
.quoteTranslateBox select{height:44px;border:1px solid #cbd5e1;border-radius:14px;padding:0 12px;font-weight:800;background:#fff}
.calcExplain{margin-top:-8px;margin-bottom:10px;padding:10px 14px;border-radius:14px;background:#f8fafc;border:1px dashed #cbd5e1;color:#475569;font-weight:700}
.liveTotals{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.quoteTranslateBox{grid-template-columns:1fr}.liveTotals{grid-template-columns:1fr}}


/* v7.7 — sessão visível: mostra claramente quem está autenticado */
.userCard{display:flex;gap:11px;align-items:flex-start;margin:14px 0 16px;padding:12px;border-radius:18px;background:rgba(15,23,42,.72);border:1px solid rgba(148,163,184,.18);box-shadow:0 12px 28px rgba(0,0,0,.16)}
.userAvatar{flex:0 0 auto;width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#22d3ee,#2563eb);color:white;font-weight:1000;box-shadow:0 10px 22px rgba(37,99,235,.28)}
.userAvatar.large{width:46px;height:46px;border-radius:16px;font-size:18px}
.userMeta{min-width:0;display:grid;gap:2px}.userMeta .sessionLabel{color:#93c5fd;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.userMeta strong{color:white;font-size:14px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.userMeta small{color:#cbd5e1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.userMeta em{margin-top:5px;display:inline-flex;width:max-content;max-width:100%;font-style:normal;font-size:11px;font-weight:900;color:#dbeafe;background:rgba(37,99,235,.22);border:1px solid rgba(147,197,253,.28);border-radius:999px;padding:5px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sessionTopBar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px;padding:14px 18px;border:1px solid rgba(226,232,240,.95);border-radius:22px;background:rgba(255,255,255,.92);box-shadow:0 14px 38px rgba(15,23,42,.07);backdrop-filter:blur(12px)}
.sessionTopLeft{display:flex;align-items:center;gap:12px;min-width:0}.sessionTopLeft div:last-child{display:grid;gap:2px;min-width:0}.sessionTopLeft span{color:#2563eb;font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.sessionTopLeft strong{font-size:16px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sessionTopLeft small{color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sessionTopRight{display:grid;gap:3px;text-align:right}.sessionTopRight span{color:#64748b;font-size:12px}.sessionTopRight b{background:#eef2ff;color:#1d4ed8;border-radius:999px;padding:7px 11px;font-size:12px;white-space:nowrap}
@media(max-width:980px){.sessionTopBar{display:grid;text-align:left}.sessionTopRight{text-align:left}.userCard{margin-top:8px}}


/* ============================================================
   Premium V1 Consolidado — Billing limpo / SaaS maturity
   ============================================================ */
.heroActions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.billingOverview{display:grid;grid-template-columns:1.35fr .65fr;gap:18px;margin-bottom:18px}.billingMainCard,.billingSideCard{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:28px;padding:24px;box-shadow:var(--shadow)}.billingCardTop{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.miniLabel{display:block;color:#64748b;text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:900;margin-bottom:6px}.billingMainCard h2,.billingSideCard h3{margin:0;font-size:30px;letter-spacing:-.04em}.statusPill{display:inline-flex;align-items:center;border-radius:999px;padding:8px 12px;font-weight:900;font-size:12px}.statusPill.success{background:#dcfce7;color:#166534}.statusPill.neutral{background:#e0e7ff;color:#1d4ed8}.usageBlock{margin:22px 0;padding:18px;border-radius:22px;background:#f8fafc;border:1px solid #e2e8f0}.usageTop{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.usageBar{height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden}.usageBar i{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--primary2));border-radius:999px;max-width:100%}.usageBlock small{display:block;color:#64748b;margin-top:10px}.billingActions{display:flex;gap:10px;flex-wrap:wrap}.secureNote{margin-top:16px;padding:14px;border-radius:18px;background:#eff6ff;color:#1e40af;font-weight:800;line-height:1.4}.cleanNotice{margin-bottom:18px}.cleanPricing{margin-top:6px}.accountLowerGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.cleanBox h2{margin-top:0}.dangerZone.cleanBox{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fff7f7)}@media(max-width:980px){.billingOverview,.accountLowerGrid{grid-template-columns:1fr}.heroActions,.billingActions{display:grid}.heroActions .btn,.billingActions .btn{width:100%}.billingMainCard h2,.billingSideCard h3{font-size:25px}.billingCardTop{align-items:flex-start}.accountHeroV1{gap:16px}}


/* Premium V1.1 — login/session polish */
.rememberLine{display:flex!important;align-items:center;gap:.6rem;font-size:.95rem;color:#334155;margin-top:.25rem}
.rememberLine input{width:auto!important;min-width:16px}
.accountHeroV1 .heroActions{display:flex;gap:.75rem;flex-wrap:wrap}
.billingOverview{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:1rem;margin:1.25rem 0}
.billingMainCard,.billingSideCard{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;padding:1.35rem;box-shadow:0 18px 48px rgba(15,23,42,.06)}
.billingCardTop,.usageTop,.planTop{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.miniLabel{display:block;color:#64748b;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;margin-bottom:.25rem}
.statusPill{display:inline-flex;align-items:center;border-radius:999px;padding:.35rem .7rem;font-size:.82rem;font-weight:700;background:#e2e8f0;color:#334155}
.statusPill.success{background:#dcfce7;color:#166534}.statusPill.neutral{background:#eef2ff;color:#3730a3}
.usageBlock{margin-top:1rem}.usageBar{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin:.55rem 0}.usageBar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#0ea5e9)}
.billingActions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1rem}.secureNote{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:.9rem;color:#334155}
.cleanPricing .plan-card{position:relative}.currentPlan{outline:2px solid rgba(37,99,235,.25)}
.accountLowerGrid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem}.copyLine{display:flex;gap:.6rem}.copyLine input{flex:1}
@media(max-width:900px){.billingOverview,.accountLowerGrid{grid-template-columns:1fr}.billingActions,.copyLine{flex-direction:column}.accountHeroV1 .heroActions{width:100%}}

/* ============================================================
   ORZUVO V4 PREMIUM APP — ALTERAR AQUI
   Camada visual para dashboard/app sem destruir o backend existente.
   ============================================================ */
body{background:#07111F}.main{background:radial-gradient(circle at 20% 0%,rgba(34,211,238,.12),transparent 28%),linear-gradient(180deg,#07111F,#0B1020);min-height:100vh}.sidebar{background:rgba(0,0,0,.26)!important;border-right:1px solid rgba(255,255,255,.1)!important;backdrop-filter:blur(18px)}.sidebar nav a,.sidebar nav button{border-radius:16px}.v4-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.055);border-radius:32px;padding:34px;margin-bottom:28px;box-shadow:0 30px 80px rgba(0,0,0,.18)}.v4-dashboard-hero h1{font-size:clamp(38px,5vw,64px);line-height:1;margin:12px 0 10px;letter-spacing:-.05em;color:#fff}.v4-dashboard-hero p{color:rgba(255,255,255,.65);font-size:18px;max-width:680px}.v4-pill{display:inline-flex;border:1px solid rgba(34,211,238,.24);background:rgba(34,211,238,.1);color:#67e8f9;border-radius:999px;padding:8px 13px;font-weight:800;font-size:13px}.v4-hero-actions{display:flex;gap:12px;flex-wrap:wrap}.v4-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:28px}.v4-stats-grid article{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.055);border-radius:28px;padding:24px;box-shadow:0 18px 50px rgba(0,0,0,.14)}.v4-stats-grid small{color:rgba(255,255,255,.55);font-weight:700}.v4-stats-grid strong{display:block;color:#fff;font-size:36px;margin:14px 0 6px;letter-spacing:-.04em}.v4-stats-grid span{color:#67e8f9;font-size:13px;font-weight:700}.v4-workspace{display:grid;grid-template-columns:2fr 1fr;gap:22px;margin-bottom:28px}.v4-panel,.v4-ai-card{border:1px solid rgba(255,255,255,.1);border-radius:30px;padding:28px;background:rgba(255,255,255,.055);box-shadow:0 18px 60px rgba(0,0,0,.14)}.v4-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.v4-panel-head h2{font-size:26px;color:#fff;margin:0 0 8px}.v4-panel-head p{margin:0;color:rgba(255,255,255,.56)}.v4-panel-head span{color:#67e8f9;border:1px solid rgba(34,211,238,.22);background:rgba(34,211,238,.1);border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800}.v4-panel-head a{color:#67e8f9;text-decoration:none;font-weight:800}.v4-quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.v4-quick-grid a{display:block;text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.2);border-radius:22px;padding:20px;transition:.2s}.v4-quick-grid a:hover{transform:translateY(-2px);border-color:rgba(34,211,238,.32);background:rgba(34,211,238,.07)}.v4-quick-grid b{display:block;font-size:18px}.v4-quick-grid small{display:block;color:rgba(255,255,255,.55);margin-top:6px}.v4-ai-card{background:linear-gradient(135deg,#22d3ee,#2563eb);color:#06111f}.v4-ai-card small{font-weight:900;opacity:.75}.v4-ai-card h2{font-size:32px;line-height:1.05;margin:16px 0}.v4-ai-card p{opacity:.78;line-height:1.7}.v4-ai-card a{display:block;text-align:center;margin-top:24px;background:rgba(0,0,0,.82);color:#fff;text-decoration:none;border-radius:18px;padding:15px;font-weight:900}.v4-table-wrap{overflow:auto}table{border-collapse:separate!important;border-spacing:0 10px!important}table thead th{color:rgba(255,255,255,.55)!important;font-size:13px!important;border:0!important}table tbody tr{background:rgba(0,0,0,.2)!important}table tbody td{border-top:1px solid rgba(255,255,255,.06)!important;border-bottom:1px solid rgba(255,255,255,.06)!important;color:rgba(255,255,255,.82)!important;padding:16px!important}table tbody td:first-child{border-left:1px solid rgba(255,255,255,.06)!important;border-radius:16px 0 0 16px}table tbody td:last-child{border-right:1px solid rgba(255,255,255,.06)!important;border-radius:0 16px 16px 0}.badge{border-radius:999px!important;padding:7px 10px!important}.btn.primary,.btn-primary{background:#22d3ee!important;color:#04111f!important;border:0!important;box-shadow:0 18px 45px rgba(34,211,238,.18)!important}.btn{border-radius:18px!important;padding:13px 18px!important}@media(max-width:1100px){.v4-stats-grid,.v4-workspace{grid-template-columns:1fr 1fr}.v4-workspace{display:block}.v4-ai-card{margin-top:20px}}@media(max-width:760px){.v4-dashboard-hero{display:block;padding:24px}.v4-hero-actions{margin-top:18px}.v4-stats-grid,.v4-quick-grid{grid-template-columns:1fr}.v4-panel,.v4-ai-card{padding:22px;border-radius:24px}.v4-dashboard-hero h1{font-size:42px}}

/* ============================================================
   V8 SaaS Moderno — Mobile PRO, cockpit, onboarding e cliente
   ALTERAR AQUI: polimento visual final da experiência SaaS.
   ============================================================ */
.saasHero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;margin-bottom:22px;padding:28px;border:1px solid #e2e8f0;border-radius:30px;background:linear-gradient(135deg,#ffffff 0%,#eff6ff 48%,#f8fafc 100%);box-shadow:0 24px 70px rgba(15,23,42,.08)}
.saasHero h1{margin:.25rem 0;font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.05em}.saasHero p{margin:0;color:#475569;font-size:1.02rem;max-width:760px}.heroActionStack{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.onboardingBanner{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;margin:0 0 22px;padding:18px 20px;border-radius:24px;background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}.onboardingBanner p{margin:4px 0 0;color:#9a3412}.saasKpiGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 22px}.saasKpiGrid article{padding:20px;border:1px solid #e2e8f0;border-radius:24px;background:#fff;box-shadow:0 16px 45px rgba(15,23,42,.06)}.saasKpiGrid small{display:block;text-transform:uppercase;font-size:.72rem;font-weight:900;color:#64748b;letter-spacing:.08em}.saasKpiGrid strong{display:block;margin:8px 0 4px;font-size:clamp(1.55rem,3vw,2.3rem);letter-spacing:-.04em;color:#0f172a}.saasKpiGrid span{color:#64748b;font-size:.9rem}.saasDashboardGrid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr);gap:18px;margin-bottom:20px}.saasPanel{padding:22px;border:1px solid #e2e8f0;border-radius:26px;background:#fff;box-shadow:0 18px 50px rgba(15,23,42,.065);min-width:0}.panelTitle{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.panelTitle h2{margin:0;font-size:1.2rem}.panelTitle p{margin:4px 0 0;color:#64748b}.chartPanel canvas{width:100%!important;max-height:280px}.quoteCardsList{display:grid;gap:10px}.quoteMiniCard{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:14px;border-radius:18px;border:1px solid #e2e8f0;background:#f8fafc;color:inherit;text-decoration:none;transition:.18s}.quoteMiniCard:hover{transform:translateY(-2px);background:#fff;box-shadow:0 12px 35px rgba(37,99,235,.12)}.quoteMiniCard strong,.quoteMiniCard span{display:block}.quoteMiniCard span{color:#64748b;font-size:.9rem}.quoteMiniCard b{display:block;text-align:right;margin-bottom:5px}.topClientList{display:grid;gap:10px}.topClientList div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e2e8f0}.topClientList span{color:#334155}.quickActionsPro{display:grid;gap:10px}.quickActionsPro a{padding:12px 14px;border-radius:16px;background:#eff6ff;color:#1d4ed8;font-weight:900;text-decoration:none}.quickActionsPro a:hover{background:#dbeafe}.onboardingWizard{display:grid;gap:18px;max-width:1100px}.wizardStep{display:grid;grid-template-columns:58px 1fr;gap:18px;padding:24px;border:1px solid #e2e8f0;border-radius:28px;background:#fff;box-shadow:0 16px 45px rgba(15,23,42,.06)}.wizardStep>span{display:grid;place-items:center;width:48px;height:48px;border-radius:18px;background:#2563eb;color:white;font-weight:900;font-size:1.2rem}.wizardStep h2{margin:0 0 4px}.wizardStep p{margin:0 0 14px;color:#64748b}.wizardOptions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.wizardOptions strong{padding:16px;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0}.stickyActionBar{position:sticky;bottom:14px;z-index:30;display:flex;justify-content:flex-end;gap:10px;padding:12px;border:1px solid rgba(226,232,240,.9);border-radius:22px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);box-shadow:0 16px 50px rgba(15,23,42,.16)}.clientPortal{max-width:1200px;margin:0 auto}.clientPortalHero{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;padding:26px;border-radius:30px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;margin-bottom:20px}.clientPortalHero h1{color:#fff;margin:0}.clientPortalHero p{color:#dbeafe}.publicTotal{padding:18px 22px;border-radius:22px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);text-align:right}.publicTotal span,.publicTotal strong{display:block}.publicTotal strong{font-size:2rem;color:inherit}.clientPortalGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.52fr);gap:18px;margin-bottom:18px}.decisionPanel{background:linear-gradient(180deg,#fff,#f8fafc)}.responsiveLineCards{display:grid;gap:10px}.responsiveLineCards article{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}.responsiveLineCards strong,.responsiveLineCards span{display:block}.responsiveLineCards span{color:#64748b;font-size:.9rem}.stackedActions{display:grid!important;grid-template-columns:1fr!important}.clientActions{position:sticky}.mobileBottomNav{display:none}.main{padding-bottom:22px}.sidebar{height:100vh;overflow-y:auto;overscroll-behavior:contain}.itemRow{align-items:center}.quoteForm .formActions{padding-bottom:76px}.btn.danger{background:#dc2626;color:white;border:0}.btn.danger:hover{filter:brightness(.95)}

@media(max-width:1100px){.saasKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.saasDashboardGrid,.clientPortalGrid{grid-template-columns:1fr}.saasHero,.clientPortalHero{grid-template-columns:1fr}.heroActionStack{justify-content:flex-start}.publicTotal{text-align:left}.wizardOptions{grid-template-columns:1fr}}
@media(max-width:760px){body{padding-bottom:82px}.main{padding:14px 12px 96px}.saasHero{padding:20px;border-radius:24px}.saasKpiGrid{grid-template-columns:1fr}.saasPanel{padding:18px;border-radius:22px}.panelTitle{display:grid}.quoteMiniCard{grid-template-columns:1fr}.quoteMiniCard b{text-align:left}.onboardingBanner{grid-template-columns:1fr}.wizardStep{grid-template-columns:1fr;padding:18px}.stickyActionBar{left:10px;right:10px;bottom:88px;display:grid;grid-template-columns:1fr 1fr}.stickyActionBar .btn{width:100%}.clientPortalHero{padding:20px;border-radius:24px}.responsiveLineCards article{grid-template-columns:1fr}.signaturePad{width:100%;height:170px}.mobileBottomNav{position:fixed;left:10px;right:10px;bottom:10px;z-index:10002;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:8px;border-radius:24px;background:rgba(15,23,42,.94);backdrop-filter:blur(16px);box-shadow:0 20px 60px rgba(15,23,42,.35)}.mobileBottomNav a{display:grid;place-items:center;gap:2px;padding:8px 2px;border-radius:18px;color:#cbd5e1;text-decoration:none;font-size:11px;font-weight:900}.mobileBottomNav a span{font-size:18px}.mobileBottomNav a.primary{background:#2563eb;color:#fff;transform:translateY(-8px);box-shadow:0 10px 25px rgba(37,99,235,.36)}.mobileMenuToggle{top:10px;left:10px}.quoteForm .formActions{position:sticky;bottom:86px;z-index:35;display:grid!important;grid-template-columns:1fr;gap:8px;padding:10px;border-radius:20px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);box-shadow:0 16px 45px rgba(15,23,42,.14)}}
@media(max-width:520px){.saasHero h1{font-size:1.85rem}.publicTotal strong{font-size:1.6rem}.heroActionStack,.actions{display:grid;width:100%}.clientActions{grid-template-columns:1fr}.mobileBottomNav b{font-size:10px}.mobileBottomNav a span{font-size:16px}}

/* V8.1 - Correção visual SaaS da página Integrações + sidebar */
html, body { max-width: 100%; overflow-x: hidden; }
.main { min-width: 0; overflow-x: hidden; }
.sidebar { width: 280px; padding: 18px 16px; }
.main { margin-left: 280px; }
.brand { min-width: 0; margin-bottom: 22px; padding: 10px 8px; border-radius: 20px; }
.brand strong, .brand b { display:block; max-width: 170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.brand span { max-width: 170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.logoMark, .brand img { flex: 0 0 auto; }
.sidebar nav a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.integrationsHero { margin-bottom: 18px; }
.integrationStatusGrid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; margin-bottom:20px; }
.integrationProviderCard { min-width:0; background:#fff; border:1px solid #e2e8f0; border-radius:26px; padding:20px; box-shadow:0 16px 42px rgba(15,23,42,.065); display:grid; gap:18px; }
.integrationProviderCard.is-selected { border-color:#93c5fd; box-shadow:0 18px 48px rgba(37,99,235,.13); }
.providerTop { display:flex; gap:14px; align-items:center; min-width:0; }
.providerTop h2 { margin:0 0 4px; font-size:1.25rem; letter-spacing:-.03em; }
.providerTop p { margin:0; color:#64748b; }
.providerLogo { width:46px; height:46px; border-radius:16px; display:grid; place-items:center; flex:0 0 auto; background:linear-gradient(135deg,#16a34a,#86efac); color:#052e16; font-weight:950; box-shadow:0 10px 24px rgba(22,163,74,.18); }
.providerLogo.ix { background:linear-gradient(135deg,#2563eb,#93c5fd); color:#082f49; }
.providerLogo.small { width:38px; height:38px; border-radius:14px; font-size:.85rem; }
.providerMeta { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.statusPill { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:#f1f5f9; color:#475569; font-weight:900; font-size:.82rem; }
.statusPill:before { content:""; width:8px; height:8px; border-radius:99px; background:#94a3b8; }
.statusPill.ok { background:#dcfce7; color:#166534; }
.statusPill.ok:before { background:#16a34a; }
.integrationPanel { max-width: 1280px; margin-left:auto; margin-right:auto; }
.cleanPanelHead { margin-bottom:14px; }
.integrationForm { box-shadow:none; background:#fff; }
.cleanHint { background:#eff6ff; border:1px solid #bfdbfe; color:#1e3a8a; }
.integrationDetails { border:1px solid #e2e8f0; border-radius:22px; background:#f8fafc; overflow:hidden; }
.integrationDetails summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:12px; padding:16px; }
.integrationDetails summary::-webkit-details-marker { display:none; }
.integrationDetails summary strong { display:block; color:#0f172a; }
.integrationDetails summary small { display:block; margin-top:2px; color:#64748b; font-weight:700; }
.integrationDetails[open] summary { border-bottom:1px solid #e2e8f0; background:#fff; }
.detailsGrid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; padding:16px; }
.integrationSummaryCards .card strong { font-size: clamp(1.15rem, 2vw, 1.55rem); }

@media (max-width: 980px) {
  .sidebar { width:auto; padding:16px; }
  .main { margin-left:0; }
  .brand strong, .brand b, .brand span { max-width: none; }
  .integrationStatusGrid, .detailsGrid { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .integrationProviderCard, .panel, .formGrid { border-radius:20px; padding:16px; }
  .providerMeta, .formActions { display:grid; grid-template-columns:1fr; }
  .providerMeta .btn, .formActions .btn, .formActions button { width:100%; }
}

/* ============================================================
   V8.2 — Checkout MB WAY premium + estabilidade visual mobile
   ============================================================ */
.paymentMethodGrid{align-items:stretch!important}
.paymentMethod{min-height:132px!important;overflow:hidden!important}
.paymentMethod .methodText{display:grid;gap:4px;min-width:0}
.methodBenefits{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.methodBenefits span{display:inline-flex;align-items:center;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#334155;font-size:11px;font-weight:900;padding:6px 8px;white-space:nowrap}
.mbwayPremiumMethod{border:1px solid rgba(227,6,19,.24)!important;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 52%,#fff1f2 100%)!important;box-shadow:0 18px 42px rgba(15,23,42,.075)!important}
.mbwayPremiumMethod:hover{border-color:#e30613!important;box-shadow:0 24px 60px rgba(227,6,19,.14)!important}
.mbwayPremiumMethod .mbwayIcon{background:linear-gradient(145deg,#111827 0%,#111827 58%,#e30613 59%,#ef4444 100%)!important;border:0!important;border-bottom:4px solid #e30613!important;color:#fff!important;font-size:13px!important;line-height:.88!important;letter-spacing:-.06em!important;text-align:center!important;text-transform:uppercase!important}
.mbwayPremiumMethod .mbwayIcon b{font-size:11px;letter-spacing:-.02em}
.mbwayPremiumMethod em{background:#111827!important;color:#fff!important;border:1px solid rgba(227,6,19,.35)!important;box-shadow:0 8px 18px rgba(15,23,42,.14)}
.mbwayHeroPro{background:linear-gradient(135deg,#ffffff,#f8fafc 55%,#fff1f2)!important;border:1px solid rgba(226,232,240,.9)!important;gap:22px}
.breadcrumbBack{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;color:#475569;text-decoration:none;font-weight:900;border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:9px 12px;box-shadow:0 8px 20px rgba(15,23,42,.05)}
.breadcrumbBack:hover{color:#1d4ed8;border-color:#bfdbfe;background:#eff6ff}
.mbwayLogoOfficial{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:0;width:132px;height:92px;padding:0!important;font-size:30px!important;line-height:.9!important;background:linear-gradient(145deg,#111827 0%,#111827 58%,#e30613 59%,#ef4444 100%)!important;border-bottom:7px solid #b91c1c!important;box-shadow:0 22px 48px rgba(15,23,42,.2)!important}
.mbwayLogoOfficial span{font-size:24px;letter-spacing:-.02em}
.mbwayCheckoutPanel{background:#fff!important;border:1px solid #e2e8f0!important;box-shadow:0 22px 60px rgba(15,23,42,.08)!important}
.mbwaySteps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.mbwaySteps article{border:1px solid #e2e8f0;border-radius:20px;padding:16px;background:linear-gradient(180deg,#fff,#f8fafc);display:grid;gap:6px}
.mbwaySteps b{width:30px;height:30px;border-radius:12px;background:#111827;color:#fff;display:grid;place-items:center;font-size:14px}
.mbwaySteps strong{color:#0f172a}.mbwaySteps span{color:#64748b;font-size:.92rem;line-height:1.35}
.mbwayTrustBar{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 18px;padding-bottom:18px;border-bottom:1px solid #e5e7eb}
.mbwayTrustBar span{border:1px solid #e2e8f0;background:#f8fafc;border-radius:999px;padding:9px 12px;font-weight:900;color:#334155;font-size:.9rem}
.mbwayFormPro{max-width:560px}.phoneInputPro{display:flex;align-items:center;border:1px solid #dbeafe;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.phoneInputPro span{width:54px;align-self:stretch;display:grid;place-items:center;background:#eff6ff;border-right:1px solid #dbeafe;font-size:20px}.phoneInputPro input{border:0!important;box-shadow:none!important;flex:1;min-width:0;padding:15px 16px!important}
.mbwayNoticePro{background:#fff7ed!important;border:1px solid #fed7aa!important;color:#7c2d12!important;border-radius:16px!important;line-height:1.45}
.mbwayActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}.mbwayActions .btn{min-height:46px}
@media(max-width:900px){.paymentMethodGrid{grid-template-columns:1fr!important}.paymentMethod{grid-template-columns:52px 1fr!important}.paymentMethod em{grid-column:1 / -1;justify-self:start}.mbwaySteps{grid-template-columns:1fr}.mbwayLogoOfficial{width:100%;height:82px}.mbwayActions{display:grid;grid-template-columns:1fr}.mbwayActions .btn{width:100%}}
@media(max-width:560px){.paymentMethod{padding:16px!important;border-radius:20px!important}.methodBenefits span{font-size:10px;padding:6px 7px}.mbwayHeroPro,.mbwayCheckoutPanel{border-radius:22px!important}.mbwayTrustBar{display:grid}.breadcrumbBack{width:max-content;max-width:100%}}


/* V8.3 — Login premium, direitos reservados e auth moderna */
.copyrightLine{display:block;width:100%;font-weight:800;color:#64748b;margin-bottom:6px}.authProPage{position:relative;min-height:100vh;display:grid;place-items:center;padding:42px 18px;background:#fff;isolation:isolate}.authProBg{position:absolute;inset:0;background:radial-gradient(circle at 18% 0%,rgba(219,234,254,.95),transparent 28%),linear-gradient(115deg,transparent 0 40%,rgba(255,255,255,.2) 40% 44%,#ff8a00 44% 54%,#ff4fb3 54% 64%,transparent 64%),radial-gradient(circle at 78% 42%,rgba(124,58,237,.2),transparent 25%);clip-path:polygon(0 0,100% 0,100% 100%,0 100%);z-index:-1}.authProBg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.97) 0 23%,rgba(255,255,255,.72) 23% 44%,rgba(255,255,255,.05) 44% 86%,rgba(255,255,255,.98) 86% 100%)}.authBackHome{position:absolute;top:22px;left:24px;text-decoration:none;color:#475569;font-weight:800;background:rgba(255,255,255,.72);border:1px solid #e2e8f0;border-radius:999px;padding:10px 14px;backdrop-filter:blur(12px)}.authProCard{width:min(540px,100%);background:rgba(255,255,255,.94);border:1px solid rgba(226,232,240,.9);border-radius:12px;padding:54px 62px 22px;box-shadow:0 24px 50px rgba(15,23,42,.18);backdrop-filter:blur(16px)}.authBrandMini{display:flex;align-items:center;gap:12px;margin-bottom:22px}.authBrandMini img{width:42px;height:42px}.authBrandMini strong{display:block}.authBrandMini span{font-size:12px;color:#64748b;font-weight:800}.authProCard h1{font-size:24px;margin:0 0 8px;color:#374151;letter-spacing:-.03em}.authLead{margin:0 0 28px;color:#64748b;line-height:1.5}.authProForm{display:grid;gap:18px}.authProForm label{font-size:14px;color:#374151}.authProForm input{background:#eff6ff;border-color:#cbd5e1;border-radius:7px;min-height:48px}.authProForm input:focus{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.22)}.passwordWrap{position:relative;display:block}.passwordEye{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:transparent;cursor:pointer;font-size:16px}.authRow{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.authRow a{font-weight:900;text-decoration:none;color:#635bff}.authRemember{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px;font-weight:800;margin:0}.authRemember input{width:16px;height:16px;min-height:auto;accent-color:#635bff}.authSubmit{width:100%;border:0;border-radius:7px;min-height:48px;background:#635bff;color:#fff;font-weight:900;font-size:16px;cursor:pointer;box-shadow:0 14px 28px rgba(99,91,255,.24)}.authDivider{display:flex;align-items:center;gap:12px;margin:22px 0;color:#64748b;font-size:12px;font-weight:800}.authDivider:before,.authDivider:after{content:"";height:1px;background:#dbe3ef;flex:1}.authMethods{display:grid;gap:9px}.authMethods button{height:42px;border:1px solid #cbd5e1;background:#fff;border-radius:7px;color:#334155;font-weight:900}.authMethods button:disabled{opacity:.85;cursor:not-allowed}.authCreateBox{margin-top:50px;background:#fafafa;border-radius:8px;text-align:center;padding:20px;color:#475569;font-size:14px}.authCreateBox a{font-weight:900;text-decoration:none;color:#635bff}@media(max-width:640px){.authProPage{padding:70px 14px 18px}.authProCard{padding:30px 20px 18px}.authRow{align-items:flex-start;display:grid}.authBackHome{left:14px;top:14px}.authProBg{background:linear-gradient(135deg,#eff6ff,#fff 45%,#f5f3ff)}}

/* ============================================================
   V8.4 — Correções UX: login coerente, botões reais, dashboard responsivo
   ALTERAR AQUI: camada final pedida nos prints 1/2/3.
   ============================================================ */
body:has(.authProPage){background:#07111F!important;}
body:has(.authProPage) .main{overflow:auto!important;min-height:100vh!important;background:linear-gradient(180deg,#07111F,#0B1020)!important;}
.authProPage{min-height:100vh;background:radial-gradient(circle at 20% 10%,rgba(34,211,238,.18),transparent 28%),linear-gradient(180deg,#07111F,#0B1020)!important;padding:72px 18px 34px!important;}
.authProBg{background:radial-gradient(circle at 20% 18%,rgba(34,211,238,.22),transparent 30%),radial-gradient(circle at 84% 18%,rgba(37,99,235,.22),transparent 26%),linear-gradient(135deg,rgba(34,211,238,.16),rgba(37,99,235,.08) 48%,rgba(2,6,23,.05))!important;}
.authProBg:after{background:linear-gradient(90deg,rgba(7,17,31,.96),rgba(7,17,31,.52) 42%,rgba(7,17,31,.84))!important;}
.authBackHome{color:#dbeafe!important;background:rgba(15,23,42,.72)!important;border-color:rgba(148,163,184,.25)!important;}
.authProCard{border-radius:26px!important;background:rgba(255,255,255,.96)!important;border:1px solid rgba(226,232,240,.96)!important;padding:42px 48px 28px!important;box-shadow:0 28px 80px rgba(0,0,0,.28)!important;}
.authProCard h1{font-size:26px!important;color:#0f172a!important;font-weight:820!important;}
.authLead{color:#475569!important}.authProForm input{background:#f8fafc!important;border-radius:14px!important;}
.authProForm input:focus{border-color:#22d3ee!important;box-shadow:0 0 0 4px rgba(34,211,238,.18)!important;}
.authSubmit{border-radius:16px!important;background:linear-gradient(135deg,#22d3ee,#2563eb)!important;color:#04111f!important;box-shadow:0 16px 36px rgba(34,211,238,.22)!important;}
.authRow a,.authCreateBox a{color:#2563eb!important}.authRemember input{accent-color:#22d3ee!important}
.authMethods button{height:46px!important;border-radius:14px!important;background:#fff!important;border:1px solid #dbeafe!important;color:#0f172a!important;cursor:pointer!important;opacity:1!important;transition:.18s!important;}
.authMethods button:hover{transform:translateY(-1px);border-color:#22d3ee!important;box-shadow:0 12px 28px rgba(34,211,238,.14)!important;}
.authCreateBox{margin-top:24px!important;border:1px solid #e2e8f0;background:#f8fafc!important;border-radius:18px!important;}
.authMethodHint{margin-top:10px;padding:10px 12px;border-radius:14px;background:#ecfeff;border:1px solid #a5f3fc;color:#155e75;font-size:13px;font-weight:800;display:none;}
.authMethodHint.show{display:block;}

@media(min-width:981px){
  .main{max-width:1360px!important;margin-left:250px!important;padding:24px!important;}
  .sessionTopBar{padding:12px 16px!important;border-radius:18px!important;margin-bottom:12px!important;}
  .saasHero{padding:22px 24px!important;border-radius:24px!important;margin-bottom:16px!important;}
  .saasHero h1{font-size:clamp(2rem,2.6vw,2.9rem)!important;line-height:1.02!important;font-weight:780!important;letter-spacing:-.04em!important;}
  .saasHero p{font-size:.98rem!important;}
  .heroActionStack .btn{padding:11px 14px!important;min-height:40px!important;border-radius:14px!important;}
  .saasKpiGrid{gap:12px!important;margin-bottom:16px!important;}
  .saasKpiGrid article{padding:16px 18px!important;border-radius:20px!important;}
  .saasKpiGrid strong{font-size:clamp(1.35rem,2vw,1.9rem)!important;margin:6px 0 2px!important;}
  .saasDashboardGrid{grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr)!important;gap:14px!important;margin-bottom:16px!important;}
  .saasPanel{padding:18px!important;border-radius:22px!important;}
  .panelTitle h2{font-size:1.05rem!important;}
  .chartPanel canvas{max-height:230px!important;}
}
@media(min-width:1400px){.main{max-width:1320px!important;margin-left:250px!important;margin-right:auto!important;}}
@media(max-width:760px){.authProPage{padding:70px 12px 22px!important}.authProCard{padding:28px 18px 20px!important}.authMethods{grid-template-columns:1fr}.saasHero h1{font-size:1.75rem!important}.sessionTopBar{border-radius:18px!important}.heroActionStack{display:grid!important;grid-template-columns:1fr!important}.heroActionStack .btn{width:100%}}


/* V8.5 — Login com cor dinâmica tipo Stripe + botões preparados para auth real */
.authProPage{overflow:hidden!important;background:#07111F!important;}
.authProBg{background:
  radial-gradient(circle at 18% 18%,rgba(34,211,238,.24),transparent 28%),
  linear-gradient(115deg,transparent 0 37%,rgba(255,255,255,.08) 37% 40%,#38bdf8 40% 48%,#ff8a00 48% 56%,#ff4fb3 56% 66%,#7c3aed 66% 74%,transparent 74%),
  radial-gradient(circle at 78% 42%,rgba(124,58,237,.25),transparent 28%)!important;
  background-size:180% 180%,240% 240%,180% 180%!important;
  animation:orcafacilStripeFlow 14s ease-in-out infinite alternate!important;
  filter:saturate(1.15);
}
.authProBg:before{content:"";position:absolute;inset:-20%;background:conic-gradient(from 80deg at 55% 45%,rgba(34,211,238,.18),rgba(255,138,0,.22),rgba(255,79,179,.24),rgba(37,99,235,.2),rgba(34,211,238,.18));filter:blur(55px);animation:orcafacilAura 18s linear infinite;opacity:.8;}
.authProBg:after{background:linear-gradient(90deg,rgba(7,17,31,.98),rgba(7,17,31,.55) 37%,rgba(7,17,31,.25) 52%,rgba(7,17,31,.9))!important;}
@keyframes orcafacilStripeFlow{0%{background-position:0% 35%,0% 50%,80% 30%;transform:scale(1)}100%{background-position:100% 65%,100% 50%,20% 70%;transform:scale(1.02)}}
@keyframes orcafacilAura{to{transform:rotate(360deg)}}
.authProCard{position:relative;z-index:1;}
.authSubmit{background:linear-gradient(135deg,#22d3ee,#2f6df6,#7c3aed)!important;background-size:180% 180%!important;animation:orcafacilButtonFlow 7s ease-in-out infinite!important;color:#06111f!important;}
@keyframes orcafacilButtonFlow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.authMethods{display:grid!important;gap:10px!important}.authMethods button,.authMethodBtn{height:46px!important;border-radius:14px!important;background:#fff!important;border:1px solid #dbeafe!important;color:#0f172a!important;cursor:pointer!important;opacity:1!important;transition:.18s!important;text-decoration:none!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;}
.authMethods button:hover,.authMethodBtn:hover{transform:translateY(-1px);border-color:#22d3ee!important;box-shadow:0 12px 28px rgba(34,211,238,.14)!important;}
.googleG{color:#2563eb;font-weight:1000;margin-right:8px}.authMethodHint.show{display:block!important;}
@media (prefers-reduced-motion:reduce){.authProBg,.authProBg:before,.authSubmit{animation:none!important}}
@media(max-width:760px){.authProBg{background:radial-gradient(circle at 20% 0%,rgba(34,211,238,.24),transparent 30%),linear-gradient(145deg,#07111F,#0B1020 55%,rgba(37,99,235,.35))!important}.authProBg:before{opacity:.35}.authProCard{width:min(100%,520px)!important}}

/* ============================================================
   V8.6 — Tema claro/colorido global tipo Stripe
   Pedido: mais cor em todas as páginas, menos fundo escuro.
   ============================================================ */
:root{
  --bg:#f8fbff!important;
  --panel:#ffffff!important;
  --soft:#eef7ff!important;
  --card:#ffffff!important;
  --text:#172033!important;
  --muted:#64748b!important;
  --primary:#2563eb!important;
  --primary2:#7c3aed!important;
  --cyan:#22c6e8!important;
  --pink:#ec4899!important;
  --orange:#f97316!important;
  --yellow:#facc15!important;
  --line:#dbeafe!important;
  --shadow:0 22px 60px rgba(37,99,235,.10)!important;
}
html{background:#f8fbff!important;}
body{
  background:
    radial-gradient(circle at 10% 8%,rgba(34,198,232,.24),transparent 30%),
    radial-gradient(circle at 92% 10%,rgba(236,72,153,.20),transparent 28%),
    radial-gradient(circle at 84% 88%,rgba(249,115,22,.18),transparent 34%),
    linear-gradient(135deg,#f8fbff 0%,#eef7ff 46%,#fff7ed 100%)!important;
  color:var(--text)!important;
}
body:before{
  content:"";position:fixed;inset:-14% -18% auto auto;width:56vw;height:120vh;pointer-events:none;z-index:-1;
  transform:rotate(18deg);
  background:linear-gradient(90deg,rgba(34,198,232,.12) 0 16%,rgba(37,99,235,.18) 16% 31%,rgba(124,58,237,.18) 31% 47%,rgba(236,72,153,.20) 47% 62%,rgba(249,115,22,.24) 62% 80%,rgba(250,204,21,.25) 80% 100%);
  filter:blur(.2px);opacity:.75;
}
.sidebar{
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(239,246,255,.92))!important;
  color:#172033!important;border-right:1px solid rgba(191,219,254,.78)!important;box-shadow:12px 0 38px rgba(37,99,235,.09)!important;backdrop-filter:blur(20px)!important;
}
.brand strong,.brand b{color:#172033!important}.brand span{color:#64748b!important}.logoMark,.v4-brand-mark{background:linear-gradient(135deg,var(--cyan),var(--primary),var(--primary2))!important;box-shadow:0 14px 34px rgba(37,99,235,.22)!important}
.sidebar a{color:#334155!important;background:transparent!important;font-weight:850!important}.sidebar a:hover{background:linear-gradient(90deg,rgba(34,198,232,.13),rgba(124,58,237,.11))!important;color:#1d4ed8!important}.sideNote,.userCard{background:rgba(255,255,255,.72)!important;border:1px solid #dbeafe!important;color:#334155!important}.userMeta span,.userMeta small,.userMeta em{color:#64748b!important}
.main{background:transparent!important}.sessionTopBar,.hero,.premiumHero,.saasHero,.onboardingBanner,.panel,.saasPanel,.card,.formGrid,.authProCard,.mbwayCheckoutPanel,.mbwayHeroPro,.integrationProviderCard,.integrationDetails,.hero-card{
  background:rgba(255,255,255,.88)!important;border:1px solid rgba(191,219,254,.88)!important;box-shadow:var(--shadow)!important;backdrop-filter:blur(18px)!important;
}
.saasHero,.premiumHero,.hero-card{
  background:linear-gradient(135deg,rgba(255,255,255,.94) 0%,rgba(239,246,255,.92) 48%,rgba(255,247,237,.88) 100%)!important;position:relative;overflow:hidden!important;
}
.saasHero:after,.premiumHero:after,.hero-card:after{content:"";position:absolute;right:-80px;top:-120px;width:360px;height:360px;border-radius:999px;background:conic-gradient(from 120deg,rgba(34,198,232,.22),rgba(37,99,235,.18),rgba(236,72,153,.20),rgba(249,115,22,.22),rgba(34,198,232,.22));filter:blur(18px);z-index:0}.saasHero>*,.premiumHero>*,.hero-card>*{position:relative;z-index:1}
h1,.hero h1,.saasHero h1{color:#111827!important;font-weight:900!important}.hero p,.saasHero p,.muted,.panelTitle p{color:#64748b!important}.eyebrow,.v4-pill{background:linear-gradient(90deg,var(--primary),var(--primary2),var(--pink))!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;font-weight:950!important}.btn.primary,.primary,.btn-primary,.authSubmit,.v4-btn-primary{background:linear-gradient(90deg,var(--cyan),var(--primary),var(--primary2))!important;color:#fff!important;border:0!important;box-shadow:0 16px 36px rgba(37,99,235,.24)!important}.btn.secondary,.secondary,.btn-secondary,.v4-btn-secondary{background:#fff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important;box-shadow:0 10px 24px rgba(37,99,235,.07)!important}.btn:hover,.authMethodBtn:hover{transform:translateY(-2px)!important}
input,textarea,select{background:#fbfdff!important;border:1px solid #bfdbfe!important;border-radius:16px!important;color:#111827!important}input:focus,textarea:focus,select:focus{border-color:var(--primary)!important;box-shadow:0 0 0 4px rgba(37,99,235,.13)!important;background:#fff!important}
.saasKpiGrid article,.v4-mini-card,.quoteMiniCard,.topClientList div,.quickActionsPro a,.calcBox,.clientInfoGrid div,.mbwaySteps article,.mbwayTrustBar span,.methodBenefits span{background:rgba(255,255,255,.86)!important;border:1px solid #dbeafe!important;box-shadow:0 10px 26px rgba(37,99,235,.06)!important}.saasKpiGrid strong,.card strong{background:linear-gradient(90deg,var(--primary),var(--primary2),var(--pink));-webkit-background-clip:text;background-clip:text;color:transparent!important}.liveTotals span{background:linear-gradient(135deg,#172033,#2563eb)!important}.badge.enviado{background:#dbeafe!important;color:#1d4ed8!important}.badge.aceite{background:#dcfce7!important;color:#166534!important}.badge.recusado{background:#fee2e2!important;color:#991b1b!important}
table{background:rgba(255,255,255,.68)!important;border-radius:20px!important;overflow:hidden!important}th{background:#eff6ff!important;color:#475569!important}td{background:rgba(255,255,255,.72)!important}.legalFooter{background:rgba(255,255,255,.55)!important;border:1px solid #dbeafe!important;border-radius:20px!important;padding:14px!important;backdrop-filter:blur(12px)!important}.mobileBottomNav{background:rgba(255,255,255,.94)!important;border-top:1px solid #bfdbfe!important;box-shadow:0 -12px 28px rgba(37,99,235,.10)!important}.mobileBottomNav a{color:#334155!important}.mobileBottomNav a.primary{background:linear-gradient(135deg,var(--cyan),var(--primary),var(--primary2))!important;color:#fff!important}
/* Login: troca o fundo escuro por fundo claro colorido */
body:has(.authProPage){background:#f8fbff!important;}
body:has(.authProPage) .main{background:transparent!important;}
.authProPage{background:
  radial-gradient(circle at 12% 15%,rgba(34,198,232,.28),transparent 32%),
  radial-gradient(circle at 90% 14%,rgba(236,72,153,.28),transparent 30%),
  radial-gradient(circle at 80% 90%,rgba(249,115,22,.25),transparent 34%),
  linear-gradient(135deg,#f8fbff 0%,#eef7ff 42%,#fff7ed 100%)!important;overflow:auto!important;}
.authProBg{background:linear-gradient(90deg,rgba(34,198,232,.15) 0 16%,rgba(37,99,235,.22) 16% 30%,rgba(124,58,237,.22) 30% 45%,rgba(236,72,153,.28) 45% 60%,rgba(249,115,22,.33) 60% 78%,rgba(250,204,21,.34) 78% 100%)!important;position:absolute!important;inset:-12% -14% auto auto!important;width:62vw!important;height:130vh!important;transform:rotate(18deg)!important;opacity:.9!important;filter:none!important;animation:none!important;}
.authProBg:before{display:none!important}.authProBg:after{background:linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.58) 36%,rgba(255,255,255,.05) 72%,rgba(255,255,255,.72))!important}.authBackHome{color:#334155!important;background:rgba(255,255,255,.78)!important;border:1px solid #dbeafe!important}.authProCard{border-radius:34px!important;padding:34px!important}.authProCard h1{font-size:30px!important;color:#172033!important}.authBrandMini img{border-radius:14px;box-shadow:0 14px 34px rgba(37,99,235,.20)}.authMethodHint{background:#ecfeff!important;border:1px solid #99f6e4!important;color:#155e75!important}.authCreateBox{background:#fff!important;border:1px solid #dbeafe!important}
@media(max-width:980px){body:before{width:96vw;opacity:.45}.sidebar{transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.main{padding-bottom:82px!important}.authProBg{width:100vw!important;opacity:.55!important}.authProCard{padding:26px!important;border-radius:26px!important}.saasHero:after,.premiumHero:after,.hero-card:after{opacity:.45}}

/* ============================================================
   V8.7 — Correção de contraste + tema claro equilibrado
   Problema corrigido: algumas letras ficaram brancas/invisíveis sobre cards claros.
   ============================================================ */
:root{
  --text:#111827!important;
  --muted:#475569!important;
  --line:#bfdbfe!important;
  --soft:#eef7ff!important;
}
body{
  background:
    radial-gradient(circle at 10% 8%,rgba(34,198,232,.18),transparent 28%),
    radial-gradient(circle at 92% 10%,rgba(236,72,153,.14),transparent 28%),
    radial-gradient(circle at 86% 88%,rgba(249,115,22,.13),transparent 34%),
    linear-gradient(135deg,#f4faff 0%,#eef7ff 48%,#fff6ed 100%)!important;
}
body:before{opacity:.42!important;filter:blur(.4px)!important;}
.main,.panel,.saasPanel,.card,.formGrid,.hero,.premiumHero,.saasHero,.sessionTopBar,.tableWrap,.quote-preview,.mbwayCheckoutPanel,.integrationDetails,.integrationProviderCard{
  color:#111827!important;
}
.panel,.saasPanel,.card,.formGrid,.sessionTopBar,.hero,.premiumHero,.saasHero{
  background:rgba(255,255,255,.96)!important;
  border-color:#bfdbfe!important;
}
.panel *, .saasPanel *, .card *, .formGrid *, .sessionTopBar *, .hero *, .premiumHero *, .saasHero *, .tableWrap *{
  text-shadow:none!important;
}
.panel h1,.panel h2,.panel h3,.panel h4,.card h1,.card h2,.card h3,.card h4,.formGrid h1,.formGrid h2,.formGrid h3,.saasPanel h1,.saasPanel h2,.saasPanel h3,
h1,h2,h3,h4,strong,b,label,summary,th,td{
  color:#111827!important;
}
p,small,span,li,td,th,.muted,.hero p,.saasHero p,.panelTitle p,.userMeta small,.userMeta span{
  color:#475569!important;
}
/* manter texto branco apenas onde deve ser branco */
.btn.primary,.primary,.btn-primary,.v4-btn-primary,.authSubmit,.v4-cta,.badge.aceite,.badge.enviado,.badge.recusado,
.btn.primary *, .primary *, .btn-primary *, .v4-btn-primary *, .authSubmit *, .v4-cta *{
  color:#fff!important;
}
.authSubmit{color:#fff!important;}
input,textarea,select{
  background:#ffffff!important;
  color:#111827!important;
  border-color:#bfdbfe!important;
}
input::placeholder,textarea::placeholder{color:#64748b!important;opacity:1!important;}
/* Tabelas: impedir linhas cinzentas com texto branco */
table{background:transparent!important;color:#111827!important;}
thead th, th{
  background:#eaf4ff!important;
  color:#334155!important;
  border-bottom:1px solid #bfdbfe!important;
}
tbody tr, tbody td{
  background:#ffffff!important;
  color:#111827!important;
}
tbody tr:nth-child(even), tbody tr:nth-child(even) td{background:#f8fbff!important;}
tbody tr:hover, tbody tr:hover td{background:#eff6ff!important;}
.tableWrap{background:#fff!important;border-radius:22px!important;overflow:auto!important;}
/* Sidebar clara mas legível */
.sidebar,.sidebar *{text-shadow:none!important;}
.sidebar a,.sidebar nav a{color:#243449!important;opacity:1!important;}
.sidebar a:hover,.sidebar nav a:hover{color:#1d4ed8!important;}
.sidebar .brand strong,.sidebar .brand b{color:#111827!important;}
.sidebar .brand span,.sidebar small{color:#64748b!important;}
.userCard,.sideNote{background:#ffffff!important;color:#111827!important;border:1px solid #bfdbfe!important;}
/* Footer visível */
.legalFooter,.legalFooter *{color:#334155!important;opacity:1!important;}
.legalFooter{background:rgba(255,255,255,.78)!important;border:1px solid #dbeafe!important;border-radius:20px!important;padding:14px 18px!important;margin-top:22px!important;}
.legalFooter a{color:#2563eb!important;font-weight:800!important;}
/* Botões secundários e links */
.btn.secondary,.secondary,.btn.back,.back,.btn.cancel,.cancel,.v4-login,.v4-btn-secondary{
  background:#ffffff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
}
a{color:#1d4ed8!important;}
/* Badges e pills */
.badge{color:#334155!important;background:#e2e8f0!important;}
.v4-pill,.eyebrow{color:#1d4ed8!important;background:#eff6ff!important;border:1px solid #bfdbfe!important;}
/* Mobile bottom nav */
.mobileBottomNav,.mobileBottomNav *{color:#334155!important;}
.mobileBottomNav a.primary,.mobileBottomNav a.primary *{color:#fff!important;}
@media(max-width:980px){
  body:before{opacity:.25!important;}
  .main{padding-bottom:88px!important;}
}


/* V8.9 UX FIXES */
.eyebrow{
display:inline-flex!important;
width:auto!important;
max-width:max-content!important;
padding:6px 12px;
border-radius:999px;
background:#eff6ff;
border:1px solid #bfdbfe;
margin-bottom:12px;
}

.hero,.premiumHero{
overflow:hidden;
align-items:center;
}

.hero h1{
max-width:900px;
line-height:1.05;
}

.logoMark img,.brand img{
max-width:42px;
height:auto;
object-fit:contain;
}

input,select,textarea{
min-height:52px;
border-radius:16px!important;
border:1px solid #bfdbfe!important;
padding:12px 14px!important;
font-size:15px;
width:100%;
}

textarea{
resize:vertical;
min-height:120px;
}

.summaryBox,.totalsBox,.metricBox{
background:linear-gradient(135deg,#2563eb,#4f46e5)!important;
color:white!important;
}

.summaryBox *, .totalsBox *, .metricBox *{
color:white!important;
}

.grid-2{
display:grid;
grid-template-columns:1fr 1fr;
gap:16px;
}

@media(max-width:768px){
.sidebar{
transform:translateX(-100%);
transition:.3s;
z-index:9999;
}
.sidebar.open{
transform:translateX(0);
}
.main{
margin-left:0!important;
padding:16px!important;
}
.hero{
padding:20px;
flex-direction:column;
align-items:flex-start;
gap:18px;
}
.hero h1,h1{
font-size:40px!important;
}
.cards{
grid-template-columns:1fr!important;
}
.grid-2{
grid-template-columns:1fr;
}
.panel,.card{
padding:18px;
border-radius:20px;
overflow:hidden;
}
table{
display:block;
overflow-x:auto;
}
.mobileMenuBtn{
display:flex!important;
}
}

/* better alignment */
.panel,.hero,.card{
backdrop-filter:blur(12px);
}



/* V9.0 — contraste, logo, dropdown e mobile quote fix */
.liveTotals span{
  background:linear-gradient(135deg,#eaf4ff,#eef2ff)!important;
  color:#334155!important;
  border:1px solid #bfdbfe!important;
  box-shadow:0 12px 30px rgba(37,99,235,.10)!important;
}
.liveTotals span b,.liveTotals b{
  color:#0f172a!important;
  font-weight:900!important;
  text-shadow:none!important;
}
.liveTotals span:nth-child(3){background:linear-gradient(135deg,#dbeafe,#e0e7ff)!important;}
.liveTotals span:nth-child(4) b{color:#7c3aed!important;}
.brand{display:flex!important;align-items:center!important;gap:12px!important;min-height:64px!important;}
.logoMark,.brandLogoImg,.brand img{
  width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;
  object-fit:contain!important;border-radius:14px!important;background:#fff!important;padding:6px!important;
}
.clientSmart{position:relative!important;}
.clientDropdown{
  position:absolute!important;left:0!important;right:0!important;top:calc(100% - 4px)!important;
  background:#fff!important;border:1px solid #93c5fd!important;border-radius:16px!important;
  box-shadow:0 18px 40px rgba(15,23,42,.18)!important;z-index:10050!important;
  max-height:260px!important;overflow-y:auto!important;display:none!important;
}
.clientDropdown.show{display:block!important;}
.clientOption{padding:12px 14px!important;cursor:pointer!important;border-bottom:1px solid #e2e8f0!important;}
.clientOption:hover{background:#eff6ff!important;}
.clientOption strong{display:block!important;color:#0f172a!important;}
.clientOption span{display:block!important;color:#475569!important;font-size:13px!important;margin-top:4px!important;white-space:normal!important;}
.aiBox .dangerBox{background:#fff1f2!important;color:#991b1b!important;border:1px solid #fecaca!important;}
.aiBox .marketHint{background:#eff6ff!important;color:#1e3a8a!important;border:1px solid #bfdbfe!important;}
.itemRow{grid-template-columns:90px 100px minmax(220px,1fr) 145px 145px 44px!important;align-items:center!important;}
.itemLabels{display:grid!important;grid-template-columns:90px 100px minmax(220px,1fr) 145px 145px 44px!important;gap:10px!important;color:#475569!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.04em!important;}
.itemRow .descInput{min-width:0!important;}
@media(max-width:900px){
  .itemLabels{display:none!important;}
  .itemRow{grid-template-columns:1fr!important;background:#fff!important;border:1px solid #bfdbfe!important;border-radius:18px!important;padding:12px!important;}
  .itemRow input,.itemRow select,.itemRow output,.itemRow button{width:100%!important;}
  .clientDropdown{position:static!important;margin-top:8px!important;}
  .hero h1,h1{font-size:clamp(28px,8vw,40px)!important;}
}


/* ============================================================
   V10.0 — SAAS PREMIUM MARKET UI/UX FIX
   Correções aplicadas: contraste, sidebar, logo, cards, inputs,
   dropdown cliente, mobile drawer, KPI legível e layout premium.
   ============================================================ */
:root{
  --of-bg:#f6f9ff;
  --of-surface:rgba(255,255,255,.84);
  --of-surface-strong:#ffffff;
  --of-border:#dbeafe;
  --of-text:#0f172a;
  --of-muted:#64748b;
  --of-primary:#2563eb;
  --of-primary-2:#6366f1;
  --of-primary-3:#8b5cf6;
  --of-soft-blue:#eff6ff;
  --of-shadow:0 16px 45px rgba(15,23,42,.08);
  --of-shadow-soft:0 8px 24px rgba(37,99,235,.10);
  --of-radius:24px;
}
body{
  background:
    radial-gradient(circle at 18% 8%,rgba(56,189,248,.18),transparent 34%),
    radial-gradient(circle at 100% 18%,rgba(139,92,246,.15),transparent 30%),
    linear-gradient(135deg,#f8fbff 0%,#eef7ff 46%,#f9f5ff 100%)!important;
  color:var(--of-text)!important;
  font-weight:400;
}
.sidebar{
  width:240px!important;
  background:rgba(255,255,255,.86)!important;
  color:var(--of-text)!important;
  border-right:1px solid rgba(191,219,254,.95)!important;
  box-shadow:10px 0 35px rgba(15,23,42,.07)!important;
  backdrop-filter:blur(16px)!important;
  padding:22px 18px!important;
}
.main{margin-left:240px!important;padding:28px 32px 96px!important;}
.brand{gap:12px!important;margin-bottom:28px!important;padding:6px 2px!important;align-items:center!important;}
.brand strong{font-size:17px!important;font-weight:750!important;letter-spacing:-.02em;color:#0f172a!important;line-height:1.1;}
.brand span{font-size:12px!important;color:#64748b!important;font-weight:500!important;margin-top:3px;}
.brandLogoImg,.logoSymbol{width:46px!important;height:46px!important;object-fit:contain!important;border-radius:16px!important;background:#fff!important;padding:6px!important;box-shadow:0 10px 24px rgba(15,23,42,.10)!important;display:block!important;}
.sidebar nav{gap:7px!important;}
.sidebar nav a,.flagSelector a{
  color:#26364d!important;
  font-size:15px!important;
  font-weight:650!important;
  border-radius:15px!important;
  padding:11px 12px!important;
  transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease!important;
}
.sidebar nav a:hover,.sidebar nav a.active,.flagSelector a.active{
  background:#ffffff!important;
  color:#1d4ed8!important;
  box-shadow:0 12px 28px rgba(37,99,235,.12)!important;
  transform:translateX(2px)!important;
}
.userCard{
  background:rgba(255,255,255,.76)!important;
  color:var(--of-text)!important;
  border:1px solid #bfdbfe!important;
  box-shadow:var(--of-shadow-soft)!important;
  border-radius:20px!important;
  padding:14px!important;
}
.userMeta span,.sessionLabel{color:#475569!important;font-weight:700!important;letter-spacing:.06em!important;}
.userMeta small{color:#64748b!important;font-weight:500!important;}
.userMeta em,.sessionTopRight b{background:#e0ecff!important;color:#1e3a8a!important;border-radius:999px!important;padding:7px 10px!important;font-style:normal!important;}
.sideNote{background:#fff!important;border:1px solid #dbeafe!important;color:#334155!important;box-shadow:var(--of-shadow-soft)!important;}
.sessionTopBar,.hero,.panel,.card,.metricCard,.chartCard{
  background:var(--of-surface)!important;
  border:1px solid var(--of-border)!important;
  box-shadow:var(--of-shadow)!important;
  backdrop-filter:blur(14px)!important;
}
.sessionTopBar{border-radius:22px!important;padding:18px 22px!important;margin-bottom:18px!important;}
.hero,.premiumHero{
  border-radius:28px!important;
  padding:26px 30px!important;
  margin-bottom:24px!important;
  background:
    radial-gradient(circle at 92% 5%,rgba(236,72,153,.12),transparent 30%),
    radial-gradient(circle at 100% 70%,rgba(45,212,191,.16),transparent 32%),
    linear-gradient(135deg,rgba(255,255,255,.94),rgba(239,246,255,.80))!important;
}
.hero h1,h1{font-size:clamp(30px,3.3vw,44px)!important;font-weight:760!important;letter-spacing:-.055em!important;color:#0f172a!important;line-height:1.02!important;}
h2{font-size:24px!important;letter-spacing:-.035em!important;font-weight:720!important;color:#111827!important;}
h3{font-weight:700!important;color:#111827!important;}
p,.muted,small{font-weight:400;color:#52627a;}
.eyebrow{
  display:inline-flex!important;align-items:center!important;width:auto!important;
  border:1px solid #bfdbfe!important;border-radius:999px!important;padding:7px 13px!important;
  background:#eff6ff!important;color:#334155!important;font-weight:800!important;letter-spacing:.10em!important;
}
.twoCols.wideLeft{grid-template-columns:minmax(320px,430px) minmax(0,1fr)!important;gap:22px!important;align-items:start!important;}
.panel{border-radius:26px!important;padding:24px!important;overflow:hidden;}
.formStack{gap:16px!important;}
.grid2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important;}
.grid3{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;}
label{font-weight:650!important;color:#0f172a!important;letter-spacing:-.01em;}
input,textarea,select,.unitSelect{
  width:100%!important;
  border:1px solid #bfdbfe!important;
  background:#ffffff!important;
  border-radius:16px!important;
  min-height:48px!important;
  padding:13px 15px!important;
  color:#0f172a!important;
  font-size:15px!important;
  font-weight:520!important;
  box-shadow:0 2px 0 rgba(37,99,235,.02)!important;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
textarea{min-height:96px!important;line-height:1.48!important;resize:vertical!important;}
input:focus,textarea:focus,select:focus{
  outline:none!important;border-color:#2563eb!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.12)!important;
}
input::placeholder,textarea::placeholder{color:#64748b!important;font-weight:560!important;}
.btn,button.btn,.primary-btn{
  border-radius:16px!important;
  min-height:48px!important;
  padding:13px 18px!important;
  font-weight:760!important;
  letter-spacing:-.01em!important;
  box-shadow:0 10px 24px rgba(37,99,235,.12)!important;
}
.btn.primary,.btn-primary,.primary-btn{
  background:linear-gradient(135deg,#2563eb,#4f46e5)!important;
  color:#fff!important;border:0!important;
}
.btn.secondary,.btn.back,.btn.cancel{
  background:#ffffff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important;box-shadow:0 8px 20px rgba(37,99,235,.08)!important;
}
.dangerBox,.ai-warning{
  background:#fff1f2!important;
  border:1px solid #fecdd3!important;
  color:#991b1b!important;
  border-radius:18px!important;
  padding:15px 16px!important;
  font-size:14px!important;
  line-height:1.42!important;
}
.marketHint,.aiResult,.locationAdvice,.quoteTranslateBox{
  background:#eff6ff!important;
  border:1px solid #bfdbfe!important;
  color:#1e3a8a!important;
  border-radius:18px!important;
}
.quoteTranslateBox{display:grid!important;grid-template-columns:1fr minmax(180px,230px) auto!important;gap:14px!important;align-items:center!important;padding:18px!important;}
.aiBadge{border-radius:999px!important;padding:8px 12px!important;font-weight:800!important;}
.aiBadge.openai,.aiBadge.ready{background:#dcfce7!important;color:#166534!important;border:1px solid #bbf7d0!important;}
.aiBadge.demo{background:#fef3c7!important;color:#92400e!important;border:1px solid #fde68a!important;}
.clientSmart{position:relative!important;}
.clientDropdown{
  position:absolute!important;left:0!important;right:0!important;top:calc(100% - 18px)!important;z-index:99999!important;
  max-height:230px!important;overflow:auto!important;background:#fff!important;border:1px solid #bfdbfe!important;border-radius:18px!important;
  box-shadow:0 22px 55px rgba(15,23,42,.18)!important;padding:7px!important;
}
.clientOption{padding:12px 14px!important;border-radius:14px!important;cursor:pointer!important;display:grid!important;gap:4px!important;}
.clientOption:hover{background:#eff6ff!important;}
.clientOption span{color:#475569!important;font-size:13px!important;white-space:normal!important;}
.itemLabels{color:#475569!important;font-size:12px!important;font-weight:800!important;letter-spacing:.07em!important;}
.itemRow{display:grid!important;grid-template-columns:90px 104px minmax(240px,1fr) 150px 140px 48px!important;gap:10px!important;align-items:center!important;}
.descInput{white-space:normal!important;text-overflow:clip!important;}
.lineTotal{background:#f8fbff!important;border:1px solid #bfdbfe!important;border-radius:16px!important;padding:13px 14px!important;color:#0f172a!important;font-weight:750!important;min-height:48px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;}
.removeItem{border:0!important;background:#fee2e2!important;color:#b91c1c!important;border-radius:14px!important;font-size:22px!important;font-weight:800!important;min-height:46px!important;cursor:pointer!important;}
.liveTotals{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;
}
.liveTotals span,.kpi-card,.metricCard{
  background:linear-gradient(135deg,#eff6ff,#ffffff)!important;
  color:#0f172a!important;
  border:1px solid #bfdbfe!important;
  border-radius:22px!important;
  padding:18px!important;
  box-shadow:0 10px 26px rgba(37,99,235,.10)!important;
}
.liveTotals span b,.metricCard strong,.card strong{
  color:#0f172a!important;
  font-size:clamp(24px,2.2vw,32px)!important;
  font-weight:780!important;
  letter-spacing:-.04em!important;
}
.liveTotals span:nth-child(3){background:linear-gradient(135deg,#2563eb,#6366f1)!important;color:#fff!important;}
.liveTotals span:nth-child(3) b{color:#fff!important;}
.calcExplain{background:#f8fafc!important;border:1px dashed #bfdbfe!important;color:#334155!important;border-radius:18px!important;padding:14px 16px!important;line-height:1.45!important;}
.cards,.cards-grid,.metricCards{gap:16px!important;}
.card{border-radius:24px!important;}
.card span,.metricCard small{color:#64748b!important;font-weight:500!important;}
.chartCard canvas{max-width:100%!important;}
/* corrige barras/caixas vazias geradas por estilos antigos */
.hero [style*="width"], .panel [style*="width"]{max-width:100%;}
.mobileBottomNav{box-shadow:0 -12px 35px rgba(15,23,42,.12)!important;border-top:1px solid #dbeafe!important;}
@media(max-width:1100px){
  .twoCols.wideLeft{grid-template-columns:1fr!important;}
  .quoteTranslateBox{grid-template-columns:1fr!important;}
  .itemLabels{display:none!important;}
  .itemRow{grid-template-columns:1fr 1fr!important;background:#fff!important;border:1px solid #dbeafe!important;border-radius:20px!important;padding:12px!important;}
  .itemRow .descInput{grid-column:1/-1!important;}
  .itemRow output{grid-column:1/2!important;justify-content:flex-start!important;}
  .itemRow .removeItem{grid-column:2/3!important;}
}
@media(max-width:980px){
  body{padding-top:60px!important;}
  .mobileMenuToggle{display:inline-flex!important;background:#ffffff!important;color:#0f172a!important;border:1px solid #bfdbfe!important;box-shadow:0 12px 30px rgba(15,23,42,.14)!important;}
  .sidebar{width:84vw!important;max-width:320px!important;transform:translateX(-105%)!important;z-index:10000!important;overflow-y:auto!important;}
  .sidebar.open{transform:translateX(0)!important;}
  .main{margin-left:0!important;padding:16px 14px 98px!important;}
  .sessionTopBar{display:none!important;}
  .hero{padding:22px!important;border-radius:24px!important;}
  .grid2,.grid3,.liveTotals{grid-template-columns:1fr!important;}
  input,textarea,select{font-size:16px!important;}
}
@media(max-width:560px){
  .hero h1,h1{font-size:30px!important;}
  .panel{padding:18px!important;border-radius:22px!important;}
  .itemRow{grid-template-columns:1fr!important;}
  .itemRow output,.itemRow .removeItem{grid-column:auto!important;}
  .quoteTranslateBox .btn{width:100%!important;}
}

/* ============================================================
   V10.2 — FIX CLIENTES / RESPONSIVE OVERFLOW
   Corrige página /clientes cortada, tabela a sair do card e botões fora do ecrã.
   ============================================================ */
html,body{max-width:100%;overflow-x:hidden!important;}
.sidebar{width:248px!important;overflow-x:hidden!important;padding:22px 18px!important;}
.sidebar .brand{min-width:0!important;gap:10px!important;}
.sidebar .brand>div{min-width:0!important;overflow:hidden!important;}
.sidebar .brand strong,.sidebar .brand span{display:block!important;max-width:160px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.main{margin-left:248px!important;width:calc(100% - 248px)!important;max-width:calc(100% - 248px)!important;padding:28px!important;overflow-x:hidden!important;}
.twoCols{grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr)!important;align-items:start!important;gap:20px!important;}
.panel,.card,.hero{min-width:0!important;max-width:100%!important;overflow:hidden!important;}
.clientsPanel{overflow:hidden!important;}
.clientsTableWrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;border-radius:18px!important;border:1px solid #e2e8f0!important;background:#fff!important;}
.clientsTable{width:100%!important;min-width:620px!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;}
.clientsTable th,.clientsTable td{padding:14px 16px!important;vertical-align:middle!important;color:#0f172a!important;border-bottom:1px solid #edf2f7!important;}
.clientsTable th{background:#f1f7ff!important;color:#475569!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.06em!important;font-weight:800!important;}
.clientsTable th:nth-child(1){width:31%!important;}
.clientsTable th:nth-child(2){width:31%!important;}
.clientsTable th:nth-child(3){width:13%!important;}
.clientsTable th:nth-child(4){width:14%!important;}
.clientsTable th:nth-child(5){width:110px!important;}
.clientsTable td{word-break:break-word!important;}
.clientsTable .muted{color:#64748b!important;font-weight:500!important;}
.clientActionCell{text-align:right!important;white-space:nowrap!important;}
.clientOpenBtn{min-width:82px!important;min-height:42px!important;padding:10px 14px!important;}
.panelHead{gap:14px!important;}
.panelHead h2{margin:0!important;}
@media(max-width:1180px){
  .twoCols{grid-template-columns:1fr!important;}
}
@media(max-width:980px){
  .sidebar{width:84vw!important;max-width:320px!important;padding:22px 18px!important;}
  .main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:16px 14px 98px!important;}
  .clientsTable{min-width:560px!important;}
}
@media(max-width:640px){
  .clientsTableWrap{border:0!important;background:transparent!important;overflow:visible!important;}
  .clientsTable,.clientsTable thead,.clientsTable tbody,.clientsTable tr,.clientsTable th,.clientsTable td{display:block!important;width:100%!important;min-width:0!important;}
  .clientsTable thead{display:none!important;}
  .clientsTable tr{background:#fff!important;border:1px solid #dbeafe!important;border-radius:20px!important;margin-bottom:12px!important;padding:12px!important;box-shadow:0 10px 26px rgba(37,99,235,.08)!important;}
  .clientsTable td{border:0!important;padding:7px 4px!important;}
  .clientActionCell{text-align:left!important;padding-top:12px!important;}
  .clientOpenBtn{width:100%!important;}
}

/* ============================================================
   V10.3 — GLOBAL LAYOUT RESET / SAAS RESPONSIVE FIX
   Aplica a TODAS as páginas: dashboard, clientes, novo orçamento,
   empresa, equipa, integrações, conta, métricas e onboarding.
   Objetivo: acabar com conteúdo cortado, scroll horizontal e grids rígidos.
   ============================================================ */
html,
body{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}
body{
  min-height:100vh!important;
}
img,svg,canvas,video,table{
  max-width:100%!important;
}
input,textarea,select,button{
  max-width:100%!important;
}
.sidebar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  bottom:0!important;
  width:240px!important;
  max-width:240px!important;
  min-width:240px!important;
  padding:20px 16px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  z-index:1000!important;
}
.sidebar .brand{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.sidebar .brand img,
.sidebar .brandLogoImg,
.sidebar .logoSymbol{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  object-fit:contain!important;
  border-radius:14px!important;
  background:#fff!important;
}
.sidebar .brand>div{
  min-width:0!important;
  overflow:hidden!important;
}
.sidebar .brand strong,
.sidebar .brand span{
  display:block!important;
  max-width:145px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
.sidebar nav,
.sidebar nav a{
  min-width:0!important;
  max-width:100%!important;
}
.sidebar nav a{
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
.userCard{
  max-width:100%!important;
  overflow:hidden!important;
}
.userMeta,
.userMeta strong,
.userMeta small,
.userMeta em{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
.main{
  margin-left:240px!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  padding:28px clamp(16px,2.2vw,32px)!important;
  overflow-x:hidden!important;
}
.sessionTopBar,
.hero,
.panel,
.card,
.chartCard,
.tableWrap,
.clientsTableWrap,
.aiBox,
.quoteForm{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.hero,
.sessionTopBar{
  overflow:hidden!important;
}
.twoCols,
.grid2,
.grid3,
.cards,
.liveTotals,
.quoteTranslateBox,
.dashboardGrid,
.metricsGrid,
.integrationsGrid{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.twoCols{
  display:grid!important;
  grid-template-columns:minmax(280px,420px) minmax(0,1fr)!important;
  gap:20px!important;
  align-items:start!important;
}
.twoCols.wideLeft{
  grid-template-columns:minmax(300px,430px) minmax(0,1fr)!important;
}
.grid2{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}
.grid3{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}
.cards,
.metricsGrid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
}
.liveTotals{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.liveTotals span{
  min-width:0!important;
  color:#ffffff!important;
  background:linear-gradient(135deg,#2563eb,#4f46e5)!important;
  border-radius:18px!important;
  padding:16px!important;
  box-shadow:0 12px 28px rgba(37,99,235,.16)!important;
}
.liveTotals span,
.liveTotals b{
  color:#ffffff!important;
}
.quoteTranslateBox{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(180px,220px) auto!important;
  gap:12px!important;
  align-items:center!important;
}
.formStack label,
.formStack input,
.formStack textarea,
.formStack select{
  min-width:0!important;
}
.itemLabels,
.itemRow{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  grid-template-columns:minmax(70px,.55fr) minmax(88px,.7fr) minmax(180px,1.7fr) minmax(110px,.9fr) minmax(110px,.9fr) 46px!important;
}
.itemRow>*{
  min-width:0!important;
}
.descInput{
  min-width:0!important;
  width:100%!important;
}
.tableWrap,
.clientsTableWrap{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
}
.dataTable,
.clientsTable,
table{
  width:100%!important;
  border-collapse:separate!important;
}
.clientsTable{
  min-width:640px!important;
  table-layout:fixed!important;
}
.clientsTable th,
.clientsTable td{
  color:#0f172a!important;
}
.clientActionCell{
  text-align:right!important;
  white-space:nowrap!important;
}
.panelHead{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}
.legalFooter{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
}
@media(max-width:1280px){
  .cards,.metricsGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .twoCols,.twoCols.wideLeft{grid-template-columns:1fr!important;}
}
@media(max-width:1100px){
  .grid3,.liveTotals{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .quoteTranslateBox{grid-template-columns:1fr!important;}
  .quoteTranslateBox select,.quoteTranslateBox button{width:100%!important;}
}
@media(max-width:980px){
  body{padding-top:58px!important;}
  .mobileMenuToggle{
    display:inline-flex!important;
    position:fixed!important;
    top:12px!important;
    left:12px!important;
    z-index:11000!important;
  }
  .sidebar{
    width:86vw!important;
    min-width:0!important;
    max-width:330px!important;
    transform:translateX(-105%)!important;
    transition:transform .22s ease!important;
    z-index:10000!important;
  }
  .sidebar.open{transform:translateX(0)!important;}
  .main{
    margin-left:0!important;
    width:100%!important;
    max-width:100%!important;
    padding:16px 14px 100px!important;
  }
  .sessionTopBar{display:none!important;}
  .hero{padding:22px!important;border-radius:24px!important;}
  .hero h1,h1{font-size:clamp(28px,8vw,38px)!important;line-height:1.05!important;}
  .grid2,.grid3,.cards,.metricsGrid,.liveTotals{grid-template-columns:1fr!important;}
  .panel{padding:20px!important;border-radius:24px!important;}
  input,textarea,select{font-size:16px!important;}
  .itemLabels{display:none!important;}
  .itemRow{
    grid-template-columns:1fr 1fr!important;
    background:#fff!important;
    border:1px solid #dbeafe!important;
    border-radius:20px!important;
    padding:12px!important;
    gap:10px!important;
  }
  .itemRow .descInput{grid-column:1/-1!important;}
  .itemRow output{grid-column:1/2!important;justify-content:flex-start!important;}
  .itemRow .removeItem{grid-column:2/3!important;width:100%!important;}
}
@media(max-width:640px){
  .main{padding-left:12px!important;padding-right:12px!important;}
  .hero{margin-bottom:14px!important;}
  .panel{padding:16px!important;}
  .formActions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .formActions .btn,.btn.big{width:100%!important;}
  .itemRow{grid-template-columns:1fr!important;}
  .itemRow output,.itemRow .removeItem{grid-column:auto!important;}
  .clientsTableWrap{overflow:visible!important;background:transparent!important;border:0!important;}
  .clientsTable,.clientsTable thead,.clientsTable tbody,.clientsTable tr,.clientsTable th,.clientsTable td{display:block!important;width:100%!important;min-width:0!important;}
  .clientsTable thead{display:none!important;}
  .clientsTable tr{background:#fff!important;border:1px solid #dbeafe!important;border-radius:20px!important;margin-bottom:12px!important;padding:12px!important;box-shadow:0 10px 26px rgba(37,99,235,.08)!important;}
  .clientsTable td{border:0!important;padding:7px 4px!important;}
  .clientActionCell{text-align:left!important;padding-top:12px!important;}
  .clientOpenBtn{width:100%!important;}
}


/* ============================================================
   V10.4 Render + Global Layout Safety Fix
   Corrige corte horizontal em todas as páginas e evita elementos
   a ultrapassar o viewport.
============================================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas { max-width: 100%; height: auto; }
.app-layout, .dashboard-shell, .layout, .app-shell {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.sidebar, .app-sidebar {
  flex: 0 0 240px;
  max-width: 240px;
}
.main-content, .app-main, main, .page-main {
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}
.page-container, .content-container, .container, .dashboard-container {
  width: 100%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  min-width: 0 !important;
}
.card, .glass-card, .panel, .premium-card, .quote-card {
  min-width: 0;
  max-width: 100%;
}
.form-grid, .quote-layout, .dashboard-grid, .cards-grid, .metrics-grid {
  min-width: 0;
}
input, select, textarea, button {
  max-width: 100%;
}
.table-wrap, .table-responsive, .client-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  max-width: 100%;
}
@media (max-width: 1100px) {
  .quote-layout, .dashboard-grid, .clients-grid, .company-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  body { overflow-x: hidden !important; }
  .sidebar, .app-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 9999;
    transition: left .25s ease;
  }
  .sidebar.open, .app-sidebar.open { left: 0; }
  .main-content, .app-main, main, .page-main {
    margin-left: 0 !important;
    padding: 16px !important;
  }
  .hero-card, .topbar, .session-card, .glass-card, .premium-card {
    border-radius: 20px !important;
  }
  .form-grid, .two-col, .three-col, .clients-grid, .quote-lines-grid {
    grid-template-columns: 1fr !important;
  }
}


/* V10.5 sidebar session card fix */
.sidebar{
  overflow-x:hidden !important;
}

.userCard,
.sidebar .userCard{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

.userMeta{
  min-width:0 !important;
  flex:1 !important;
}

.userMeta p,
.userMeta span,
.userMeta div{
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

.sidebar nav{
  padding-bottom:40px;
}


/* V10.6 final dashboard/sidebar alignment QA fix
   Corrige cartão de sessão da sidebar, top clientes e overflow global. */
html, body{
  max-width:100% !important;
  overflow-x:hidden !important;
}
.main, .page, .panel, .saasPanel, .card, .hero, .sessionTopBar{
  min-width:0 !important;
  box-sizing:border-box !important;
}
.sidebar .userCard{
  display:grid !important;
  grid-template-columns:38px minmax(0,1fr) !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  max-width:100% !important;
  padding:12px 10px !important;
  margin:14px 0 16px !important;
  border-radius:18px !important;
  overflow:hidden !important;
}
.sidebar .userCard .userAvatar{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  font-size:16px !important;
  border-radius:14px !important;
}
.sidebar .userCard .userMeta{
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  display:block !important;
}
.sidebar .userCard .sessionLabel,
.sidebar .userCard .userMeta strong,
.sidebar .userCard .userMeta small,
.sidebar .userCard .userMeta em{
  display:block !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.sidebar .userCard .sessionLabel{
  font-size:10px !important;
  line-height:1.15 !important;
  letter-spacing:.08em !important;
}
.sidebar .userCard .userMeta strong{
  font-size:14px !important;
  line-height:1.18 !important;
  margin-top:2px !important;
}
.sidebar .userCard .userMeta small{
  font-size:11px !important;
  line-height:1.2 !important;
  margin-top:2px !important;
}
.sidebar .userCard .userMeta em{
  width:max-content !important;
  max-width:100% !important;
  margin-top:7px !important;
  padding:6px 9px !important;
  font-size:11px !important;
  line-height:1 !important;
}
.topClientList{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}
.topClientList div{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  padding:12px 0 !important;
}
.topClientList span{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.topClientList strong{
  min-width:max-content !important;
  max-width:160px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  text-align:right !important;
  padding-right:2px !important;
  color:#0f172a !important;
  background:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
}
.saasDashboardGrid > *, .saasPanel > *, .quoteMiniCard > *{
  min-width:0 !important;
}
@media (max-width: 980px){
  .sidebar .userCard{
    grid-template-columns:36px minmax(0,1fr) !important;
    padding:10px !important;
  }
  .topClientList strong{max-width:120px !important;}
}

/* ============================================================
   V11.1 — Correções globais de layout SaaS
   Objetivo: esconder login social ainda não ativo e corrigir páginas
   demasiado largas/vazias em desktop.
   ============================================================ */
.authDivider,
.authMethods,
.authMethodHint,
#authMethodHint{
  display:none !important;
}

@media (min-width: 981px){
  .main{
    margin-left:248px !important;
    width:calc(100vw - 248px) !important;
    max-width:calc(100vw - 248px) !important;
    padding:28px 36px 96px !important;
    overflow-x:hidden !important;
  }
  .main > .sessionTopBar,
  .main > .flash,
  .main > .hero,
  .main > .premiumHero,
  .main > .saasHero,
  .main > .onboardingBanner,
  .main > .saasKpiGrid,
  .main > .saasDashboardGrid,
  .main > .cards,
  .main > .cards-grid,
  .main > .card,
  .main > .panel,
  .main > .saasPanel,
  .main > .formGrid,
  .main > form,
  .main > .legalFooter{
    width:100% !important;
    max-width:1320px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* Hero das páginas internas: menos vazio, mais compacto e legível */
.hero,
.saasHero,
.premiumHero{
  min-height:auto !important;
  padding:24px 28px !important;
  gap:22px !important;
  align-items:center !important;
  overflow:hidden !important;
}
.hero > div:first-child,
.saasHero > div:first-child,
.premiumHero > div:first-child{
  max-width:760px !important;
  min-width:0 !important;
}
.hero h1,
.saasHero h1,
.premiumHero h1{
  font-size:clamp(30px, 3vw, 46px) !important;
  line-height:1.04 !important;
  letter-spacing:-.055em !important;
  max-width:820px !important;
}
.hero p,
.saasHero p,
.premiumHero p{
  max-width:760px !important;
  line-height:1.45 !important;
}
.heroActionStack{
  margin-left:auto !important;
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:flex-end !important;
  gap:12px !important;
  max-width:440px !important;
}

/* Evita cartões perdidos só à esquerda quando existem 2 cards */
.cards-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr)) !important;
  gap:18px !important;
}
.cards-grid > .card{
  min-width:0 !important;
  height:100% !important;
}

/* Formulários e painéis: largura controlada e sem cortes laterais */
.formGrid,
.formGrid.compact{
  width:100% !important;
  max-width:1320px !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:18px !important;
}
.formGrid.compact{
  grid-template-columns:minmax(0,1fr) 220px !important;
}
.formGrid input,
.formGrid select,
.formGrid textarea,
.card input,
.card select,
.card textarea{
  min-width:0 !important;
}

/* Dashboard: gráficos com altura mais equilibrada em desktop */
.saasDashboardGrid{
  display:grid !important;
  grid-template-columns:minmax(0,2fr) minmax(320px,1fr) !important;
  gap:18px !important;
  align-items:stretch !important;
}
.saasDashboardGrid > .saasPanel,
.saasDashboardGrid > article,
.saasDashboardGrid > aside{
  min-width:0 !important;
}
.chartPanel canvas{
  max-height:300px !important;
}
.saasKpiGrid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
}

/* Rodapé alinhado com o conteúdo, sem parecer perdido no fundo */
.legalFooter{
  margin-top:24px !important;
  padding:18px 20px !important;
  border-radius:22px !important;
  background:rgba(255,255,255,.72) !important;
  border:1px solid #dbeafe !important;
}

@media (max-width: 980px){
  .main{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    padding:64px 14px 88px !important;
    overflow-x:hidden !important;
  }
  .hero,
  .saasHero,
  .premiumHero{
    display:grid !important;
    padding:20px !important;
    border-radius:24px !important;
  }
  .heroActionStack{
    margin-left:0 !important;
    max-width:none !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
  }
  .cards-grid,
  .saasKpiGrid,
  .saasDashboardGrid,
  .formGrid,
  .formGrid.compact{
    grid-template-columns:1fr !important;
    max-width:100% !important;
  }
}

/* V11.2 — esconder métodos de login ainda não configurados */
.oauthOptions,.authProviders,.socialLogin,.passkeyLogin,.ssoLogin,.loginProviderRow,.provider-login,.auth-divider{display:none!important;}
body.login-page .oauthOptions, body.login-page .authProviders{display:none!important;}

/* ============================================================
   V12.1 — Stripe/auth/mobile corrections from production QA
   Final override layer to neutralize older conflicting rules.
   ============================================================ */
.passwordWrap{position:relative!important;display:block!important;width:100%!important;}
.passwordWrap input{padding-right:52px!important;}
.passwordEye{position:absolute!important;right:8px!important;top:50%!important;transform:translateY(-50%)!important;width:40px!important;height:40px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#334155!important;cursor:pointer!important;padding:0!important;z-index:2!important;}
.passwordEye:hover,.passwordEye:focus-visible{background:#eaf4ff!important;color:#1d4ed8!important;outline:2px solid transparent!important;box-shadow:0 0 0 3px rgba(37,99,235,.14)!important;}
.passwordIcon{width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
.passwordIcon[hidden]{display:none!important;}

.paymentSecureCard{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:12px!important;}
.secureCheckoutForm{margin-top:8px!important;}
.secureCheckoutButton{width:100%!important;display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;gap:14px!important;text-align:left!important;align-items:center!important;padding:16px 18px!important;}
.secureCheckoutButton>span:last-child{display:grid!important;gap:3px!important;}
.secureCheckoutButton strong{font-size:16px!important;color:#fff!important;}
.secureCheckoutButton small{font-size:12px!important;color:rgba(255,255,255,.86)!important;font-weight:700!important;}
.secureCheckoutIcon{width:42px!important;height:42px!important;border-radius:14px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.18)!important;}
.secureCheckoutIcon svg{width:24px!important;height:24px!important;fill:none!important;stroke:#fff!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
.checkoutTrustLine{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:4px!important;}
.checkoutTrustLine span{padding:7px 10px!important;border-radius:999px!important;background:#eff6ff!important;color:#334155!important;border:1px solid #dbeafe!important;font-size:12px!important;font-weight:800!important;}
.checkoutUnavailable{padding:16px!important;border-radius:18px!important;background:#fff7ed!important;border:1px solid #fed7aa!important;color:#9a3412!important;}
.checkoutUnavailable p{margin:5px 0 0!important;color:#9a3412!important;}
.mobileNavIcon{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;}
.mobileNavIcon svg{width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;}

@media(max-width:980px){
  body.mobile-menu-open{overflow:hidden!important;}
  body.mobile-menu-open::after{content:""!important;position:fixed!important;inset:0!important;background:rgba(15,23,42,.38)!important;backdrop-filter:blur(2px)!important;z-index:9997!important;}
  .mobileMenuToggle{display:grid!important;place-items:center!important;position:fixed!important;top:10px!important;left:10px!important;width:44px!important;height:44px!important;padding:0!important;border-radius:14px!important;z-index:10001!important;box-shadow:0 10px 28px rgba(15,23,42,.18)!important;}
  .sidebar{position:fixed!important;top:10px!important;bottom:10px!important;left:10px!important;right:auto!important;width:min(86vw,320px)!important;max-width:320px!important;max-height:calc(100dvh - 20px)!important;border-radius:24px!important;overflow-y:auto!important;transform:translateX(calc(-100% - 28px))!important;transition:transform .22s ease!important;z-index:10000!important;box-shadow:0 28px 80px rgba(15,23,42,.26)!important;}
  .sidebar.open{transform:translateX(0)!important;left:10px!important;}
  .sidebar nav{gap:4px!important;}
  .sidebar nav>a{padding:10px 12px!important;min-height:42px!important;}
  .main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:64px 12px calc(128px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important;}
  .sessionTopBar{margin-top:0!important;margin-bottom:12px!important;}
  .hero,.saasHero,.premiumHero{margin-top:0!important;padding:18px!important;gap:14px!important;}
  .hero h1,.saasHero h1,.premiumHero h1,h1{font-size:clamp(26px,8vw,34px)!important;}
  .formGrid,.formGrid.compact,.cards-grid,.billingOverview,.accountLowerGrid{grid-template-columns:1fr!important;}
  .main>.card:last-of-type,.main>.panel:last-of-type,.main>form:last-of-type,.main>.cards-grid:last-of-type,.main>.accountLowerGrid:last-of-type{margin-bottom:24px!important;}
}

@media(max-width:760px){
  body{padding-bottom:calc(104px + env(safe-area-inset-bottom))!important;}
  .mobileBottomNav{position:fixed!important;left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;padding:7px!important;border:1px solid #dbeafe!important;border-radius:22px!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(18px)!important;box-shadow:0 16px 45px rgba(15,23,42,.18)!important;z-index:9996!important;}
  .mobileBottomNav a{min-width:0!important;min-height:54px!important;padding:7px 2px!important;border-radius:16px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:3px!important;color:#334155!important;text-decoration:none!important;}
  .mobileBottomNav a.primary{transform:translateY(-7px)!important;background:linear-gradient(135deg,#22c6e8,#2563eb,#7c3aed)!important;color:#fff!important;}
  .mobileBottomNav b{font-size:9.5px!important;line-height:1.05!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
  .main{padding:62px 10px calc(138px + env(safe-area-inset-bottom))!important;}
  .stickyActionBar,.quoteForm .formActions{bottom:calc(92px + env(safe-area-inset-bottom))!important;}
  input,select,textarea{min-height:46px!important;padding:10px 12px!important;border-radius:14px!important;font-size:15px!important;}
  textarea{min-height:108px!important;}
  .btn,button,.authSubmit{min-height:44px!important;padding:10px 13px!important;}
  .passwordEye{min-height:38px!important;width:38px!important;height:38px!important;padding:0!important;}
  .authProPage{padding:58px 10px 22px!important;place-items:start center!important;}
  .authProCard{padding:24px 16px 18px!important;border-radius:22px!important;}
  .authBackHome{top:10px!important;left:10px!important;padding:8px 11px!important;}
  .authCreateBox{margin-top:20px!important;padding:15px!important;}
  .secureCheckoutButton{grid-template-columns:40px minmax(0,1fr)!important;padding:14px!important;}
  .checkoutTrustLine{display:grid!important;grid-template-columns:1fr!important;}
}


/* V13 — ORZUVO authenticated product identity */
:root{--primary:#635bff;--primary2:#8b5cf6}
.brand strong,.sessionTopRight span{letter-spacing:.02em}


/* ============================================================
   V13.3 — REGISTO, NAVEGAÇÃO E CHECKBOXES
   URL: /registar | Template: templates/auth_register.html
   ALTERAR AQUI: alinhamento dos consentimentos e botão para voltar ao site.
   ============================================================ */
.brandHomeLink{
  padding:0!important;
  color:inherit!important;
  text-decoration:none!important;
}
.brandHomeLink:hover{
  background:transparent!important;
  color:inherit!important;
  transform:none!important;
}
.authPublicBack{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  padding:10px 14px;
  border:1px solid #bfdbfe;
  border-radius:14px;
  background:rgba(255,255,255,.88);
  color:#1d4ed8;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 10px 26px rgba(37,99,235,.08);
}
.authPublicBack:hover{transform:translateY(-1px);background:#fff;}
.grid-form .registerConsent{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:start!important;
  gap:12px!important;
  width:100%!important;
}
.grid-form .registerConsent input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  max-width:18px!important;
  padding:0!important;
  margin:2px 0 0!important;
  border:initial!important;
  border-radius:3px!important;
  background:initial!important;
  box-shadow:none!important;
  justify-self:start!important;
  align-self:start!important;
  accent-color:var(--brand,#635BFF);
}
.grid-form .registerConsent span{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  line-height:1.45!important;
}
@media(max-width:760px){
  .authPublicBack{width:100%;justify-content:center;}
}

/* V13.3 — formulários de ações seguras sem alterar o alinhamento dos botões */
.inlineForm{display:inline-flex!important;margin:0!important;padding:0!important;}
.inlineForm button{margin:0!important;}
