@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;
  }
}

/* Shared workspace design: scoped to the authenticated application. */
:root {
  --surface: #ffffff;
  --surface-muted: #f5f7fa;
  --workspace-bg: #f3f6fa;
  --workspace-ink: #182b43;
  --workspace-muted: #61738a;
  --workspace-line: #e1e8f0;
  --workspace-accent: #087f75;
  --workspace-accent-soft: #e8f6f3;
}

html.dark {
  --surface: #182438;
  --surface-muted: #1d2b41;
  --workspace-bg: #111b2b;
  --workspace-ink: #ecf2fb;
  --workspace-muted: #adbbcf;
  --workspace-line: #2c3b51;
  --workspace-accent: #45d5bf;
  --workspace-accent-soft: #183d3d;
}

.main-layout { background: var(--workspace-bg); }
.main-layout .page-shell { background: var(--workspace-bg); padding: 28px clamp(18px, 2.5vw, 40px) 40px; }
.main-layout .page-header { margin-bottom: 24px; align-items: center; }
.main-layout :is(.page-header, .promo-page-header) h1 { color: var(--workspace-ink); font-size: clamp(1.55rem, 2vw, 1.9rem); font-weight: 700; letter-spacing: -.035em; }
.main-layout :is(.page-header, .promo-page-header) p { color: var(--workspace-muted); font-size: .92rem; max-width: 720px; line-height: 1.65; }
.main-layout :is(.surface, .promo-section, .chatbot-status, .flow-empty) { background: var(--surface); border: 1px solid var(--workspace-line); border-radius: 14px; box-shadow: 0 2px 8px #15283c04; }
.main-layout .surface:hover { box-shadow: 0 2px 8px #15283c04; }
.main-layout .section-title { color: var(--workspace-ink); font-size: 1rem; font-weight: 650; }
.main-layout :is(input, select, textarea) { color: var(--workspace-ink); background: var(--surface); border-color: var(--workspace-line); }
.main-layout input::placeholder, .main-layout textarea::placeholder { color: var(--workspace-muted); opacity: .8; }
.main-layout :is(input, select, textarea):focus { border-color: var(--workspace-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--workspace-accent) 16%, transparent); }
.main-layout :is(button, a, summary):focus-visible { outline: 3px solid var(--workspace-accent); outline-offset: 3px; }
.main-layout :is(.btn-primary, .btn-secondary, .btn-ghost, .btn-small) { font-weight: 600; transition: background .15s, border-color .15s; }
.main-layout .btn-primary { background: #087f75; box-shadow: none; }
.main-layout .btn-primary:hover:not(:disabled) { background: #066b63; box-shadow: none; transform: none; }
.main-layout .btn-secondary { color: var(--workspace-accent); background: var(--workspace-accent-soft); border-color: color-mix(in srgb, var(--workspace-accent) 20%, transparent); }
.main-layout .btn-secondary:hover:not(:disabled) { transform: none; }
.main-layout :is(.btn-ghost, .btn-small) { background: var(--surface); color: var(--workspace-ink); border-color: var(--workspace-line); }
.main-layout .btn-small.btn-danger { color: #b42332; background: #fff3f4; border-color: #f0ced2; }
html.dark .main-layout .btn-small.btn-danger { color: #ffb8c0; background: #482a35; border-color: #67404a; }
.main-layout th { background: var(--surface-muted); color: var(--workspace-muted); font-weight: 650; font-size: .72rem; padding: 15px 16px; }
.main-layout td { color: var(--workspace-ink); border-bottom-color: var(--workspace-line); padding: 16px; font-size: .86rem; }
.main-layout tbody tr:hover { background: var(--surface-muted); }
.main-layout input[type="checkbox"] { width: 17px; min-height: 17px; accent-color: var(--workspace-accent); }

.workspace-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px clamp(18px, 2.5vw, 40px); background: var(--surface); border-bottom: 1px solid var(--workspace-line); min-height: 70px; }
.workspace-location { display: flex; align-items: center; gap: 12px; color: var(--workspace-muted); font-size: .82rem; }
.workspace-location strong { color: var(--workspace-ink); font-weight: 600; }
.workspace-account { display: flex; align-items: center; gap: 10px; color: var(--workspace-ink); font-size: .82rem; }
.workspace-avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--workspace-accent-soft); color: var(--workspace-accent); font-weight: 700; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 1000; padding: 12px 18px; background: var(--surface); border: 2px solid var(--workspace-accent); border-radius: 8px; color: var(--workspace-ink); }
.skip-link:focus { top: 12px; }

.main-layout .sidebar { width: 244px; background: #101f33; border-right: 1px solid #ffffff09; box-shadow: none; padding: 24px 15px 18px; gap: 22px; }
.main-layout .sidebar-header { padding: 0 3px 22px; gap: 10px; }
.main-layout .sidebar-header > div { min-width: 0; flex: 1; }
.main-layout .sidebar-title { font-size: 1.06rem; letter-spacing: -.035em; }
.main-layout .sidebar-header p { color: #a9b8ca; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-layout .sidebar-logo { width: 36px; height: 36px; }
.main-layout .sidebar-nav { gap: 5px; }
.main-layout .nav-link { min-height: 43px; padding: 0 12px; color: #b6c3d5; font-size: .86rem; border-radius: 9px; }
.main-layout .nav-link:hover { transform: none; opacity: 1; background: #ffffff09; color: #fff; }
.main-layout .nav-link.active { background: #1c4e50; box-shadow: inset 3px 0 #46cfba; color: #f0fffb; }
.main-layout .nav-icon, .main-layout .nav-link.active .nav-icon { background: transparent; width: 22px; height: 28px; }
.main-layout .plan-chip { padding: 11px 12px; background: #ffffff04; border-color: #ffffff10; }
.main-layout .plan-chip span { color: #a9b8ca; font-size: .66rem; letter-spacing: .08em; }
.main-layout .plan-chip strong { font-size: .81rem; }
.main-layout :is(.btn-theme-toggle, .btn-logout) { min-height: 36px; border-color: #ffffff16; color: #cbd8e7; background: transparent; }

.main-layout .dashboard-brand-hero { min-height: 270px; border-radius: 16px; padding: 26px; gap: 26px; background: radial-gradient(ellipse at right top, #245b61 0%, transparent 60%), #142c43; }
.main-layout .dashboard-brand-hero::after { border-color: #ffffff07; }
.main-layout .dashboard-brand-logo { width: 220px; height: 125px; opacity: .08; top: 14px; right: 20px; }
.main-layout .hero-kicker { color: #c3d9e2; font-weight: 600; letter-spacing: .06em; font-size: .7rem; }
.main-layout .hero-total { font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.main-layout .metrics-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.main-layout .metric-card { border: 1px solid #ffffff15; border-radius: 10px; background: #ffffff07; padding: 14px; backdrop-filter: none; }
.main-layout .metric-card span { text-transform: none; font-weight: 500; color: #d2dee8; font-size: .76rem; line-height: 1.4; }
.main-layout .metric-card strong { font-size: 1.35rem; font-weight: 650; letter-spacing: -.025em; color: #fff !important; }
.main-layout :is(.chart-card, .alerts-panel, .billing-card) { padding: 22px; }
.main-layout :is(.clientes-filtros, .cliente-form, .import-preview) { padding: 20px; }
.main-layout .select-all-row { color: var(--workspace-ink); font-weight: 600; font-size: .85rem; }
.main-layout .cliente-ponto-card { border-color: var(--workspace-line); background: var(--surface-muted); border-radius: 12px; }
.main-layout .cliente-pontos-total { color: var(--workspace-accent); }

.main-layout .promo-page { gap: 22px; }
.main-layout .promo-section-head { padding: 20px 22px; background: var(--surface); border-bottom-color: var(--workspace-line); }
.main-layout .promo-section-title { color: var(--workspace-ink); font-weight: 650; }
.main-layout .promo-section-sub { color: var(--workspace-muted); }
.main-layout .promo-field label { color: var(--workspace-ink); font-size: .82rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
.main-layout .promo-item-nome { color: var(--workspace-ink); }
.main-layout .promo-item-audience { color: var(--workspace-muted); font-size: .79rem; }
.main-layout .promo-item-info { gap: 7px; }
.main-layout :is(.promo-tiers-box, .promo-filtros-box) { background: var(--surface-muted); border-color: var(--workspace-line); }
.main-layout .promo-tier-label { color: var(--workspace-ink); }
.main-layout .promo-tier-input { background: var(--surface); border-color: var(--workspace-line); }
.main-layout .promo-tier-input input { background: transparent; color: var(--workspace-ink); }
.main-layout .promo-periodo-note { color: var(--workspace-muted); font-size: .82rem; line-height: 1.6; margin: 4px 0 12px; }
.main-layout .promo-preview-box { background: var(--workspace-accent-soft); border-color: color-mix(in srgb, var(--workspace-accent) 25%, transparent); }
.main-layout .promo-preview-label { color: var(--workspace-accent); }
.main-layout .promo-preview-text { color: var(--workspace-ink); }
.main-layout :is(.promo-clientes-list, .promo-cliente-row, .promo-item) { border-color: var(--workspace-line); }
.main-layout .promo-clientes-list { background: var(--surface); }
.main-layout .promo-cliente-row { cursor: pointer; }
.main-layout :is(.promo-item, .promo-cliente-row):hover { background: var(--surface-muted); }
.main-layout .promo-cliente-nome { color: var(--workspace-ink); }
.main-layout :is(.promo-cliente-meta, .promo-clientes-count, .promo-filtros-title, .promo-tiers-title) { color: var(--workspace-muted); }
.main-layout .btn-promo-primary { background: #087f75; border-color: #087f75; color: #fff; box-shadow: none; }
.main-layout .btn-promo-primary:hover:not(:disabled) { background: #066b63; }
.main-layout :is(.btn-promo-secondary, .btn-promo-edit) { color: var(--workspace-ink); background: var(--surface); border: 1px solid var(--workspace-line); }
.main-layout :is(.btn-promo-secondary, .btn-promo-edit):hover { background: var(--surface-muted); }
.main-layout .promo-tier-row { border-color: var(--workspace-line); }
.main-layout .promo-section-empty { color: var(--workspace-muted); }

.main-layout .chatbot-status { padding: 20px; gap: 8px; border-radius: 12px; }
.main-layout .chatbot-status span { color: var(--workspace-muted); font-size: .7rem; font-weight: 600; letter-spacing: .06em; }
.main-layout .chatbot-status strong { color: var(--workspace-ink); font-size: 1.05rem; }
.main-layout .chatbot-tabs { padding: 4px; border: 1px solid var(--workspace-line); background: var(--surface); border-radius: 10px; }
.main-layout .chatbot-tabs button { border-radius: 7px; min-height: 42px; }
.main-layout .chatbot-tabs button.active { background: var(--workspace-accent-soft); color: var(--workspace-accent); box-shadow: none; }
.main-layout .flow-editor { border-radius: 14px; padding: 20px; }
.main-layout :is(.flow-graph-settings, .flow-palette, .flow-properties) { background: var(--surface); border-color: var(--workspace-line); }
.main-layout .flow-stage { border-radius: 12px; border-color: var(--workspace-line); }
.main-layout .flow-empty { padding: 30px; }
html.dark .main-layout :is(.flow-node, .flow-empty-menus article, .flow-simulator, .flow-published-note, .chatbot-form) { background: var(--surface); border-color: var(--workspace-line); color: var(--workspace-muted); }
html.dark .main-layout :is(.flow-node > strong, .flow-empty h2, .flow-empty-menus article strong, .flow-panel-heading strong, .chatbot-form-head h2) { color: var(--workspace-ink); }
html.dark .main-layout :is(.flow-node > p, .flow-node-options span, .flow-empty-menus article span, .flow-graph-settings label, .flow-properties label) { color: var(--workspace-muted); border-color: var(--workspace-line); }
html.dark .main-layout :is(.flow-node header, .flow-graph-settings summary) { background: var(--surface-muted); border-color: var(--workspace-line); color: var(--workspace-ink); }
html.dark .main-layout .flow-canvas-scroll { background-color: var(--workspace-bg); background-image: radial-gradient(#40536a .8px, transparent .8px); }
html.dark .main-layout .flow-block { background: var(--surface); border-color: var(--workspace-line); color: var(--workspace-ink); }
html.dark .main-layout .flow-node.selected { border-color: var(--workspace-accent); }
html.dark .main-layout :is(.flow-palette-hint, .flow-safety-note) { background: var(--workspace-accent-soft); color: var(--workspace-muted); }

@media (max-width: 1200px) {
  .main-layout .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .main-layout .sidebar { width: 220px; }
}
@media (max-width: 768px) {
  .main-layout .sidebar { width: 260px; }
  .main-layout .main-content { padding-top: 0; }
  .workspace-bar { min-height: 66px; padding-left: 68px; padding-right: 14px; }
  .workspace-location > span { display: none; }
  .workspace-account > span:last-child { display: none; }
  .main-layout .page-shell { padding: 22px 16px 32px; }
  .main-layout .page-header { align-items: stretch; }
  .main-layout .dashboard-brand-hero { padding: 22px 18px; }
  .main-layout .promo-envio-grid { grid-template-columns: minmax(0, 1fr); }
  .main-layout .flow-editor { padding: 12px; }
  .main-layout .flow-empty { padding: 22px; }
}
@media (max-width: 480px) {
  .main-layout .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-layout .metric-card { padding: 12px; }
  .main-layout .promo-page-header > div:last-child { width: 100%; flex-wrap: wrap; }
  .main-layout .promo-section-body { padding: 16px; }
  .main-layout .promo-row-2 { grid-template-columns: minmax(0, 1fr); }
  .main-layout .promo-tier-row { grid-template-columns: minmax(64px, 1fr) minmax(76px, 1fr) minmax(76px, 1fr); gap: 6px; }
  .main-layout .promo-tier-row > :last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .main-layout *, .main-layout *::before, .main-layout *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Visual system v2: shared presentation layer for every authenticated page.
   It intentionally contains no layout routes or product-specific behaviour. */
.main-layout {
  background:
    radial-gradient(circle at 95% -10%, #c7ece53d 0, transparent 30%),
    var(--workspace-bg);
}

.main-layout .workspace-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 74px;
  padding-block: 16px;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 #e2e8f099, 0 10px 24px #13273b05;
}

.main-layout .workspace-location {
  gap: 9px;
  font-weight: 500;
}

.main-layout .workspace-location strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent);
  font-size: .78rem;
}

.main-layout .workspace-account {
  padding: 4px 8px 4px 5px;
  border: 1px solid var(--workspace-line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 8px #13273b08;
}

.main-layout .page-shell {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: 32px clamp(20px, 3vw, 46px) 48px;
}

.main-layout .page-header {
  align-items: center;
  margin-bottom: 28px;
}

.main-layout .page-header > div:first-child {
  position: relative;
  padding-left: 16px;
}

.main-layout .page-header > div:first-child::before {
  content: "";
  position: absolute;
  inset: 5px auto 5px 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1ab39f, #087f75);
}

.main-layout .page-header h1 {
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
  line-height: 1.1;
}

.main-layout .page-header p {
  margin-top: 7px;
}

.main-layout .toolbar {
  margin: 0;
  padding: 5px;
  border: 1px solid var(--workspace-line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 5px 16px #13273b08;
}

.main-layout :is(.btn-primary, .btn-secondary, .btn-ghost, .btn-small, .btn-promo-primary, .btn-promo-secondary, .btn-promo-edit) {
  border-radius: 9px;
  letter-spacing: -.01em;
}

.main-layout .btn-primary,
.main-layout .btn-promo-primary {
  background: linear-gradient(135deg, #09877b, #056b64);
  border-color: #056b64;
  box-shadow: 0 6px 14px #087f7529;
}

.main-layout .btn-primary:hover:not(:disabled),
.main-layout .btn-promo-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #056b64, #045852);
  transform: translateY(-1px);
  box-shadow: 0 9px 18px #087f7530;
}

.main-layout :is(.surface, .clientes-filtros, .cliente-form, .import-preview, .promo-section, .chatbot-status, .flow-empty) {
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--workspace-line) 92%, #87a4c0);
  box-shadow: 0 1px 2px #13273b07, 0 12px 28px #13273b06;
}

.main-layout :is(.surface, .clientes-filtros, .cliente-form, .import-preview, .promo-section) {
  overflow: hidden;
}

.main-layout :is(.surface, .clientes-filtros, .cliente-form, .import-preview, .promo-section) > :is(.section-title, h2):first-child {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--workspace-line);
}

.main-layout .section-title {
  margin-bottom: 18px;
  font-size: 1.03rem;
  letter-spacing: -.02em;
}

.main-layout .table-wrap {
  border: 1px solid var(--workspace-line);
  border-radius: 13px;
  background: var(--surface);
}

.main-layout table th {
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface));
  color: var(--workspace-muted);
  font-size: .69rem;
  letter-spacing: .065em;
}

.main-layout table td {
  padding: 15px 16px;
  border-bottom-color: var(--workspace-line);
}

.main-layout table tbody tr {
  transition: background .14s ease;
}

.main-layout table tbody tr:hover {
  background: color-mix(in srgb, var(--workspace-accent-soft) 52%, var(--surface));
}

.main-layout :is(input, select, textarea) {
  border-radius: 10px;
  border-width: 1px;
  min-height: 42px;
}

.main-layout textarea {
  min-height: 116px;
}

.main-layout :is(.tabs, .chatbot-tabs) {
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--workspace-line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.main-layout .tabs button {
  border-radius: 8px;
}

.main-layout .tabs button.active {
  color: var(--workspace-accent);
  background: var(--surface);
  box-shadow: 0 2px 7px #13273b0d;
}

.main-layout .status-pill {
  min-height: 26px;
  padding-inline: 10px;
  font-size: .72rem;
  letter-spacing: .01em;
}

.main-layout .empty-state,
.main-layout .loader {
  border: 1px dashed var(--workspace-line);
  border-radius: 14px;
  background: var(--surface);
}

/* Dashboard: data stays exactly the same; only hierarchy and visual rhythm change. */
.main-layout .dashboard-container {
  background: transparent;
}

.main-layout .dashboard-brand-hero {
  min-height: 310px;
  margin-bottom: 26px;
  padding: 30px;
  gap: 24px;
  border: 1px solid #1b747038;
  border-radius: 20px;
  background:
    radial-gradient(circle at 87% 13%, #6be0ca44 0, transparent 26%),
    radial-gradient(circle at 10% 100%, #4e8ffc44 0, transparent 35%),
    linear-gradient(132deg, #102d43, #0a5f5c 130%);
  box-shadow: 0 18px 38px #0d344133;
}

.main-layout .dashboard-brand-hero::before {
  content: "VISÃO FINANCEIRA";
  position: absolute;
  top: 28px;
  left: 30px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  color: #d8fff7;
  background: #ffffff0f;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .11em;
}

.main-layout .dashboard-brand-hero::after {
  inset: 32px -52px auto auto;
  border-width: 1px;
  border-color: #ffffff20;
}

.main-layout .brand-hero-content {
  margin-top: 38px;
}

.main-layout .hero-kicker {
  color: #c8f5ed;
  letter-spacing: .08em;
}

.main-layout .hero-total {
  font-size: clamp(2.35rem, 3.3vw, 3.35rem);
}

.main-layout .metrics-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.main-layout .metric-card {
  min-height: 98px;
  padding: 14px;
  border-color: #ffffff20;
  border-radius: 13px;
  background: linear-gradient(145deg, #ffffff18, #ffffff08);
}

.main-layout .metric-card:hover {
  background: #ffffff1d;
}

.main-layout .metric-card span {
  color: #d7ede9;
  font-size: .71rem;
}

.main-layout .metric-card strong {
  margin-top: 9px;
  font-size: 1.3rem;
}

.main-layout .dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.main-layout .chart-card {
  min-height: 350px;
  padding: 22px;
}

.main-layout .chart-card .section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.main-layout .chart-card .section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--workspace-accent);
  box-shadow: 0 0 0 4px var(--workspace-accent-soft);
}

.main-layout .billing-card,
.main-layout .panel-credits-card,
.main-layout .alerts-panel {
  grid-column: span 2;
}

.main-layout .billing-card {
  grid-template-columns: minmax(215px, .85fr) minmax(320px, 1.35fr) minmax(250px, .85fr);
  padding: 24px;
  background:
    linear-gradient(135deg, #e9f8f4 0, #ffffff 45%, #f4f8ff 100%);
}

.main-layout .billing-total {
  color: #0b5d58;
}

.main-layout .billing-breakdown div,
.main-layout .billing-days,
.main-layout .panel-credit-tile {
  border-color: var(--workspace-line);
  border-radius: 12px;
  background: var(--surface);
}

.main-layout .billing-breakdown div {
  padding: 13px;
}

.main-layout .panel-credits-card,
.main-layout .alerts-panel {
  padding: 24px;
}

.main-layout .panel-credit-tile {
  min-height: 150px;
  box-shadow: inset 3px 0 var(--workspace-accent);
}

.main-layout .panel-credit-tile.credit-low {
  box-shadow: inset 3px 0 #f59e0b;
}

.main-layout .alert-row {
  padding: 15px 4px;
}

html.dark .main-layout .workspace-bar {
  box-shadow: 0 1px 0 #ffffff0a, 0 10px 24px #00000028;
}

html.dark .main-layout .toolbar,
html.dark .main-layout .workspace-account,
html.dark .main-layout .table-wrap {
  background: var(--surface);
}

html.dark .main-layout .billing-card {
  background: linear-gradient(135deg, #163b3b, var(--surface) 46%, #192a43);
}

html.dark .main-layout .billing-total {
  color: #74e0cf;
}

html.dark .main-layout .billing-breakdown div,
html.dark .main-layout .billing-days,
html.dark .main-layout .panel-credit-tile {
  background: var(--surface-muted);
}

@media (max-width: 1220px) {
  .main-layout .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-layout .dashboard-grid { grid-template-columns: 1fr; }
  .main-layout .billing-card,
  .main-layout .panel-credits-card,
  .main-layout .alerts-panel { grid-column: auto; }
}

@media (max-width: 760px) {
  .main-layout .workspace-bar { min-height: 64px; padding-block: 10px; }
  .main-layout .workspace-account { padding: 3px; border: 0; background: transparent; box-shadow: none; }
  .main-layout .page-shell { min-height: auto; padding: 24px 15px 34px; }
  .main-layout .page-header > div:first-child { padding-left: 13px; }
  .main-layout .toolbar { width: 100%; }
  .main-layout .toolbar > * { flex: 1; }
  .main-layout .dashboard-brand-hero { min-height: auto; padding: 24px 18px; border-radius: 16px; }
  .main-layout .dashboard-brand-hero::before { top: 18px; left: 18px; }
  .main-layout .brand-hero-content { margin-top: 34px; }
  .main-layout .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-layout .metric-card { min-height: 92px; }
  .main-layout .chart-card,
  .main-layout .billing-card,
  .main-layout .panel-credits-card,
  .main-layout .alerts-panel { padding: 18px; }
}

@media (max-width: 430px) {
  .main-layout .metrics-grid { grid-template-columns: 1fr; }
  .main-layout .page-header h1 { font-size: 1.55rem; }
}
.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,
.billing-card {
  padding: 18px;
  min-height: 330px;
}

.billing-card {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.25fr) minmax(280px, 1fr);
  align-items: stretch;
  gap: 16px;
  min-height: auto;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.06)),
    #ffffff;
}

.billing-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.billing-kicker {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.billing-total {
  display: block;
  color: #0f172a;
  font-size: 2.45rem;
  line-height: 1;
}

.billing-total-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.billing-breakdown div {
  padding: 12px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.billing-breakdown span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.billing-breakdown strong {
  display: block;
  margin-top: 6px;
  color: #102033;
  font-size: 1.04rem;
}

.billing-note {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.billing-days {
  padding: 12px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #f8fafc;
}

.billing-days > span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-days div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #e2e8f0;
}

.billing-days div:first-of-type {
  border-top: 0;
}

.billing-days strong {
  color: #0f172a;
  text-transform: capitalize;
}

.billing-days em,
.billing-days small {
  color: #64748b;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.inactive-impact-card {
  grid-column: span 3;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(239, 68, 68, 0.045)),
    #ffffff;
}

.inactive-impact-heading,
.inactive-impact-list-head,
.inactive-impact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.inactive-impact-heading {
  align-items: flex-start;
}

.inactive-impact-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #64748b;
  font-weight: 600;
}

.inactive-impact-month {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 900;
}

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

.inactive-impact-metrics > div {
  padding: 16px;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #f8fafc;
}

.inactive-impact-metrics > div.impact-positive {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.inactive-impact-metrics > div.impact-negative {
  border-color: #fecaca;
  background: #fff7f7;
}

.inactive-impact-metrics span,
.inactive-impact-metrics small {
  display: block;
}

.inactive-impact-metrics span {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inactive-impact-metrics strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1.1;
}

.inactive-impact-metrics .impact-negative strong,
.inactive-impact-loss {
  color: #dc2626;
}

.inactive-impact-metrics small {
  margin-top: 8px;
  color: #475569;
  font-weight: 700;
}

.inactive-impact-list {
  margin-top: 18px;
  border-top: 1px solid #dbe6f2;
}

.inactive-impact-list-head {
  align-items: baseline;
  padding: 14px 0 9px;
}

.inactive-impact-list-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
}

.inactive-impact-list-head span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.inactive-impact-row {
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #edf2f7;
}

.inactive-impact-row div {
  min-width: 0;
}

.inactive-impact-row strong,
.inactive-impact-row span {
  display: block;
}

.inactive-impact-row > div > strong {
  color: #102033;
}

.inactive-impact-row span,
.inactive-impact-row time {
  color: #64748b;
  font-size: 0.84rem;
  font-style: normal;
}

.inactive-impact-row time {
  margin-left: auto;
  text-align: right;
}

.inactive-impact-loss {
  min-width: 126px;
  text-align: right;
}

.panel-credits-card {
  grid-column: span 3;
  padding: 18px;
}

.panel-credits-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-credits-header > span {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 800;
}

.panel-credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel-credit-tile {
  min-height: 142px;
  padding: 18px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #f8fafc;
}

.panel-credit-tile span,
.panel-credit-tile small,
.panel-credit-tile em {
  display: block;
}

.panel-credit-tile span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-credit-tile strong {
  display: block;
  margin-top: 10px;
  color: #0f172a;
  font-size: 1.75rem;
  line-height: 1.1;
}

.panel-credit-tile small {
  margin-top: 10px;
  color: #334155;
  font-weight: 700;
}

.panel-credit-tile em {
  margin-top: 12px;
  color: #64748b;
  font-size: 0.82rem;
  font-style: normal;
}

.panel-credit-tile.credit-low {
  border-color: #f59e0b;
  background: #fffbeb;
}

.panel-credit-tile .credit-warning {
  color: #92400e;
  font-weight: 900;
}

.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;
  }

  .billing-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .panel-credits-card {
    grid-column: auto;
  }

  .inactive-impact-card {
    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;
  }

  .billing-breakdown {
    grid-template-columns: 1fr;
  }

  .panel-credits-header {
    flex-direction: column;
  }

  .panel-credits-grid {
    grid-template-columns: 1fr;
  }

  .inactive-impact-heading,
  .inactive-impact-list-head,
  .inactive-impact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .inactive-impact-metrics {
    grid-template-columns: 1fr;
  }

  .inactive-impact-row time,
  .inactive-impact-loss {
    margin-left: 0;
    text-align: left;
  }
}
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.onboarding-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-card h2 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.4rem;
  color: #1e293b;
}

.onboarding-card p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.onboarding-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: background 0.2s;
}

.progress-dot.active {
  background: #0f766e;
}

.onboarding-action-link {
  display: inline-block;
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.2rem;
}

.onboarding-action-link:hover {
  text-decoration: underline;
}

.onboarding-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 1rem;
}

.onboarding-buttons .btn-primary {
  background: #0f766e;
  color: #fff;
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.onboarding-buttons .btn-primary:hover {
  background: #0d6b63;
}

.onboarding-buttons .btn-secondary {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.onboarding-buttons .btn-secondary:hover {
  background: #f1f5f9;
}

.onboarding-skip {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.onboarding-skip:hover {
  color: #64748b;
}
.clientes-abas {
  padding: 14px 16px;
  margin-bottom: 16px;
}

.clientes-abas-lista {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cliente-aba {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border, #dbe4ef);
  border-radius: 9px;
  background: var(--surface, #fff);
  color: #334155;
  cursor: pointer;
  font-weight: 800;
}

.cliente-aba span {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  text-align: center;
}

.cliente-aba.ativa {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #0f766e;
}

.cliente-aba.ativa span {
  background: #ccfbf1;
  color: #115e59;
}

.clientes-testes-ajuda {
  margin: 12px 0 0;
  color: #475569;
  font-size: 0.92rem;
}

.cliente-data-filtro {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.cliente-data-filtro input {
  width: 100%;
}

.clientes-teste-vazio,
.clientes-teste-erro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-direction: column;
  min-height: 180px;
  padding: 24px;
  color: #475569;
  text-align: center;
}

.clientes-teste-vazio strong {
  color: #102033;
  font-size: 1rem;
}

.clientes-teste-vazio span {
  font-size: 0.9rem;
}

.clientes-teste-erro {
  min-height: 110px;
  color: #991b1b;
}

.clientes-teste-erro button {
  margin-top: 4px;
}

.clientes-teste-tabela td strong,
.clientes-teste-tabela td small {
  display: block;
}

.clientes-teste-tabela td small {
  margin-top: 3px;
  color: #64748b;
}

.teste-credencial {
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  color: #1e293b;
}

.teste-senha {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-credencial {
  min-width: 62px;
}

.btn-success {
  color: #047857;
  background: #ecfdf5;
  border-color: #86efac;
}

.btn-success:hover:not(:disabled) {
  color: #065f46;
  background: #d1fae5;
}

.clientes-teste-edicao-ajuda,
.clientes-teste-edicao-aviso {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.45;
}

.clientes-teste-edicao-aviso {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #854d0e;
  background: #fffbeb;
}

.modal-teste .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px;
}

.status-teste-preparado {
  color: #854d0e;
  background: #fef3c7;
}

.status-teste-aguardando_decisao,
.status-teste-aguardando_pagamento {
  color: #1d4ed8;
  background: #dbeafe;
}

.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;
}

.cliente-pontos {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border, #e2e8f0);
}

.cliente-pontos-header,
.cliente-ponto-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cliente-pontos-header h3,
.cliente-ponto-title strong {
  margin: 0;
}

.cliente-pontos-header .muted {
  margin: 4px 0 0;
}

.cliente-ponto-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border, #dbe4ef);
  border-radius: 10px;
  background: var(--surface-soft, #f8fafc);
}

.cliente-ponto-card .form-grid {
  margin-top: 12px;
}

.cliente-pontos-total {
  margin: 16px 0 0;
  color: #0f766e;
}

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

.actions-cell .btn-small {
  min-width: 66px;
}

.actions-cell .btn-warning {
  border-color: #facc15;
  color: #854d0e;
  background: #fef9c3;
}

.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;
  }

  .cliente-pontos-header,
  .cliente-ponto-title {
    align-items: stretch;
    flex-direction: column;
  }

  .clientes-teste-tabela {
    min-width: 1120px;
  }
}

/* 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;
}

.cobranca-filtros {
  margin-bottom: 16px;
  padding: 18px;
}

.cobranca-filtros-cabecalho,
.cobranca-filtros-resultado,
.cobranca-acao-individual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cobranca-filtros-cabecalho {
  margin-bottom: 16px;
}

.cobranca-filtros-cabecalho .section-title {
  margin-bottom: 4px;
}

.cobranca-filtros-cabecalho .muted,
.cobranca-filtros-resultado span,
.cobranca-resultados-limite {
  margin: 0;
}

.cobranca-filtros-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.cobranca-filtros-grid label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
}

.cobranca-filtros-grid select,
.cobranca-filtros-grid input {
  min-height: 40px;
  width: 100%;
}

.cobranca-filtro-busca {
  grid-column: span 2;
}

.cobranca-busca-input {
  position: relative;
}

.cobranca-busca-input > span {
  position: absolute;
  top: 50%;
  left: 12px;
  color: #64748b;
  font-size: 1.2rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.cobranca-busca-input input {
  padding-left: 36px;
}

.cobranca-filtros-resultado {
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  color: #475569;
  font-size: 0.88rem;
}

.cobranca-resultados-individuais {
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.cobranca-tabela-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.cobranca-tabela-clientes {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cobranca-tabela-clientes th,
.cobranca-tabela-clientes td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  color: #334155;
}

.cobranca-tabela-clientes th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cobranca-tabela-clientes tbody tr:last-child td {
  border-bottom: 0;
}

.cobranca-tabela-clientes tbody tr.selecionado {
  background: #ecfdf5;
}

.cobranca-tabela-clientes td small {
  display: block;
  margin-top: 2px;
  color: #64748b;
}

.cobranca-acao-individual {
  margin-top: 12px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: #f0fdfa;
  padding: 12px;
  color: #134e4a;
}

.cobranca-acao-individual small {
  color: #b45309;
}

@media (max-width: 980px) {
  .cobranca-filtros-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cobranca-filtros {
    padding: 14px;
  }

  .cobranca-filtros-grid {
    grid-template-columns: 1fr;
  }

  .cobranca-filtro-busca {
    grid-column: auto;
  }
}

.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;
}

.gateways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

.gateway-card {
  margin-bottom: 0;
  padding: 18px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
}

.gateway-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.gateway-card-head .section-title {
  margin-bottom: 8px;
}

.gateway-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: fit-content;
  padding-top: 4px;
  color: #102033;
  font-weight: 700;
}

.gateway-toggle input {
  width: auto;
  min-height: auto;
}

.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;
}

.codigo-verificacao-box {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.codigo-verificacao-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.codigo-verificacao-header h3 {
  margin: 0 0 6px;
}

.codigo-verificacao-vazio {
  margin: 12px 0 0;
}

.codigo-verificacao-lista {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.codigo-verificacao-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
}

.codigo-verificacao-card strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.codigo-verificacao-card p {
  margin: 4px 0 0;
}

.codigo-verificacao-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 10px;
}

.codigo-verificacao-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font: inherit;
}

.codigo-verificacao-form button {
  white-space: nowrap;
}

.painel-titulo {
  margin: 16px 0 6px;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 760px) {
  .codigo-verificacao-header,
  .codigo-verificacao-card,
  .codigo-verificacao-form {
    grid-template-columns: 1fr;
  }

  .codigo-verificacao-header {
    display: grid;
  }
}
.flow-loading,
.flow-empty {
  padding: 32px;
  color: #64748b;
  background: #fff;
}

.flow-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
}

.flow-empty-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 26px;
  font-weight: 800;
}

.flow-empty-eyebrow { color: #0f766e; font-size: 0.7rem; font-weight: 800; letter-spacing: .08em; }
.flow-empty h2 { margin: 0; color: #102033; font-size: 1.5rem; }
.flow-empty > p { max-width: 680px; margin: 0; line-height: 1.55; }
.flow-empty-menus { display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); gap: 14px; width: min(100%, 850px); }
.flow-empty-menus article { display: grid; gap: 8px; border: 1px solid #dce5ef; border-radius: 9px; padding: 13px; background: #f8fafc; }
.flow-empty-menus article strong { margin-bottom: 3px; color: #102033; font-size: .87rem; }
.flow-empty-menus article span { color: #475569; font-size: .79rem; }
.flow-empty .flow-empty-note { color: #64748b; font-size: .8rem; }
.flow-empty .flow-muted { margin-top: 8px; color: #94a3b8; font-size: 0.85rem; }

.flow-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
}

.flow-toolbar,
.flow-title-box,
.flow-toolbar-actions,
.flow-panel-heading,
.flow-options-heading,
.flow-simulator-input {
  display: flex;
  align-items: center;
}

.flow-toolbar { justify-content: space-between; gap: 16px; }
.flow-title-box { gap: 12px; min-width: 0; }
.flow-title-box input {
  width: min(360px, 40vw);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 9px;
  color: #102033;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 800;
}
.flow-title-box input:focus { outline: none; border-color: #99d4ca; background: #fff; }
.flow-status { border-radius: 999px; padding: 5px 9px; background: #fff7ed; color: #b45309; font-size: 0.76rem; font-weight: 800; }
.flow-status.is-published { background: #ecfdf5; color: #047857; }
.flow-toolbar-actions { justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.flow-toolbar-actions button { min-height: 36px; }

.flow-safety-note,
.flow-published-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f0fdfa;
  color: #115e59;
  font-size: 0.86rem;
}
.flow-safety-note span { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: #ccfbf1; font-weight: 900; }
.flow-safety-note p { margin: 0; line-height: 1.45; }
.flow-published-note { display: block; background: #f8fafc; color: #475569; }

.flow-graph-settings { border: 1px solid #dce5ef; border-radius: 8px; background: #fff; }
.flow-graph-settings summary { padding: 10px 12px; color: #334155; font-size: 0.84rem; font-weight: 800; cursor: pointer; }
.flow-graph-settings > div { display: grid; grid-template-columns: 0.8fr 1fr 2fr; gap: 12px; border-top: 1px solid #eef2f7; padding: 12px; }
.flow-graph-settings label { display: grid; gap: 5px; color: #475569; font-size: 0.74rem; font-weight: 700; }
.flow-graph-settings input,
.flow-graph-settings textarea { width: 100%; min-width: 0; border: 1px solid #cfd9e6; border-radius: 6px; padding: 8px 9px; color: #102033; background: #fff; font: inherit; font-weight: 400; }
.flow-graph-settings textarea { resize: vertical; line-height: 1.35; }
.flow-settings-help { margin: 0; border-top: 1px solid #eef2f7; padding: 0 12px 12px; color: #64748b; font-size: .75rem; line-height: 1.45; }
.flow-graph-settings input:focus,
.flow-graph-settings textarea:focus { outline: 2px solid rgba(15, 118, 110, 0.2); border-color: #0f766e; }

.flow-simulator { display: grid; gap: 10px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 13px; background: #f8fafc; }
.flow-simulator > div:first-child p { margin: 4px 0 0; color: #64748b; font-size: 0.86rem; }
.flow-simulator-client { display: inline-flex; align-items: center; gap: 7px; color: #475569; font-size: 0.78rem; }
.flow-simulator-client input { width: 15px; height: 15px; accent-color: #0f766e; }
.flow-simulator-input { gap: 8px; }
.flow-simulator-input textarea { flex: 1; min-width: 120px; border: 1px solid #cbd5e1; border-radius: 7px; padding: 10px 12px; font: inherit; resize: vertical; }
.flow-simulator-result { max-height: 240px; overflow: auto; margin: 0; border-radius: 7px; padding: 12px; background: #0f172a; color: #d1fae5; font-size: 0.8rem; }

.flow-workspace {
  display: grid;
  grid-template-columns: 220px minmax(400px, 1fr) 290px;
  min-height: 670px;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  overflow: hidden;
  background: #f8fafc;
}
.flow-palette,
.flow-properties { display: flex; flex-direction: column; gap: 10px; padding: 13px; background: #fff; }
.flow-palette { border-right: 1px solid #dce5ef; }
.flow-properties { border-left: 1px solid #dce5ef; }
.flow-panel-heading { align-items: flex-start; justify-content: space-between; gap: 8px; padding: 3px 1px 9px; border-bottom: 1px solid #eef2f7; }
.flow-panel-heading strong { color: #102033; font-size: 0.91rem; }
.flow-panel-heading span { color: #94a3b8; font-size: 0.72rem; text-align: right; }
.flow-block { display: flex; align-items: center; gap: 9px; width: 100%; border: 1px solid #dce5ef; border-radius: 7px; padding: 9px; background: #fff; color: #334155; text-align: left; cursor: pointer; }
.flow-block:hover:not(:disabled) { border-color: #65b9ad; background: #f0fdfa; }
.flow-block:disabled { cursor: default; }
.flow-block > i { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; background: #eff6ff; color: #2563eb; font-style: normal; font-weight: 900; }
.flow-block > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.flow-block strong { font-size: 0.8rem; }
.flow-block small { color: #94a3b8; font-size: 0.68rem; }
.flow-block > b { color: #94a3b8; }
.flow-block-start > i { background: #ecfdf5; color: #059669; }
.flow-palette-hint { margin-top: auto; border-radius: 7px; padding: 10px; background: #f8fafc; color: #64748b; font-size: 0.75rem; line-height: 1.45; }

.flow-canvas-scroll { position: relative; min-width: 0; overflow: auto; cursor: grab; touch-action: none; background-color: #f8fafc; background-image: radial-gradient(#cbd5e1 0.8px, transparent 0.8px); background-size: 18px 18px; }
.flow-canvas-scroll.is-panning { cursor: grabbing; }
.flow-canvas { position: relative; }
.flow-edges { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.flow-edges path { fill: none; stroke: #94a3b8; stroke-width: 2; }
.flow-node { position: absolute; z-index: 1; width: 210px; min-height: 116px; border: 1px solid #d5dee9; border-radius: 9px; padding: 0 11px 10px; background: #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06); cursor: grab; touch-action: none; }
.flow-node:active { cursor: grabbing; }
.flow-node.selected { border-color: #0f9b8e; box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14), 0 5px 14px rgba(15, 23, 42, 0.08); }
.flow-node.connecting { border-color: #f59e0b; }
.flow-node header { display: flex; align-items: center; justify-content: space-between; margin: 0 -11px 9px; border-bottom: 1px solid #eef2f7; border-radius: 8px 8px 0 0; padding: 7px 10px; color: #64748b; font-size: 0.69rem; font-weight: 800; }
.flow-node header button { border: 0; background: transparent; color: #94a3b8; cursor: pointer; }
.flow-node > strong { display: block; overflow: hidden; color: #102033; font-size: 0.83rem; text-overflow: ellipsis; white-space: nowrap; }
.flow-node > p { display: -webkit-box; overflow: hidden; min-height: 30px; margin: 5px 0 8px; color: #64748b; font-size: 0.72rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.flow-node-start { border-color: #a7f3d0; }
.flow-node-start header { background: #ecfdf5; color: #047857; }
.flow-node-menu header { background: #eff6ff; color: #1d4ed8; }
.flow-node-action header { background: #fff7ed; color: #c2410c; }
.flow-node-ai header { background: #f5f3ff; color: #6d28d9; }
.flow-node-options { display: grid; gap: 4px; margin: 6px 0; }
.flow-node-options span { display: flex; justify-content: flex-start; align-items: flex-start; gap: 5px; border: 1px solid #e2e8f0; border-radius: 4px; padding: 4px 6px; color: #475569; font-size: 0.68rem; }
.flow-node-options i { flex: 0 0 auto; color: #0f766e; font-size: .7rem; font-style: normal; font-weight: 800; }
.flow-node-options b { margin-left: auto; }
.flow-node-options b { color: #0f766e; }
.flow-node-protected { margin: 6px 0; color: #b45309; font-size: 0.68rem; font-weight: 800; }
.flow-connect-button { display: flex; justify-content: space-between; width: 100%; border: 0; border-top: 1px solid #eef2f7; padding: 7px 0 0; background: transparent; color: #64748b; font-size: 0.68rem; cursor: pointer; }
.flow-connect-button span { color: #0f766e; }
.flow-connect-hint { position: sticky; z-index: 4; top: 10px; left: 10px; width: fit-content; border: 1px solid #fcd34d; border-radius: 7px; padding: 8px 10px; background: #fffbeb; color: #92400e; font-size: 0.76rem; }
.flow-connect-hint button { margin-left: 8px; border: 0; background: transparent; color: #92400e; text-decoration: underline; cursor: pointer; }

.flow-property-empty { color: #94a3b8; font-size: 0.82rem; line-height: 1.5; }
.flow-property-fields { display: grid; align-content: start; gap: 13px; }
.flow-property-fields > label,
.flow-action-warning > label:not(.flow-checkbox) { display: grid; gap: 6px; color: #475569; font-size: 0.77rem; font-weight: 700; }
.flow-property-fields input,
.flow-property-fields textarea,
.flow-property-fields select { width: 100%; min-width: 0; border: 1px solid #cfd9e6; border-radius: 6px; padding: 8px 9px; background: #fff; color: #102033; font: inherit; font-weight: 400; }
.flow-property-fields textarea { resize: vertical; line-height: 1.45; }
.flow-property-fields input:focus,
.flow-property-fields textarea:focus,
.flow-property-fields select:focus { outline: 2px solid rgba(15, 118, 110, 0.2); border-color: #0f766e; }
.flow-options-heading { justify-content: space-between; margin-bottom: 8px; }
.flow-options-heading strong { color: #334155; font-size: 0.77rem; }
.flow-options-heading button { border: 0; background: transparent; color: #0f766e; font-size: 0.74rem; font-weight: 800; cursor: pointer; }
.flow-option-editor { display: grid; gap: 7px; }
.flow-branch-title { color: #334155; font-size: 0.77rem; }
.flow-branch-row { display: grid; gap: 5px; color: #475569; font-size: 0.71rem; }
.flow-option-row { display: grid; grid-template-columns: 38px 56px minmax(65px, 1fr) minmax(80px, 1fr) 28px; gap: 4px; align-items: center; }
.flow-option-number { color: #0f766e; font-size: .77rem; font-weight: 800; text-align: center; }
.flow-option-row input,
.flow-option-row select { padding: 7px 5px; font-size: 0.7rem; }
.flow-option-row .flow-emoji-select { font-size: 0.85rem; }
.flow-option-row > button { width: 26px; height: 29px; border: 1px solid #fecdd3; border-radius: 5px; background: #fff7f8; color: #be123c; cursor: pointer; }
.flow-action-warning { display: grid; gap: 8px; border: 1px solid #fed7aa; border-radius: 7px; padding: 10px; background: #fff7ed; }
.flow-action-warning > strong { color: #9a3412; font-size: 0.8rem; }
.flow-action-warning p { margin: 0; color: #9a3412; font-size: 0.74rem; line-height: 1.45; }
.flow-checkbox { display: flex; align-items: center; gap: 7px; color: #7c2d12; font-size: 0.72rem; }
.flow-checkbox input { width: 15px; height: 15px; accent-color: #0f766e; }
.flow-ai-note { border-radius: 7px; padding: 9px; background: #f5f3ff; color: #5b21b6; font-size: 0.74rem; line-height: 1.45; }
.flow-collect-note { border-radius: 7px; padding: 9px; background: #eff6ff; color: #1e40af; font-size: 0.74rem; line-height: 1.45; }
.flow-remove-node { border: 1px solid #fecdd3; border-radius: 6px; padding: 8px; background: #fff7f8; color: #be123c; font-size: 0.76rem; cursor: pointer; }

@media (max-width: 1200px) {
  .flow-workspace { grid-template-columns: 190px minmax(380px, 1fr); }
  .flow-properties { grid-column: 1 / -1; border-top: 1px solid #dce5ef; border-left: 0; }
  .flow-property-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .flow-empty-menus { grid-template-columns: 1fr; }
  .flow-editor { padding: 10px; }
  .flow-toolbar { align-items: flex-start; flex-direction: column; }
  .flow-title-box input { width: min(280px, 60vw); }
  .flow-toolbar-actions { justify-content: flex-start; }
  .flow-workspace { grid-template-columns: minmax(140px, 35%) minmax(300px, 1fr); min-height: 680px; }
  .flow-palette { padding: 8px; }
  .flow-block { gap: 5px; padding: 6px; }
  .flow-block > i { width: 24px; height: 24px; flex-basis: 24px; }
  .flow-block small { display: none; }
  .flow-properties { grid-column: 1 / -1; }
  .flow-property-fields { grid-template-columns: 1fr; }
  .flow-graph-settings > div { grid-template-columns: 1fr; }
  .flow-simulator-input { align-items: stretch; flex-direction: column; }
}
.chatbot-page {
  display: grid;
  gap: 18px;
}

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

.chatbot-status {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #ffffff;
}

.chatbot-status span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.chatbot-status strong {
  color: #102033;
  font-size: 1rem;
}

.chatbot-tabs {
  margin-bottom: 0;
}

.chatbot-loading {
  padding: 22px;
  color: #64748b;
}

.chatbot-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.chatbot-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e3ebf3;
  padding-bottom: 16px;
}

.chatbot-form-head h2 {
  margin: 0;
  color: #102033;
  font-size: 1.35rem;
}

.chatbot-form-head p {
  margin: 4px 0 0;
  color: #64748b;
}

.chatbot-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
  color: #102033;
  font-weight: 700;
}

.chatbot-switch input {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
}

.chatbot-inline-switch {
  align-self: end;
  min-height: 42px;
  padding: 10px 0;
}

.chatbot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chatbot-compact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 16px;
}

.chatbot-field {
  display: grid;
  gap: 7px;
}

.chatbot-field span {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.chatbot-field input,
.chatbot-field textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 11px 12px;
  color: #102033;
  background: #ffffff;
  font: inherit;
}

.chatbot-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

.chatbot-field input:focus,
.chatbot-field textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.chatbot-actions {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 28%);
}

.chatbot-media-box {
  display: grid;
  gap: 14px;
  border-top: 1px solid #e3ebf3;
  padding-top: 18px;
}

.chatbot-media-box h3 {
  margin: 0;
  color: #102033;
  font-size: 1.05rem;
}

.chatbot-media-box p {
  margin: 4px 0 0;
  color: #64748b;
}

.chatbot-channel-config {
  padding: 0 18px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fff;
}

.chatbot-channel-config summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  cursor: pointer;
  list-style: none;
}

.chatbot-channel-config summary::-webkit-details-marker { display: none; }
.chatbot-channel-config summary > span { display: grid; gap: 3px; }
.chatbot-channel-config summary strong { color: #102033; font-size: 0.95rem; }
.chatbot-channel-config summary small { color: #64748b; font-size: 0.8rem; }
.chatbot-channel-config summary > b { color: #0f766e; font-size: 0.8rem; }
.chatbot-channel-config details[open] summary { border-bottom: 1px solid #e3ebf3; }

.chatbot-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
  padding: 16px 0 4px;
}

.chatbot-channel-grid .chatbot-switch { min-height: 42px; }
.chatbot-channel-grid .chatbot-field input { max-width: 240px; }
.chatbot-channel-config .chatbot-actions { padding: 10px 0 14px; }

.chatbot-learning-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid #e3ebf3;
  padding-top: 18px;
}

.chatbot-learning-section h3 {
  margin: 0;
  color: #102033;
  font-size: 1.05rem;
}

.chatbot-learning-section > div > p {
  margin: 4px 0 0;
  color: #64748b;
}

.chatbot-learning-manual {
  display: grid;
  gap: 12px;
  border-top: 1px solid #e3ebf3;
  padding-top: 18px;
}

.chatbot-learning-manual h3 {
  margin: 0;
  color: #102033;
  font-size: 1.05rem;
}

.chatbot-learning-manual p {
  margin: 4px 0 0;
  color: #64748b;
}

.chatbot-learning-manual textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 11px 12px;
  color: #102033;
  background: #ffffff;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.chatbot-learning-manual textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.chatbot-learning-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.chatbot-learning-card.approved {
  border-color: #bfe8d8;
  background: #f7fffb;
}

.chatbot-learning-card strong {
  display: block;
  color: #102033;
  margin-bottom: 6px;
}

.chatbot-learning-card p {
  margin: 0;
  color: #42526b;
  line-height: 1.45;
  white-space: pre-wrap;
}

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

.chatbot-learning-list {
  display: grid;
  gap: 10px;
}

.chatbot-learning-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chatbot-learning-list-head h3 { margin: 0; }

.chatbot-learning-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.chatbot-learning-select input {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}

.chatbot-learning-auto {
  align-items: flex-start;
  padding: 13px;
  border: 1px solid #bfe8d8;
  border-radius: 8px;
  background: #f7fffb;
}

.chatbot-learning-auto span {
  display: grid;
  gap: 4px;
}

.chatbot-learning-auto small {
  color: #475569;
  font-weight: 500;
  line-height: 1.4;
}

.chatbot-empty {
  border: 1px dashed #cfd9e6;
  border-radius: 8px;
  padding: 14px;
  color: #64748b;
  background: #f8fafc;
}

.chatbot-history-list {
  display: grid;
  gap: 12px;
}

.chatbot-history-card {
  display: grid;
  gap: 12px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.chatbot-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chatbot-history-top strong {
  display: block;
  color: #102033;
}

.chatbot-history-top span {
  display: block;
  color: #64748b;
  font-size: 0.86rem;
  margin-top: 3px;
}

.chatbot-history-origin {
  border: 1px solid #dce5ef;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8fafc;
  color: #42526b !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  white-space: nowrap;
}

.chatbot-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chatbot-history-tags span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
}

.chatbot-history-message {
  display: grid;
  gap: 5px;
  border-left: 3px solid #dce5ef;
  padding-left: 10px;
}

.chatbot-history-message span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chatbot-history-message p {
  margin: 0;
  color: #102033;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chatbot-history-message.bot {
  border-left-color: #0f766e;
}

.chatbot-history-feedback {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 800;
}

.chatbot-history-feedback.nao_resolveu,
.chatbot-history-feedback.resposta_ruim {
  background: #fff1f2;
  color: #be123c;
}

.chatbot-history-feedback.chamou_rodrigo_certo {
  background: #eff6ff;
  color: #1d4ed8;
}

.chatbot-history-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eef3f8;
  padding-top: 10px;
}

.chatbot-history-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-secondary.danger-soft {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff7f8;
}

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

  .chatbot-channel-grid { grid-template-columns: 1fr; gap: 8px; }

  .chatbot-form-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .chatbot-learning-card {
    grid-template-columns: 1fr;
  }

  .chatbot-learning-actions {
    justify-content: flex-start;
  }

  .chatbot-learning-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .chatbot-history-top,
  .chatbot-history-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .chatbot-history-feedback-actions {
    width: 100%;
  }
}
.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-teste {
  color: #075985;
  background: #e0f2fe;
}

.status-pausado {
  color: #334155;
  background: #e2e8f0;
}

.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-teste {
  color: #7dd3fc;
  background: rgba(3, 105, 161, 0.35);
}

html.dark .status-pausado {
  color: #cbd5e1;
  background: rgba(100, 116, 139, 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); }
}
