/* Propozi V2 | build 2026-05-23 – gsap-fix */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --card-2: #fafafa;
  --text: #1d1d1f;
  --muted: #86868b;
  --line: #e8e8ed;
  --primary: #1d1d1f;
  --primary-2: #3a3a3c;
  --white: #ffffff;
  --sidebar-bg: #1c1c1e;
  --sidebar-text: #f5f5f7;
  --sidebar-muted: #98989d;
  --sidebar-hover: rgba(255,255,255,0.07);
  --sidebar-border: #2c2c2e;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  /* ── Glassmorphism tokens (light) ── */
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-strong: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-border-subtle: rgba(255, 255, 255, 0.35);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] {
  --bg: #000000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --text: #f5f5f7;
  --muted: #98989d;
  --line: #3a3a3c;
  --primary: #f5f5f7;
  --primary-2: #e8e8ed;
  --white: #ffffff;
  --sidebar-bg: #111111;
  --sidebar-text: #f5f5f7;
  --sidebar-muted: #98989d;
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-border: #2c2c2e;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  /* ── Glassmorphism tokens (dark) ── */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-border-subtle: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body { min-height: 100vh; overflow-x: hidden; }

button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; }
textarea { resize: vertical; }

#app { min-height: 100vh; }
.screen { display: none; }
.screen.active { display: flex; }
.hidden { display: none !important; }

#auth-screen {
  min-height: 100vh;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: var(--bg);
  display: none;
}

#auth-screen.active {
  display: flex;
}

.auth-shell {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 100vh;
  gap: 0;
}

/* Painel lateral esquerdo - branding Aura Films inspired */
.auth-side-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow: hidden;
  color: #f5f5f7;
}

/* ::before and ::after defined in UI/UX PRO MAX section below */

.auth-side-content {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.auth-side-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-side-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6431e9, #4338ca);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.auth-side-logo-icon svg {
  width: 22px;
  height: 22px;
}

.auth-side-logo-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}

.auth-side-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f5f7;
}

.auth-side-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245,245,247,0.55);
}

.auth-side-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-side-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(245,245,247,0.85);
  font-weight: 500;
}

.auth-side-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(100, 49, 233, 0.18);
  border: 1px solid rgba(100, 49, 233, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9d75fa;
  font-size: 10px;
  flex-shrink: 0;
}

.auth-card {
  background: var(--card);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-side-panel {
    display: none;
  }

  .auth-card {
    padding: 40px 28px;
  }
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 20px;
}

html[data-theme="dark"] .brand-badge {
  background: #1c1c1e;
  color: #f5f5f7;
  border: 1px solid #3a3a3c;
}

.auth-plan-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef9f0, #fff7ed);
  border: 1px solid #fed7aa;
}

.auth-plan-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f59e0b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.auth-plan-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.auth-plan-banner-text strong {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
}

.auth-plan-banner-text span {
  font-size: 11px;
  color: #b45309;
  line-height: 1.4;
}

html[data-theme="dark"] .auth-plan-banner {
  background: rgba(251,191,36,0.08);
  border-color: rgba(251,191,36,0.2);
}

html[data-theme="dark"] .auth-plan-banner-text strong {
  color: #fcd34d;
}

html[data-theme="dark"] .auth-plan-banner-text span {
  color: #fbbf24;
}

.auth-title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
}

.auth-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 22px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.auth-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
}

.auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.auth-inline-link:hover {
  color: var(--primary-2);
  text-decoration: underline;
}

html[data-theme="dark"] .auth-inline-link {
  color: #f5f5f7;
}

html[data-theme="dark"] .auth-inline-link:hover {
  color: #ffffff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full { grid-column: 1 / -1; }
.form-group-small { min-width: 124px; }

.form-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.whatsapp-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f9d57;
}

.form-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .form-input:focus,
html[data-theme="dark"] .form-textarea:focus {
  box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.14);
}

.file-input { padding: 10px 12px; min-height: auto; }

.password-wrap { position: relative; }
.password-input { padding-right: 54px; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover { background: rgba(0, 0, 0, 0.04); }

html[data-theme="dark"] .password-toggle:hover { background: rgba(255, 255, 255, 0.06); }

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-message.is-success {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.24);
  color: #1d1d1f;
}

.auth-message.is-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.auth-message.is-info {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #3a3a3c;
}

html[data-theme="dark"] .auth-message.is-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
  color: #e8e8ed;
}

html[data-theme="dark"] .auth-message.is-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

html[data-theme="dark"] .auth-message.is-info {
  background: rgba(161, 161, 170, 0.12);
  border-color: rgba(161, 161, 170, 0.18);
  color: #e4e4e7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-2); }

html[data-theme="dark"] .btn-primary {
  background: #f5f5f7;
  color: #1c1c1e;
}
html[data-theme="dark"] .btn-primary:hover {
  background: #e8e8ed;
}

.btn-secondary {
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--card-2) 78%, var(--primary) 22%);
  border-color: color-mix(in srgb, var(--line) 70%, var(--primary) 30%);
}

html[data-theme="dark"] .btn-secondary {
  background: #1c1c1e;
  border-color: #2b2f36;
  color: #f3f4f6;
}

html[data-theme="dark"] .btn-secondary:hover {
  background: #202329;
  border-color: #3a3f48;
}

.btn-block { width: 100%; }

.btn-small {
  min-height: 32px;
  padding: 0 11px;
  font-size: 11px;
  border-radius: 8px;
  flex-shrink: 0;
}

#main-screen {
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--sidebar-border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.sidebar-brand-info { flex: 1; min-width: 0; }

.sidebar-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6431e9, #4338ca);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

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

.sidebar-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-company-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
  cursor: default;
  transition: background 0.2s;
}

.sidebar-company-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-company-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px;
}

.sidebar-company-info {
  min-width: 0;
  flex: 1;
}

.sidebar-company-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sidebar-company-label {
  font-size: 11px;
  color: var(--sidebar-muted);
  margin-top: 1px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
}

.sidebar-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card do usuário */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-user-email {
  font-size: 12px;
  font-weight: 700;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--sidebar-muted);
  font-weight: 600;
}

.sidebar-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
}

/* Botão de logout */
.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.sidebar-logout-btn:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
  color: #fca5a5;
}

/* Nav buttons com ícones coloridos */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 12px;
  background: transparent;
  color: var(--sidebar-muted);
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--sidebar-text);
}

.nav-btn.active {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.nav-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

/* Cores dos ícones */
.nav-icon-dashboard {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.nav-icon-proposta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

.nav-icon-cadastros {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

.nav-icon-config {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.nav-icon-assinatura {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: white;
  box-shadow: 0 2px 8px rgba(236,72,153,0.3);
}

.content {
  flex: 1;
  padding: 20px 22px 22px;
  min-width: 0;
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  position: sticky;
  top: 0;
  z-index: 12;
  padding-bottom: 6px;
  background: linear-gradient(to bottom, var(--bg) 74%, transparent);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}

.topbar-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
}

.mobile-menu-btn,
.mobile-close-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-btn:hover,
.mobile-close-btn:hover {
  background: var(--card-2);
}

.app-section { display: none; }
.app-section.active-section { display: block; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px;
}

.compact-panel { padding: 18px 20px; }

.config-page-header,
.cadastros-page-header {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.config-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.config-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.config-two-columns,
.cadastros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mini-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mini-card-text {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.theme-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.theme-toggle-group,
.cadastros-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
}

.cadastros-switch-wrap {
  display: flex;
  justify-content: center;
}

.theme-choice-btn,
.cadastros-switch-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-choice-btn.active,
.cadastros-switch-btn.active {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

html[data-theme="dark"] .theme-choice-btn.active,
html[data-theme="dark"] .cadastros-switch-btn.active {
  background: #111214;
  border-color: #31343b;
  box-shadow: none;
}

.settings-form,
.settings-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.inline-grid {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 10px;
}

.field-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-crop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.logo-crop-layout-collapsed {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
}

.logo-crop-main,
.logo-crop-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Crop stage com fundo xadrez (padrão transparência) ── */
.logo-crop-stage {
  position: relative;
  width: 100%;
  min-height: 280px;
  background-color: #1a1a1a;
  background-image:
    linear-gradient(45deg, #222 25%, transparent 25%),
    linear-gradient(-45deg, #222 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #222 75%),
    linear-gradient(-45deg, transparent 75%, #222 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border: 1.5px solid rgba(124,74,248,0.25);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: min-height 0.25s ease, opacity 0.25s ease, border-color 0.3s ease;
}

.logo-crop-stage:hover,
.logo-crop-stage:focus-within {
  border-color: rgba(124,74,248,0.45);
}

.logo-crop-stage-dragover {
  border-color: #7c4af8 !important;
  border-style: solid !important;
  background-color: rgba(124,74,248,0.08) !important;
  box-shadow: inset 0 0 30px rgba(124,74,248,0.06), 0 0 0 3px rgba(124,74,248,0.12);
}

.logo-crop-stage-collapsed {
  min-height: 140px;
  background-image: none;
  background-color: rgba(255,255,255,0.04);
  border-style: dashed;
  border-color: rgba(255,255,255,0.18);
}

.logo-crop-placeholder {
  position: absolute;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 16px 20px;
  z-index: 1;
  pointer-events: none;
}

.logo-crop-placeholder::before {
  content: "\f03e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: block;
  font-size: 22px;
  color: #7c4af8;
  margin-bottom: 8px;
  opacity: 0.7;
}

html[data-theme="light"] .logo-crop-stage {
  background-color: #f0f0f0;
  background-image:
    linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
    linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border-color: rgba(15,23,42,0.2);
}

html[data-theme="light"] .logo-crop-stage-collapsed {
  background-image: none;
  background-color: rgba(15,23,42,0.03);
  border-color: rgba(15,23,42,0.18);
}

.logo-crop-image {
  display: block;
  max-width: 100%;
}

/* ── Sliders de controle do crop (zoom, horiz, vert) ── */
.logo-sliders-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.logo-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-slider-label {
  font-size: 12px;
  color: var(--muted);
  min-width: 62px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.logo-slider-label i {
  font-size: 12px;
  opacity: 0.6;
}

.logo-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

html[data-theme="light"] .logo-slider {
  background: rgba(0,0,0,0.08);
}

.logo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c4af8, #6431e9);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.logo-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c4af8, #6431e9);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.logo-slider-val {
  font-size: 12px;
  color: var(--muted);
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Toolbar de controles do crop ── */
.logo-crop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.btn-crop-tool {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-crop-tool-text {
  font-size: 12px;
}

.btn-crop-tool:hover {
  background: rgba(124,74,248,0.12);
  border-color: rgba(124,74,248,0.4);
  color: #7c4af8;
}

.btn-crop-tool:active {
  transform: scale(0.93);
}

.logo-crop-hint {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-crop-hint i {
  color: #7c4af8;
  font-size: 12px;
  opacity: 0.7;
}

/* ── Live preview box ── */
.logo-live-preview-box {
  min-height: 90px;
  background-color: #1a1a1a;
  background-image:
    linear-gradient(45deg, #222 25%, transparent 25%),
    linear-gradient(-45deg, #222 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #222 75%),
    linear-gradient(-45deg, transparent 75%, #222 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] .logo-live-preview-box {
  background-color: #f0f0f0;
  background-image:
    linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
    linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}

.company-logo-live-preview {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  display: block;
}

/* ── Botão ghost danger (remover logo) ── */
.logo-side-actions {
  display: flex;
  gap: 8px;
}

.logo-side-actions .btn {
  flex: 1;
}

.btn-ghost-danger {
  background: transparent;
  border: 1px solid rgba(220,38,38,0.2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-ghost-danger:hover {
  background: rgba(220,38,38,0.08);
  border-color: rgba(220,38,38,0.4);
  color: #dc2626;
}

/* ── Layout coluna única das Configurações ── */
.config-single-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.config-section-icon {
  margin-right: 6px;
  font-size: 16px;
}

.config-badge-new {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(16,185,129,0.12);
  color: #10b981;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Pasta local para PDFs ── */
.pdf-folder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .pdf-folder-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-folder-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.pdf-folder-display {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  display: flex;
  align-items: center;
  min-height: 40px;
}

.pdf-folder-display.pdf-folder-active {
  color: var(--text);
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.04);
}

.pdf-folder-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

.logo-side-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logo-side-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
}

.logo-preview-box {
  min-height: 110px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.company-logo-preview {
  max-width: 100%;
  max-height: 74px;
  object-fit: contain;
  display: block;
}

.logo-preview-placeholder,
.cadastro-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Estado vazio rico (com ícone + título + subtexto) */
.cadastro-empty-rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 320px;
  padding: 32px 24px;
}

.cadastro-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #7c4af8;
  background: rgba(124, 74, 248, 0.12);
  margin-bottom: 4px;
}

.cadastro-empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.cadastro-empty-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}

.logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.settings-save-btn {
  min-height: 52px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cadastro-form-panel,
.cadastro-list-panel {
  min-height: 360px;
}

.cadastro-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cadastro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
}

.cadastro-row-main {
  min-width: 0;
  flex: 1;
}

.cadastro-row-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.cadastro-row-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}

.cadastro-row-meta {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

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

.cadastro-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.panel-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.panel-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cropper-view-box,
.cropper-face {
  border-radius: 4px;
}

.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 34;
}

body.mobile-menu-open .mobile-sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1100px) {
  .config-two-columns,
  .cadastros-grid {
    grid-template-columns: 1fr;
  }

  .logo-crop-layout,
  .logo-crop-layout-collapsed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {

  .auth-secondary-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .content {
    padding: 18px;
  }

  .auth-card {
    padding: 28px;
  }

  .auth-actions {
    flex-direction: column;
  }

  .topbar {
    align-items: flex-start;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .inline-grid {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .field-inline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-card-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-toggle-group,
  .cadastros-switch {
    width: 100%;
  }

  .theme-choice-btn,
  .cadastros-switch-btn {
    flex: 1;
    justify-content: center;
  }

  .logo-actions,
  .cadastro-row-actions {
    flex-direction: column;
  }

  .cadastro-row,
  .cadastro-row-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn,
  .mobile-close-btn {
    display: inline-flex;
  }

  .content {
    padding: 14px;
  }

  .topbar {
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .topbar-title {
    font-size: 24px;
  }

  .topbar-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .compact-panel {
    padding: 16px 18px;
  }

  .config-cards-stack,
  .config-two-columns,
  .cadastros-grid {
    gap: 14px;
  }

  .cadastros-switch-wrap {
    justify-content: stretch;
  }

  .cadastros-switch {
    width: 100%;
  }

  .sidebar-footer.sidebar-session-card {
    padding: 16px;
  }

  .settings-save-btn,
  .settings-actions .btn,
  .logo-actions .btn,
  .cadastro-row-actions .btn {
    width: 100%;
  }

  .logo-preview-box {
    min-height: 90px;
  }
}

@media (max-width: 640px) {
  #auth-screen {
    padding: 0;
  }

  .auth-card,
  .panel {
    padding: 16px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 28px;
  }

  .config-page-title,
  .panel-title {
    font-size: 20px;
  }

  .form-input,
  .form-textarea,
  select.form-input {
    font-size: 16px;
  }

  .cadastro-row {
    padding: 14px;
  }

  .cadastro-row-title {
    font-size: 15px;
  }

  .cadastro-price {
    font-size: 15px;
  }

  .theme-choice-btn,
  .cadastros-switch-btn {
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  .topbar-left {
    width: 100%;
  }

  .topbar-title {
    font-size: 22px;
  }

  .topbar-title-wrap {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .auth-card,
  .panel {
    padding: 14px;
    border-radius: 14px;
  }

  .brand-badge {
    font-size: 12px;
    padding: 7px 12px;
  }

  .btn {
    min-height: 44px;
    padding: 0 14px;
  }

  .btn-small {
    min-height: 34px;
    width: 100%;
  }

  .settings-actions,
  .logo-actions {
    gap: 8px;
  }
}


.panel-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.panel-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.subscription-page-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.subscription-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.subscription-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.subscription-hero-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.subscription-hero-text {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.subscription-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.subscription-status-pill.is-active,
.subscription-status-pill.is-trial {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
  color: #1d1d1f;
}

.subscription-status-pill.is-past-due,
.subscription-status-pill.is-canceled,
.subscription-status-pill.is-expired,
.subscription-status-pill.is-inactive {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

html[data-theme="dark"] .subscription-status-pill.is-active,
html[data-theme="dark"] .subscription-status-pill.is-trial {
  color: #e8e8ed;
  background: rgba(34, 197, 94, 0.14);
}

html[data-theme="dark"] .subscription-status-pill.is-past-due,
html[data-theme="dark"] .subscription-status-pill.is-canceled,
html[data-theme="dark"] .subscription-status-pill.is-expired,
html[data-theme="dark"] .subscription-status-pill.is-inactive {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

.subscription-summary-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
}

.subscription-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscription-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.subscription-summary-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.subscription-summary-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.subscription-access-box {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.subscription-access-box.is-active,
.subscription-access-box.is-trial {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
  color: #1d1d1f;
}

.subscription-access-box.is-past-due,
.subscription-access-box.is-canceled,
.subscription-access-box.is-expired,
.subscription-access-box.is-inactive {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

html[data-theme="dark"] .subscription-access-box.is-active,
html[data-theme="dark"] .subscription-access-box.is-trial {
  color: #e8e8ed;
  background: rgba(34, 197, 94, 0.14);
}

html[data-theme="dark"] .subscription-access-box.is-past-due,
html[data-theme="dark"] .subscription-access-box.is-canceled,
html[data-theme="dark"] .subscription-access-box.is-expired,
html[data-theme="dark"] .subscription-access-box.is-inactive {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

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

.subscription-plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-2);
}

.subscription-plan-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subscription-plan-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.subscription-plan-cycle {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-plan-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

@media (max-width: 1100px) {
  .subscription-summary-grid {
    grid-template-columns: 1fr;
  }

  .subscription-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .subscription-hero {
    flex-direction: column;
  }

  .subscription-summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscription-summary-value {
    text-align: left;
  }
}


/* Sidebar collapse */
.sidebar {
  transition: width 0.24s ease, padding 0.24s ease;
}

.sidebar-collapse-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: var(--card-2);
}

.sidebar-top-wrap {
  min-height: 0;
}

.sidebar-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

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

.sidebar.collapsed {
  width: 82px;
  padding-left: 10px;
  padding-right: 10px;
}

.sidebar.collapsed .sidebar-logo,
.sidebar.collapsed .sidebar-logo-icon,
.sidebar.collapsed .sidebar-subtitle,
.sidebar.collapsed .nav-btn-label,
.sidebar.collapsed .sidebar-session-title,
.sidebar.collapsed .sidebar-session-email,
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed #sidebar-subscription-info,
.sidebar.collapsed .sidebar-logout-label,
.sidebar.collapsed .sidebar-logout-btn span,
.sidebar.collapsed .sidebar-company-info {
  display: none !important;
}

.sidebar.collapsed .sidebar-company-card {
  justify-content: center;
  padding: 8px;
  margin-top: 12px;
}

.sidebar.collapsed .sidebar-brand-row {
  justify-content: center;
}

.sidebar.collapsed .sidebar-brand-actions {
  justify-content: center;
  width: 100%;
}

.sidebar.collapsed .nav-btn {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .sidebar-user-card {
  padding: 8px;
  justify-content: center;
}

.sidebar.collapsed .sidebar-logout-btn {
  padding: 10px 0;
  justify-content: center;
}

.sidebar.collapsed .sidebar-nav {
  gap: 8px;
}

/* Global CTA banner */
.subscription-cta-banner {
  margin: 0 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.subscription-cta-banner__copy {
  min-width: 0;
}

.subscription-cta-banner__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.subscription-cta-banner__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.subscription-cta-banner__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.subscription-cta-banner__actions {
  flex-shrink: 0;
}

.subscription-cta-banner__btn {
  white-space: nowrap;
}

html[data-theme="dark"] .subscription-cta-banner {
  border-color: rgba(59, 130, 246, 0.22);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.18), rgba(29, 78, 216, 0.05));
}

@media (max-width: 900px) {
  .subscription-cta-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .subscription-cta-banner__actions,
  .subscription-cta-banner__btn {
    width: 100%;
  }
}


.cadastro-search-wrap {
  margin-bottom: 14px;
}

.cadastro-search-field {
  position: relative;
}

.cadastro-search-input {
  padding-left: 42px;
  padding-right: 44px;
}

.cadastro-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.cadastro-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cadastro-search-clear:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.app-global-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.app-global-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.app-global-loading__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
}

.app-global-loading__spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 4px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--primary);
  animation: auraSpin 0.85s linear infinite;
}

.app-global-loading__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.app-global-loading__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

body.app-loading-active {
  overflow: hidden;
}

@keyframes auraSpin {
  to { transform: rotate(360deg); }
}

html[data-theme="dark"] .cadastro-search-clear:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .app-global-loading__backdrop {
  background: rgba(0, 0, 0, 0.56);
}

html[data-theme="dark"] .app-global-loading__spinner {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: #e5e7eb;
}


/* ─── UI/UX PRO MAX — APP-WIDE ENHANCEMENTS ────── */

/* ── Auth screen — match panel tone so no black gaps ── */
html[data-theme="dark"] #auth-screen {
  background: #1a1010;
}

/* ── Auth side panel — uniform warm dark ── */
.auth-side-panel {
  background: linear-gradient(165deg, #1a1010 0%, #1e0f0f 30%, #190d0d 60%, #1a1010 100%);
  overflow: hidden;
}

.auth-side-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 30% 20%, rgba(124, 74, 248, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 100% 90% at 70% 80%, rgba(79, 70, 229, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(80, 20, 20, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-side-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(124, 74, 248, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(239, 68, 68, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Auth Carousel — peek slider ── */
.auth-carousel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  padding: 0 16px;
}

.auth-carousel-track {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: visible;
}

.auth-carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), opacity 0.6s cubic-bezier(.22,1,.36,1), filter 0.6s ease;
  opacity: 0;
  transform: translateX(80%) scale(0.85);
  pointer-events: none;
  filter: blur(2px);
  z-index: 1;
}

.auth-carousel-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  filter: blur(0);
  z-index: 3;
}

.auth-carousel-slide.prev {
  opacity: 0.35;
  transform: translateX(-65%) scale(0.82);
  pointer-events: none;
  filter: blur(2px);
  z-index: 2;
}

.auth-carousel-slide.next {
  opacity: 0.35;
  transform: translateX(65%) scale(0.82);
  pointer-events: none;
  filter: blur(2px);
  z-index: 2;
}

/* Slide card — glass container */
.auth-slide-card {
  width: 100%;
  max-width: 340px;
  padding: 28px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Active slide card — solid elevated background */
.auth-carousel-slide.active .auth-slide-card {
  background: rgba(25, 15, 15, 0.92);
  border-color: rgba(124, 74, 248, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,74,248,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-carousel-slide.active .auth-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,74,248,0.12), 0 0 24px rgba(124,74,248,0.08);
  border-color: rgba(124, 74, 248, 0.25);
}

/* Badge / tag */
.auth-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(124,74,248,0.12);
  border: 1px solid rgba(124,74,248,0.25);
  color: #9d75fa;
}

.auth-slide-badge i {
  font-size: 12px;
}

/* Auth carousel mockups — shared */
.auth-slide-mockup {
  width: 100%;
  max-width: 300px;
  margin-top: 4px;
  transition: transform 0.15s ease;
}

/* PDF mockup */
.auth-mock-pdf {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-mock-pdf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
}

.auth-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c4af8, #4f46e5);
  box-shadow: 0 0 6px rgba(124,74,248,0.4);
  display: inline-block;
}

.auth-mock-pdf-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.auth-mock-pdf-row span:last-child {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.auth-mock-pdf-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #7c4af8;
  background: rgba(124,74,248,0.06);
}

/* Dashboard mockup */
.auth-mock-dashboard {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-mock-kpi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.auth-mock-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.auth-mock-kpi-val {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
}

.auth-mock-kpi-green .auth-mock-kpi-val {
  color: #34d399;
}

.auth-mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  padding: 0 4px;
}

.auth-mock-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(255,255,255,0.08);
  height: var(--bar-h, 30%);
  transition: height 0.6s cubic-bezier(.16,1,.3,1);
}

.auth-mock-bar-active {
  background: rgba(124,74,248,0.35);
}

.auth-mock-bar-accent {
  background: linear-gradient(180deg, #7c4af8, #4f46e5);
  box-shadow: 0 0 12px rgba(124,74,248,0.3);
}

/* Catalog mockup */
.auth-mock-catalog {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-mock-catalog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s ease;
}

.auth-mock-catalog-row:last-child {
  border-bottom: none;
}

.auth-mock-catalog-row:hover {
  background: rgba(255,255,255,0.03);
}

.auth-mock-catalog-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(168,85,247,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  font-size: 11px;
  flex-shrink: 0;
}

.auth-mock-catalog-name {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.auth-mock-catalog-price {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
}

/* WhatsApp mockup */
.auth-mock-whatsapp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 280px;
  margin: 0 auto;
}

.auth-mock-wpp-bubble {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.auth-mock-wpp-file {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 11px;
  color: #ef4444;
  font-weight: 600;
}

.auth-mock-wpp-file i {
  font-size: 16px;
}

.auth-mock-wpp-size {
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin-left: auto;
}

.auth-mock-wpp-sent {
  text-align: right;
  font-size: 10px;
  color: rgba(37, 211, 102, 0.6);
  font-weight: 500;
  padding-right: 4px;
}

.auth-mock-wpp-sent i {
  color: #25d366;
}

/* Navigation arrows */
.auth-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.auth-carousel-arrow:hover {
  background: rgba(124,74,248,0.15);
  border-color: rgba(124,74,248,0.3);
  color: #7c4af8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px rgba(124,74,248,0.2);
}

.auth-carousel-prev { left: -8px; }
.auth-carousel-next { right: -8px; }

/* Carousel dots — pill progress style */
.auth-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.auth-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}

.auth-carousel-dot.active {
  width: 32px;
  background: rgba(124,74,248,0.25);
}

.auth-carousel-dot.active::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: #7c4af8;
  border-radius: 8px;
  animation: authDotFill 5s linear forwards;
}

@keyframes authDotFill {
  from { width: 0%; }
  to { width: 100%; }
}

.auth-carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.25);
  transform: scale(1.15);
}

/* Auth side logo — higher z-index for carousel context */
.auth-side-logo {
  position: relative;
  z-index: 1;
}

/* Mobile: hide carousel + arrows, show only on desktop */
@media (max-width: 768px) {
  .auth-carousel { display: none; }
  .auth-carousel-arrow { display: none; }
}

.auth-side-logo-icon {
  animation: auraPulseRing 3s infinite;
}

.auth-side-title {
  background: linear-gradient(135deg, #f5f5f7, rgba(124,74,248,0.8));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: auraGradientShift 6s ease infinite;
}

/* ── Auth card — refined glass ── */
.auth-card {
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c4af8, #4f46e5, #2563eb, #7c4af8);
  background-size: 200% 100%;
  animation: auraGradientShift 3s ease infinite;
  border-radius: 4px 4px 0 0;
  opacity: 0.6;
}

.brand-badge {
  background: linear-gradient(135deg, rgba(124,74,248,0.08), rgba(239,68,68,0.06));
  border: 1px solid rgba(124,74,248,0.15);
  color: #7c4af8;
}

html[data-theme="dark"] .brand-badge {
  background: linear-gradient(135deg, rgba(124,74,248,0.1), rgba(239,68,68,0.08));
  border: 1px solid rgba(124,74,248,0.2);
  color: #9d75fa;
}

/* ── Form inputs — orange focus glow ── */
.form-input:focus,
.form-textarea:focus {
  border-color: #7c4af8;
  box-shadow: 0 0 0 3px rgba(124,74,248,0.12), 0 0 16px rgba(124,74,248,0.06);
}

html[data-theme="dark"] .form-input:focus,
html[data-theme="dark"] .form-textarea:focus {
  border-color: #9d75fa;
  box-shadow: 0 0 0 3px rgba(124,74,248,0.15), 0 0 20px rgba(124,74,248,0.08);
}

.form-input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* ── Sidebar — refined glass & glow ── */
.sidebar {
  background: linear-gradient(180deg, #111111, #0a0a0a);
  border-right: 1px solid rgba(255,255,255,0.04);
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}

.sidebar-logo-icon {
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-logo-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5), 0 0 0 1px rgba(255,255,255,0.12) inset;
}

/* Nav button — glow on active */
.nav-btn {
  transition: all 0.2s cubic-bezier(.16,1,.3,1);
  position: relative;
}

.nav-btn.active {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 20px rgba(255,255,255,0.03) inset;
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #7c4af8, #4f46e5);
  box-shadow: 0 0 8px rgba(124,74,248,0.4);
}

.nav-btn-icon {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-btn:hover .nav-btn-icon {
  transform: scale(1.1);
}

/* Sidebar user card — glass effect */
.sidebar-user-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.sidebar-user-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}

/* Status dot glow */
.sidebar-status-dot {
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15), 0 0 8px rgba(16,185,129,0.3);
  animation: auraDotPulse 3s ease-in-out infinite;
}

/* Logout hover glow */
.sidebar-logout-btn {
  transition: all 0.25s ease;
}

/* Tutorial button */
.sidebar-tutorial-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(124,74,248,0.06);
  border: 1px solid rgba(124,74,248,0.12);
  color: #9d75fa;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-tutorial-btn:hover {
  background: rgba(124,74,248,0.12);
  border-color: rgba(124,74,248,0.25);
}

/* ── App Topbar — enhanced ── */
.topbar {
  background: linear-gradient(to bottom, var(--bg) 80%, transparent);
}

.topbar-label {
  background: linear-gradient(90deg, var(--muted), rgba(124,74,248,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Panels — subtle premium feel ── */
.panel {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
}

.panel:hover {
  border-color: rgba(124,74,248,0.08);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124,74,248,0.04);
}

html[data-theme="dark"] .panel:hover {
  border-color: rgba(124,74,248,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,74,248,0.06);
}

/* ── Buttons — gradient CTA ── */
.btn {
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 125%;
}

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

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

/* Settings save btn — gradient */
.settings-save-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  position: relative;
  overflow: hidden;
}

/* ── KPI cards hover ── */
.panel .lm-kpi,
.subscription-summary-row {
  transition: all 0.2s ease;
}

.subscription-summary-row:hover {
  background: rgba(124,74,248,0.04);
  border-color: rgba(124,74,248,0.12);
}

html[data-theme="dark"] .subscription-summary-row:hover {
  background: rgba(124,74,248,0.06);
  border-color: rgba(124,74,248,0.15);
}

/* ── Cadastro rows — hover polish ── */
.cadastro-row {
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cadastro-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, #7c4af8, #4f46e5);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 0 2px 2px 0;
}

.cadastro-row:hover {
  border-color: rgba(124,74,248,0.15);
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.cadastro-row:hover::before {
  opacity: 1;
}

html[data-theme="dark"] .cadastro-row:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ── Cadastro switch tabs — better active ── */
.cadastros-switch-btn.active {
  background: var(--card);
  border-color: rgba(124,74,248,0.2);
  box-shadow: 0 4px 14px rgba(124,74,248,0.06);
}

html[data-theme="dark"] .cadastros-switch-btn.active {
  background: #111214;
  border-color: rgba(124,74,248,0.15);
}

/* ── Theme toggle — active glow ── */
.theme-choice-btn.active {
  border-color: rgba(124,74,248,0.15);
}

/* ── Subscription hero badge — gradient ── */
.subscription-hero-badge {
  background: linear-gradient(135deg, rgba(124,74,248,0.08), rgba(239,68,68,0.06));
  border: 1px solid rgba(124,74,248,0.15);
  color: #7c4af8;
}

html[data-theme="dark"] .subscription-hero-badge {
  background: linear-gradient(135deg, rgba(124,74,248,0.1), rgba(239,68,68,0.08));
  border-color: rgba(124,74,248,0.2);
  color: #9d75fa;
}

/* Subscription status pill — enhanced */
.subscription-status-pill.is-active,
.subscription-status-pill.is-trial {
  box-shadow: 0 0 12px rgba(34,197,94,0.15);
}

/* Subscription plan cards hover */
.subscription-plan-card {
  transition: all 0.25s ease;
}

.subscription-plan-card:hover {
  border-color: rgba(124,74,248,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

html[data-theme="dark"] .subscription-plan-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* ── Config section titles — refined ── */
.config-page-title {
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mini-card-title {
  position: relative;
  padding-left: 12px;
}

.mini-card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7c4af8, #4f46e5);
}

/* ── Empty states — refined ── */
.cadastro-empty-icon {
  background: linear-gradient(135deg, rgba(124,74,248,0.12), rgba(239,68,68,0.08));
  box-shadow: 0 4px 16px rgba(124,74,248,0.1);
}

/* ── Search inputs ── */
.cadastro-search-input:focus {
  border-color: #7c4af8;
  box-shadow: 0 0 0 3px rgba(124,74,248,0.12);
}

/* ── Quick modals — glass overlay ── */
.quick-modal-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.quick-modal-card {
  animation: auraFadeInScale 0.3s cubic-bezier(.16,1,.3,1);
}

/* ── Loading spinner — brand color ── */
.app-global-loading__spinner {
  border-top-color: #7c4af8;
}

html[data-theme="dark"] .app-global-loading__spinner {
  border-color: rgba(255,255,255,0.08);
  border-top-color: #9d75fa;
}

/* ── Mobile bottom nav — enhanced ── */
.mobile-bottom-nav {
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
}

.mbn-item.active .mbn-icon {
  transform: scale(1.1);
  transition: transform 0.25s ease;
}

/* ── Scrollbar — branded ── */
* {
  scrollbar-color: rgba(22, 163, 74, 0.2) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(22, 163, 74, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 163, 74, 0.4);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(22, 163, 74, 0.18);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 163, 74, 0.35);
}

/* ── Selection color ── */
::selection {
  background: rgba(124,74,248,0.2);
  color: var(--text);
}

/* ── Tutorial modal — enhanced mockups ── */
.welcome-slide-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.welcome-mockup-icon {
  animation: aurafloat 4s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.welcome-mockup-card {
  animation: auraFadeInScale 0.5s cubic-bezier(.16,1,.3,1);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

html[data-theme="dark"] .welcome-mockup-card {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.welcome-modal-card {
  border: 1px solid rgba(124,74,248,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,74,248,0.06);
}

/* Welcome dots — brand color */
.welcome-dot.active {
  background: linear-gradient(135deg, #7c4af8, #4f46e5);
  box-shadow: 0 0 8px rgba(124,74,248,0.4);
}

.welcome-btn-primary {
  background: linear-gradient(135deg, #7c4af8, #6431e9) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(124,74,248,0.3);
}

.welcome-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(124,74,248,0.4);
}

/* ── Dashboard-specific — enhanced from screenshots ── */

/* Proposal table rows — subtle hover */
@keyframes auraRowSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Responsive for new app styles ── */
@media (max-width: 768px) {
  .nav-btn.active::before {
    display: none;
  }

  .mini-card-title::before {
    display: none;
  }

  .mini-card-title {
    padding-left: 0;
  }
}

/* ─── LANDING PAGE ─────────────────────────────── */

#landing-screen {
  min-height: 100vh;
  padding: 20px 20px 60px;
  background: var(--bg);
  overflow-x: hidden;
}

.landing-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Eyebrow shared ── */
.landing-eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 8px;
  vertical-align: middle;
}

/* ── Topbar ── */
.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: 20px;
  z-index: 100;
}

html[data-theme="dark"] .landing-topbar {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
}

.landing-brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text);
  display: inline-block;
}

.landing-nav {
  display: flex;
  gap: 4px;
}

.landing-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.landing-nav-link:hover {
  color: var(--text);
  background: var(--card-2);
}

.landing-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.landing-login-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.landing-login-btn-prominent {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-size: 14px;
  padding: 10px 20px;
}

.landing-login-btn-prominent:hover {
  opacity: 0.85;
}

html[data-theme="dark"] .landing-login-btn-prominent {
  background: #f5f5f7;
  color: #1d1d1f;
  border-color: #f5f5f7;
}

html[data-theme="dark"] .landing-login-btn-prominent:hover {
  background: #e8e8ed;
  border-color: #e8e8ed;
  color: #1d1d1f;
}

.landing-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6431e9, #4338ca);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.landing-header-cta:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* ── Hero ── */
.landing-hero {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 80px 48px 72px;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.landing-title {
  margin: 0;
  font-size: 58px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.landing-title-accent {
  position: relative;
  display: inline-block;
}

.landing-title-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0; right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
  opacity: 0.25;
}

.landing-subtitle {
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}

.landing-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.landing-mid-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
}

.landing-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.landing-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.landing-cta-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Bento Grid (Features) ── */
/* ── Hero glows ── */
.landing-hero-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -120px;
  left: -120px;
  pointer-events: none;
}

.landing-hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157,117,250,0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

/* ── Stats ── */
.landing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 32px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 32px;
}

.landing-stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.landing-stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.landing-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* ── Pain section ── */
.landing-pain {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.landing-pain::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,74,248,0.12) 0%, transparent 70%);
  top: -120px; right: -80px;
  pointer-events: none;
  z-index: 0;
}
.landing-pain > * { position: relative; z-index: 1; }

.landing-pain-header {
  text-align: center;
  margin-bottom: 36px;
}

.landing-pain-title {
  margin: 10px 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.landing-pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.landing-pain-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.landing-pain-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border);
}

.landing-pain-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

html[data-theme="dark"] .landing-pain-icon {
  background: rgba(217,119,6,0.15);
  color: #fbbf24;
}

.landing-pain-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.landing-pain-text strong {
  color: var(--text);
  font-weight: 700;
}

.landing-pain-callout {
  background: linear-gradient(135deg, rgba(254,249,240,0.6), rgba(255,247,237,0.5));
  border: 1px solid rgba(254,215,170,0.5);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-size: 14px;
  line-height: 1.7;
  color: #92400e;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.landing-pain-callout i {
  font-size: 18px;
  color: #f59e0b;
  margin-top: 2px;
  flex-shrink: 0;
}

.landing-pain-callout strong {
  color: #92400e;
}

html[data-theme="dark"] .landing-pain-callout {
  background: rgba(251,191,36,0.06);
  border-color: rgba(251,191,36,0.15);
  color: #fbbf24;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

html[data-theme="dark"] .landing-pain-callout strong {
  color: #fcd34d;
}

/* ── FOMO callout ── */
.landing-fomo {
  background: rgba(29,29,31,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 36px 40px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.landing-fomo-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.landing-fomo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.landing-fomo-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--bg);
  flex: 1;
  min-width: 280px;
}

.landing-fomo-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(245,245,247,0.55);
}

html[data-theme="dark"] .landing-fomo {
  background: rgba(245,245,247,0.88);
  border-color: rgba(255,255,255,0.5);
}

html[data-theme="dark"] .landing-fomo-title {
  color: #1d1d1f;
}

html[data-theme="dark"] .landing-fomo-sub {
  color: rgba(29,29,31,0.5);
}

html[data-theme="dark"] .landing-fomo-icon {
  background: rgba(29,29,31,0.1);
  color: #d97706;
}

.landing-fomo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.landing-fomo-btn:hover { opacity: 0.85; }

html[data-theme="dark"] .landing-fomo-btn {
  background: #1d1d1f;
  color: #f5f5f7;
}

/* (Regras antigas de cor por plano removidas — cor agora é verde unificado) */

/* ── Responsive pain/fomo ── */
@media (max-width: 900px) {
  .landing-pain { padding: 36px 24px; }
  .landing-pain-grid { grid-template-columns: 1fr; }
  .landing-pain-title { font-size: 24px; }
  .landing-fomo { padding: 28px 24px; }
  .landing-fomo-title { font-size: 16px; }
  .landing-stat { padding: 8px 20px; }
}

.landing-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.landing-preview::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%);
  bottom: -150px; left: -100px;
  pointer-events: none;
  z-index: 0;
}
.landing-preview::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  top: -100px; right: -80px;
  pointer-events: none;
  z-index: 0;
}

.landing-preview-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.landing-bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}

.landing-bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border);
}

html[data-theme="dark"] .landing-bento-card:hover {
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow-hover);
}

.landing-bento-large  { grid-column: span 7; }
.landing-bento-medium { grid-column: span 5; }
.landing-bento-small  { grid-column: span 6; }

.landing-bento-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.landing-bento-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.lm-whatsapp-icon { color: #16a34a; }

.landing-bento-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.landing-bento-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Mockups ── */
.landing-mockup {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  overflow: hidden;
  font-size: 11px;
}

/* Dashboard mockup */
.landing-mockup-dashboard {}

.lm-topbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.lm-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.lm-dot.red    { background: #ff5f57; }
.lm-dot.yellow { background: #ffbd2e; }
.lm-dot.green  { background: #28c940; }

.lm-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 6px;
}

.lm-kpis {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
  padding: 8px;
}

.lm-kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}

.lm-kpi-label {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 3px;
}

.lm-kpi-val {
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
}

.lm-kpi-green .lm-kpi-val { color: #16a34a; }

.lm-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  padding: 0 8px 6px;
}

.lm-bar {
  flex: 1;
  background: var(--line);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: height 0.5s ease;
}

.lm-bar-filled { background: rgba(0,0,0,0.15); }
html[data-theme="dark"] .lm-bar-filled { background: rgba(255,255,255,0.15); }

.lm-bar-active { background: var(--text); opacity: 0.7; }

.lm-rows { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 4px; }

.lm-row {
  display: grid;
  grid-template-columns: 52px 1fr 60px 60px;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  align-items: center;
  font-size: 10px;
}

.lm-row-num { font-weight: 800; color: var(--muted); font-size: 9px; }
.lm-row-name { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-row-val { font-weight: 800; color: var(--text); text-align: right; }

.lm-row-status {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  text-align: center;
}

.lm-pending { background: rgba(234,179,8,0.1); color: #ca8a04; }
.lm-closed  { background: rgba(22,163,74,0.1); color: #16a34a; }

/* PDF mockup */
.landing-mockup-pdf { padding: 10px; display: flex; flex-direction: column; gap: 8px; }

.lm-pdf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.lm-pdf-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
}

.lm-pdf-name { font-weight: 800; font-size: 11px; color: var(--text); }
.lm-pdf-info { font-size: 9px; color: var(--muted); }

.lm-pdf-client {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lm-pdf-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 4px;
  font-size: 9px;
  color: var(--muted);
}

.lm-pdf-row.bold { color: var(--text); font-weight: 700; font-size: 10px; }

.lm-pdf-item { display: flex; flex-direction: column; gap: 3px; }

.lm-pdf-item-head {
  display: grid;
  grid-template-columns: 16px 1fr 54px 54px;
  gap: 4px;
  font-size: 8px;
  font-weight: 800;
  color: var(--muted);
  background: var(--text);
  color: var(--bg);
  padding: 4px 6px;
  border-radius: 5px;
  opacity: 0.85;
}

.lm-pdf-item-row {
  display: grid;
  grid-template-columns: 16px 1fr 54px 54px;
  gap: 4px;
  font-size: 9px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 4px 6px;
  border-radius: 5px;
}

.lm-pdf-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
}

.lm-pdf-val { font-size: 12px; font-weight: 900; color: var(--text); }

/* Catalog mockup */
.landing-mockup-catalog {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lm-catalog-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  transition: background 0.2s;
}

.lm-catalog-item i { color: #16a34a; font-size: 9px; }
.lm-catalog-faded { opacity: 0.4; }

/* WhatsApp mockup */
.landing-mockup-whatsapp {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #e5ddd5;
}

html[data-theme="dark"] .landing-mockup-whatsapp { background: #1a1a1a; }

.lm-wpp-bubble {
  background: #ffffff;
  border-radius: 0 10px 10px 10px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.5;
  color: #1d1d1f;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.lm-wpp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcf8c6;
  color: #1d1d1f;
  font-weight: 700;
  border-radius: 10px 10px 10px 0;
}

.lm-wpp-link i { color: #e53e3e; }

/* ── Plans ── */
.landing-plans-section {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.landing-plans-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
  top: -150px; left: -100px;
  pointer-events: none;
  z-index: 0;
}
.landing-plans-section::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,74,248,0.08) 0%, transparent 70%);
  bottom: -120px; right: -80px;
  pointer-events: none;
  z-index: 0;
}
.landing-plans-section > * { position: relative; z-index: 1; }

.landing-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.landing-section-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.landing-section-title {
  margin: 0 0 8px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.landing-section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ───────── PLANOS — versão híbrida (Entrega 5) ───────── */

/* Pílula "Em qualquer plano você tem" antes dos cards */
.landing-plans-included {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 36px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

html[data-theme="light"] .landing-plans-included {
  background: var(--glass-bg);
  border-color: var(--glass-border-subtle);
}

.landing-plans-included-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-plans-included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}

.landing-plans-included-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.landing-plans-included-list li i {
  font-size: 14px;
  color: #7c4af8;
}

/* Grid dos planos — DESKTOP (3 cards lado a lado, central destacado) */
.landing-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.landing-plan-card {
  position: relative;
  border-radius: 22px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Tamanho padronizado pros NÃO-selecionados */
  min-height: 360px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transform: scale(0.94);
  opacity: 0.55;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1),
              opacity 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease,
              border-color 0.3s ease;
}

html[data-theme="light"] .landing-plan-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
  opacity: 0.7;
}

.landing-plan-card:hover {
  opacity: 0.8;
  transform: scale(0.97);
}

/* Card SELECIONADO — tamanho fixo padronizado */
.landing-plan-card.is-selected {
  transform: scale(1);
  opacity: 1;
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 28px 70px rgba(0,0,0,0.35),
              0 0 40px rgba(255,255,255,0.08),
              inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2;
  /* Tamanho padronizado dos selecionados */
  min-height: 460px;
  padding: 32px 26px;
  cursor: default;
}

html[data-theme="light"] .landing-plan-card.is-selected {
  background: rgba(17,17,19,0.95);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 28px 70px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}

.landing-plan-card.is-selected:hover {
  transform: translateY(-3px);
}

/* Glow no card selecionado */
.landing-plan-glow {
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.landing-plan-card.is-selected .landing-plan-glow {
  opacity: 1;
}

/* Header (nome + tag/badge no canto) */
.landing-plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Tags padronizadas (paleta neutra — diferenciação fica no badge laranja do anual) */
.landing-plan-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}

html[data-theme="light"] .landing-plan-tag {
  background: rgba(15,23,42,0.06);
  color: var(--muted);
}

/* Badge "Mais vantajoso" — laranja Aura, marca o anual */
.landing-plan-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 74, 248, 0.18);
  color: #7c4af8;
}

.landing-plan-card.is-selected .landing-plan-badge {
  background: rgba(124, 74, 248, 0.18);
  color: #7c4af8;
}

/* Trial pílula — só visível quando o anual está selecionado */
.landing-plan-trial {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  background: rgba(124,74,248,0.18);
  color: #7c4af8;
  border: 1px solid rgba(124,74,248,0.3);
}

.landing-plan-card.is-selected .landing-plan-trial {
  display: inline-flex;
}

.landing-plan-trial-note {
  display: none;
  margin: 0;
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
}

.landing-plan-card.is-selected .landing-plan-trial-note {
  display: block;
  color: rgba(29,29,31,0.55);
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-trial-note {
  color: rgba(245,245,247,0.55);
}

/* Nome do plano dentro do selected: contraste com fundo claro */
.landing-plan-card.is-selected .landing-plan-name {
  color: rgba(29,29,31,0.65);
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-name {
  color: rgba(245,245,247,0.65);
}

/* Bloco de preço */
.landing-plan-price-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.landing-plan-equiv-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
  margin-bottom: -2px;
}

.landing-plan-card.is-selected .landing-plan-equiv-label {
  color: #1d1d1f;
  opacity: 0.5;
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-equiv-label {
  color: #f5f5f7;
  opacity: 0.5;
}

/* Cor verde dos preços (padrão em todos os cards) */
.landing-plan-price,
.landing-plan-monthly-equiv-featured {
  color: #16a34a;
}

.landing-plan-price {
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.landing-plan-card.is-selected .landing-plan-price {
  font-size: 46px;
  color: #22c55e;
}

.landing-plan-cents {
  font-size: 20px;
  font-weight: 700;
  vertical-align: super;
  color: #16a34a;
}

.landing-plan-card.is-selected .landing-plan-cents {
  color: #22c55e;
}

.landing-plan-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}

.landing-plan-card.is-selected .landing-plan-period {
  color: rgba(29,29,31,0.55);
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-period {
  color: rgba(245,245,247,0.55);
}

/* Preço grande do anual selecionado — verde forte */
.landing-plan-monthly-equiv-featured {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #22c55e;
}

.landing-plan-monthly-equiv-featured span {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}

.landing-plan-card.is-selected .landing-plan-monthly-equiv-featured span {
  color: rgba(29,29,31,0.55);
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-monthly-equiv-featured span {
  color: rgba(245,245,247,0.55);
}

/* Total / cobrança recorrente */
.landing-plan-total-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
}

.landing-plan-total-label strong {
  color: var(--text);
  font-weight: 800;
}

.landing-plan-strike {
  text-decoration: line-through;
  text-decoration-color: rgba(239,68,68,0.7);
  text-decoration-thickness: 1.5px;
  opacity: 0.75;
  margin-right: 2px;
}

.landing-plan-card.is-selected .landing-plan-total-label {
  color: rgba(29,29,31,0.55);
}

.landing-plan-card.is-selected .landing-plan-total-label strong {
  color: #1d1d1f;
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-total-label {
  color: rgba(245,245,247,0.55);
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-total-label strong {
  color: #f5f5f7;
}

/* Linha de ECONOMIA — sempre verde (padronizado) */
.landing-plan-savings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 8px;
  width: fit-content;
  background: rgba(22, 163, 74, 0.16);
  color: #16a34a;
}

.landing-plan-savings i { font-size: 10px; }

.landing-plan-savings-strong {
  background: rgba(22, 163, 74, 0.20);
  color: #16a34a;
}

.landing-plan-savings-soft {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.landing-plan-savings-neutral {
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-weight: 600;
  letter-spacing: 0;
}

/* Copy do card */
.landing-plan-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.landing-plan-card.is-selected .landing-plan-copy {
  color: rgba(29,29,31,0.62);
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-copy {
  color: rgba(245,245,247,0.62);
}

/* ── PIX pill nos cards de plano ── */
.landing-plan-pix-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(50, 188, 173, 0.10);
  border: 1px solid rgba(50, 188, 173, 0.28);
  color: #1a9e8e;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  line-height: 1;
}

.landing-plan-pix-pill strong {
  font-weight: 900;
  color: inherit;
}

html[data-theme="dark"] .landing-plan-pix-pill {
  color: #4dd4c4;
  background: rgba(50, 188, 173, 0.12);
  border-color: rgba(50, 188, 173, 0.30);
}

/* No card selecionado (fundo claro no dark / escuro no light) */
.landing-plan-card.is-selected .landing-plan-pix-pill {
  background: rgba(50, 188, 173, 0.18);
  border-color: rgba(50, 188, 173, 0.45);
  color: #0d8a7d;
}

html[data-theme="dark"] .landing-plan-card.is-selected .landing-plan-pix-pill {
  color: #4dd4c4;
  background: rgba(50, 188, 173, 0.22);
  border-color: rgba(50, 188, 173, 0.50);
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-pix-pill {
  color: #4dd4c4;
  background: rgba(50, 188, 173, 0.18);
  border-color: rgba(50, 188, 173, 0.45);
}

/* Badgezinho de economia dentro da pill PIX */
.landing-plan-pix-save {
  background: #32bcad;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* Linha "12x R$xx,xx + sem juros" — wrapper da linha do parcelado */
.landing-plan-parcel-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-plan-pix-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Badge "sem juros" */
.landing-plan-semjuros {
  font-size: 10px;
  font-weight: 800;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 999px;
  padding: 3px 9px;
  flex-shrink: 0;
  align-self: center;
}

html[data-theme="dark"] .landing-plan-semjuros {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.10);
  border-color: rgba(74, 222, 128, 0.25);
}

.landing-plan-card.is-selected .landing-plan-semjuros {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.35);
}

/* Botão padrão */
.landing-plan-btn-inner {
  margin-top: auto;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.landing-plan-btn-inner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Botão dentro do card SELECIONADO: contraste com fundo claro/escuro do card */
.landing-plan-card.is-selected .landing-plan-btn-inner {
  background: #1d1d1f;
  color: #f5f5f7;
  border: none;
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-btn-inner {
  background: #f5f5f7;
  color: #1d1d1f;
}

.landing-plan-card.is-selected .landing-plan-btn-inner:hover {
  background: #000000;
}

html[data-theme="light"] .landing-plan-card.is-selected .landing-plan-btn-inner:hover {
  background: #ffffff;
}

/* Carrossel mobile (oculto no desktop) */
.landing-plan-carousel-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 0;
}

.landing-plan-carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.18s;
}

.landing-plan-carousel-btn:hover {
  border-color: rgba(15,23,42,0.25);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15,23,42,0.08);
}

html[data-theme="dark"] .landing-plan-carousel-btn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

html[data-theme="dark"] .landing-plan-carousel-btn:hover {
  border-color: rgba(255,255,255,0.3);
}

.landing-plan-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-plan-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(245,245,247,0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.landing-plan-dot.is-active {
  background: #7c4af8;
  transform: scale(1.25);
}

html[data-theme="dark"] .landing-plan-dot {
  background: rgba(29,29,31,0.25);
}

.landing-plans-footer {
  margin: 28px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── Garantia ── */
.landing-guarantee {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-guarantee-inner {
  text-align: center;
  padding: 40px 32px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}

.landing-guarantee-icon {
  font-size: 32px;
  color: #22c55e;
  margin-bottom: 12px;
}

.landing-guarantee-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.landing-guarantee-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.landing-guarantee-text strong {
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  #landing-screen { padding: 14px 14px 48px; }

  .landing-hero { padding: 52px 28px; }
  .landing-title { font-size: 40px; }

  .landing-bento { grid-template-columns: 1fr; }
  .landing-bento-large, .landing-bento-medium, .landing-bento-small { grid-column: span 1; }

  /* Planos viram carrossel scroll-snap em mobile */
  .landing-plan-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12%;
    gap: 12px;
    padding: 10px 12% 14px;
    margin: 0 -24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .landing-plan-grid::-webkit-scrollbar {
    display: none;
  }

  .landing-plan-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
    transform: scale(0.94);
    opacity: 0.6;
    padding: 24px 22px;
    order: 2;
  }

  /* Anual aparece PRIMEIRO no mobile */
  .landing-plan-annual {
    order: 1;
  }

  .landing-plan-monthly {
    order: 2;
  }

  .landing-plan-semiannual {
    order: 3;
  }

  .landing-plan-card.is-selected {
    transform: scale(1);
    padding: 28px 24px;
  }

  .landing-plan-card.is-selected .landing-plan-price {
    font-size: 40px;
  }

  .landing-plan-card.is-selected .landing-plan-monthly-equiv-featured {
    font-size: 44px;
  }

  /* Mostrar setas + dots */
  .landing-plan-carousel-controls {
    display: flex;
  }

  .landing-plans-included-list {
    gap: 10px 16px;
  }

  .landing-plans-section { padding: 36px 24px; }
  .landing-nav { display: none; }
}

@media (max-width: 560px) {
  .landing-title { font-size: 32px; }
  .landing-hero { padding: 44px 20px; }
  .landing-plan-card {
    flex-basis: 82%;
  }
}

/* ─── UI/UX PRO MAX — LANDING ENHANCEMENTS ─────── */

/* ── Keyframes globais ── */
@keyframes aurafloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes auraGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes auraShine {
  0% { left: -75%; }
  100% { left: 125%; }
}

@keyframes auraGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes auraFadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes auraPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(124,74,248,0.4); }
  70% { box-shadow: 0 0 0 14px rgba(124,74,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,74,248,0); }
}

@keyframes auraBarGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes auraDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

@keyframes auraTypewriter {
  from { width: 0; }
  to { width: 100%; }
}

/* ── Scroll reveal base — hidden via opacity, GSAP animates to 1 ── */
.aura-reveal {
  opacity: 0;
}

/* ── TOPBAR — enhanced glass ── */
.landing-topbar {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.3) inset;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  transition: all 0.35s ease;
}

html[data-theme="dark"] .landing-topbar {
  background: rgba(17,17,17,0.72);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.04) inset;
}

.landing-topbar.is-scrolled {
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,0.2) inset;
}

html[data-theme="dark"] .landing-topbar.is-scrolled {
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.06) inset;
  background: rgba(17,17,17,0.88);
}

/* Nav link active state */
.landing-nav-link.is-active {
  color: var(--text);
  background: var(--card-2);
}

/* Brand dot animated pulse */
.landing-brand-dot {
  animation: auraDotPulse 2.5s ease-in-out infinite;
  background: linear-gradient(135deg, #7c4af8, #4f46e5);
}

/* ── HERO — futuristic upgrade ── */
.landing-hero {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124,74,248,0.06) 0%, transparent 70%),
    var(--card);
  overflow: hidden;
}

html[data-theme="dark"] .landing-hero {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124,74,248,0.08) 0%, transparent 70%),
    var(--card);
}

.landing-hero-glow-1 {
  animation: auraGlowPulse 6s ease-in-out infinite;
  background: radial-gradient(circle, rgba(124,74,248,0.12) 0%, transparent 70%);
}

.landing-hero-glow-2 {
  animation: auraGlowPulse 8s ease-in-out infinite 2s;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%);
}

/* Gradient accent on title keyword */
.landing-title-accent {
  background: linear-gradient(135deg, #7c4af8, #4f46e5, #2563eb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: auraGradientShift 4s ease infinite;
}

.landing-title-accent::after {
  display: none;
}

/* CTA com pulse ring */
.landing-cta-main {
  position: relative;
  background: linear-gradient(135deg, #7c4af8, #6431e9);
  color: #fff;
  box-shadow: 0 6px 24px rgba(124,74,248,0.35);
  border: none;
  animation: auraPulseRing 2.5s infinite;
}

.landing-cta-main:hover {
  background: linear-gradient(135deg, #6431e9, #4338ca);
  box-shadow: 0 10px 36px rgba(124,74,248,0.45);
}

html[data-theme="light"] .landing-cta-main {
  background: linear-gradient(135deg, #7c4af8, #6431e9);
  color: #fff;
}

/* Stats upgrade — com ícone visual */
.landing-stat-value {
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── PAIN SECTION — glassmorphism cards ── */
.landing-pain-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .landing-pain-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.landing-pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

.landing-pain-card:hover::before {
  left: 125%;
}

.landing-pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: rgba(124,74,248,0.15);
}

html[data-theme="dark"] .landing-pain-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border-color: rgba(124,74,248,0.2);
}

/* Pain icons — gradient coloridos */
.landing-pain-card:nth-child(1) .landing-pain-icon {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #16a34a;
}
.landing-pain-card:nth-child(2) .landing-pain-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}
.landing-pain-card:nth-child(3) .landing-pain-icon {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #db2777;
}
.landing-pain-card:nth-child(4) .landing-pain-icon {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #6366f1;
}

html[data-theme="dark"] .landing-pain-card:nth-child(1) .landing-pain-icon {
  background: rgba(22,163,74,0.15);
  color: #4ade80;
}
html[data-theme="dark"] .landing-pain-card:nth-child(2) .landing-pain-icon {
  background: rgba(217,119,6,0.15);
  color: #fbbf24;
}
html[data-theme="dark"] .landing-pain-card:nth-child(3) .landing-pain-icon {
  background: rgba(219,39,119,0.15);
  color: #f472b6;
}
html[data-theme="dark"] .landing-pain-card:nth-child(4) .landing-pain-icon {
  background: rgba(99,102,241,0.15);
  color: #818cf8;
}

/* ── BENTO GRID — premium shine + gradient icons ── */
.landing-bento-card {
  position: relative;
  overflow: hidden;
}

.landing-bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

.landing-bento-card:hover::after {
  left: 125%;
}

.landing-bento-card:hover {
  border-color: rgba(124,74,248,0.15);
}

html[data-theme="dark"] .landing-bento-card:hover {
  border-color: rgba(124,74,248,0.2);
}

/* Bento icon gradients */
.landing-bento-large .landing-bento-icon {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.landing-bento-medium .landing-bento-icon {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(239,68,68,0.25);
}

.landing-bento-small:first-of-type .landing-bento-icon {
  background: linear-gradient(135deg, #7c4af8, #6431e9);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(124,74,248,0.25);
}

/* Mockup bars animate on view */
.landing-bento-card.is-visible .lm-bar {
  animation: auraBarGrow 0.8s cubic-bezier(.16,1,.3,1) forwards;
  transform-origin: bottom;
}

.landing-bento-card.is-visible .lm-bar:nth-child(1) { animation-delay: 0.1s; }
.landing-bento-card.is-visible .lm-bar:nth-child(2) { animation-delay: 0.2s; }
.landing-bento-card.is-visible .lm-bar:nth-child(3) { animation-delay: 0.3s; }
.landing-bento-card.is-visible .lm-bar:nth-child(4) { animation-delay: 0.4s; }
.landing-bento-card.is-visible .lm-bar:nth-child(5) { animation-delay: 0.5s; }

/* ── FOMO — animated gradient bg ── */
.landing-fomo {
  background: linear-gradient(135deg, #1d1d1f, #2c2c2e, #1d1d1f);
  background-size: 200% 200%;
  animation: auraGradientShift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.landing-fomo::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124,74,248,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(99,102,241,0.06) 0%, transparent 50%);
  pointer-events: none;
}

html[data-theme="dark"] .landing-fomo {
  background: linear-gradient(135deg, #f5f5f7, #e8e8ed, #f5f5f7);
  background-size: 200% 200%;
  animation: auraGradientShift 8s ease infinite;
}

html[data-theme="dark"] .landing-fomo::before {
  background: radial-gradient(circle at 30% 50%, rgba(124,74,248,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(99,102,241,0.04) 0%, transparent 50%);
}

.landing-fomo-inner { position: relative; z-index: 1; }

.landing-fomo-btn {
  animation: auraPulseRing 3s infinite;
  position: relative;
  overflow: hidden;
}

.landing-fomo-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: auraShine 3s ease-in-out infinite;
}

/* ── FOOTER da landing ── */
.landing-footer {
  text-align: center;
  padding: 28px 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.landing-footer-brand-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c4af8, #4f46e5);
  display: inline-block;
}

.landing-footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.landing-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-footer-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Topbar theme toggle enhanced ── */
.landing-theme-toggle {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: background 0.25s, border-color 0.25s;
}

.landing-theme-toggle:hover {
  background: var(--card-2);
  border-color: rgba(124,74,248,0.2);
}

/* ── Plan cards hover glow ── */
.landing-plan-card:hover {
  border-color: rgba(124,74,248,0.12);
}

.landing-plan-card.is-selected {
  box-shadow: 0 28px 70px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,74,248,0.15);
}

/* ── Section eyebrow dot — gradient ── */
.landing-eyebrow-dot,
.landing-section-eyebrow .landing-eyebrow-dot {
  background: linear-gradient(135deg, #7c4af8, #4f46e5);
}

/* ── Responsive adjustments for new styles ── */
@media (max-width: 900px) {
  .landing-footer-links { gap: 12px; }
}

/* ─── WELCOME MODAL ─────────────────────────────── */

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.welcome-modal.hidden {
  display: none !important;
}

.welcome-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.welcome-modal-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 520px;
  padding: 48px 44px 32px;
  animation: welcomeSlideIn 0.35s ease;
}

@keyframes welcomeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
}

.welcome-modal-close:hover {
  background: var(--card-2);
  color: var(--text);
}

/* Slides */
.welcome-slides {
  position: relative;
  min-height: 320px;
}

.welcome-slide {
  display: none;
  text-align: center;
  animation: welcomeFadeIn 0.3s ease;
}

.welcome-slide.active {
  display: block;
}

@keyframes welcomeFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.welcome-slide-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.welcome-icon-orange {
  background: linear-gradient(135deg, #6431e9, #4338ca);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.welcome-icon-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.welcome-icon-green {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.welcome-slide-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.welcome-slide-text {
  margin: 0 auto 20px;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.welcome-slide-text strong {
  color: var(--text);
  font-weight: 700;
}

.welcome-slide-list {
  list-style: none;
  padding: 0;
  margin: 16px auto 0;
  max-width: 320px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-slide-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card-2);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.welcome-slide-list li i {
  color: #10b981;
  font-size: 11px;
  flex-shrink: 0;
}

.welcome-slide-list li strong {
  color: var(--text);
  font-weight: 700;
}

/* Footer */
.welcome-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 16px;
}

.welcome-dots {
  display: flex;
  gap: 6px;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: all 0.2s;
}

.welcome-dot.active {
  background: var(--text);
  width: 24px;
  border-radius: 4px;
}

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

.welcome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.welcome-btn.hidden {
  display: none !important;
}

.welcome-btn-primary {
  background: var(--text);
  color: var(--bg);
}

.welcome-btn-primary:hover {
  opacity: 0.85;
}

html[data-theme="dark"] .welcome-btn-primary {
  background: #f5f5f7;
  color: #1d1d1f;
}

.welcome-btn-ghost {
  background: transparent;
  color: var(--muted);
}

.welcome-btn-ghost:hover {
  color: var(--text);
}

@media (max-width: 540px) {
  .welcome-modal-card { padding: 36px 24px 24px; }
  .welcome-slide-title { font-size: 20px; }
  .welcome-slide-text { font-size: 14px; }
}

/* ─── CATALOG FAMILY GROUPS ─────────────────────────────── */

.catalog-family-group {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  transition: border-color 0.15s;
}

.catalog-family-group:hover {
  border-color: var(--muted);
}

.catalog-family-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--card-2);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.catalog-family-header:hover {
  background: var(--line);
}

.catalog-family-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-family-chevron {
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.2s;
}

.catalog-family-header.expanded .catalog-family-chevron {
  transform: rotate(90deg);
}

.catalog-family-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.catalog-family-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  background: var(--card);
  border-radius: 999px;
  border: 1px solid var(--line);
}

.catalog-family-items {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-family-items.hidden {
  display: none;
}

.catalog-family-items .cadastro-row {
  background: var(--card);
}

/* ─── FAMILY COMBOBOX ─────────────────────────────── */

.family-combobox {
  position: relative;
}

.family-combobox-input {
  padding-right: 42px;
  text-transform: uppercase;
}

.family-combobox-input::placeholder {
  text-transform: none;
}

.family-combobox-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.15s;
}

.family-combobox-toggle:hover {
  background: var(--card-2);
  color: var(--text);
}

.family-combobox.open .family-combobox-toggle i {
  transform: rotate(180deg);
}

.family-combobox-toggle i {
  transition: transform 0.2s;
}

.family-combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html[data-theme="dark"] .family-combobox-dropdown {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.family-combobox-dropdown.hidden {
  display: none;
}

.family-combobox-section-label {
  padding: 8px 10px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.family-combobox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.12s;
}

.family-combobox-option:hover {
  background: var(--card-2);
}

.family-combobox-option i {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.family-combobox-option.family-combobox-create {
  color: #2563eb;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px;
}

.family-combobox-option.family-combobox-create i {
  color: #2563eb;
}

.family-combobox-option.family-combobox-create strong {
  color: #2563eb;
  font-weight: 800;
}

.family-combobox-option.family-combobox-empty {
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px;
}

.family-combobox-empty-msg {
  padding: 16px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.family-combobox-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ─── QUICK MODAL (cadastro rápido na Nova Proposta) ─────────────────────────────── */

.quick-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quick-modal.hidden {
  display: none !important;
}

.quick-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.quick-modal-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  animation: quickModalIn 0.25s ease;
}

@keyframes quickModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.quick-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.quick-modal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.quick-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.quick-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.quick-modal-close:hover {
  background: var(--card-2);
  color: var(--text);
}

.quick-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}

.quick-modal-form .form-group {
  margin: 0;
}

.quick-modal-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.quick-modal-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

.quick-modal-error.hidden {
  display: none;
}

.quick-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.form-required {
  color: #dc2626;
}

@media (max-width: 540px) {
  .quick-modal-card { padding: 22px 18px; }
  .quick-modal-form .form-row { grid-template-columns: 1fr; }
}

/* ─── BANNER inline "não cadastrado" ─────────────────────────────── */

.unregistered-banner {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: bannerIn 0.25s ease;
}

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

.unregistered-banner.hidden {
  display: none !important;
}

.unregistered-banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.unregistered-banner-text i {
  color: #f59e0b;
  font-size: 14px;
  flex-shrink: 0;
}

.unregistered-banner-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.unregistered-banner-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.unregistered-banner-btn:hover {
  background: var(--card-2);
}

.unregistered-banner-btn.is-primary {
  background: #f59e0b;
  border-color: #f59e0b;
  color: white;
}

.unregistered-banner-btn.is-primary:hover {
  background: #d97706;
  border-color: #d97706;
}

@media (max-width: 540px) {
  .unregistered-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .unregistered-banner-actions {
    justify-content: flex-end;
  }
}

/* ─── TOGGLE TEMA (slider) na sidebar ───────────────────────── */

.sidebar-theme-switch {
  position: relative;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2px;
}

.sidebar-theme-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease, background 0.3s ease;
  background: transparent;
}

.sidebar-theme-opt i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.sidebar-theme-opt:hover i {
  transform: scale(1.15);
}

/* ── Dark button (esquerda) ── */
.sidebar-theme-opt--dark {
  color: rgba(255,255,255,0.35);
}

/* ── Light button (direita) ── */
.sidebar-theme-opt--light {
  color: rgba(255,255,255,0.35);
}

/* ── Slider — a bolinha/fundo que desliza ── */
.sidebar-theme-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 8px;
  z-index: 1;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
  pointer-events: none;
}

/* ── Estado: DARK ativo ── */
html[data-theme="dark"] .sidebar-theme-switch {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .sidebar-theme-slider {
  left: 2px;
  background: #111111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

html[data-theme="dark"] .sidebar-theme-opt--dark {
  color: #f5f5f5;
}

html[data-theme="dark"] .sidebar-theme-opt--dark i {
  color: #a78bfa;
}

html[data-theme="dark"] .sidebar-theme-opt--light {
  color: rgba(255,255,255,0.3);
}

/* ── Estado: LIGHT ativo ── */
html[data-theme="light"] .sidebar-theme-switch {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

html[data-theme="light"] .sidebar-theme-slider {
  left: calc(50%);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

html[data-theme="light"] .sidebar-theme-opt--light {
  color: #1a1a1a;
}

html[data-theme="light"] .sidebar-theme-opt--light i {
  color: #f59e0b;
}

html[data-theme="light"] .sidebar-theme-opt--dark {
  color: rgba(255,255,255,0.35);
}

/* ── Sidebar colapsada: mostrar só ícones ── */
.sidebar.collapsed .sidebar-theme-opt span {
  display: none;
}

.sidebar.collapsed .sidebar-theme-switch {
  flex-direction: column;
}

.sidebar.collapsed .sidebar-theme-slider {
  width: calc(100% - 4px);
  height: calc(50% - 2px);
  left: 2px;
  top: 2px;
}

html[data-theme="light"] .sidebar.collapsed .sidebar-theme-slider {
  top: calc(50%);
  left: 2px;
}

/* ─── BOTÃO TUTORIAL na sidebar ─────────────────────────────── */

.sidebar-tutorial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: rgba(165, 180, 252, 0.95);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 4px;
}

.sidebar-tutorial-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}

.sidebar.collapsed .sidebar-tutorial-btn span {
  display: none;
}

.sidebar.collapsed .sidebar-tutorial-btn {
  padding: 10px 0;
}

/* ─── WELCOME MODAL — mockups e mini-steps ─────────────────────────────── */

.welcome-mini-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 20px auto 0;
}

.welcome-mini-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--card-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.welcome-mini-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6431e9, #4338ca);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.welcome-slide-step-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6431e9, #4338ca);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.welcome-slide-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--card-2);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.welcome-mockup-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
}

.welcome-mockup-arrow {
  font-size: 18px;
  color: var(--muted);
  font-weight: 700;
}

.welcome-mockup-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.welcome-mockup-card-line {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
}

.welcome-mockup-card-logo {
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6431e9, #4338ca);
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
}

.welcome-mockup-list {
  gap: 6px;
}

.welcome-mockup-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  padding: 4px 6px;
  background: var(--card-2);
  border-radius: 6px;
}

.welcome-mockup-row i {
  font-size: 9px;
  color: #6431e9;
}

.welcome-mockup-pdf-header {
  font-size: 9px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.welcome-mockup-pdf-total {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

/* Config mockup rows */
.welcome-mockup-config {
  gap: 4px;
}

.welcome-mockup-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  padding: 3px 6px;
  background: var(--card-2);
  border-radius: 4px;
  border: 1px solid var(--line);
}

.welcome-mockup-label {
  font-weight: 800;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.welcome-mockup-value {
  font-weight: 600;
  color: var(--text);
}

.welcome-mockup-dashboard {
  flex-direction: column;
  gap: 6px;
  width: 200px;
}

.welcome-mockup-stat {
  flex: 1;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.welcome-mockup-stat-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

.welcome-mockup-stat-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.welcome-slide-tip {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.welcome-slide-tip i {
  color: #f59e0b;
  flex-shrink: 0;
}

.welcome-slide-tip-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.welcome-slide-tip-success i {
  color: #10b981;
}

/* ─── LANDING THEME TOGGLE ─────────────────────────────── */

.landing-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
  position: relative;
}

.landing-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-theme-toggle .landing-theme-icon-light,
.landing-theme-toggle .landing-theme-icon-dark {
  position: absolute;
  transition: opacity 0.2s, transform 0.2s;
}

html[data-theme="dark"] .landing-theme-toggle .landing-theme-icon-light {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .landing-theme-toggle .landing-theme-icon-dark {
  opacity: 0;
  transform: scale(0.6);
}

html[data-theme="light"] .landing-theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

html[data-theme="light"] .landing-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .landing-theme-toggle .landing-theme-icon-light {
  opacity: 0;
  transform: scale(0.6);
}

html[data-theme="light"] .landing-theme-toggle .landing-theme-icon-dark {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 720px) {
  .landing-topbar-actions {
    gap: 6px;
  }
  .landing-theme-toggle {
    width: 34px;
    height: 34px;
  }
}

/* ─── PROPOSAL CATEGORY LIST (caixinhas de famílias no campo de item) ─── */

.proposal-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.proposal-category-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  transition: border-color 0.15s;
}

.proposal-category-group:hover {
  border-color: var(--muted);
}

.proposal-category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--card-2);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
  position: relative;
  padding-left: 36px;
}

.proposal-category-toggle:hover {
  background: var(--line);
}

.proposal-category-toggle::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s;
}

.proposal-category-toggle.is-open::before {
  transform: translateY(-50%) rotate(90deg);
}

.proposal-category-toggle > span:first-of-type {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 1;
}

.proposal-category-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 9px;
  background: var(--card);
  border-radius: 999px;
  border: 1px solid var(--line);
}

.proposal-category-items {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.proposal-category-items::-webkit-scrollbar { width: 5px; }
.proposal-category-items::-webkit-scrollbar-track { background: transparent; }
.proposal-category-items::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 3px; }

.proposal-category-items.hidden {
  display: none;
}

.proposal-suggestion-btn.is-category-item {
  background: var(--card-2);
  border: 1px solid transparent;
}

.proposal-suggestion-btn.is-category-item:hover {
  background: var(--card);
  border-color: var(--line);
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVIDADE COMPLETA — build 2026-05-10
   Estas regras cobrem telas <= 980px.
   O layout desktop (> 980px) NÃO é afetado.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Sidebar como drawer fixo (não ocupa espaço no flow) ─────────── */
@media (max-width: 980px) {

  /* Sidebar sai do flow e vira drawer overlay */
  .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 268px !important;
    z-index: 36;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.28s ease;
    padding: 22px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: none;
    box-shadow: none;
  }

  /* Sidebar aberta — classe adicionada pelo JS */
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 6px 0 40px rgba(0, 0, 0, 0.5);
  }

  /* Botão de collapse fica oculto no drawer mobile */
  #btn-toggle-sidebar {
    display: none !important;
  }

  /* Botão fechar drawer fica visível */
  #btn-close-mobile-menu {
    display: inline-flex !important;
  }

  /* Hamburger visível no topbar */
  .mobile-menu-btn {
    display: inline-flex !important;
  }

  /* Conteúdo ocupa toda a tela (sidebar é fixed, não está no flow) */
  .content {
    padding: 16px 16px 24px;
    min-height: 100dvh;
    width: 100%;
    box-sizing: border-box;
  }

  /* Topbar fixo no topo mobile — header com hamburger + nome da seção */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -16px -16px 16px;
    padding: 14px 16px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: calc(100% + 32px);
  }

  /* Main screen: sem flex row já que sidebar é fixed */
  #main-screen.active {
    flex-direction: column;
  }

  /* Bottom nav — REMOVIDA, substituída pelo header fixo */
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* ── 2. Bottom Navigation Bar — DESATIVADA (substituída por header fixo) ── */

.mobile-bottom-nav {
  display: none !important;
}

/* ── 3. Landing Page — telas pequenas ────────────────────────────────── */
@media (max-width: 480px) {
  #landing-screen {
    padding: 12px 12px 48px;
  }

  .landing-topbar {
    top: 12px;
    padding: 10px 14px;
    gap: 6px;
  }

  .landing-brand {
    font-size: 15px;
  }

  .landing-login-btn-prominent {
    font-size: 12px;
    padding: 8px 13px;
    gap: 5px;
  }

  .landing-hero {
    padding: 44px 20px 52px;
  }

  .landing-title {
    font-size: 30px;
  }

  .landing-subtitle {
    font-size: 15px;
    margin-top: 16px;
  }

  /* CTA empilhado em coluna */
  .landing-hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .landing-cta-main {
    width: 100%;
    justify-content: center;
  }

  /* Stats em lista vertical: valor + label lado a lado */
  .landing-stats {
    flex-direction: column;
    padding: 16px 0 4px;
    gap: 0;
    flex-wrap: nowrap;
  }

  .landing-stat {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .landing-stat:last-of-type {
    border-bottom: none;
  }

  .landing-stat-divider {
    display: none;
  }

  .landing-stat-value {
    font-size: 22px;
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
  }

  .landing-stat-label {
    text-align: left;
    font-size: 12px;
  }

  /* FOMO callout em coluna */
  .landing-fomo {
    padding: 24px 20px;
  }

  .landing-fomo-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .landing-fomo-icon {
    margin: 0 auto;
    flex-shrink: 0;
  }

  .landing-fomo-title {
    min-width: 0;
    font-size: 15px;
  }

  .landing-fomo-btn {
    width: 100%;
    justify-content: center;
  }

  /* Features incluídas: coluna */
  .landing-plans-included-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .landing-section-title {
    font-size: 22px;
  }

  .landing-pain-title {
    font-size: 20px;
  }

  .landing-plans-section {
    padding: 28px 18px;
  }
}

/* ── 4. Auth Screen — telas pequenas ─────────────────────────────────── */
@media (max-width: 540px) {
  #auth-screen {
    padding: 0;
    align-items: stretch;
  }

  .auth-shell {
    min-height: 100dvh;
  }

  .auth-card {
    padding: 32px 20px 28px;
    border-radius: 0;
    min-height: 100dvh;
    justify-content: flex-start;
    padding-top: 52px;
    max-width: 100%;
  }

  .auth-title {
    font-size: 26px;
  }

  .auth-actions {
    flex-direction: column;
  }

  .auth-actions .btn {
    width: 100%;
    min-height: 50px;
  }
}

/* ── 5. Inputs — previne zoom automático no iOS ───────────────────────── */
@media (max-width: 768px) {
  input.form-input,
  textarea.form-textarea,
  select.form-input {
    font-size: 16px !important;
  }
}

/* ── 6. Botões — tap targets mínimos ─────────────────────────────────── */
@media (max-width: 768px) {
  .btn {
    min-height: 46px;
  }

  .btn-small {
    min-height: 38px;
  }
}

/* ── 7. Modais — bottom sheet em telas pequenas ──────────────────────── */
@media (max-width: 560px) {
  /* Welcome modal: bottom sheet */
  .welcome-modal {
    padding: 0;
    align-items: flex-end;
  }

  .welcome-modal-card {
    max-width: 100%;
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 40px 22px 28px;
    max-height: 92dvh;
    overflow-y: auto;
  }

  .welcome-slide-title {
    font-size: 20px;
  }

  .welcome-slide-text {
    font-size: 14px;
  }

  /* Quick modals: bottom sheet */
  .quick-modal {
    padding: 0;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .quick-modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 28px 18px 32px;
    margin: 0;
    max-height: 92dvh;
    overflow-y: auto;
  }
}

/* ── 8. Cadastros — painel sem altura mínima ─────────────────────────── */
@media (max-width: 900px) {
  .cadastro-form-panel,
  .cadastro-list-panel {
    min-height: auto;
  }

  .cadastro-empty-rich {
    min-height: 200px;
    padding: 24px 16px;
  }
}

/* ── 9. Configurações — campo de textarea menor ──────────────────────── */
@media (max-width: 640px) {
  .form-textarea {
    min-height: 96px;
  }
}

/* ── 10. Topbar — tamanhos menores em telas pequenas ─────────────────── */
@media (max-width: 480px) {
  .topbar-title {
    font-size: 20px;
  }

  .topbar-label {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .config-page-title {
    font-size: 18px;
  }
}

/* ── 11. Overlay — funciona tanto pela classe quanto pelo body ────────── */
@media (max-width: 980px) {
  .mobile-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ── 12. Scroll invisible nos containers horizontais ─────────────────── */
@media (max-width: 980px) {
  .landing-plan-grid,
  .dashboard-summary-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .landing-plan-grid::-webkit-scrollbar,
  .dashboard-summary-row::-webkit-scrollbar {
    display: none;
  }
}

/* ── 13. Subscription — hero não quebra feio ─────────────────────────── */
@media (max-width: 540px) {
  .subscription-hero-title {
    font-size: 18px;
  }

  .subscription-summary-grid {
    gap: 14px;
  }
}

/* ── 14. Panels — padding menor em telas muito pequenas ──────────────── */
@media (max-width: 360px) {
  .panel {
    padding: 14px;
    border-radius: 14px;
  }

  .content {
    padding: 12px 12px 20px;
  }
}


/* ── 15. Otimizações gerais mobile ───────────────────────────────────── */
@media (max-width: 640px) {
  /* Tabelas de itens com scroll horizontal */
  .proposal-items-table-wrap,
  .cadastro-list-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Formulários full-width */
  .cadastro-form-panel .form-row {
    flex-direction: column;
    gap: 8px;
  }

  .cadastro-form-panel .form-row > * {
    width: 100% !important;
    min-width: 0;
  }

  /* Cards de cadastro empilhados */
  .client-card,
  .catalog-card {
    flex-direction: column;
    gap: 8px;
  }

  .client-card-actions,
  .catalog-card-actions {
    align-self: flex-end;
  }

  /* Subscription cards empilhados full-width */
  .subscription-plan-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .subscription-plan-card .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Topbar label menor */
  .topbar-label {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   SUPORTE IA — Chat Widget
   ═══════════════════════════════════════════════════════════════════ */

/* Botão flutuante */
.support-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  z-index: 9998;
  transition: transform 0.2s, box-shadow 0.2s;
}

.support-chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.5);
}

.support-chat-fab.has-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.5);
  animation: support-pulse 2s ease-out infinite;
}

@keyframes support-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Painel do chat */
.support-chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-height: 540px;
  background: var(--sidebar-bg, #1c1c1e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  animation: support-slide-up 0.25s ease-out;
}

@keyframes support-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.support-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.support-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.support-chat-title {
  font-size: 14px;
  font-weight: 700;
  color: #f5f5f7;
}

.support-chat-subtitle {
  font-size: 11px;
  color: #22c55e;
  margin-top: 1px;
}

.support-chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #98989d;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.support-chat-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
}

/* Área de mensagens */
.support-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  max-height: 360px;
}

.support-chat-messages::-webkit-scrollbar { width: 4px; }
.support-chat-messages::-webkit-scrollbar-track { background: transparent; }
.support-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* Mensagens */
.support-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.support-msg.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: #e5e5e7;
  border-bottom-left-radius: 4px;
  white-space: normal;
}

.support-msg.assistant strong {
  color: #22c55e;
  font-weight: 700;
}

.support-list-item {
  display: block;
  padding-left: 14px;
  position: relative;
  margin: 3px 0;
}

.support-list-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #22c55e;
}

.support-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.support-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.support-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: support-typing-bounce 1.2s ease-in-out infinite;
}

.support-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.support-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes support-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Input */
.support-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.support-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  color: #f5f5f7;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  max-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}

.support-chat-input::placeholder {
  color: #636366;
}

.support-chat-input:focus {
  border-color: rgba(34, 197, 94, 0.5);
}

.support-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.support-chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.support-chat-send:not(:disabled):hover {
  transform: scale(1.06);
}

/* Mobile */
@media (max-width: 480px) {
  .support-chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
  }

  .support-chat-fab {
    bottom: 16px;
    right: 16px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   MODAL LEGAL — Termos de Uso e Política de Privacidade
   ═══════════════════════════════════════════════════════════════════ */

.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.legal-modal {
  background: var(--sidebar-bg, #1c1c1e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #f5f5f7;
  margin: 0;
}

.legal-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #98989d;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
}

.legal-modal-body {
  padding: 24px;
  overflow-y: auto;
  color: #c8c8cc;
  font-size: 14px;
  line-height: 1.7;
}

.legal-modal-body::-webkit-scrollbar { width: 4px; }
.legal-modal-body::-webkit-scrollbar-track { background: transparent; }
.legal-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.legal-modal-body h3 {
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-modal-body h3:first-of-type {
  margin-top: 12px;
}

.legal-modal-body p {
  margin: 0 0 10px;
}

.legal-modal-body strong {
  color: #e5e5e7;
}

/* Checkbox de aceite no registro */
.auth-terms-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 4px;
}

.auth-terms-wrap input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #22c55e;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-terms-label {
  font-size: 12px;
  color: #98989d;
  line-height: 1.5;
}

.auth-terms-label a {
  color: #22c55e;
  text-decoration: underline;
  cursor: pointer;
}

.auth-terms-label a:hover {
  color: #4ade80;
}

/* Links legais no footer da landing */
.landing-footer-legal {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.landing-footer-legal a {
  font-size: 13px;
  color: #636366;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.landing-footer-legal a:hover {
  color: #22c55e;
}

@media (max-width: 480px) {
  .legal-modal {
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
  }

  .legal-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   LANDING — DEPOIMENTOS
   ═══════════════════════════════════════════════════════════════════ */

.landing-testimonials {
  position: relative;
  padding: 80px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.landing-testimonials::before {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  top: -80px; right: 10%;
  pointer-events: none;
  z-index: 0;
}
.landing-testimonials > * { position: relative; z-index: 1; }

.landing-testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.landing-testimonials-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin: 12px 0 0;
}

.landing-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.landing-testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 20px;
  padding: 28px 24px 24px;
  position: relative;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.landing-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border);
}

.landing-testimonial-featured {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(
    160deg,
    var(--glass-bg-strong) 0%,
    rgba(34, 197, 94, 0.08) 100%
  );
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15), var(--glass-shadow);
}

.landing-testimonial-quote {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: #22c55e;
  opacity: 0.3;
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: Georgia, serif;
  pointer-events: none;
}

.landing-testimonial-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}

.landing-testimonial-text strong {
  color: #22c55e;
  font-weight: 700;
}

.landing-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.landing-testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.landing-testimonial-initials {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255,255,255,0.15);
}

.landing-testimonial-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.landing-testimonial-role {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

/* 2 colunas em tablets */
@media (max-width: 980px) {
  .landing-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 coluna no mobile */
@media (max-width: 640px) {
  .landing-testimonials {
    padding: 60px 20px 40px;
  }

  .landing-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .landing-testimonial-card {
    padding: 24px 20px 20px;
  }
}

/* ─── PDF SHOWCASE — Landing Page (v2 — fiel ao modelo) ────── */

.landing-pdf-showcase {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.landing-pdf-showcase::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,74,248,0.10) 0%, transparent 70%);
  top: 0; left: -100px;
  pointer-events: none;
  z-index: 0;
}
.landing-pdf-showcase > * { position: relative; z-index: 1; }

.landing-pdf-showcase-header {
  margin-bottom: 48px;
}

.landing-pdf-showcase-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c4af8;
  margin-bottom: 12px;
}

.landing-pdf-showcase-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 8px 0 12px;
}

.landing-pdf-showcase-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Stage — wrapper do PDF + callouts (3 colunas) ── */
.pdf-sc-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 540px 1fr;
  grid-template-rows: auto;
  gap: 0;
  padding: 20px 0 40px;
  align-items: start;
}

.pdf-sc-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,74,248,0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* PDF fica na coluna do meio */
.pdf-sc-doc {
  grid-column: 2;
  grid-row: 1;
}

/* ── CALLOUTS ── */
.pdf-callout {
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 3;
}

.pdf-callout-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pdf-callout-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,74,248,0.15), var(--glass-shadow);
  border-color: rgba(124,74,248,0.3);
}

.pdf-callout-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 8px;
  background: rgba(124,74,248,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c4af8;
  font-size: 13px;
}

.pdf-callout-content h4 {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 3px;
  line-height: 1.3;
}

.pdf-callout-content p {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* ── Setas conectoras ── */
.pdf-callout-line {
  width: 36px;
  height: 2px;
  flex-shrink: 0;
  position: relative;
}

/* Seta apontando para a DIREITA (callout esquerdo → PDF) */
.pdf-callout-line-right {
  background: linear-gradient(90deg, rgba(124,74,248,0.15), rgba(124,74,248,0.5));
}

.pdf-callout-line-right::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left: 7px solid rgba(124,74,248,0.5);
}

/* Seta apontando para a ESQUERDA (callout direito → PDF) */
.pdf-callout-line-left {
  background: linear-gradient(90deg, rgba(124,74,248,0.5), rgba(124,74,248,0.15));
}

.pdf-callout-line-left::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: 7px solid rgba(124,74,248,0.5);
}

/* ── ESQUERDA — fora do PDF ── */
.pdf-callout-l1,
.pdf-callout-l2,
.pdf-callout-l3 {
  position: absolute;
  right: calc(50% + 270px + 12px);  /* metade do PDF (540/2) + gap */
  flex-direction: row;
}

.pdf-callout-l1 { top: 3%; }
.pdf-callout-l2 { top: 26%; }
.pdf-callout-l3 { top: 76%; }

/* ── DIREITA — fora do PDF ── */
.pdf-callout-r1,
.pdf-callout-r2,
.pdf-callout-r3 {
  position: absolute;
  left: calc(50% + 270px + 12px);   /* metade do PDF (540/2) + gap */
  flex-direction: row;
}

.pdf-callout-r1 { top: 3%; }
.pdf-callout-r2 { top: 46%; }
.pdf-callout-r3 { top: 68%; }

/* ── O documento PDF ── */
.pdf-sc-doc {
  position: relative;
  z-index: 2;
  width: 540px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 6px;
  box-shadow:
    0 4px 32px rgba(0,0,0,0.14),
    0 1px 4px rgba(0,0,0,0.06),
    0 24px 80px rgba(124,74,248,0.05);
  padding: 32px 30px 20px;
  color: #1a1a1a;
  text-align: left;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
}

/* ── HEADER — Proposta Nº (esq) + Empresa centralizada + Logo (dir) ── */
.pdf-sc-hdr {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #7c4af8;
  gap: 12px;
}

.pdf-sc-hdr-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-self: start;
}

.pdf-sc-hdr-number {
  font-size: 13px;
  font-weight: 800;
  color: #111;
}

.pdf-sc-hdr-client {
  font-size: 10.5px;
  color: #555;
  font-weight: 600;
}

.pdf-sc-hdr-center {
  text-align: center;
  justify-self: center;
}

.pdf-sc-hdr-company-name {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  margin-bottom: 1px;
}

.pdf-sc-hdr-meta {
  font-size: 8.5px;
  color: #777;
  line-height: 1.55;
}

.pdf-sc-hdr-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  justify-self: end;
}

.pdf-sc-hdr-logo svg {
  width: 100%;
  height: 100%;
}

/* ── CLIENT ROW ── */
.pdf-sc-client {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 24px 0 16px;
  font-size: 10px;
}

.pdf-sc-client-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pdf-sc-client-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pdf-sc-lbl {
  color: #888;
  font-weight: 600;
  font-size: 9.5px;
}

.pdf-sc-val-bold {
  font-weight: 800;
  color: #111;
  font-size: 11px;
}

.pdf-sc-val-sub {
  font-size: 9px;
  color: #999;
}

/* ── SECTION TITLE ── */
.pdf-sc-stitle {
  font-size: 10.5px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 16px 0 6px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 4px;
}

/* ── BODY TEXT ── */
.pdf-sc-body {
  font-size: 9px;
  color: #444;
  line-height: 1.65;
  margin-bottom: 10px;
}

.pdf-sc-body-sm {
  font-size: 8.5px;
  line-height: 1.6;
}

/* ── TABLE ── */
.pdf-sc-tbl {
  margin-bottom: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  overflow: hidden;
}

.pdf-sc-tbl-head {
  display: flex;
  padding: 5px 8px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  font-size: 7.5px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdf-sc-tbl-row {
  display: flex;
  padding: 6px 8px;
  font-size: 9px;
  color: #222;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.pdf-sc-tbl-row:last-of-type {
  border-bottom: none;
}

.pdf-sc-tbl-desc {
  padding: 6px 8px 8px 28px;
  font-size: 8px;
  color: #666;
  line-height: 1.55;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

/* Table columns */
.pdf-sc-c-no    { width: 22px; flex-shrink: 0; text-align: center; }
.pdf-sc-c-title { flex: 1; padding: 0 4px; }
.pdf-sc-c-unit  { width: 72px; text-align: right; flex-shrink: 0; font-size: 8.5px; }
.pdf-sc-c-qty   { width: 28px; text-align: center; flex-shrink: 0; font-size: 8.5px; }
.pdf-sc-c-disc  { width: 32px; text-align: center; flex-shrink: 0; font-size: 8.5px; }
.pdf-sc-c-total { width: 72px; text-align: right; flex-shrink: 0; font-size: 8.5px; }

/* ── SUBTOTAL + INVESTIMENTO ── */
.pdf-sc-subtotal {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 6px 8px;
  font-size: 9px;
  color: #555;
}

.pdf-sc-invest {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-top: 4px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pdf-sc-invest-val {
  font-size: 16px;
  font-weight: 800;
}

/* ── PAGE FOOTER ── */
.pdf-sc-pgfooter {
  text-align: center;
  font-size: 7.5px;
  color: #bbb;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.pdf-sc-pgfooter strong {
  color: #7c4af8;
}

/* ── Light mode adjustments ── */
html[data-theme="light"] .pdf-sc-doc {
  box-shadow:
    0 4px 24px rgba(0,0,0,0.08),
    0 0 0 1px rgba(0,0,0,0.04),
    0 20px 60px rgba(124,74,248,0.04);
}

/* ── Responsive — PDF Showcase ── */

/* Tablet: callouts menores, grid mais estreito */
@media (max-width: 1200px) {
  .pdf-sc-stage {
    grid-template-columns: 1fr 480px 1fr;
  }

  .pdf-callout-content h4 { font-size: 11px; }
  .pdf-callout-content p  { font-size: 10px; }
  .pdf-callout-line { width: 24px; }
}

/* Smaller tablets: callouts empilham abaixo */
@media (max-width: 960px) {
  .pdf-sc-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .pdf-sc-doc {
    order: 1;
    width: 520px;
    max-width: 100%;
  }

  .pdf-sc-glow {
    order: 0;
  }

  .pdf-callout {
    order: 2;
    justify-content: center;
  }

  .pdf-callout-line {
    display: none;
  }

  /* Callouts viram grid 2x3 abaixo do PDF */
  .pdf-sc-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "pdf pdf"
      "c1  c4"
      "c2  c5"
      "c3  c6";
    gap: 10px;
    padding: 20px 0 30px;
  }

  .pdf-sc-glow { grid-area: pdf; position: absolute; }
  .pdf-sc-doc  { grid-area: pdf; width: 100%; }
  .pdf-callout-l1 { grid-area: c1; position: static; margin: 0; }
  .pdf-callout-l2 { grid-area: c2; position: static; margin: 0; }
  .pdf-callout-l3 { grid-area: c3; position: static; margin: 0; }
  .pdf-callout-r1 { grid-area: c4; position: static; margin: 0; }
  .pdf-callout-r2 { grid-area: c5; position: static; margin: 0; }
  .pdf-callout-r3 { grid-area: c6; position: static; margin: 0; }

  .pdf-callout-inner {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .landing-pdf-showcase {
    padding: 50px 16px 40px;
  }

  .pdf-sc-doc {
    padding: 20px 16px 16px;
  }

  .pdf-sc-hdr {
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    text-align: left;
    font-size: 6px;
  }

  .pdf-sc-hdr-left  { font-size: 5.5px; }
  .pdf-sc-hdr-center { font-size: 6px; text-align: center; }
  .pdf-sc-hdr-logo  { max-width: 50px; justify-self: end; }

  .pdf-sc-client {
    flex-direction: column;
    gap: 8px;
  }

  .pdf-sc-client-right {
    text-align: left;
  }

  .pdf-sc-tbl-head,
  .pdf-sc-tbl-row {
    font-size: 7px;
  }

  .pdf-sc-c-unit,
  .pdf-sc-c-total {
    width: 56px;
  }

  .pdf-sc-c-disc {
    display: none;
  }

  .pdf-sc-tbl-desc {
    padding-left: 12px;
    font-size: 7px;
  }

  .pdf-sc-glow {
    width: 200px;
    height: 200px;
  }

  .pdf-sc-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pdf"
      "c1" "c4"
      "c2" "c5"
      "c3" "c6";
  }
}

/* ─── FAQ — Landing Page ──────────────────────────────────────── */

.landing-faq {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}
.landing-faq::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  top: -60px; right: -150px;
  pointer-events: none;
  z-index: 0;
}
.landing-faq > * { position: relative; z-index: 1; }

.landing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}

.landing-faq-item {
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-faq-item[open] {
  border-color: rgba(124,74,248,0.25);
}

.landing-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.landing-faq-question::-webkit-details-marker {
  display: none;
}

.landing-faq-question::marker {
  content: '';
}

.landing-faq-question:hover {
  color: #7c4af8;
}

.landing-faq-chevron {
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.landing-faq-item[open] .landing-faq-chevron {
  transform: rotate(180deg);
  color: #7c4af8;
}

.landing-faq-answer {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  animation: faqOpen 0.3s ease-out;
}

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

/* ── Responsive FAQ ── */
@media (max-width: 640px) {
  .landing-faq {
    padding: 50px 16px 40px;
  }

  .landing-faq-question {
    padding: 16px 16px;
    font-size: 13px;
  }

  .landing-faq-answer {
    padding: 0 16px 16px;
    font-size: 13px;
  }
}


/* ── Logo Propozi (rebrand 07/2026) ── */
.auth-side-logo-icon, .sidebar-logo-icon {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.auth-side-logo-icon img, .sidebar-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.landing-brand-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: inline-block;
}
