:root {
  --bg: #f4f7fb;
  --ink: #0d1b2a;
  --muted: #516079;
  --card: #ffffff;
  --surface-1: #edf3ac;
  --surface-2: #e1e98f;
  --surface-3: #d4df77;
  --line: #d9e1ef;
  --brand: #0b7a75;
  --brand-2: #0d5f9a;
  --ok: #176a3a;
  --warn: #9a5b0d;
  --panel-deep-1: rgba(5, 47, 67, 0.94);
  --panel-deep-2: rgba(8, 75, 98, 0.93);
  --panel-deep-3: rgba(16, 103, 133, 0.93);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Sora", "Nunito Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(11, 122, 117, 0.22) 0, transparent 36%),
    radial-gradient(circle at 92% 12%, rgba(13, 95, 154, 0.22) 0, transparent 38%),
    var(--bg);
}

body.site2-index,
body.site2-portal {
  font-size: 15px;
  background:
    linear-gradient(rgba(7, 26, 38, 0.45), rgba(7, 26, 38, 0.45)),
    url('/images/fundotela_site2_index.jpg') center/cover fixed no-repeat;
}

body.site2-portal[data-theme="light"] {
  color: #0f172a;
  background:
    linear-gradient(rgba(245, 249, 255, 0.9), rgba(245, 249, 255, 0.9)),
    url('/images/fundotela_site2_index.jpg') center/cover fixed no-repeat;
}

body.site2-portal[data-theme="mint"] {
  color: #052e2b;
  background:
    linear-gradient(rgba(236, 253, 245, 0.9), rgba(220, 252, 231, 0.88)),
    url('/images/fundotela_site2_index.jpg') center/cover fixed no-repeat;
}

body.site2-portal[data-theme="graphite"] {
  color: #e5e7eb;
  background:
    linear-gradient(rgba(3, 7, 18, 0.92), rgba(15, 23, 42, 0.9)),
    url('/images/fundotela_site2_index.jpg') center/cover fixed no-repeat;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  margin-bottom: 14px;
}

.logo {
  width: 170px;
  height: auto;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.menu-recursive {
  position: relative;
}

.menu-recursive > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c7d3e4;
  background: linear-gradient(145deg, #f4f8ff, #e8eef8);
  font-weight: 700;
  cursor: pointer;
}

.menu-recursive > summary::-webkit-details-marker {
  display: none;
}

.gear-icon {
  font-size: 15px;
  line-height: 1;
}

.menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 270px;
  border: 1px solid #c6d5ea;
  border-radius: 12px;
  background: linear-gradient(160deg, #f8fccc, #e7f1a8);
  box-shadow: 0 16px 28px rgba(8, 26, 40, 0.2);
  padding: 8px;
  z-index: 60;
}

.menu-popover a,
.menu-popover summary {
  display: block;
  padding: 8px 9px;
  border-radius: 8px;
  color: #11314b;
  font-weight: 600;
}

.menu-popover a:hover,
.menu-popover summary:hover {
  background: rgba(255, 255, 255, 0.6);
}

.menu-popover details summary {
  cursor: pointer;
  list-style: none;
}

.menu-popover details summary::-webkit-details-marker {
  display: none;
}

.menu-popover .submenu {
  padding-left: 8px;
  margin-top: 4px;
}

.menu-popover .submenu a {
  font-size: 13px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.btn-outline {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline:hover {
  border-color: #b7c8e0;
  box-shadow: 0 8px 18px rgba(9, 26, 45, 0.14);
}

.btn-brand:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 22px rgba(6, 54, 89, 0.34);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid rgba(215, 239, 255, 0.95);
  outline-offset: 2px;
}

.hero {
  background: linear-gradient(130deg, rgba(11, 122, 117, 0.95), rgba(13, 95, 154, 0.95));
  color: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 55px rgba(9, 26, 45, 0.22);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  opacity: 0.95;
}

.welcome-panel {
  position: relative;
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(219, 236, 251, 0.45);
  background:
    linear-gradient(135deg, rgba(5, 47, 67, 0.9), rgba(8, 75, 98, 0.88) 45%, rgba(16, 103, 133, 0.88));
  color: #f7fbff;
  box-shadow: 0 22px 48px rgba(2, 18, 29, 0.3);
  overflow: hidden;
  animation: welcomeRise 540ms ease-out;
}

.welcome-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -88px;
  top: -138px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.welcome-head {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
  color: rgba(219, 247, 255, 0.9);
}

.welcome-panel .title {
  margin: 0;
  color: #ffffff;
}

.welcome-panel .subtitle {
  margin: 10px 0 0;
  color: rgba(238, 249, 255, 0.93);
}

.welcome-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.welcome-item {
  border-radius: 12px;
  border: 1px solid rgba(203, 233, 245, 0.32);
  background: rgba(6, 35, 52, 0.36);
  padding: 12px;
  backdrop-filter: blur(2px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.welcome-item:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 243, 252, 0.58);
  background: rgba(7, 43, 62, 0.56);
  box-shadow: 0 14px 26px rgba(3, 17, 28, 0.32);
}

.welcome-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.welcome-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(205, 234, 247, 0.35);
  background: linear-gradient(135deg, rgba(17, 98, 127, 0.48), rgba(19, 69, 99, 0.56));
  color: rgba(238, 249, 255, 0.98);
}

.welcome-item-processo .welcome-icon {
  border-color: rgba(166, 228, 255, 0.55);
  background: linear-gradient(135deg, rgba(22, 132, 177, 0.58), rgba(14, 83, 133, 0.62));
}

.welcome-item-performance .welcome-icon {
  border-color: rgba(180, 247, 215, 0.55);
  background: linear-gradient(135deg, rgba(27, 151, 115, 0.58), rgba(20, 101, 85, 0.62));
}

.welcome-item-confianca .welcome-icon {
  border-color: rgba(255, 221, 173, 0.58);
  background: linear-gradient(135deg, rgba(206, 126, 42, 0.6), rgba(149, 87, 28, 0.62));
}

.welcome-icon svg {
  width: 18px;
  height: 18px;
}

.welcome-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 0;
}

.welcome-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(236, 248, 255, 0.9);
}

@keyframes welcomeRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: linear-gradient(135deg, var(--panel-deep-1), var(--panel-deep-2) 45%, var(--panel-deep-3));
  border: 1px solid rgba(219, 236, 251, 0.45);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 34px rgba(2, 18, 29, 0.28);
  color: #f3f9ff;
}

body.site2-portal[data-theme="light"] .card {
  background: linear-gradient(135deg, rgba(233, 243, 255, 0.96), rgba(219, 234, 254, 0.95) 45%, rgba(224, 242, 254, 0.95));
  border-color: rgba(148, 163, 184, 0.4);
  color: #0f172a;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

body.site2-portal[data-theme="mint"] .card {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.93) 45%, rgba(153, 246, 228, 0.9));
  border-color: rgba(16, 185, 129, 0.35);
  color: #064e3b;
  box-shadow: 0 16px 28px rgba(4, 120, 87, 0.12);
}

body.site2-portal[data-theme="graphite"] .card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.94) 45%, rgba(30, 41, 59, 0.93));
  border-color: rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.35);
}

body.site2-portal[data-theme="light"] .welcome-panel {
  background: linear-gradient(135deg, rgba(233, 243, 255, 0.98), rgba(219, 234, 254, 0.97) 45%, rgba(224, 242, 254, 0.97));
  border-color: rgba(148, 163, 184, 0.45);
  color: #0f172a;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

body.site2-portal[data-theme="mint"] .welcome-panel {
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.98), rgba(167, 243, 208, 0.96) 45%, rgba(153, 246, 228, 0.94));
  border-color: rgba(16, 185, 129, 0.4);
  color: #064e3b;
  box-shadow: 0 16px 28px rgba(4, 120, 87, 0.12);
}

body.site2-portal[data-theme="graphite"] .welcome-panel {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.96) 45%, rgba(30, 41, 59, 0.95));
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.35);
}

body.site2-portal[data-theme="light"] .title,
body.site2-portal[data-theme="light"] label {
  color: #0f172a;
}

body.site2-portal[data-theme="mint"] .title,
body.site2-portal[data-theme="mint"] label {
  color: #064e3b;
}

body.site2-portal[data-theme="graphite"] .title,
body.site2-portal[data-theme="graphite"] label {
  color: #f8fafc;
}

body.site2-portal[data-theme="light"] .portal-collapsible-title,
body.site2-portal[data-theme="light"] .welcome-panel .title,
body.site2-portal[data-theme="light"] .welcome-item strong {
  color: #0f172a;
}

body.site2-portal[data-theme="mint"] .portal-collapsible-title,
body.site2-portal[data-theme="mint"] .welcome-panel .title,
body.site2-portal[data-theme="mint"] .welcome-item strong {
  color: #064e3b;
}

body.site2-portal[data-theme="graphite"] .portal-collapsible-title,
body.site2-portal[data-theme="graphite"] .welcome-panel .title,
body.site2-portal[data-theme="graphite"] .welcome-item strong {
  color: #f8fafc;
}

body.site2-portal[data-theme="light"] .subtitle,
body.site2-portal[data-theme="light"] .small {
  color: #334155;
}

body.site2-portal[data-theme="mint"] .subtitle,
body.site2-portal[data-theme="mint"] .small {
  color: #065f46;
}

body.site2-portal[data-theme="graphite"] .subtitle,
body.site2-portal[data-theme="graphite"] .small {
  color: #cbd5e1;
}

body.site2-portal[data-theme="light"] .welcome-item {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(148, 163, 184, 0.45);
}

body.site2-portal[data-theme="mint"] .welcome-item {
  background: rgba(236, 253, 245, 0.72);
  border-color: rgba(16, 185, 129, 0.4);
}

body.site2-portal[data-theme="graphite"] .welcome-item {
  background: rgba(30, 41, 59, 0.66);
  border-color: rgba(148, 163, 184, 0.4);
}

body.site2-portal[data-theme="light"] .welcome-item p,
body.site2-portal[data-theme="light"] .eyebrow {
  color: #334155;
}

body.site2-portal[data-theme="mint"] .welcome-item p,
body.site2-portal[data-theme="mint"] .eyebrow {
  color: #065f46;
}

body.site2-portal[data-theme="graphite"] .welcome-item p,
body.site2-portal[data-theme="graphite"] .eyebrow {
  color: #cbd5e1;
}

.theme-select-wrap {
  display: grid;
  gap: 4px;
  margin: 6px 0 2px;
}

.theme-select-wrap label {
  margin: 0;
  font-size: 11px;
  color: #11314b;
  text-align: center;
}

.theme-select {
  width: 75%;
  justify-self: center;
  border-radius: 8px;
  border: 1px solid #c6d5ea;
  padding: 6px 8px;
  font-size: 12px;
  background: #fff;
  color: #11314b;
}

/* Notas do prestador: leitura e edicao com rolagem e redimensionamento */
#lead-close-notes,
.lead-notes-input,
.lead-notes-readonly {
  resize: vertical;
  min-height: 92px;
  max-height: 360px;
  overflow: auto;
}

.lead-notes-preview {
  margin-top: 4px;
  max-height: 88px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Notas do prestador: area expansivel */
#lead-close-notes,
.lead-notes-input {
  resize: vertical;
  min-height: 92px;
  max-height: 320px;
}

body.site2-index .card,
body.site2-portal .card {
  background: linear-gradient(135deg, var(--panel-deep-1), var(--panel-deep-2) 45%, var(--panel-deep-3));
}

.portal-welcome {
  margin-top: 14px;
  margin-bottom: 12px;
}

.purchase-panels {
  margin-top: 12px;
  margin-bottom: 6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.purchase-panels.dual-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-panels .portal-section {
  margin-top: 0;
}

.portal-summary {
  background: linear-gradient(135deg, rgba(5, 47, 67, 0.95), rgba(8, 75, 98, 0.92) 45%, rgba(16, 103, 133, 0.9));
}

.portal-section {
  margin-top: 12px;
}

.portal-collapsible-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
}

.portal-collapsible-summary .title {
  margin: 0;
}

.portal-collapsible-title {
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
}

.portal-collapsible-summary::-webkit-details-marker {
  display: none;
}

.portal-collapsible-summary::after {
  content: "+";
  margin-left: auto;
  font-weight: 800;
  font-size: 18px;
  color: rgba(178, 236, 255, 0.95);
}

.portal-collapsible[open] .portal-collapsible-summary::after {
  content: "-";
}

.portal-collapsible .list {
  margin-top: 8px;
}

.site2-portal .kpi {
  border: 1px dashed rgba(195, 228, 244, 0.45);
  background: rgba(6, 35, 52, 0.52);
}

.site2-portal .card {
  background: linear-gradient(135deg, var(--panel-deep-1), var(--panel-deep-2) 45%, var(--panel-deep-3));
}

.site2-portal .portal-summary {
  background: linear-gradient(135deg, rgba(5, 47, 67, 0.95), rgba(8, 75, 98, 0.92) 45%, rgba(16, 103, 133, 0.9));
}

.site2-portal .item {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  background: rgba(6, 35, 52, 0.52);
}

.site2-portal .item:hover {
  transform: translateY(-2px);
  border-color: #bfd1e8;
  box-shadow: 0 10px 20px rgba(9, 26, 45, 0.12);
}

.plan h3 {
  margin: 0;
}

.plan .price {
  font-size: 30px;
  font-weight: 800;
  margin: 8px 0 6px;
}

.plan ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.kicker {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.form-card {
  max-width: 520px;
  margin: 20px auto;
}

.title {
  margin: 0 0 8px;
  color: #ffffff;
}

.subtitle {
  margin: 0 0 14px;
  color: rgba(238, 249, 255, 0.9);
}

label {
  display: block;
  font-size: 13px;
  margin: 10px 0 4px;
  color: rgba(236, 248, 255, 0.92);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap .input {
  padding-right: 40px;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  color: var(--muted);
  user-select: none;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row > * {
  flex: 1 1 220px;
}

.status {
  margin-top: 10px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.status.ok { color: #ffffff; }
.status.warn { color: #ffffff; }
.forgot-status.ok { color: #f2c089; }

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  border: 1px dashed rgba(195, 228, 244, 0.45);
  border-radius: 10px;
  padding: 10px;
  background: rgba(6, 35, 52, 0.36);
}

.kpi .n {
  font-size: 26px;
  font-weight: 800;
}

.list {
  display: grid;
  gap: 8px;
}

.leads-scroll-list {
  max-height: 356px;
  overflow-y: auto;
  padding-right: 4px;
}

.leads-scroll-list::-webkit-scrollbar {
  width: 8px;
}

.leads-scroll-list::-webkit-scrollbar-track {
  background: rgba(11, 34, 52, 0.28);
  border-radius: 999px;
}

.leads-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.62);
  border-radius: 999px;
}

.leads-scroll-list::-webkit-scrollbar-thumb:hover {
  background: rgba(186, 230, 253, 0.8);
}

.item {
  border: 1px solid rgba(203, 233, 245, 0.32);
  border-radius: 10px;
  padding: 10px;
  background: rgba(6, 35, 52, 0.36);
}

.lead-item {
  cursor: pointer;
}

.lead-item-selected {
  border-color: #4a6e2f;
  box-shadow: 0 0 0 2px rgba(74, 110, 47, 0.2);
}

.lead-detail-item {
  background: rgba(7, 43, 62, 0.56);
}

body.modal-open {
  overflow: hidden;
}

.lead-modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 120;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lead-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lead-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.lead-modal-dialog {
  position: relative;
  max-width: 640px;
  margin: 8vh auto 0;
  border-radius: 14px;
  border: 1px solid rgba(219, 236, 251, 0.45);
  background: linear-gradient(135deg, var(--panel-deep-1), var(--panel-deep-2) 45%, var(--panel-deep-3));
  box-shadow: 0 24px 40px rgba(2, 18, 29, 0.38);
  color: #f3f9ff;
  padding: 16px;
  transform: translateY(10px) scale(0.985);
  transition: transform 240ms ease, opacity 240ms ease;
  opacity: 0;
}

.lead-modal.open .lead-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lead-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: rgba(241, 251, 255, 0.95);
  font-size: 24px;
  cursor: pointer;
}

.small {
  color: rgba(236, 248, 255, 0.9);
  font-size: 12px;
}

.leads-empty-message {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lead-empty-icon {
  font-size: 14px;
  line-height: 1;
}

.faq-card {
  background: linear-gradient(135deg, var(--panel-deep-1), var(--panel-deep-2) 45%, var(--panel-deep-3));
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid rgba(203, 233, 245, 0.32);
  border-radius: 10px;
  background: rgba(6, 35, 52, 0.36);
  padding: 8px 10px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: rgba(241, 251, 255, 0.98);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: rgba(178, 236, 255, 0.95);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 8px 0 2px;
  color: rgba(236, 248, 255, 0.9);
  line-height: 1.45;
}

.mobile-cta {
  display: none;
}

.site2-footer {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(203, 233, 245, 0.32);
  background: rgba(6, 35, 52, 0.52);
  color: rgba(236, 248, 255, 0.92);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  white-space: normal;
  text-align: center;
}

.site2-footer a {
  color: rgba(178, 236, 255, 0.98);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .grid,
  .kpis,
  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .purchase-panels,
  .purchase-panels.dual-panels {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 26px;
  }

  .menu-popover {
    right: 0;
    left: auto;
    min-width: 240px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding-bottom: 96px;
  }

  .site2-footer {
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
    padding: 12px;
  }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 40;
    text-align: center;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(135deg, #0d7e74, #1459a0);
    box-shadow: 0 16px 30px rgba(5, 31, 54, 0.35);
  }

  .mobile-cta:active {
    transform: translateY(1px);
  }
}

/* Correção para evitar sobreposição dos botões no quadro de pagamento */
.hero-actions {
  display: flex;
  flex-wrap: wrap; /* Permite que os botões quebrem linha se necessário */
  justify-content: center;
  gap: 10px; /* Adiciona espaçamento entre os botões */
}

.hero-actions .btn {
  flex: 1 1 auto; /* Permite que os botões se ajustem ao espaço disponível */
  max-width: 200px; /* Define um tamanho máximo para os botões */
}

.welcome-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.welcome-link-card .welcome-item {
  height: 100%;
}
.welcome-link-card .welcome-item:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  font-size: 16px;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 8px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  z-index: 95;
}

.side-menu {
  position: fixed;
  top: 76px;
  right: 16px;
  width: min(320px, calc(100vw - 24px));
  background: linear-gradient(160deg, #f8fccc, #e7f1a8);
  border: 1px solid #c6d5ea;
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(8, 26, 40, 0.28);
  z-index: 100;
  padding: 14px 12px;
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.side-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.side-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #11314b;
}

.menu-close {
  padding: 5px 10px;
  font-size: 20px;
  line-height: 1;
}

.side-menu-links {
  display: grid;
  gap: 8px;
}

.side-menu-separator {
  height: 1px;
  margin: 4px 10px 2px;
  background: linear-gradient(90deg, rgba(17, 49, 75, 0), rgba(17, 49, 75, 0.45), rgba(17, 49, 75, 0));
}

.side-menu-links .btn {
  background: linear-gradient(135deg, #0b7a75, #0d5f9a);
  color: #ffffff;
  border: 1px solid rgba(186, 230, 253, 0.35);
  text-align: center;
  font-size: 0.75rem;
  padding: 7px 10px;
  width: 75%;
  justify-self: center;
}

.side-menu-links .btn:hover {
  filter: brightness(1.06);
}

.side-menu-links .btn-exit {
  background: #e8d7b1;
  color: #5b4520;
  border-color: rgba(112, 87, 41, 0.35);
  font-size: 0.6rem;
  padding: 4px 6px;
  width: 50%;
  justify-self: center;
}

.portal-home .wrap {
  padding-top: 120px;
}

.portal-home .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  margin: 0;
  height: 72px;
  padding: 0 12px;
  background: linear-gradient(145deg, rgba(4, 22, 34, 0.96), rgba(8, 40, 56, 0.95));
  border-bottom: 1px solid rgba(125, 211, 252, 0.34);
  box-shadow: 0 8px 20px rgba(2, 10, 18, 0.35);
  overflow: hidden;
}

.ticker-logo {
  width: 124px;
}

.ticker-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.ticker-item {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  color: #dbeafe;
  font-size: 12px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ticker-divider {
  color: rgba(147, 197, 253, 0.9);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.ticker-sep {
  color: rgba(191, 219, 254, 0.88);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.ticker-label {
  color: #93c5fd;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

.ticker-value {
  color: #f8fafc;
  font-weight: 800;
  font-size: 14px;
}

.ticker-value-plan-ok {
  color: #86efac;
}

.ticker-value-plan-warn {
  color: #fde68a;
}

.ticker-value-plan-end {
  color: #fca5a5;
}

.ticker-right {
  gap: 6px;
}

.ticker-meta {
  text-align: right;
  color: #cfe8f8;
  line-height: 1.2;
}

.ticker-user {
  font-size: 11px;
  font-weight: 700;
}

.ticker-plan {
  font-size: 11px;
  color: #b9dcf3;
}

.ticker-time {
  font-size: 10px;
  color: #93c5fd;
}

.quick-buy-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
}

.quick-buy-section {
  text-align: center;
}

.quick-buy-section .quick-buy-row {
  justify-content: center;
}

.plano-scoreboard-wrap {
  margin-top: 8px;
  margin-bottom: 10px;
  display: inline-grid;
  gap: 4px;
  justify-items: center;
}

.plano-scoreboard-label {
  color: #cde7f8;
}

.plano-scoreboard {
  min-width: 110px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: linear-gradient(160deg, rgba(6, 28, 42, 0.92), rgba(8, 40, 58, 0.92));
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(2, 10, 18, 0.25);
}

.quick-buy-btn {
  position: relative;
  min-width: 112px;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.quick-buy-icon {
  font-size: 14px;
  line-height: 1;
}

.quick-buy-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: 220px;
  max-width: min(220px, 82vw);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: rgba(3, 22, 36, 0.96);
  color: #e0f2fe;
  font-size: 12px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 8px 22px rgba(2, 10, 18, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 20;
}

.quick-buy-btn:hover .quick-buy-tip,
.quick-buy-btn:focus-visible .quick-buy-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.lead-manage-item {
  display: grid;
  gap: 6px;
}

.lead-report-tree {
  display: grid;
  gap: 20px;
}

.lead-report-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lead-report-group {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 10px;
  background: rgba(7, 28, 44, 0.34);
  padding: 10px 12px;
}

.lead-report-group--concluida {
  background: linear-gradient(135deg, rgba(17, 94, 89, 0.9), rgba(6, 78, 59, 0.9));
  border-color: rgba(110, 231, 183, 0.55);
  box-shadow: inset 0 0 0 1px rgba(167, 243, 208, 0.2);
}

.lead-report-group--concluida h3 {
  color: #ecfeff;
}

.lead-report-group--concluida .lead-report-list {
  border-left-color: rgba(167, 243, 208, 0.75);
}

.lead-report-group--concluida .lead-report-node {
  border-left-color: rgba(167, 243, 208, 0.6);
}

.lead-report-group--concluida .lead-report-meta {
  color: rgba(236, 253, 245, 0.95);
}

.lead-report-group h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #e2e8f0;
}

.lead-report-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
  border-left: 2px solid rgba(148, 163, 184, 0.42);
  display: grid;
  gap: 10px;
}

.lead-report-node {
  margin: 0;
  padding: 0 0 0 10px;
  border-left: 1px dashed rgba(148, 163, 184, 0.46);
}

.lead-report-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lead-report-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(14, 116, 144, 0.32);
  border: 1px solid rgba(125, 211, 252, 0.45);
  font-size: 11px;
  color: #e0f2fe;
}

.lead-report-meta {
  margin-top: 3px;
}

.lead-report-controls {
  margin-top: 8px;
}

.lead-report-node--collapsible {
  padding-left: 6px;
}

.lead-report-details {
  border-radius: 8px;
}

.lead-report-summary {
  cursor: pointer;
  list-style: none;
}

.lead-report-summary::-webkit-details-marker {
  display: none;
}

.lead-report-summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(167, 243, 208, 0.7);
  color: #d1fae5;
  font-weight: 800;
  font-size: 12px;
  margin-right: 8px;
}

.lead-report-details[open] .lead-report-summary::before {
  content: "-";
}

.lead-report-details-body {
  margin-top: 6px;
  padding-left: 26px;
}

@media (max-width: 980px) {
  .lead-report-top-grid {
    grid-template-columns: 1fr;
  }
}

.preferencias-row {
  align-items: end;
  gap: 14px;
  justify-content: flex-start;
}

.preferencias-row > * {
  flex: 0 0 auto;
}

.pref-col {
  flex: 0 1 240px;
  min-width: 190px;
  max-width: 260px;
}

.pref-divider {
  flex: 0 0 1px;
  width: 1px;
  align-self: center;
  height: 46px;
  background: #8f98a8;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2), inset -1px 0 0 rgba(15, 23, 42, 0.5);
}

.pref-toggle-wrap {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.switch-wrap {
  width: 100%;
}

.switch {
  display: inline-flex;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 132px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(145deg, #8b1e2d, #a8283a);
  border: 1px solid rgba(236, 72, 153, 0.3);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), inset 0 -2px 3px rgba(0, 0, 0, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  transition: background 180ms ease, border-color 180ms ease;
}

.switch-text {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.82);
  z-index: 1;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(165deg, #f8fafc, #dbeafe);
  box-shadow: 0 3px 8px rgba(2, 10, 18, 0.35);
  transition: transform 180ms ease;
}

.switch input:checked + .switch-track {
  background: linear-gradient(145deg, #0e7f4f, #10b981);
  border-color: rgba(74, 222, 128, 0.35);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(94px);
}

.switch input:checked + .switch-track .switch-off {
  opacity: 0.6;
}

.switch input:not(:checked) + .switch-track .switch-on {
  opacity: 0.6;
}

.lead-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lead-manage-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-top: 4px;
}

.lead-status-select {
  min-height: 40px;
}

.lead-status-save {
  white-space: nowrap;
}

.lead-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid transparent;
}

.lead-pill-progress {
  background: rgba(16, 185, 129, 0.18);
  color: #bffce4;
  border-color: rgba(110, 231, 183, 0.35);
}

.lead-pill-ok {
  background: rgba(59, 130, 246, 0.2);
  color: #dbeafe;
  border-color: rgba(147, 197, 253, 0.35);
}

.lead-pill-no {
  background: rgba(239, 68, 68, 0.2);
  color: #fee2e2;
  border-color: rgba(248, 113, 113, 0.4);
}

@media (max-width: 900px) {
  .portal-home .wrap {
    padding-top: 124px;
  }
  .ticker-center {
    gap: 8px;
  }
  .ticker-item {
    font-size: 11px;
  }
  .ticker-value {
    font-size: 12px;
  }
  .ticker-logo {
    width: 118px;
  }
  .ticker-meta {
    display: block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ticker-user,
  .ticker-plan,
  .ticker-time {
    font-size: 10px;
  }
  .lead-manage-controls {
    grid-template-columns: 1fr;
  }
  .lead-status-save {
    width: 100%;
  }
  .quick-buy-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .quick-buy-btn {
    min-width: 0;
    flex: 1 1 calc(33.333% - 8px);
    max-width: 170px;
    font-size: 11px;
    padding: 7px 8px;
  }
}

@media (max-width: 760px) {
  .portal-home .topbar {
    height: auto;
    min-height: 72px;
    padding: 8px 10px;
    gap: 6px 10px;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
  }
  .portal-home .wrap {
    padding-top: 150px;
  }
  .ticker-logo {
    width: 108px;
  }
  .ticker-center {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .ticker-center::-webkit-scrollbar {
    height: 4px;
  }
  .ticker-item {
    font-size: 10px;
    flex: 0 0 auto;
  }
  .ticker-label {
    font-size: 9px;
  }
  .ticker-value {
    font-size: 11px;
  }
  .ticker-right {
    margin-left: auto;
    align-items: center;
  }
  .ticker-meta {
    max-width: 135px;
    text-align: right;
  }
}

@media (max-width: 560px) {
  .portal-home .wrap {
    padding-top: 156px;
  }
  .quick-buy-row {
    gap: 6px;
    align-items: stretch;
  }
  .quick-buy-btn {
    flex: 1 1 calc(50% - 6px);
    max-width: none;
    min-height: 34px;
    padding: 5px 6px;
    font-size: 10px;
    gap: 4px;
    white-space: normal;
    line-height: 1.05;
  }
  .quick-buy-icon {
    font-size: 11px;
  }
  .quick-buy-btn span:nth-child(2) {
    display: inline-block;
    max-width: 72px;
    text-align: center;
    word-break: break-word;
  }
  .quick-buy-tip {
    width: min(200px, 86vw);
  }
  .pref-divider {
    display: none;
  }
  .preferencias-row {
    gap: 10px;
  }
  .pref-col {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
  }
  .leads-scroll-list {
    max-height: 304px;
    padding-right: 2px;
  }
}
