:root {
  --bg: #eef4ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #5b6474;
  --line: rgba(37, 99, 235, 0.12);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --warm: #22c55e;
  --danger: #b91c1c;
  --shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f0f5ff 60%, #eef4ff 100%);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding-top: 0;
  padding-bottom: 0;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: clamp(130px, 38vw, 286px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.panel-head h2,
.hero h1 {
  letter-spacing: -0.03em;
}

.brand-logo {
  width: auto;
  height: 40px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand-blue {
  color: #2563eb;
}

.brand-green {
  color: #22c55e;
}

.topbar-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.topbar-nav a {
  color: #4b5670;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar-nav a:hover {
  color: var(--text);
}

.topbar-link {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.1rem 0.25rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.topbar-link:hover {
  color: var(--text);
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding-top: 1.2rem;
}

.hidden {
  display: none !important;
}

.hero,
.panel,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: block;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hero-home {
  padding: 2.8rem 2.9rem;
}

.landing {
  display: grid;
  gap: 1.2rem;
}

.hero-clean {
  background: rgba(255, 255, 255, 0.97);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3.5rem;
  align-items: center;
  min-height: 480px;
}

@media (max-width: 640px) {
  .hero-clean {
    grid-template-columns: 1fr;
  }
  .hero-clean-copy {
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .hero-copy,
  .hero-note {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* Esconde o mockup do app no mobile para simplificar */
  .hero-clean > *:last-child {
    display: none;
  }
}

@media (min-width: 641px) {
  .hero-clean-copy {
    max-width: 456px;
  }
}

.hero-clean-copy h1 {
  font-size: clamp(2.05rem, 3vw, 3.35rem);
  line-height: 1;
  max-width: 10.7ch;
  margin-bottom: 1.25rem;
  letter-spacing: -0.058em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-accent {
  display: block;
  color: #22c55e;
  margin: 0.1em 0;
  font-weight: 800;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  padding: 0.38rem 0.88rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.pill-success {
  background: rgba(34, 197, 94, 0.12);
  color: #22a054;
}

.hero-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-note-shield {
  font-size: 0.82rem;
  opacity: 0.7;
}

.hero-copy {
  max-width: 42ch;
  font-size: 0.94rem;
  line-height: 1.68;
  letter-spacing: -0.012em;
  color: #667085;
}


.hero-preview {
  display: grid;
  gap: 1rem;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding-top: 0.5rem;
}

.product-mockup {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 98%;
  min-height: 392px;
  padding: 0;
  background: #f4f7fc;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  box-shadow:
    0 24px 48px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: perspective(1200px) rotateY(-1.9deg) rotateX(0.32deg) rotateZ(1deg);
  transform-origin: left center;
  position: relative;
  justify-self: end;
}

.product-mockup::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 22px;
  width: 92px;
  height: 120px;
  background:
    radial-gradient(circle, rgba(37, 99, 235, 0.15) 0 2px, transparent 3px);
  background-size: 14px 14px;
  opacity: 0.38;
}

/* mockup topnav bar */
.mockup-topnav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0.9rem;
  height: 38px;
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  flex-shrink: 0;
}

.mockup-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #1a3270;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-right: 0.9rem;
  flex-shrink: 0;
}

.mockup-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 45% 45%, #0f244f 0 2px, transparent 2.2px),
    radial-gradient(circle at center, #22c55e 0 62%, #1b7f4f 63% 100%);
}

.mockup-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  height: 100%;
}

.mockup-nav span {
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.mockup-nav span.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.mockup-topnav-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* mockup body */
.mockup-main {
  padding: 0.7rem 0.9rem 0.9rem;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}

.mockup-greeting {
  text-align: left;
}

.mockup-greeting strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.mockup-greeting small {
  font-size: 0.6rem;
  color: var(--muted);
}

.mockup-top small,
.mockup-search,
.metric-card span,
.mockup-head span,
.table-line span,
.mockup-chart strong {
  color: var(--muted);
}

.mockup-search {
  min-width: 132px;
  padding: 0.52rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  background: rgba(244, 247, 255, 0.95);
  font-size: 0.72rem;
  text-align: left;
}

.mockup-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  background:
    radial-gradient(circle at 50% 42%, #7c8aa5 0 2px, transparent 3px),
    linear-gradient(180deg, transparent 44%, #7c8aa5 45% 51%, transparent 52%);
}

.mockup-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #233d83;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
}

.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.56rem;
}

.metric-card {
  padding: 0.84rem 0.74rem;
  border-radius: 17px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.metric-card span {
  font-size: 0.62rem;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.metric-card.blue {
  background: rgba(37, 99, 235, 0.1);
}

.metric-card.green {
  background: rgba(34, 197, 94, 0.14);
}

.metric-card.orange {
  background: rgba(251, 191, 36, 0.2);
}

.metric-card.purple {
  background: rgba(139, 92, 246, 0.14);
}

.mockup-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.74rem;
}

.mockup-table,
.mockup-chart {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(37, 99, 235, 0.08);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mockup-table {
  padding: 0.9rem;
}

.mockup-chart {
  padding: 0.9rem 0.9rem 0.9rem 2.4rem;
}

.mockup-head,
.table-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mockup-head {
  margin-bottom: 0.68rem;
}

.mockup-head strong,
.mockup-chart strong {
  font-size: 0.72rem;
  letter-spacing: -0.015em;
  color: #1f2937;
}

.mockup-head span,
.table-line span {
  font-size: 0.67rem;
  letter-spacing: -0.01em;
}

.table-line {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
}

.table-line strong {
  color: #f97316;
  font-size: 0.68rem;
  letter-spacing: -0.01em;
}

.table-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-value {
  font-size: 0.67rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.table-date {
  font-size: 0.62rem;
  color: var(--muted);
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.badge-red {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.badge-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.urgency-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.urgency-badge.overdue {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.urgency-badge.today {
  background: rgba(251, 146, 60, 0.18);
  color: #c2410c;
}

.urgency-badge.soon {
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
}

.urgency-badge.normal {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.urgency-badge.ok {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.mockup-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mockup-chart-period {
  font-size: 0.62rem;
  color: var(--muted);
  font-weight: 600;
}

.mockup-link {
  font-size: 0.67rem;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
}

.chart-axis {
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
  position: absolute;
  left: 0.9rem;
  top: 2.4rem;
}

.chart-axis span {
  font-size: 0.55rem;
  color: var(--muted);
  line-height: 1;
}

.mockup-chart {
  position: relative;
}

.chart-lines {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.chart-lines span {
  display: block;
  height: 1px;
  background: rgba(37, 99, 235, 0.08);
}

.chart-curve {
  margin-top: -3.1rem;
  height: 102px;
  background:
    radial-gradient(circle at 12% 72%, #22c55e 0 6px, transparent 7px),
    radial-gradient(circle at 35% 52%, #22c55e 0 6px, transparent 7px),
    radial-gradient(circle at 57% 62%, #22c55e 0 6px, transparent 7px),
    radial-gradient(circle at 78% 30%, #22c55e 0 6px, transparent 7px),
    radial-gradient(circle at 92% 26%, #22c55e 0 6px, transparent 7px),
    linear-gradient(135deg, transparent 0 13%, rgba(34, 197, 94, 0.35) 14% 16%, transparent 17% 35%, rgba(34, 197, 94, 0.35) 36% 38%, transparent 39% 53%, rgba(34, 197, 94, 0.35) 54% 56%, transparent 57% 71%, rgba(34, 197, 94, 0.35) 72% 74%, transparent 75%);
  border-radius: 14px;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.plan-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

/* ── New plans section ── */
.plans-section {
  padding: 2.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plans-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.plans-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0;
}

.plans-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.plans-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Top card: description + whatsapp */
.plans-top-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.06);
  padding: 1.1rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.plans-top-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.plans-top-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 1px solid #e8edf5;
  padding-left: 1.5rem;
  min-width: 230px;
}

.whatsapp-top-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.whatsapp-top-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.whatsapp-top-text {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.whatsapp-icon-new {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(34,197,94,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Plan card */
.plan-card-new {
  background: linear-gradient(135deg, #0f2460 0%, #1a3fa8 55%, #2563eb 100%);
  border-radius: 22px;
  border: none;
  box-shadow: 0 16px 48px rgba(37,99,235,0.28);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  position: relative;
}

/* decorative glow circle on left */
.plan-card-new::before {
  content: "";
  position: absolute;
  left: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.plan-card-left {
  padding: 1.4rem 1.6rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  position: relative;
  z-index: 1;
}

.plan-card-left::after {
  content: "";
  position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.plan-card-right {
  background: #fff;
  border-radius: 14px;
  margin: 0.45rem 0.45rem 0.45rem 0;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-badge-new {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.3rem;
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.2);
}

.plan-price-new {
  display: flex;
  align-items: flex-start;
  gap: 0.1rem;
  margin-bottom: 0.15rem;
}

.plan-currency {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.6rem;
  opacity: 0.85;
}

.plan-amount {
  font-size: 4.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.4rem;
}

.plan-cents {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.85;
}

.plan-period {
  font-size: 0.72rem;
  opacity: 0.55;
  font-weight: 500;
}

.plan-trial {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-top: 0.1rem;
}

.plan-subtitle-card {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0 0 0.75rem;
  line-height: 1.5;
  font-style: italic;
}

.plan-features-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.1rem;
}

.plan-features-new {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem 1.2rem;
}

.plan-features-new li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: #1e293b;
  font-weight: 600;
}

.plan-features-new li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2316a34a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

.plan-cta {
  padding: 0;
}

.plan-cta-btn {
  width: 100%;
  padding: 0.7rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  background: #22c55e !important;
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
  box-shadow: 0 4px 16px rgba(34,197,94,0.35);
  letter-spacing: 0.01em;
}

.plan-cta-btn:hover { background: #16a34a !important; transform: translateY(-1px); }

.plan-cta-note {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.5rem;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  padding: 2.2rem 2rem 1.4rem;
  margin-top: 2rem;
}

.footer-body {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 26px;
  width: auto;
  opacity: 0.9;
}

.footer-left span {
  font-size: 0.76rem;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.footer-right {
  display: flex;
  gap: 0.4rem;
}

.footer-right a {
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.footer-right a:hover {
  background: #f1f5f9;
  color: #2563eb;
  border-color: #bfdbfe;
}

.footer-bottom {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.72rem;
  color: #cbd5e1;
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-bottom > div:last-child {
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.footer-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.ft-dot {
  color: #e2e8f0;
}

/* ── Auth Panel (modal overlay) ─────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1rem;
  animation: fadeInOverlay 0.18s ease;
}

.auth-overlay.hidden {
  display: none;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Mantido para compatibilidade com código que usa .auth-section */
.auth-section {
  padding: 3rem 1rem 4rem;
  display: flex;
  justify-content: center;
}

.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.auth-close:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.auth-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(37,99,235,0.10);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-tabs {
  display: flex;
  border-radius: 12px;
  background: #f1f5f9;
  padding: 4px;
  margin-bottom: 1.8rem;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}

.auth-tab.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.auth-forgot {
  text-align: right;
  margin-top: -0.4rem;
}

.auth-forgot a {
  font-size: 0.78rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.auth-forgot a:hover {
  text-decoration: underline;
}

/* ── Vista "Recuperar senha" dentro do modal ── */
.auth-back-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  display: inline-block;
}
.auth-back-btn:hover { text-decoration: underline; }

.forgot-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.forgot-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* Esconde abas quando modal está no modo forgot */
.auth-overlay.forgot-mode .auth-tabs { display: none; }

.auth-hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: #94a3b8;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.15s;
  outline: none;
}

/* ── Wrapper campo de senha com olhinho ── */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] {
  padding-right: 2.8rem;
}
.pw-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #94a3b8;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.pw-toggle:hover { color: #2563eb; }

/* ── Banner de aviso de contrato incompleto ─────────────────── */
.contract-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff7ed;
  border: 1.5px solid #f97316;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 0.75rem 0 0.5rem;
  animation: slideDown 0.25s ease;
}
.contract-warning-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.contract-warning-body { flex: 1; }
.contract-warning-body strong { display: block; color: #c2410c; margin-bottom: 0.3rem; font-size: 0.95rem; }
.contract-warning-body p { color: #7c2d12; font-size: 0.88rem; line-height: 1.5; margin: 0; }
.contract-warning-action {
  flex-shrink: 0;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  align-self: center;
  transition: background 0.15s;
}
.contract-warning-action:hover { background: #ea6c00; }
.contract-warning-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #9a3412;
  font-size: 1rem;
  padding: 0 0.2rem;
  align-self: flex-start;
  line-height: 1.8;
  opacity: 0.6;
  flex-shrink: 0;
}
.contract-warning-close:hover { opacity: 1; }

/* ── Card de alerta na prévia do contrato ─────────────────── */
.contract-incomplete-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff7ed;
  border: 1.5px solid #f97316;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  margin: 0.5rem 0;
}
.contract-incomplete-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.contract-incomplete-alert strong { display: block; color: #c2410c; margin-bottom: 0.4rem; font-size: 1rem; }
.contract-incomplete-alert p { color: #7c2d12; font-size: 0.9rem; line-height: 1.55; margin: 0; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Toast de confirmação — centro da tela ─────────────────── */
.app-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  background: #166534;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1.1rem 2.8rem;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  white-space: nowrap;
  text-align: center;
}
.app-toast--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.app-toast--success { background: #166534; }
.app-toast--warning { background: #92400e; }
.app-toast--error   { background: #991b1b; }

/* ── Botão Editar nos itens do painel inicial ─────────────── */
.upcoming-edit-btn {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  font-size: 0.78rem;
  padding: 0.22rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.upcoming-edit-btn:hover { background: #f1f5f9; color: #1e40af; border-color: #93c5fd; }

.attention-edit-btn {
  background: none;
  border: 1px solid #cbd5e1;
  color: #475569;
}
.attention-edit-btn:hover { background: #f1f5f9; color: #1e40af; border-color: #93c5fd; }

/* ── Botões de ação do formulário ────────────────────────── */
.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.form-actions .primary { flex: 1; }
.btn-clear {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-clear:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* ── Formulário de energia — seções e hints ──────────────── */
.energy-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0 0.1rem;
  border-bottom: 1.5px solid #e2e8f0;
  margin-top: 0.25rem;
}
.field-hint {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.25rem;
  font-weight: 400;
}

/* ── Campo de foto do medidor ─────────────────────────────── */
.photo-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.photo-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}
.photo-field-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.photo-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  border: 1.5px dashed #94a3b8;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.photo-pick-btn:hover { background: #e2e8f0; border-color: #2563eb; color: #1d4ed8; }
.photo-pick-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-preview-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.photo-preview-wrap img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.photo-remove-btn {
  background: #fee2e2;
  border: none;
  border-radius: 6px;
  color: #991b1b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}
.photo-remove-btn:hover { background: #fca5a5; }

/* ── OCR — leitura automática do medidor ─────────────────── */
.photo-field-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.1rem 0 0.5rem;
}
.ocr-tip-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ocr-tip-row {
  font-size: 0.8rem;
  line-height: 1.5;
}
.ocr-tip-row span { font-weight: 600; }
.ocr-tip-best  { color: #166534; }
.ocr-tip-ok    { color: #92400e; }
.ocr-tip-bad   { color: #991b1b; }
.ocr-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: #1d4ed8;
  font-weight: 500;
}
.ocr-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ocr-result {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-top: 0.6rem;
}
.ocr-result-label {
  font-size: 0.8rem;
  color: #166534;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ocr-detected-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.04em;
}
.ocr-detected-fields { display: flex; flex-direction: column; gap: 0.35rem; }
.ocr-field-row { font-size: 0.92rem; color: #166534; }
.ocr-field-row strong { color: #14532d; }
.ocr-result-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.ocr-confirm-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.ocr-confirm-btn:hover { background: #15803d; }
.ocr-reject-btn {
  background: none;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #166534;
  cursor: pointer;
  transition: background 0.15s;
}
.ocr-reject-btn:hover { background: #dcfce7; }

/* Foto no card de energia */
.energy-card-photo {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-top: 0.5rem;
  cursor: pointer;
}
.energy-card-photo:hover { opacity: 0.88; }

.auth-form input:focus {
  border-color: #2563eb;
  background: #fff;
}

.auth-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: #475569 !important;
  line-height: 1.5;
}

.auth-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
}

.auth-check a {
  color: #2563eb;
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 14px;
  margin-top: 0.4rem;
}

.auth-note {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: -0.3rem;
}

.auth-feedback {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.auth-feedback.success {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}
/* ─────────────────────────────────────────────────────────── */

/* WhatsApp card */
.whatsapp-card-new {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.whatsapp-card-inner {
  padding: 1.4rem 1.5rem;
}

.whatsapp-icon-new {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(34,197,94,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.whatsapp-card-new h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.whatsapp-card-new p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.whatsapp-btn-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.22);
  transition: background 150ms, box-shadow 150ms;
}

.whatsapp-btn-new:hover {
  background: #16a34a;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.16);
}


.landing section[id] {
  scroll-margin-top: 88px;
}

.stat-mini {
  padding: 1.3rem 1.2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.08);
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 1rem;
  align-items: center;
  min-height: 126px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stat-mini::after {
  content: none;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  margin-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.stat-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.stat-icon.blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.stat-icon.green {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.stat-mini strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.stat-copy {
  display: grid;
  gap: 0.05rem;
}

.stat-mini > span:last-child,
.stat-copy > span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 28ch;
}

.stat-mini:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.1);
}

.plan-card,
.whatsapp-card {
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.12);
}

.plan-card {
  display: grid;
  gap: 1.15rem;
  padding: 1.45rem 1.7rem;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.98), rgba(29, 78, 216, 0.96)),
    #2563eb;
  color: #fff;
  overflow: hidden;
  position: relative;
  min-height: 170px;
}

.plan-card::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -24px;
  width: 176px;
  height: 176px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at center, rgba(34, 197, 94, 0.15), transparent 70%);
  clip-path: polygon(38% 0, 72% 0, 100% 22%, 100% 100%, 0 100%, 0 38%);
  pointer-events: none;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.48rem 0.92rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-copy {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(220px, 0.9fr);
  gap: 1.8rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.plan-price {
  display: grid;
  gap: 0.22rem;
  align-content: start;
}

.plan-label {
  margin: 0 0 0.35rem;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.78;
}

.plan-card h2,
.whatsapp-card h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

.plan-card h2 {
  font-size: clamp(2.5rem, 5vw, 3.7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.plan-card small {
  display: inline-block;
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
  min-width: 220px;
  padding-top: 0.2rem;
}

.plan-features li {
  position: relative;
  padding-left: 1.45rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #d4fddf;
  font-weight: 800;
}

.whatsapp-card {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  padding: 1.35rem 1.45rem;
  background: rgba(255, 255, 255, 0.88);
  min-height: 160px;
}

.whatsapp-card h3 {
  font-size: 0.98rem;
}

.whatsapp-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 280px;
  font-size: 0.84rem;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  min-width: 188px;
  background: #22c55e;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 18px 32px rgba(34, 197, 94, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease;
  font-size: 0.92rem;
  min-height: 54px;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.02rem;
  color: #d4fddf;
  font-weight: 800;
}

.whatsapp-card {
  gap: 1.5rem;
  padding: 1.45rem 1.65rem;
  background: rgba(255, 255, 255, 0.94);
  min-height: 170px;
}

.whatsapp-card h3 {
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 800;
}

.whatsapp-copy {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.whatsapp-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.12);
  overflow: hidden;
}

.whatsapp-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  display: block;
}

.whatsapp-card p {
  line-height: 1.5;
  max-width: 310px;
  font-size: 0.91rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.whatsapp-button {
  border-radius: 18px;
  padding: 0.95rem 1.4rem;
  min-width: 198px;
  box-shadow: 0 20px 34px rgba(34, 197, 94, 0.28);
  font-size: 0.98rem;
  min-height: 58px;
  text-align: center;
  letter-spacing: -0.02em;
}

.plan-features li::before {
  content: "\2713";
}

.auth-section {
  display: grid;
}

.eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--warm);
  font-weight: 800;
}

.hero h1,
.panel-head h2 {
  margin: 0;
}

.hero-copy {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.6;
}

.primary,
.secondary,
.ghost,
.card-actions button {
  border: none;
  border-radius: 16px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

#public-actions .primary,
#member-actions .secondary,
#member-actions .ghost {
  padding: 0.12rem 0.7rem;
  min-height: 34px;
  font-size: 0.84rem;
  line-height: 1;
  border-radius: 10px;
  box-shadow: none;
}

.primary {
  background: var(--accent);
  color: white;
}

.secondary {
  background: #e7eefc;
  color: var(--text);
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.card-actions button:hover,
.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
}

#public-actions .header-cta {
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  min-height: 38px;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.hero-actions .hero-primary {
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  box-shadow: 0 16px 28px rgba(34, 197, 94, 0.2);
}

.hero-actions .hero-secondary {
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #fff;
  color: #2563eb;
  box-shadow: none;
}

.stats-grid,
.overview-grid,
.module-grid,
.dashboard-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  padding: 1.4rem;
}

.stat-card span,
.stat-card small,
.list-meta,
.card-meta,
.empty-state p {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin: 0.4rem 0;
  font-size: 2rem;
}

.overview-grid {
  grid-template-columns: 2fr 1fr;
}

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

.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-highlight {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.single-column-grid {
  display: grid;
  gap: 1rem;
}

.contract-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.property-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.energy-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel {
  padding: 1.4rem;
}

.spotlight {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.92));
  color: white;
  border: none;
}

.spotlight .eyebrow,
.spotlight .highlight-copy {
  color: rgba(255, 255, 255, 0.82);
}

.spotlight h2 {
  color: white;
}

.highlight-copy {
  max-width: 720px;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.highlight-actions {
  display: flex;
  gap: 0.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
}

.auth-panel {
  align-self: start;
}

.clean-auth {
  max-width: 520px;
  justify-self: center;
}

.auth-form {
  display: none;
  gap: 0.9rem;
}

.auth-form.active {
  display: grid;
}

.auth-feedback {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.marketing-grid,
.hero-showcase,
.landing-features,
.simple-features,
.hero-grid,
.simple-points,
.hero-logo {
  display: none;
}

.app-shell {
  min-height: 100vh;
  background: #f4f7fc;
  overflow-x: hidden;
  max-width: 100vw;
}

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top navigation bar ── */
.app-topnav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1rem;
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-topnav::-webkit-scrollbar {
  display: none;
}

.topnav-logo {
  height: 30px;
  width: auto;
  display: block;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.topnav-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  height: 100%;
}

.topnav-nav .tab-button {
  height: 100%;
  padding: 0 1rem;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 150ms, border-color 150ms;
}

.topnav-nav .tab-button:hover {
  color: #1e293b;
  background: #f8fafc;
}

.topnav-nav .tab-button.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: transparent;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  margin-left: 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 1rem;
  position: relative;
}

.topnav-util {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}

.topnav-util:hover {
  background: #eef2f8;
  color: #475569;
}

/* ── Trial banner ── */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  background: #f59e0b;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.trial-upgrade-btn {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.trial-upgrade-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* ── Upgrade modal ── */
.upgrade-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.upgrade-modal {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.upgrade-icon { font-size: 3rem; margin-bottom: 1rem; }

.upgrade-modal h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.upgrade-modal p {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

.upgrade-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin: 1rem 0;
}

.upgrade-currency { font-size: 1.2rem; font-weight: 700; color: #2563eb; }
.upgrade-price strong { font-size: 3rem; font-weight: 900; color: #2563eb; }
.upgrade-cents { font-size: 1rem; color: #2563eb; font-weight: 600; }

.upgrade-features {
  list-style: none;
  text-align: left;
  display: grid;
  gap: 0.4rem;
  margin: 1.2rem 0 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.upgrade-features li { font-size: 0.88rem; color: #334155; }

.upgrade-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 14px;
}

.upgrade-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.8rem;
}

/* ── Modal confirmação de pagamento ── */
.pay-confirm-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.pay-confirm-overlay.hidden { display: none; }

.pay-confirm-modal {
  background: #fff; border-radius: 20px;
  padding: 2rem 1.8rem; width: 100%; max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; text-align: center;
}

.pay-confirm-modal h2 { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0; }

.pay-confirm-price {
  font-size: 2.2rem; font-weight: 900; color: #2563eb; line-height: 1;
}
.pay-confirm-price span { font-size: 1rem; font-weight: 600; color: #64748b; }

.pay-confirm-sub { font-size: 0.8rem; color: #94a3b8; margin: 0; }

.pay-confirm-tips {
  width: 100%; display: flex; flex-direction: column; gap: 0.5rem;
  margin: 0.4rem 0;
}
.pay-confirm-tips p {
  font-size: 0.78rem; color: #64748b; background: #f8fafc;
  border-radius: 8px; padding: 0.65rem 0.8rem;
  line-height: 1.55; margin: 0; text-align: left;
}
.pay-confirm-tips a { color: #2563eb; font-weight: 600; text-decoration: none; }
.pay-confirm-tips a:hover { text-decoration: underline; }

.pay-confirm-btn { width: 100%; margin-top: 0.4rem; }

.pay-confirm-cancel {
  background: none; border: none; color: #94a3b8;
  font-size: 0.82rem; cursor: pointer; padding: 0.2rem;
}
.pay-confirm-cancel:hover { color: #475569; }

.upgrade-tips {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.upgrade-tip-item {
  font-size: 0.78rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  line-height: 1.5;
}

.upgrade-tip-item a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.upgrade-tip-item a:hover { text-decoration: underline; }

/* ── Demo banner ── */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.5rem;
  background: #1e40af;
  color: #fff;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.demo-banner.hidden { display: none; }

.demo-banner-text {
  flex: 1;
  min-width: 0;
}

.demo-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.demo-banner-cta {
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 150ms;
}

.demo-banner-cta:hover { background: #16a34a; }

.demo-banner-back {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 150ms, color 150ms;
}

.demo-banner-back:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ── Attention items (Atenção agora) ── */
.attention-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.attention-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.attention-left div {
  min-width: 0;
}

.attention-left strong {
  display: block;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attention-left .list-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.attention-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.attention-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.urgency-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.urgency-badge.overdue {
  background: #fee2e2;
  color: #dc2626;
}

.urgency-badge.warning {
  background: #fef9c3;
  color: #ca8a04;
}

.attention-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #f0f5ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms;
}

.attention-btn:hover {
  background: #dbeafe;
}

@media (max-width: 640px) {
  .demo-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  .demo-banner-text {
    width: 100%;
  }
  .demo-banner-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .demo-banner-cta,
  .demo-banner-back {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
  }
}

/* ── Demo block modal ── */
.demo-block-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.demo-block-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2.2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

.demo-block-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.demo-block-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.demo-block-card p {
  font-size: 0.87rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.demo-block-btns {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.demo-block-btns .primary {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
}

.demo-block-btns .ghost-sm {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

/* ── Content area ── */
.app-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #f4f7fc;
}

.content-subbar {
  padding: 1.1rem 1.8rem 0.6rem;
  background: #f4f7fc;
}

.content-greeting strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.content-greeting span {
  font-size: 0.84rem;
  color: var(--muted);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 200px;
  cursor: text;
  position: relative;
}

.topbar-search:focus-within {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

#global-search {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: var(--text);
  width: 100%;
  min-width: 140px;
}

#global-search::placeholder { color: #94a3b8; }

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 200;
  overflow: hidden;
  min-width: 320px;
}

.search-results-dropdown.hidden { display: none; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background 100ms;
  border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f0f5ff; }

.search-result-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.search-result-icon.prop { background: #eff6ff; color: #2563eb; }
.search-result-icon.tenant { background: #f0fdf4; color: #16a34a; }
.search-result-icon.contract { background: #fff7ed; color: #ea580c; }
.search-result-icon.payment { background: #faf5ff; color: #7c3aed; }

.search-result-text { flex: 1; min-width: 0; }
.search-result-title { font-size: 0.84rem; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-sub { font-size: 0.72rem; color: #94a3b8; }

.search-no-results { padding: 1rem; text-align: center; font-size: 0.82rem; color: #94a3b8; }

.topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms;
}

.topbar-icon-btn:hover {
  background: #eef2f8;
}

.topbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #233d83;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar-logout {
  font-size: 0.84rem;
  padding: 0.4rem 0.9rem;
  min-height: 32px;
  border-radius: 8px;
  color: var(--muted);
}

.workspace {
  padding: 1.5rem 1.8rem;
  flex: 1;
}

.app-toolbar {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.app-toolbar-copy {
  display: grid;
  gap: 0.28rem;
}

.app-toolbar-copy strong {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.app-toolbar-copy span {
  color: var(--muted);
}

.app-toolbar-summary {
  display: grid;
  align-content: center;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 36%),
    rgba(37, 99, 235, 0.06);
}

.app-toolbar-summary span {
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-toolbar-summary strong {
  font-size: 1rem;
  line-height: 1.5;
}

.spotlight .secondary {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.slim-panel {
  display: flex;
  flex-direction: column;
}

.panel.wide {
  min-height: 260px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-select {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.filter-select:focus {
  border-color: #2563eb;
  background: #fff;
}

/* Filtro por botões (imóveis) */
.filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-tab {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.filter-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.filter-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.data-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.data-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.data-form input,
.data-form select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.data-form button {
  grid-column: 1 / -1;
}

.span-2 {
  grid-column: 1 / -1;
}

.card-list,
.list-stack,
.status-summary,
.quick-actions,
.focus-list {
  display: grid;
  gap: 0.8rem;
}

/* Scroll interno — Pendências e vencimentos (3 itens visíveis) */
#upcoming-list {
  max-height: 318px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* Scroll interno — O que precisa olhar (5 itens visíveis) */
#attention-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* Scroll interno — Atividade recente (4 itens visíveis) */
#activity-list {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.record-card,
.upcoming-item,
.status-item,
.action-item,
.focus-item,
.empty-state,
.contract-sheet {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.record-card {
  display: grid;
  gap: 0.8rem;
}

.card-top,
.upcoming-item,
.status-item,
.action-item,
.focus-item {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.card-top > *,
.upcoming-item > *,
.status-item > *,
.action-item > *,
.focus-item > * {
  min-width: 0;
  flex-shrink: 1;
}

.action-item > span:last-child,
.upcoming-item > .card-actions,
.upcoming-item > span:last-child {
  flex-shrink: 0;
}

.card-title {
  margin: 0;
  font-size: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #ede7dc;
}

.chip.success {
  background: rgba(20, 184, 166, 0.18);
  color: var(--accent-strong);
}

.chip.warning {
  background: rgba(245, 158, 11, 0.18);
  color: #9a6700;
}

.chip.danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

.card-meta {
  display: grid;
  gap: 0.3rem;
}

.card-actions {
  display: flex;
  gap: 0.6rem;
}

.card-actions button {
  padding: 0.65rem 0.9rem;
  background: #efe7d5;
}

.card-actions .danger {
  background: rgba(239, 68, 68, 0.13);
  color: var(--danger);
}

.card-actions .success-action {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  font-weight: 700;
}

/* ── Visualizador de conta de energia ───────────────────── */
.bill-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bill-viewer-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
}

.bill-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.bill-viewer-header strong {
  font-size: 1rem;
  display: block;
}

.bill-viewer-month {
  font-size: 0.82rem;
  color: #64748b;
}

.bill-viewer-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.bill-viewer-open-btn {
  font-size: 0.82rem;
  color: #2563eb;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid #2563eb;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s;
}
.bill-viewer-open-btn:hover { background: #eff6ff; }

.bill-viewer-close {
  font-size: 0.82rem;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
  color: #475569;
  transition: background 0.15s;
}
.bill-viewer-close:hover { background: #fee2e2; color: #b91c1c; }

/* Corpo: 2 colunas — mídia + dados */
.bill-viewer-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.bill-viewer-media {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  border-right: 1px solid #e2e8f0;
}

.bill-viewer-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.bill-viewer-iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

.bill-viewer-no-photo {
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 2rem;
  text-align: center;
}

/* Painel de dados à direita */
.bill-viewer-details {
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bill-viewer-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bill-viewer-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  margin: 0 0 0.2rem;
}

.bill-viewer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.bill-viewer-row span:first-child {
  color: #64748b;
  flex-shrink: 0;
}

.bill-viewer-row strong {
  text-align: right;
  font-weight: 700;
}

.bill-viewer-notes {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.bill-viewer-edit-btn {
  margin-top: auto;
  width: 100%;
  padding: 0.65rem;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.bill-viewer-edit-btn:hover { background: #1d4ed8; }

/* Responsivo: empilha em telas pequenas */
@media (max-width: 640px) {
  .bill-viewer-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .bill-viewer-media {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    max-height: 40vh;
  }
}
/* ─────────────────────────────────────────────────────── */

.status-item strong,
.upcoming-item strong {
  font-size: 1.1rem;
}

/* Número colorido + ícone — cards de resumo */
.stat-card.stat-card-green  strong { color: #16a34a !important; }
.stat-card.stat-card-blue   strong { color: #2563eb !important; }
.stat-card.stat-card-purple strong { color: #7c3aed !important; }
.stat-card.stat-card-red    strong { color: #dc2626 !important; }


/* Bordas coloridas por status — Pendências e vencimentos */
.upcoming-item {
  border-left: 4px solid var(--line);
  border-radius: 0 20px 20px 0;
}
.upcoming-paid    { border-left-color: #22c55e; }
.upcoming-overdue { border-left-color: #ef4444; }
.upcoming-soon    { border-left-color: #f59e0b; }
.upcoming-normal  { border-left-color: #3b82f6; }


.empty-state strong {
  display: block;
  margin-bottom: 0.4rem;
}

.contract-preview {
  min-height: 100%;
}

.contract-sheet {
  min-height: 100%;
}

.contract-meta {
  margin-bottom: 0.75rem;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Prévia compacta por padrão */
.contract-sheet pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  color: var(--text);
  max-height: 260px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.contract-sheet.expanded pre {
  max-height: 9999px;
}

/* Fade na parte de baixo quando compacto */
.contract-sheet-fade {
  position: relative;
  margin-top: -3rem;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  transition: opacity 0.25s;
}
.contract-sheet.expanded + .contract-sheet-fade,
.contract-sheet.expanded ~ .contract-sheet-fade {
  display: none;
}

/* Botão expandir/recolher */
.contract-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s, color 0.15s;
}
.contract-expand-btn:hover { background: #e2e8f0; color: #1e40af; }

.contract-form-panel,
.contract-preview-panel,
.contract-history-panel {
  overflow: hidden;
}

.property-form-panel,
.property-summary-panel,
.property-list-panel,
.payment-form-panel,
.payment-summary-panel,
.payment-history-panel,
.energy-form-panel,
.energy-summary-panel,
.energy-history-panel {
  overflow: hidden;
}

.contract-intro {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.contract-intro strong {
  display: block;
  margin-bottom: 0.35rem;
}

.contract-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.property-intro {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.12);
}

.property-intro strong {
  display: block;
  margin-bottom: 0.35rem;
}

.property-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.property-summary-panel {
  background:
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.75);
}

.payment-intro {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.payment-intro strong {
  display: block;
  margin-bottom: 0.35rem;
}

.payment-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.payment-summary-panel {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.75);
}

.payment-history-panel {
  margin-top: 0;
}

.energy-intro {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.energy-intro strong {
  display: block;
  margin-bottom: 0.35rem;
}

.energy-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.energy-summary-panel {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.75);
}

.energy-history-panel {
  margin-top: 0;
}

.contract-preview-panel {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.75);
}

.contract-preview-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.contract-history-panel {
  margin-top: 0;
}

.main-tabs {
  margin-bottom: 1rem;
}

.action-item {
  text-align: left;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.action-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.action-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.focus-item {
  background: rgba(255, 255, 255, 0.84);
}

.focus-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.focus-item span {
  color: var(--muted);
  font-size: 0.92rem;
}


.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app-sidebar-nav {
  display: grid;
  gap: 0.1rem;
}

.tab-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

@media (max-width: 1100px) {
  .overview-grid,
  .panel-highlight,
  .hero-simple,
  .hero-grid,
  .marketing-grid,
  .landing-features,
  .simple-features,
  .dashboard-grid,
  .contract-layout,
  .property-layout,
  .payment-layout,
  .energy-layout,
  .plan-strip,
  .hero-clean,
  .mockup-content,
  .mockup-metrics,
  .app-layout,
  .app-toolbar,
  .stats-grid,
  .data-form {
    grid-template-columns: 1fr;
  }

  .topbar,
  .module-grid {
    flex-direction: column;
  }

  .topbar {
    height: auto;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .topbar-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
  }

  .product-mockup {
    min-height: 0;
    transform: none;
  }

  .mockup-sidebar {
    display: none;
  }

  .app-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .page,
  .topbar {
    padding: 1rem;
  }

  .topbar {
    height: auto;
    min-height: 56px;
  }

  .hero,
  .panel,
  .stat-card,
  .plan-card,
  .whatsapp-card {
    border-radius: 22px;
  }

  /* Esconde nav secundária no mobile (Planos, Contato ficam acessíveis rolando) */
  .topbar-nav { display: none; }

  /* Topbar fica em linha: logo à esquerda, botões à direita */
  .topbar {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .topbar-actions {
    flex-direction: row;
    gap: 0.4rem;
  }

  .topbar-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.6rem;
  }

  .header-cta {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
  }

  .hero-actions,
  .app-toolbar,
  .highlight-actions,
  .card-actions,
  .card-top,
  .upcoming-item,
  .status-item,
  .whatsapp-card {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-nav a {
    text-align: center;
  }

  .brand {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  #public-actions,
  #member-actions {
    width: auto;
    justify-content: flex-end;
  }

  .brand-mark {
    width: 220px;
    height: 46px;
  }

  .hero-home {
    padding: 1.4rem;
  }

  .hero h1 {
    font-size: 2.15rem;
    line-height: 1.1;
  }

  .hero-note {
    font-size: 0.98rem;
  }

  .tab-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    padding: 1rem;
  }

  .app-brand,
  .app-sidebar-welcome {
    text-align: center;
    justify-content: center;
  }

  .app-brand {
    flex-direction: column;
  }

  .app-toolbar {
    padding: 1.1rem;
  }

  .brand-logo {
    height: 34px;
    width: auto;
    max-width: 116px;
  }

  .plan-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-mini {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .stat-mini strong,
  .stat-mini span {
    grid-column: auto;
  }

  .whatsapp-button {
    width: 100%;
    min-width: 0;
  }

  /* ── Correções mobile landing page ── */

  /* Evita overflow horizontal */
  body { overflow-x: hidden; }
  html, body { max-width: 100vw; }

  /* Header: logo à esquerda, Entrar + Criar conta à direita — sem empilhar */
  .topbar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 0 1rem !important;
    height: 56px !important;
    gap: 0.5rem !important;
  }
  .topbar-nav { display: none !important; }
  .topbar-actions {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.3rem !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }
  .topbar-link { font-size: 0.75rem !important; padding: 0.3rem 0.5rem !important; }
  .header-cta  { font-size: 0.75rem !important; padding: 0.4rem 0.65rem !important; white-space: nowrap !important; }
  /* Encolhe logo no mobile */
  .brand { width: auto !important; flex: 0 0 auto !important; justify-content: flex-start !important; }
  .brand-mark { width: 160px !important; height: auto !important; max-width: 160px !important; }
  #public-actions, #member-actions { width: auto !important; flex-shrink: 0 !important; }

  /* Cards de recursos: coluna única */
  .landing-stats {
    grid-template-columns: 1fr !important;
  }

  /* Seção de planos: coluna única (era grid 1fr auto) */
  .plans-top-card {
    grid-template-columns: 1fr !important;
  }
  .plans-top-right {
    border-left: none !important;
    border-top: 1px solid #e8edf5;
    padding-top: 1rem;
  }

  /* Card de preço: empilha esquerda/direita em coluna (era grid 260px 1fr) */
  .plan-card-new {
    grid-template-columns: 1fr !important;
  }
  .plan-card-right {
    margin: 0 0.45rem 0.45rem 0.45rem !important;
    border-radius: 14px !important;
  }

  /* Legado / outros grids */
  .plan-strip {
    grid-template-columns: 1fr !important;
  }
  .plan-features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hero: min-width:0 para grid items não estourarem */
  .hero-clean-copy {
    min-width: 0;
  }

  /* Header: botão menor para caber em 375px */
  .header-cta {
    font-size: 0.72rem !important;
    padding: 0.4rem 0.6rem !important;
    white-space: nowrap !important;
  }
  .brand-mark {
    width: 140px !important;
    max-width: 140px !important;
  }
}
