@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');:root {
  --text: #4b5263;
  --text-h: #0d1117;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --code-bg: #f1f5f9;
  --accent: #0f766e;
  --accent-hover: #0d6460;
  --accent-bg: rgba(15, 118, 110, 0.08);
  --accent-border: rgba(15, 118, 110, 0.3);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.1), 0 4px 8px rgba(15, 23, 42, 0.06);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;

  font: 15px/1.6 var(--sans);
  letter-spacing: -0.01em;
  color-scheme: light;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Dark Mode Variables ─────────────────────────────────── */
html.dark {
  color-scheme: dark;
  --text: #cbd5e1;
  --text-h: #f1f5f9;
  --bg: #0f172a;
  --border: #1e293b;
  --code-bg: #1e293b;
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-bg: rgba(20, 184, 166, 0.12);
  --accent-border: rgba(20, 184, 166, 0.35);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--text-h);
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  font-size: 1.875rem;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0;
}

p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

code {
  font-family: var(--mono);
  display: inline;
  padding: 4px 8px;
  background: var(--code-bg);
  border-radius: 4px;
  color: var(--text-h);
  font-size: 0.875rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.grid {
  display: grid;
}

.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.bg-white {
  background: #fff;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-md {
  box-shadow: var(--shadow);
}

.shadow-lg {
  box-shadow: rgba(0, 0, 0, 0.15) 0 20px 25px -5px, rgba(0, 0, 0, 0.1) 0 10px 10px -5px;
}

/* Handled via CSS transitions */

.transition-shadow {
  transition: box-shadow 0.3s ease;
}

.transition-all {
  transition: all 0.3s ease;
}

.p-6 {
  padding: 1.5rem;
}

/* Responsive Typography */
@media (max-width: 1024px) {
  :root {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }
}
.sidebar {
  width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 14px;
  background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #0f2640 100%);
  color: #e5edf5;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.3);
  border: 1.5px solid rgba(15, 118, 110, 0.5);
  overflow: hidden;
  flex: 0 0 auto;
  transition: box-shadow 0.2s ease;
}

.sidebar-logo:hover {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.3);
}

.sidebar-logo.with-image {
  background: #020617;
  border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.sidebar-header p {
  margin: 2px 0 0;
  color: #7b9ab5;
  font-size: 0.8rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.18s ease;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.7) 0%, rgba(15, 118, 110, 0.5) 100%);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 800;
  flex: 0 0 auto;
  transition: background 0.18s ease;
}

.nav-link.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.plan-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.plan-chip span,
.plan-chip strong {
  display: block;
}

.plan-chip span {
  color: #7b9ab5;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.plan-chip strong {
  color: #ffffff;
  font-size: 0.9rem;
  margin-top: 2px;
}

/* ─── Indicador de Uso de Clientes ─────────────────────────── */
.plan-uso {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.plan-uso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.plan-uso-label {
  color: #7b9ab5;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.plan-uso-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-uso-barra-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.plan-uso-barra {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease, background 0.4s ease;
}

.plan-uso-plano {
  margin-top: 5px;
  color: #7b9ab5;
  font-size: 0.72rem;
  text-align: right;
}

.btn-logout {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-height: 36px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ─── Dark Mode Toggle Button ──────────────────────────────── */
.btn-theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-height: 36px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

/* ─── Hamburger Button (mobile) ────────────────────────────── */
.sidebar-hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: #0d1f3c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.18s ease;
}

.sidebar-hamburger:hover {
  background: #162846;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ─── Mobile Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar-hamburger {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 150;
    width: 260px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
  }

  .sidebar-footer {
    display: flex;
  }
}

@media (max-width: 820px) and (min-width: 769px) {
  .sidebar {
    width: 220px;
  }
}

.notificacoes-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bell-btn {
  background: transparent;
  border: none;
  color: var(--color-text, #e2e8f0);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  position: relative;
  transition: background 0.15s;
}

.bell-btn:hover {
  background: var(--color-surface2, rgba(255,255,255,0.06));
}

.bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-danger, #ef4444);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.notificacoes-dropdown {
  position: fixed;
  top: 60px;
  left: 270px;
  width: 320px;
  max-height: 400px;
  background: var(--color-surface, #1e293b);
  border: 1px solid var(--color-border, #334155);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notificacoes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border, #334155);
  font-size: 0.9rem;
  color: var(--color-text, #e2e8f0);
}

.btn-limpar {
  background: none;
  border: none;
  color: var(--color-primary, #14b8a6);
  cursor: pointer;
  font-size: 0.78rem;
}

.notificacoes-lista {
  overflow-y: auto;
  max-height: 340px;
  padding: 4px 0;
}

.notificacoes-vazio {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-muted, #64748b);
  font-size: 0.85rem;
}

.notificacao-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border, rgba(51,65,85,0.4));
  transition: background 0.1s;
}

.notificacao-item:hover {
  background: var(--color-surface2, rgba(255,255,255,0.03));
}

.notificacao-item:last-child {
  border-bottom: none;
}

.notificacao-icone {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.notificacao-conteudo p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text, #e2e8f0);
  line-height: 1.4;
}

.notificacao-conteudo small {
  color: var(--color-muted, #64748b);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .notificacoes-dropdown {
    left: 10px;
    right: 10px;
    width: auto;
    top: 55px;
  }
}
/* Main Layout Styles */
.main-layout {
  display: flex;
  min-height: 100vh;
  background: #f0f4f8;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-width: 0;
}

.trial-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trial-banner--alerta {
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  border-bottom-color: #fbbf24;
  color: #92400e;
}

.trial-banner--urgente {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-bottom-color: #ef4444;
  color: #991b1b;
  animation: pulse-banner 1.5s ease-in-out infinite;
}

@keyframes pulse-banner {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Scrollbar Styling */
.main-content::-webkit-scrollbar {
  width: 6px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ─── Dark Mode Layout ──────────────────────────────────── */
html.dark .main-layout {
  background: #0f172a;
}

html.dark .trial-banner {
  background: linear-gradient(135deg, #422006 0%, #3d1f03 100%);
  border-bottom-color: #78350f;
  color: #fed7aa;
}

html.dark .trial-banner--alerta {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  border-bottom-color: #f59e0b;
  color: #fde68a;
}

html.dark .trial-banner--urgente {
  background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
  border-bottom-color: #ef4444;
  color: #fca5a5;
}

/* ─── Responsive Design ─────────────────────────────────── */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }

  .main-content {
    overflow-x: hidden;
    padding-top: 60px; /* space for hamburger button */
  }
}

@media (max-width: 640px) {
  .main-layout {
    flex-direction: column;
  }

  .main-content {
    overflow-x: hidden;
    padding-top: 60px;
  }
}

.dashboard-container {
  background: #eef3f8;
}

.dashboard-brand-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin-bottom: 22px;
  padding: 34px 30px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.94), rgba(37, 99, 235, 0.9)),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.22), transparent 34%);
  color: #ffffff;
}

.dashboard-brand-hero::after {
  content: "";
  position: absolute;
  inset: 18px -80px auto auto;
  width: min(620px, 64vw);
  aspect-ratio: 1.65;
  border: 4px solid rgba(15, 54, 96, 0.14);
  border-radius: 48px;
  transform: rotate(32deg);
}

.dashboard-brand-logo {
  position: absolute;
  right: 42px;
  top: 34px;
  width: min(520px, 48vw);
  height: 230px;
  object-fit: contain;
  opacity: 0.18;
  filter: saturate(0.85);
  pointer-events: none;
}

.brand-hero-content,
.metrics-grid {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-total {
  display: block;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(7px);
}

.metric-card span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1.1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chart-card,
.alerts-panel {
  padding: 18px;
  min-height: 330px;
}

.alerts-panel {
  grid-column: span 3;
  min-height: auto;
}

.alert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
}

.alert-row:first-of-type {
  border-top: 0;
}

.alert-row strong,
.alert-row span {
  display: block;
}

.alert-row strong {
  color: #102033;
}

.alert-row div span {
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .alerts-panel {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .dashboard-brand-hero {
    min-height: auto;
    padding: 24px 16px;
  }

  .dashboard-brand-logo {
    width: 78vw;
    height: 160px;
    right: -20px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
.clientes-filtros {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.cliente-form,
.import-preview {
  padding: 18px;
  margin-bottom: 16px;
}

.bulk-clientes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.select-all-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #102033;
}

.select-all-row input,
.select-cell input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: #0f766e;
}

.select-cell {
  width: 44px;
  text-align: center;
}

.btn-danger-main {
  border: 0;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.btn-danger-main:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.import-message {
  margin-bottom: 16px;
  padding: 13px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.import-message.info {
  color: #0f5132;
  background: #d1fae5;
  border: 1px solid #86efac;
}

.import-message.warning {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.form-actions {
  margin: 16px 0 0;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.import-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  color: #334155;
}

.import-row.has-error {
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 960px) {
  .clientes-filtros,
  .import-row,
  .bulk-clientes {
    grid-template-columns: 1fr;
    display: grid;
  }
}

/* Modal CSV */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-box {
  background: var(--surface, #fff);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.modal-body {
  padding: 20px;
}
.grid-mensagens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.card-mensagem {
  text-align: left;
  padding: 18px;
  border: 1px solid #dfe7ef;
  cursor: pointer;
}

.card-mensagem h3 {
  color: #102033;
  margin-bottom: 8px;
}

.card-mensagem p {
  color: #64748b;
  min-height: 48px;
}

.badge {
  display: inline-flex;
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.mensagem-preview-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mensagem-preview-panel textarea {
  min-height: 220px;
}

.mensagens-editor-grid {
  margin-bottom: 18px;
}

.confirmacao-form {
  padding: 18px;
  margin-bottom: 18px;
}

.confirmacao-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.confirmacao-form textarea {
  min-height: 140px;
}

.modelo-form,
.mensagens-modelos-lista {
  padding: 18px;
}

.modelo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modelo-card {
  border-top: 1px solid #e2e8f0;
  padding: 14px 0;
}

.modelo-card:first-of-type {
  border-top: 0;
}

.modelo-card strong,
.modelo-card span {
  display: block;
}

.modelo-card span,
.modelo-card p {
  color: #64748b;
}

.modelo-card p {
  margin: 8px 0 0;
}

.modelo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tabs button {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 800;
}

.tabs button.active {
  background: #102033;
  color: #ffffff;
  border-color: #102033;
}

.envio-panel,
.preview-panel,
.modelo-form,
.modelos-lista {
  padding: 18px;
}

.cliente-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
}

.cliente-check:first-of-type {
  border-top: 0;
}

.cliente-check strong,
.cliente-check small {
  display: block;
}

.cliente-check small {
  color: #64748b;
}

.preview-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-panel textarea {
  min-height: 260px;
}

.payment-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  color: #334155;
}

.payment-card strong {
  color: #102033;
}

.modelo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modelo-card {
  border-top: 1px solid #e2e8f0;
  padding: 14px 0;
}

.modelo-card:first-of-type {
  border-top: 0;
}

.modelo-card strong,
.modelo-card span {
  display: block;
}

.modelo-card span,
.modelo-card p {
  color: #64748b;
}

.modelo-card p {
  margin: 8px 0 0;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-small.active {
  background: #102033;
  border-color: #102033;
  color: #ffffff;
}

.modelo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.selection-count {
  color: #64748b;
  font-weight: 800;
  margin: 0 0 8px;
}

.automatic-form,
.automation-preview {
  padding: 18px;
}

.automatic-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 800;
}

.toggle-row input,
.feature-grid input {
  min-height: auto;
  width: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.feature-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 700;
}

.automation-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid #e2e8f0;
  padding: 12px 0;
}

.automation-row:first-of-type {
  border-top: 0;
}

.automation-row strong {
  color: #102033;
}

.automation-row span {
  color: #64748b;
}

.section-flag-modelos {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
}

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 800;
  color: #102033;
  margin: 0 0 6px;
}

.flag-modelos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.flag-modelo-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.85rem;
}

.flag-badge {
  display: inline-block;
  background: #e2e8f0;
  color: #334155;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 8px;
}
.logs-container {
  background: #eef3f8;
}

.filtro-tipo {
  min-width: 190px;
}

.logs-alerta {
  margin-bottom: 14px;
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.empty-cell {
  padding: 22px;
  text-align: center;
  color: #64748b;
}

.status-pendente {
  background: #fef3c7;
  color: #92400e;
}

/* Tabs de logs */
.tabs-logs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
}

.tabs-logs .tab {
  padding: 8px 18px;
  background: transparent;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.15s;
}

.tabs-logs .tab.ativo {
  background: #2563eb;
  color: #fff;
}

/* Toolbar extras */
.toolbar.mb-2 {
  margin-bottom: 12px;
}

.filtros-atividades {
  flex-wrap: wrap;
  gap: 8px;
}

.filtro-data {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}

.filtro-data input {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
}

/* Info de total */
.atividades-info {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
}

/* Timeline de atividades */
.timeline-atividades {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  transition: box-shadow 0.15s;
}

.timeline-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.timeline-icone {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-conteudo {
  flex: 1;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-acao {
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
  text-transform: capitalize;
}

.timeline-data {
  font-size: 12px;
  color: #94a3b8;
}

.timeline-detalhe {
  margin-top: 4px;
  font-size: 13px;
  color: #475569;
}

/* Paginacao */
.paginacao-atividades {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  font-size: 14px;
  color: #475569;
}
.resumo-pagamentos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.card-resumo {
  padding: 18px;
  border-left: 4px solid #2563eb;
}

.card-resumo.recebido {
  border-left-color: #16a34a;
}

.card-resumo.pendente {
  border-left-color: #f59e0b;
}

.card-resumo span,
.card-resumo small {
  display: block;
  color: #64748b;
  font-weight: 800;
}

.card-resumo strong {
  display: block;
  margin: 8px 0;
  color: #102033;
  font-size: 1.7rem;
}

.filtros-pagamentos {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.pagamento-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 760px) {
  .filtros-pagamentos {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   PROMOÇÕES — Layout completo redesenhado
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────── */
.promo-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 0 40px;
}

.promo-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.promo-page-header h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
}

.promo-page-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* ── Section cards ──────────────────────────────────────── */
.promo-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.promo-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.promo-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.promo-section-icon.green  { background: #dcfce7; }
.promo-section-icon.blue   { background: #dbeafe; }
.promo-section-icon.purple { background: #ede9fe; }

.promo-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.promo-section-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin: 2px 0 0;
}

.promo-section-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Form fields ─────────────────────────────────────────── */
.promo-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.promo-field label {
  font-size: 0.83rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-field input,
.promo-field select,
.promo-field textarea {
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
  font-family: inherit;
}

.promo-field input:focus,
.promo-field select:focus,
.promo-field textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.promo-field textarea {
  resize: vertical;
  min-height: 88px;
}

.promo-field-hint {
  font-size: 0.77rem;
  color: #94a3b8;
  margin-top: 2px;
}

.promo-field-hint code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.75rem;
  color: #6366f1;
}

.promo-row {
  display: grid;
  gap: 14px;
}

.promo-row-2 { grid-template-columns: 1fr 1fr; }
.promo-row-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 640px) {
  .promo-row-2,
  .promo-row-3 {
    grid-template-columns: 1fr;
  }
}

/* ── Tiers grid ──────────────────────────────────────────── */
.promo-tiers-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-tiers-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-tier-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 100px;
  gap: 8px;
  align-items: center;
}

.promo-tier-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
}

.promo-tier-input {
  position: relative;
}

.promo-tier-input input {
  width: 100%;
  padding: 7px 10px 7px 28px;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.88rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}

.promo-tier-input input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}

.promo-tier-prefix {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #94a3b8;
  pointer-events: none;
}

.promo-tier-saving {
  font-size: 0.78rem;
  font-weight: 700;
  color: #16a34a;
  text-align: right;
}

.promo-tier-saving.negativo {
  color: #ef4444;
}

@media (max-width: 700px) {
  .promo-tier-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 4px;
  }
  .promo-tier-label {
    grid-column: 1 / -1;
  }
}

/* ── Preview message ─────────────────────────────────────── */
.promo-preview-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 16px;
}

.promo-preview-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.promo-preview-text {
  font-size: 0.9rem;
  color: #14532d;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

/* ── Saved promotions list ───────────────────────────────── */
.promo-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.promo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: default;
  transition: background 0.12s;
}

.promo-item:last-child {
  border-bottom: none;
}

.promo-item:hover {
  background: #f8fafc;
}

.promo-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.promo-item-nome {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-item-tipo {
  font-size: 0.78rem;
  color: #64748b;
}

.promo-item-acoes {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.promo-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-badge.desconto   { background: #dbeafe; color: #1e40af; }
.promo-badge.indique    { background: #fef9c3; color: #854d0e; }

/* ── Envio section ───────────────────────────────────────── */
.promo-envio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .promo-envio-grid {
    grid-template-columns: 1fr;
  }
}

.promo-filtros-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-filtros-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-filtros-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.promo-filtros-row select,
.promo-filtros-row input {
  flex: 1;
  min-width: 100px;
  padding: 7px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.85rem;
  color: #0f172a;
  background: #fff;
  outline: none;
  font-family: inherit;
}

.promo-filtros-row select:focus,
.promo-filtros-row input:focus {
  border-color: #6366f1;
}

/* ── Clientes checklist ──────────────────────────────────── */
.promo-clientes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-clientes-count {
  font-size: 0.82rem;
  color: #64748b;
}

.promo-clientes-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.promo-cliente-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.1s;
}

.promo-cliente-row:last-child {
  border-bottom: none;
}

.promo-cliente-row:hover {
  background: #f8fafc;
}

.promo-cliente-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #6366f1;
  cursor: pointer;
  flex-shrink: 0;
}

.promo-cliente-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.promo-cliente-nome {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-cliente-meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

.promo-cliente-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.promo-cliente-status.ativo    { background: #dcfce7; color: #166534; }
.promo-cliente-status.vencido  { background: #fee2e2; color: #991b1b; }
.promo-cliente-status.pendente { background: #fef3c7; color: #92400e; }

.promo-empty-list {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.88rem;
}

/* ── Send button area ────────────────────────────────────── */
.promo-envio-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.promo-envio-summary {
  font-size: 0.85rem;
  color: #64748b;
}

.promo-envio-result {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.promo-envio-result.ok    { background: #dcfce7; color: #14532d; }
.promo-envio-result.error { background: #fee2e2; color: #991b1b; }

/* ── Historico ───────────────────────────────────────────── */
.promo-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.promo-hist-table th {
  padding: 9px 12px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.promo-hist-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.promo-hist-table tr:last-child td {
  border-bottom: none;
}

.promo-hist-table tr:hover td {
  background: #f8fafc;
}

.hist-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.73rem;
  font-weight: 700;
}

.hist-badge.ok    { background: #dcfce7; color: #166534; }
.hist-badge.error { background: #fee2e2; color: #991b1b; }
.hist-badge.mix   { background: #fef3c7; color: #92400e; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-promo-primary {
  padding: 9px 20px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}

.btn-promo-primary:hover:not(:disabled) {
  background: #4f46e5;
  transform: translateY(-1px);
}

.btn-promo-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-promo-secondary {
  padding: 8px 16px;
  background: transparent;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.btn-promo-secondary:hover:not(:disabled) {
  border-color: #6366f1;
  color: #6366f1;
}

.btn-promo-danger {
  padding: 6px 12px;
  background: transparent;
  color: #ef4444;
  border: 1.5px solid #fecaca;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
}

.btn-promo-danger:hover {
  background: #fee2e2;
}

.btn-promo-edit {
  padding: 6px 12px;
  background: transparent;
  color: #6366f1;
  border: 1.5px solid #e0e7ff;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
}

.btn-promo-edit:hover {
  background: #eef2ff;
}

.btn-promo-send {
  padding: 6px 14px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
}

.btn-promo-send:hover {
  background: #15803d;
}

.btn-link-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Spinner ─────────────────────────────────────────────── */
.promo-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Empty state ─────────────────────────────────────────── */
.promo-section-empty {
  padding: 32px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Modal Agendar */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-box {
  background: var(--surface, #fff);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.modal-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--text, #102033);
}

.modal-body {
  padding: 20px;
}

.promo-envio-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.configuracoes-container {
  padding: 30px;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.configuracoes-container h1 {
  font-size: 2.5rem;
  margin: 0 0 30px 0;
  color: #1f2937;
}

.tabs-configuracoes {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e5e7eb;
}

.tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab:hover {
  color: #1f2937;
}

.tab.ativo {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

.conteudo-tabs {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-content h2 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 1.5rem;
}

.form-dados,
.form-pagamento {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.form-pagamento h3 {
  margin: 20px 0 15px 0;
  color: #1f2937;
  font-size: 1.2rem;
}

.form-dados input,
.form-pagamento input,
.form-pagamento select,
.form-pagamento textarea {
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.form-dados input:disabled {
  background: #f9fafb;
  color: #6b7280;
}

.row-dois {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.lista-formas {
  margin-top: 30px;
}

.lista-formas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lista-formas h3 {
  margin: 0 0 15px 0;
  color: #1f2937;
}

.payment-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 8px -2px 0;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 28%);
}

.card-forma {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-forma strong {
  display: block;
  color: #1f2937;
  margin-bottom: 5px;
}

.info-forma p {
  margin: 5px 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.info-forma .chave {
  font-weight: 600;
  color: #1f2937;
}

.acoes {
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge-ativo {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-plano {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
}

.upgrade-box {
  margin-top: 18px;
  max-width: 840px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.upgrade-box h3 {
  color: #102033;
  margin: 0 0 14px;
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.plan-option {
  display: grid;
  gap: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
}

.plan-option.selected {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.plan-option input {
  width: auto;
  min-height: auto;
}

.plan-option strong,
.plan-option b {
  color: #102033;
}

.logo-preview {
  display: block;
  width: 132px;
  height: 76px;
  object-fit: contain;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.logo-card strong,
.logo-card p {
  display: block;
}

.logo-card p {
  max-width: 360px;
  margin: 5px 0 10px;
  color: #64748b;
  font-size: 0.9rem;
}

.card-plano h3 {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
}

.card-plano p {
  margin: 10px 0;
  font-size: 1.1rem;
}

.card-plano strong {
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-small:hover {
  background: #f3f4f6;
}

.btn-danger {
  color: #ef4444;
  border-color: #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
}

/* ---- Renovacao Automatica ---- */

.renovacao-toggle {
  margin-bottom: 8px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
}

.painel-titulo {
  margin: 16px 0 6px;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tabs-admin {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 800;
}

.tab.ativo {
  background: #102033;
  color: #ffffff;
  border-color: #102033;
}

.conteudo-admin {
  padding: 18px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.cards-planos,
.resumo-financeiro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card-plano-admin,
.card-financeiro {
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.card-plano-admin h3,
.card-financeiro strong {
  color: #102033;
}

.card-financeiro span,
.card-plano-admin p {
  color: #64748b;
  display: block;
}

.card-plano-admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-plano-admin small {
  color: #475569;
  line-height: 1.5;
}

.admin-form {
  margin-top: 18px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.admin-form h3 {
  margin: 0 0 14px;
  color: #102033;
}

.admin-form textarea {
  min-height: 92px;
  resize: vertical;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.feature-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 700;
}

.feature-grid input {
  min-height: auto;
  width: auto;
}

.admin-form .toolbar {
  margin: 14px 0 0;
}

.compact-admin-form {
  margin: 0 0 18px;
}

.finance-table {
  margin-top: 18px;
}

.lembrete-revendedores {
  margin-bottom: 18px;
}

/* ─── SaaS Metrics ───────────────────────────────────────────── */
.saas-metrics-loading,
.saas-metrics-erro {
  padding: 32px;
  text-align: center;
  color: var(--text);
  font-size: 15px;
}

.saas-metrics-erro {
  color: #dc2626;
}

.saas-metrics-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.saas-metrics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.saas-metric-card {
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #dfe7ef);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.saas-metric-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saas-metric-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.saas-metric-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.saas-metric-valor {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.saas-metric-sub {
  font-size: 12px;
  color: #64748b;
}

/* Status grid */
.saas-rev-status {
  padding: 16px 20px;
}

.saas-rev-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.saas-rev-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  gap: 4px;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
}

.saas-rev-item strong {
  font-size: 28px;
  font-weight: 800;
}

.saas-rev-item span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.saas-rev-ativo strong { color: #16a34a; }
.saas-rev-trial strong { color: #2563eb; }
.saas-rev-bloqueado strong { color: #dc2626; }
.saas-rev-inativo strong { color: #94a3b8; }

/* Charts grid */
.saas-metrics-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

/* Plano badge */
.plano-badge {
  background: var(--accent-bg, rgba(15,118,110,0.08));
  color: var(--accent, #0f766e);
  border: 1px solid var(--accent-border, rgba(15,118,110,0.3));
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

@media (max-width: 600px) {
  .saas-metrics-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .saas-metrics-charts {
    grid-template-columns: 1fr;
  }
  .saas-metric-valor {
    font-size: 20px;
  }
}
.backup-info-card {
  margin-bottom: 18px;
  padding: 16px 20px;
}

.backup-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.backup-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.backup-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.backup-item strong {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}

.backup-item span:last-child {
  font-size: 13px;
  color: #334155;
}
/* ─── Auth Page Layout ─────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 480px) 1fr;
  background: #080e1a;
}

/* ─── Left Panel (Form) ─────────────────────────────────────── */
.auth-panel {
  background: #0d1526;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  border-right: 1px solid rgba(45, 212, 191, 0.12);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.4);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.3);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.2);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-brand strong {
  display: block;
  font-size: 1.1rem;
  color: #e2e8f0;
  letter-spacing: -0.02em;
}

.auth-brand small {
  display: block;
  color: #94a3b8;
  font-size: 0.78rem;
}

.auth-copy h1 {
  color: #e2e8f0;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.auth-copy p {
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: 380px;
  line-height: 1.6;
}

/* ─── Form ────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.85rem;
}

.auth-form input {
  min-height: 44px;
  border: 1.5px solid rgba(45, 212, 191, 0.15);
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.95rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.8);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #14b8a6;
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.auth-form input::placeholder {
  color: #475569;
}

/* Fix browser autofill dark background */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0d1b2e inset;
  -webkit-text-fill-color: #e2e8f0;
  caret-color: #e2e8f0;
}

.check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  cursor: pointer;
}

.check-row input {
  min-height: auto;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #14b8a6;
}

.auth-submit {
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.auth-feedback {
  margin: 0;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid rgba(45, 212, 191, 0.1);
}

.auth-actions button {
  border: 0;
  background: transparent;
  color: #2dd4bf;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-actions button:hover {
  color: #5eead4;
}

/* ─── "Conheça o HubCronos" button — already styled teal ──── */
.auth-actions-landing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid #0d9488;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 12px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.auth-actions-landing:hover {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
  color: #ffffff;
}

/* ─── Right Panel (Preview) ─────────────────────────────────── */
.auth-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 52px;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(45, 212, 191, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(29, 78, 216, 0.18) 0%, transparent 40%),
    linear-gradient(145deg, #080e1a 0%, #0d1526 45%, #0d2137 100%);
  color: #ffffff;
  overflow: hidden;
}

/* Decorative glow circles */
.auth-preview::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.1);
  filter: blur(60px);
  pointer-events: none;
}

.auth-preview::after {
  content: "";
  position: absolute;
  bottom: 160px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.12);
  filter: blur(50px);
  pointer-events: none;
}

/* ─── Preview top area (headline) ──────────────────────────── */
.preview-header {
  position: relative;
  z-index: 2;
}

.preview-header span {
  display: inline-block;
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5eead4;
  margin-bottom: 16px;
}

.preview-header h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #e2e8f0;
  margin: 0 0 12px;
}

.preview-header p {
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 360px;
  line-height: 1.6;
}

/* ─── Robot / Logo image in center ─────────────────────────── */
.preview-image-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 24px 0;
}

.preview-image-wrap img {
  width: min(320px, 48%);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 24px 48px rgba(2, 6, 23, 0.5)) brightness(1.05);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ─── Metrics cards ─────────────────────────────────────────── */
.preview-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: auto;
}

.preview-grid div {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(45, 212, 191, 0.15);
  border-radius: 12px;
  padding: 16px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s, border-color 0.2s;
}

.preview-grid div:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(45, 212, 191, 0.3);
}

.preview-grid b {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2dd4bf;
}

.preview-grid span {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    background: #080e1a;
  }

  .auth-panel {
    min-height: 100vh;
  }

  .auth-preview {
    display: none;
  }
}

@media (max-width: 560px) {
  .auth-panel {
    padding: 32px 24px;
  }
}
.whatsapp-connect,
.whatsapp-settings {
  padding: 18px;
}

.qr-box {
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 16px;
  color: #64748b;
}

.channels-toolbar {
  align-items: center;
  margin-bottom: 14px;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.channel-card {
  display: grid;
  gap: 16px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.channel-card.selected {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.channel-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.channel-avatar {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 35%, #7c3aed 0 28%, transparent 29%),
    linear-gradient(135deg, #16a34a, #65c466);
  cursor: pointer;
}

.channel-avatar span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 0.82rem;
}

.channel-name {
  min-width: 0;
}

.channel-name input {
  width: 100%;
  min-height: 30px;
  border: 0;
  color: #102033;
  background: transparent;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.channel-name small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.connection-state {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 16px 2px;
}

.connection-state strong,
.connection-state p,
.connection-state small {
  display: block;
}

.connection-state strong {
  color: #334155;
}

.connection-state p {
  margin: 3px 0;
  color: #102033;
  font-weight: 700;
}

.connection-state p span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.connection-state small {
  color: #64748b;
}

.signal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: end center;
  grid-template-columns: repeat(3, 7px);
  gap: 4px;
  align-self: center;
  color: #94a3b8;
}

.signal-icon span {
  width: 7px;
  border-radius: 999px 999px 0 0;
  background: currentColor;
}

.signal-icon span:nth-child(1) {
  height: 12px;
}

.signal-icon span:nth-child(2) {
  height: 20px;
}

.signal-icon span:nth-child(3) {
  height: 30px;
}

.connection-state.connected .signal-icon,
.connection-state.connected strong {
  color: #15803d;
}

.connection-state.waiting .signal-icon,
.connection-state.waiting strong {
  color: #a16207;
}

.connection-state.syncing .signal-icon,
.connection-state.syncing strong {
  color: #0369a1;
}

.connection-state.offline .signal-icon,
.connection-state.offline strong {
  color: #64748b;
}

.channel-actions {
  display: flex;
  justify-content: center;
  padding: 10px 16px 14px;
  border-top: 1px solid #e2e8f0;
}

.btn-danger-channel {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  background: #ef4444;
  font-weight: 800;
  cursor: pointer;
}

.btn-danger-channel:hover {
  background: #dc2626;
}

.fake-qr {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, #102033 0 8px, #fff 8px 16px);
  border: 10px solid #ffffff;
  color: #0f766e;
  font-weight: 900;
  font-size: 2rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.whatsapp-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.provider-box {
  display: grid;
  gap: 12px;
  border: 1px solid #dfe7ef;
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
}

.risk-box {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  border-radius: 8px;
  padding: 14px;
  color: #9a3412;
}

.risk-box p {
  margin: 6px 0 0;
}

.whatsapp-check {
  color: #334155;
}

.whatsapp-feedback {
  margin: 12px 0 0;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 8px;
  padding: 12px;
}

.instance-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.instance-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.instance-row.selected {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.instance-row input[type="radio"] {
  width: auto;
  min-height: auto;
}

.uso-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #334155;
}

.uso-label {
  font-size: 0.85rem;
  color: #64748b;
}

.card-badge-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #64748b;
}

.dot-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

.dot-status.connected {
  background: #22c55e;
  box-shadow: 0 0 5px rgba(34,197,94,0.5);
}

.dot-status.waiting {
  background: #eab308;
}

.dot-status.syncing {
  background: #3b82f6;
}

.dot-status.offline {
  background: #94a3b8;
}

.status-text {
  white-space: nowrap;
}

.card-numero {
  padding: 4px 16px 0;
  font-size: 0.88rem;
  color: #334155;
}

.card-ultima {
  padding: 0 16px 10px;
  color: #94a3b8;
}

.qr-inline {
  padding: 8px 16px;
  display: flex;
  justify-content: center;
}

.qr-inline img {
  max-width: 180px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.channel-card-nova {
  border: 2px dashed #0f766e;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nova-instancia-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  text-align: center;
}

.nova-instancia-form p {
  font-weight: 700;
  color: #0f766e;
  margin: 0;
}

.channel-card-bloqueada {
  opacity: 0.6;
  background: #f8fafc;
  padding: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}

.channel-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.btn-danger-small {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #ef4444;
  background: #fee2e2;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
}

.btn-danger-small:hover {
  background: #fecaca;
}

.channel-name strong {
  display: block;
  color: #102033;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.95rem;
}

.channel-name strong:hover {
  color: #0f766e;
}

@media (max-width: 720px) {
  .channel-card-header {
    grid-template-columns: auto 1fr;
  }

  .channel-card-header .btn-small {
    grid-column: 1 / -1;
  }
}
.assinatura-page {
  min-height: 100vh;
  background: #eef3f8;
  padding: 42px;
}

.assinatura-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.assinatura-header h1 {
  color: #102033;
  font-size: 2.2rem;
}

.assinatura-header p {
  color: #64748b;
}

.assinatura-feedback {
  margin-top: 10px;
  color: #0f766e;
  font-weight: 600;
}

.assinatura-carregando {
  color: #64748b;
}

.assinatura-planos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 980px;
}

.assinatura-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  padding: 24px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.assinatura-card:hover {
  box-shadow: 0 6px 24px rgba(15, 118, 110, 0.12);
  transform: translateY(-2px);
}

.assinatura-card--destaque {
  border-color: #0f766e;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.18);
}

.assinatura-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f766e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.assinatura-card h2 {
  color: #102033;
  font-size: 1.2rem;
  font-weight: 700;
}

.assinatura-preco {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.assinatura-preco strong {
  color: #102033;
  font-size: 1.8rem;
  font-weight: 800;
}

.assinatura-preco span {
  color: #64748b;
  font-size: 0.9rem;
}

.assinatura-recursos {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.assinatura-recursos li {
  color: #475569;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.assinatura-recursos li::before {
  content: "✓";
  color: #0f766e;
  font-weight: 700;
  flex-shrink: 0;
}

.assinatura-card .btn-primary,
.assinatura-card .btn-outline {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.assinatura-card .btn-primary {
  background: #0f766e;
  color: #fff;
  border: none;
}

.assinatura-card .btn-primary:hover {
  background: #0d6460;
}

.assinatura-card .btn-outline {
  background: transparent;
  color: #0f766e;
  border: 1.5px solid #0f766e;
}

.assinatura-card .btn-outline:hover {
  background: rgba(15, 118, 110, 0.07);
}

.assinatura-acoes {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.excluir-conta {
  color: #ef4444;
}

.excluir-conta:hover {
  color: #dc2626;
}

@media (max-width: 600px) {
  .assinatura-page {
    padding: 24px 16px;
  }

  .assinatura-header h1 {
    font-size: 1.6rem;
  }
}

.checkout-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eef3f8;
  padding: 24px;
}

.checkout-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.checkout-kicker {
  color: #0f766e;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.checkout-card h1,
.checkout-card h2,
.checkout-price {
  color: #102033;
}

.checkout-price {
  font-size: 2rem;
}

.payment-data {
  border: 1px solid #dfe7ef;
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}

.payment-data p {
  margin: 6px 0;
}

.checkout-note {
  color: #64748b;
  margin: 0;
}


/* ─── Fonts ─────────────────────────────────────────────────── */
/* ─── Scroll Reveal ────────────────────────────────────────── */
.lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.lp-reveal.lp-reveal--in {
  opacity: 1;
  transform: translateY(0);
}
/* ─── Root ──────────────────────────────────────────────────── */
.lp {
  --lp-dark: #080e1a;
  --lp-dark-2: #0d1526;
  --lp-dark-3: #111e32;
  --lp-dark-4: #162038;
  --lp-surface: #1a2540;
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-teal: #0f766e;
  --lp-teal-light: #14b8a6;
  --lp-teal-bright: #2dd4bf;
  --lp-teal-glow: rgba(20, 184, 166, 0.18);
  --lp-emerald: #059669;
  --lp-blue: #1d4ed8;
  --lp-text: #e2e8f0;
  --lp-text-muted: #94a3b8;
  --lp-text-faint: #64748b;
  --lp-white: #ffffff;
  --lp-radius: 14px;
  --lp-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --lp-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.45);
  --lp-font-display: 'Syne', system-ui, sans-serif;
  --lp-font-body: 'DM Sans', system-ui, sans-serif;

  background: var(--lp-dark);
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* ─── Buttons ───────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  font-family: var(--lp-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.lp-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lp-btn--lg { min-height: 48px; padding: 0 22px; font-size: 0.95rem; }
.lp-btn--xl { min-height: 56px; padding: 0 32px; font-size: 1.05rem; border-radius: 12px; }
.lp-btn--full { width: 100%; }
.lp-btn--primary {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.35);
}
.lp-btn--primary:hover {
  background: linear-gradient(135deg, #0d6460, #0b8075);
  box-shadow: 0 6px 28px rgba(15, 118, 110, 0.5);
  transform: translateY(-2px);
}
.lp-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lp-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.lp-btn--outline {
  background: transparent;
  color: var(--lp-teal-light);
  border: 1.5px solid rgba(20, 184, 166, 0.4);
}
.lp-btn--outline:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: var(--lp-teal-light);
  transform: translateY(-2px);
}
.lp-btn--ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lp-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.lp-btn--ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lp-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-family: var(--lp-font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.22s ease;
}
.lp-btn--ghost-cta:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}
/* ─── Section common ────────────────────────────────────────── */
.lp-section {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 80px);
  position: relative;
}
.lp-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lp-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-teal-light);
  margin-bottom: 12px;
}
.lp-section-label--light {
  color: var(--lp-teal-bright);
}
.lp-section-title {
  font-family: var(--lp-font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--lp-white);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.lp-section-title--light {
  color: #ffffff;
}
.lp-section-sub {
  font-size: 1.05rem;
  color: var(--lp-text-muted);
  max-width: 560px;
  margin: 0 0 48px;
  line-height: 1.7;
}
.lp-section-sub--light {
  color: rgba(255, 255, 255, 0.65);
}
/* ─── HEADER ────────────────────────────────────────────────── */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(8, 14, 26, 0.88);
  border-bottom: 1px solid var(--lp-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lp-white);
}
.lp-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.lp-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lp-brand-text strong {
  display: block;
  font-family: var(--lp-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lp-white);
  letter-spacing: -0.02em;
}
.lp-brand-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--lp-text-faint);
}
.lp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lp-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lp-text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.lp-nav a:hover {
  color: var(--lp-white);
  background: rgba(255, 255, 255, 0.07);
}
.lp-nav-cta {
  margin-left: 6px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--lp-teal-light) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  text-decoration: none;
  transition: all 0.2s;
}
.lp-nav-cta:hover {
  background: rgba(20, 184, 166, 0.22) !important;
  border-color: var(--lp-teal-light) !important;
  color: var(--lp-teal-bright) !important;
}
/* Hamburger */
.lp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.lp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lp-text-muted);
  border-radius: 2px;
  transition: 0.2s;
}
.lp-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 16px clamp(20px, 5vw, 72px) 20px;
  background: rgba(8, 14, 26, 0.96);
  border-bottom: 1px solid var(--lp-border);
}
.lp-mobile-menu a,
.lp-mobile-menu .lp-mobile-cta {
  display: block;
  padding: 12px 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--lp-border);
  transition: color 0.2s;
}
.lp-mobile-menu a:hover {
  color: var(--lp-white);
}
.lp-mobile-cta {
  margin-top: 12px;
  border: none !important;
  background: linear-gradient(135deg, #0f766e, #0d9488) !important;
  color: #fff !important;
  border-radius: 10px;
  text-align: center;
}
/* ─── HERO ───────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 9vw, 100px) clamp(20px, 6vw, 80px);
  overflow: hidden;
}
.lp-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.lp-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.lp-hero-glow--1 {
  top: -100px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.22) 0%, transparent 70%);
}
.lp-hero-glow--2 {
  bottom: -60px;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.18) 0%, transparent 70%);
}
.lp-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.lp-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr);
  gap: clamp(40px, 7vw, 80px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.lp-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-teal-light);
  margin-bottom: 20px;
}
.lp-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-teal-light);
  box-shadow: 0 0 8px var(--lp-teal-light);
  animation: lp-pulse 2.4s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--lp-teal-light); }
  50% { opacity: 0.5; box-shadow: 0 0 20px var(--lp-teal-bright); }
}
.lp-hero-copy h1 {
  font-family: var(--lp-font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--lp-white);
  margin: 0 0 20px;
}
.lp-hero-accent {
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-hero-sub {
  font-size: 1.1rem;
  color: var(--lp-text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 0 28px;
}
.lp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lp-hero-note {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--lp-text-faint);
}
/* Hero visual */
.lp-hero-visual {
  position: relative;
}
.lp-hero-card--main {
  background: var(--lp-dark-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--lp-shadow-lg);
}
.lp-hero-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--lp-border);
}
.lp-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.lp-dot--red { background: #ff5f57; }
.lp-dot--yellow { background: #ffbd2e; }
.lp-dot--green { background: #28c840; }
.lp-hero-card-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--lp-text-faint);
  font-weight: 600;
}
.lp-hero-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.lp-hero-logo-img {
  width: min(160px, 50%);
  height: auto;
  border-radius: 50%;
  opacity: 0.9;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5)) brightness(1.05);
  animation: lp-float 5s ease-in-out infinite;
}
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.lp-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}
.lp-stat {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 14px 16px;
}
.lp-stat b {
  font-family: var(--lp-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lp-white);
  line-height: 1.1;
}
.lp-stat span {
  font-size: 0.74rem;
  color: var(--lp-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  font-weight: 600;
}
.lp-stat--accent b {
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Floating badges */
.lp-hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 40px;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  color: #4ade80;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.lp-hero-float svg {
  width: 16px;
  height: 16px;
  fill: #4ade80;
}
.lp-hero-float--1 {
  top: -18px;
  right: -24px;
  animation: lp-float-in 0.8s 0.4s ease backwards, lp-float 6s 1.2s ease-in-out infinite;
}
.lp-hero-float--2 {
  bottom: -18px;
  left: -24px;
  background: rgba(15, 118, 110, 0.15);
  border-color: rgba(20, 184, 166, 0.3);
  color: var(--lp-teal-bright);
  animation: lp-float-in 0.8s 0.7s ease backwards, lp-float 6s 1.8s ease-in-out infinite;
}
.lp-hero-float--2 svg {
  fill: none;
}
@keyframes lp-float-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.lp-badge-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--lp-teal-light);
  border-radius: 50%;
}
.lp-badge-check svg {
  width: 12px;
  height: 12px;
  stroke: white;
  fill: none;
  flex-shrink: 0;
}
/* ─── BENEFITS ──────────────────────────────────────────────── */
.lp-benefits {
  background: var(--lp-dark);
  text-align: center;
}
.lp-benefits .lp-section-sub {
  margin-left: auto;
  margin-right: auto;
}
.lp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 48px auto 0;
}
.lp-benefit-card {
  background: var(--lp-dark-2);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 32px 24px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.lp-benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.lp-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color) 30%, transparent);
  color: var(--icon-color);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.lp-benefit-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--icon-color);
}
.lp-benefit-card h3 {
  font-family: var(--lp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lp-white);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.lp-benefit-card p {
  font-size: 0.88rem;
  color: var(--lp-text-muted);
  line-height: 1.65;
  margin: 0;
}
/* ─── HOW IT WORKS ──────────────────────────────────────────── */
.lp-how {
  background: var(--lp-dark-2);
  text-align: center;
  overflow: hidden;
}
.lp-how-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lp-how-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12) 0%, transparent 65%);
  filter: blur(40px);
}
.lp-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 56px auto 0;
}
.lp-step-wrap {
  /* the reveal wrapper */
}
.lp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.lp-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-dark-4), var(--lp-surface));
  border: 1px solid rgba(20, 184, 166, 0.35);
  font-family: var(--lp-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--lp-teal-light);
  box-shadow: 0 0 0 8px rgba(20, 184, 166, 0.06);
  flex-shrink: 0;
}
.lp-step-line {
  position: absolute;
  top: 32px;
  left: calc(50% + 36px);
  right: calc(-50% + 36px);
  height: 1px;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.4), rgba(20, 184, 166, 0.1));
}
.lp-step-body h3 {
  font-family: var(--lp-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lp-white);
  margin: 0 0 10px;
}
.lp-step-body p {
  font-size: 0.9rem;
  color: var(--lp-text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 260px;
}
/* ─── FEATURES ──────────────────────────────────────────────── */
.lp-features {
  background: var(--lp-dark);
}
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 48px auto 0;
}
.lp-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--lp-dark-2);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  transition: all 0.25s ease;
}
.lp-feature-card:hover {
  border-color: rgba(20, 184, 166, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.lp-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--lp-teal-glow);
  border: 1px solid rgba(20, 184, 166, 0.25);
  color: var(--lp-teal-light);
  flex-shrink: 0;
}
.lp-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--lp-teal-light);
}
/* WhatsApp icon in feature-icon is fill-based */
.lp-feature-icon svg[viewBox="0 0 24 24"] {
  fill: var(--lp-teal-light);
  stroke: none;
}
.lp-feature-card h3 {
  font-family: var(--lp-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lp-white);
  margin: 0 0 6px;
}
.lp-feature-card p {
  font-size: 0.85rem;
  color: var(--lp-text-muted);
  margin: 0;
  line-height: 1.6;
}
/* ─── PRICING ───────────────────────────────────────────────── */
.lp-pricing {
  background: var(--lp-dark-2);
  text-align: center;
  overflow: hidden;
}
.lp-pricing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(15, 118, 110, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(29, 78, 216, 0.08), transparent);
  pointer-events: none;
}
.lp-pricing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 48px auto 0;
  align-items: start;
}
.lp-pricing-card {
  background: var(--lp-dark-3);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  position: relative;
  transition: all 0.25s ease;
}
.lp-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-lg);
}
.lp-pricing-card--featured {
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(160deg, rgba(15, 118, 110, 0.12) 0%, var(--lp-dark-3) 60%);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.25), 0 12px 40px rgba(0, 0, 0, 0.4);
}
.lp-pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--lp-teal), var(--lp-teal-light));
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.lp-pricing-card--dark {
  background: linear-gradient(160deg, #0d1526, #0f1e35);
  border-color: rgba(255, 255, 255, 0.1);
}
.lp-pricing-card h3 {
  font-family: var(--lp-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-text-muted);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lp-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.lp-pricing-price strong {
  font-family: var(--lp-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--lp-white);
  letter-spacing: -0.03em;
}
.lp-pricing-price span {
  font-size: 0.85rem;
  color: var(--lp-text-faint);
}
.lp-pricing-annual {
  font-size: 0.8rem;
  color: var(--lp-text-faint);
  margin: 6px 0 0;
}
.lp-pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.lp-pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--lp-text-muted);
  line-height: 1.5;
}
.lp-pricing-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--lp-teal-light);
  margin-top: 1px;
}
.lp-pricing-loading {
  position: relative;
  z-index: 2;
  margin: 24px auto 0;
  font-size: 0.85rem;
  color: var(--lp-text-faint);
  text-align: center;
}
/* ─── CTA FINAL ─────────────────────────────────────────────── */
.lp-cta {
  position: relative;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 6vw, 80px);
  text-align: center;
  background: var(--lp-dark);
  overflow: hidden;
}
.lp-cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.lp-cta-glow--1 {
  top: -120px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.2) 0%, transparent 70%);
}
.lp-cta-glow--2 {
  bottom: -80px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
}
.lp-cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.lp-cta h2 {
  font-family: var(--lp-font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--lp-white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.lp-cta-accent {
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-cta p {
  font-size: 1.1rem;
  color: var(--lp-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.lp-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* ─── FOOTER ────────────────────────────────────────────────── */
.lp-footer {
  background: var(--lp-dark-2);
  border-top: 1px solid var(--lp-border);
  padding: 56px clamp(20px, 6vw, 80px) 32px;
}
.lp-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  flex-shrink: 0;
}
.lp-footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  flex-shrink: 0;
}
.lp-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lp-footer-brand strong {
  display: block;
  font-family: var(--lp-font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--lp-white);
}
.lp-footer-brand small {
  display: block;
  font-size: 0.72rem;
  color: var(--lp-text-faint);
}
.lp-footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.lp-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-footer-col p {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lp-text-faint);
  margin: 0 0 4px;
}
.lp-footer-col a {
  font-size: 0.875rem;
  color: var(--lp-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lp-footer-col a:hover {
  color: var(--lp-teal-light);
}
.lp-footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--lp-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--lp-text-faint);
}
/* ─── WhatsApp icon shared ───────────────────────────────────── */
.lp-whatsapp-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}
/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .lp-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .lp-hero-content {
    grid-template-columns: 1fr;
  }

  .lp-hero-visual {
    display: none;
  }

  .lp-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 480px;
  }

  .lp-step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .lp-step-line {
    display: none;
  }

  .lp-step-body p {
    max-width: none;
  }

  .lp-footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .lp-nav {
    display: none;
  }

  .lp-hamburger {
    display: flex;
  }

  .lp-mobile-menu {
    display: flex;
  }

  .lp-benefits-grid {
    grid-template-columns: 1fr;
  }

  .lp-features-grid {
    grid-template-columns: 1fr;
  }

  .lp-pricing-grid {
    grid-template-columns: 1fr;
  }

  .lp-footer-links {
    gap: 28px;
  }

  .lp-footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .lp-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .lp-btn--ghost-cta {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .lp-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-hero-actions .lp-btn {
    justify-content: center;
  }
}
.page-shell {
  min-height: 100vh;
  padding: 28px 32px;
  background: #f0f4f8;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-header h1 {
  color: #0d1117;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p,
.muted {
  color: #64748b;
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.surface {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease;
}

.surface:hover {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost,
.btn-small {
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e 0%, #0e6b63 100%);
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0d6460 0%, #0b5a54 100%);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  color: #0f766e;
  background: #f0fdf9;
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.btn-secondary:hover:not(:disabled) {
  background: #ccfbf1;
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

.btn-danger {
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.btn-ghost:hover:not(:disabled) {
  background: #e2e8f0;
  color: #334155;
}

.btn-small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.8rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-small:hover:not(:disabled) {
  background: #e2e8f0;
  color: #334155;
}

.btn-small.active {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px;
}

.form-grid label,
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

input,
select,
textarea {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #0d1117;
  font: inherit;
  min-height: 40px;
  padding: 0 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

textarea {
  min-height: 110px;
  padding: 10px 12px;
  resize: vertical;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  white-space: nowrap;
}

th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  background: #fafbfc;
}

tbody tr:hover {
  background: #f8fafc;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.status-paid,
.status-pago,
.status-enviado,
.status-ativo {
  color: #065f46;
  background: #d1fae5;
}

.status-pendente,
.status-hoje {
  color: #78350f;
  background: #fef3c7;
}

.status-vencido,
.status-falhou,
.status-suspenso {
  color: #7f1d1d;
  background: #fee2e2;
}

.empty-state,
.loader,
.error-message {
  padding: 40px 30px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ─── Pagination ──────────────────────────────────────────── */
.paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #f1f5f9;
}

.paginacao-info {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

html.dark .paginacao {
  border-top-color: #1e293b;
}

html.dark .paginacao-info {
  color: #94a3b8;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.section-title {
  color: #0d1117;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.tabs button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tabs button:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.6);
}

.tabs button.active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

@media (max-width: 980px) {
  .page-shell {
    padding: 20px;
  }

  .page-header,
  .split-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 14px 12px;
  }

  .page-header {
    flex-direction: column;
    gap: 10px;
  }

  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 10px 8px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .btn-danger {
    width: 100%;
    text-align: center;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }
}

/* ─── Dark Mode Overrides ──────────────────────────────────── */
html.dark .page-shell {
  background: #0f172a;
}

html.dark .surface {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
}

html.dark .surface:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
}

html.dark .page-header h1 {
  color: #f1f5f9;
}

html.dark .page-header p,
html.dark .muted {
  color: #94a3b8;
}

html.dark th {
  background: #162032;
  color: #64748b;
}

html.dark td {
  color: #cbd5e1;
  border-bottom-color: #1e293b;
}

html.dark tbody tr:hover {
  background: #1a2b40;
}

html.dark input,
html.dark select,
html.dark textarea {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

html.dark .btn-ghost {
  color: #94a3b8;
  background: #1e293b;
  border-color: #334155;
}

html.dark .btn-ghost:hover:not(:disabled) {
  background: #293548;
  color: #e2e8f0;
}

html.dark .btn-secondary {
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.25);
}

html.dark .btn-secondary:hover:not(:disabled) {
  background: rgba(20, 184, 166, 0.15);
}

html.dark .btn-small {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

html.dark .btn-small:hover:not(:disabled) {
  background: #293548;
  color: #e2e8f0;
}

html.dark .section-title {
  color: #f1f5f9;
}

html.dark .tabs {
  background: #1e293b;
}

html.dark .tabs button {
  color: #94a3b8;
}

html.dark .tabs button:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

html.dark .tabs button.active {
  background: #0f172a;
  color: #14b8a6;
}

html.dark .status-paid,
html.dark .status-pago,
html.dark .status-enviado,
html.dark .status-ativo {
  color: #6ee7b7;
  background: rgba(6, 95, 70, 0.35);
}

html.dark .status-pendente,
html.dark .status-hoje {
  color: #fcd34d;
  background: rgba(120, 53, 15, 0.35);
}

html.dark .status-vencido,
html.dark .status-falhou,
html.dark .status-suspenso {
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.35);
}

html.dark .form-grid label,
html.dark .field {
  color: #cbd5e1;
}

html.dark .empty-state,
html.dark .loader {
  color: #64748b;
}

/* ─── Smooth Page Transitions ──────────────────────────────── */
.page-shell {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Mobile Table Card View ──────────────────────────────── */
@media (max-width: 640px) {
  .tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tabs button {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .paginacao {
    flex-wrap: wrap;
    gap: 8px;
  }

  .surface {
    border-radius: 8px;
  }
}

/* ─── Toast animation improvement ─────────────────────────── */
.Toastify__toast {
  border-radius: 10px !important;
  font-size: 0.88rem !important;
}

/* ─── Empty State improvement ─────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-state::before {
  content: "📋";
  font-size: 2rem;
  opacity: 0.5;
}

/* ─── Button loading state ────────────────────────────────── */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
