/* =========================================
   ORZAG BRIEFING — Estilos Globais
   ========================================= */

/* ── Acessibilidade: utilitários ── */

/* Texto visível apenas para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline !important;
  }
}

/* Skip link — aparece ao receber foco via teclado */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-brand, #6a73d9);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Foco visível para navegação via teclado */
:focus-visible {
  outline: 2px solid var(--color-brand, #6a73d9);
  outline-offset: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Otimização de toque mobile */
button, 
a, 
input, 
select, 
textarea, 
[role="button"],
.option-card, 
.dash-tab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --color-brand: #6a73d9;
  --color-primary: var(--color-brand);
  --color-brand-dark: #35317c;
  --color-brand-light: #eef2ff;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  --color-danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  background: #f2f3f9;
  height: -webkit-fill-available;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: transparent;
  color: var(--color-text);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 64px;
  overflow-x: hidden;
}

/* ── Cabeçalho ── */
.site-header {
  width: 100%;
  max-width: 680px;
  margin-bottom: 32px;
  text-align: center;
}

.site-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.site-header .logo span {
  color: var(--color-text);
}

.site-header .subtitle {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ── Card ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  width: 100%;
  max-width: 560px;
}

.card-wide {
  max-width: 860px;
}

.card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-text);
}

/* ── Formulário ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #6a73d9;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #6a73d9;
  box-shadow: 0 0 0 4px rgba(106, 115, 217, 0.12);
  background: #fff;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(106, 115, 217, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: #525bb3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 115, 217, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
  width: auto;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-brand-light);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Loading ── */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.loading-spinner.dark {
  border-color: rgba(106, 115, 217, 0.2);
  border-top-color: var(--color-brand);
}

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

/* ── Mensagens ── */
.msg {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 24px;
  display: none;
  line-height: 1.5;
  border: 1px solid transparent;
}

.msg.show {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.msg::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.msg-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.msg-success::before {
  content: '✓';
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.msg-error::before {
  content: '!';
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.msg-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.msg-info::before {
  content: 'i';
  background: #3b82f6;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
}

/* ── Badge de código ── */
.codigo-badge {
  display: none;
  margin-top: 24px;
  padding: 20px;
  background: #f5f3ff;
  border: 1.5px dashed var(--color-primary);
  border-radius: var(--radius);
  text-align: center;
}

.codigo-badge.show {
  display: block;
}

.codigo-badge p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.codigo-badge .codigo-valor {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  font-family: 'Courier New', monospace;
}

/* ── Dashboard de lead ── */
.page-acesso, .page-wizard {
  padding: 0;
  align-items: stretch;
  min-height: 100vh;
  background: #fff;
}

/* ── Split Screen — busca ── */
.busca-wrap, .wizard-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Painel esquerdo — marca */
.busca-left, .wizard-left {
  flex: 0 0 45%;
  background: linear-gradient(145deg, #4a52c5 0%, #6a73d9 55%, #818cf8 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.busca-left-inner, .wizard-left-inner {
  position: relative;
  z-index: 1;
}

.busca-deco-1, .wizard-deco-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -180px;
  right: -160px;
  pointer-events: none;
}

.busca-deco-2, .wizard-deco-2 {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  top: -70px;
  right: 80px;
  pointer-events: none;
}

.busca-brand-img {
  height: 64px;
  width: auto;
  margin-bottom: 52px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  display: block;
}

.busca-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.busca-pitch {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 360px;
  margin-bottom: 40px;
}

.busca-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.busca-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.busca-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Painel direito — form */
.busca-right, .wizard-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: #f2f3f9;
  position: relative;
}

.busca-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 28px;
  padding: 44px 40px 36px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 16px 56px rgba(106, 115, 217, 0.1);
  border: 1px solid rgba(106, 115, 217, 0.07);
}

.busca-card-header {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #f1f2f6;
}

.busca-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6a73d9;
  margin-bottom: 10px;
}

.busca-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f1117;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.busca-card-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* Campo */
.busca-field-block {
  margin-bottom: 12px;
}

.busca-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.busca-field {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.busca-field:focus-within {
  background: #fff;
  border-color: #6a73d9;
  box-shadow:
    0 0 0 4px rgba(106, 115, 217, 0.1),
    0 4px 12px rgba(106, 115, 217, 0.08);
}

.busca-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 0;
  color: #1a1c23;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: none;
  -webkit-appearance: none;
}

.busca-input::placeholder {
  color: #c4c9d8;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Botão principal */
.busca-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #6a73d9;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s, box-shadow 0.12s;
  box-shadow: 0 4px 16px rgba(106, 115, 217, 0.3);
  margin-top: 16px;
  margin-bottom: 12px;
}

.busca-btn-primary:hover {
  background: #525bb3;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(106, 115, 217, 0.4);
}

.busca-btn-primary:active {
  transform: scale(0.98);
}

/* Link esqueci */
.busca-esqueci-link {
  text-align: center;
  margin-bottom: 24px;
}

.busca-esqueci-link a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #c4c9d8;
  text-decoration: none;
  transition: color 0.2s;
}

.busca-esqueci-link a:hover {
  color: #6a73d9;
}

/* Divisória */
.busca-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.busca-divider::before,
.busca-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f0f1f5;
}

/* Botão secundário */
.busca-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  color: #6b7280;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s, background 0.12s, transform 0.08s;
}

.busca-btn-secondary:hover {
  border-color: #6a73d9;
  color: #6a73d9;
  background: #f5f6ff;
}

/* Remover btn antigo (não usado mais) */
.busca-btn {
  display: none;
}

.busca-wrap .msg {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 16px;
  line-height: 1.4;
  animation: slideInMsg 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.msg.show {
  display: block;
}

.msg-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(153, 27, 27, 0.1);
}

.msg-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.1);
}

.msg-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid rgba(30, 64, 175, 0.1);
}

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

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

/* Shake Animation */
.shake {
  animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* ── Dashboard Split-Screen (Nova Tela) ── */
.dashboard-wrap {
  display: flex;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: #f8fafc;
}

.dashboard-left {
  flex: 0 0 340px;
  background: linear-gradient(165deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: #fff;
  padding: 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 50px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.dashboard-left-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.btn-voltar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-voltar:hover {
  background: rgba(255, 60, 60, 0.15);
  border-color: rgba(255, 100, 100, 0.4);
  color: #fca5a5;
}

.wizard-field {
  margin-bottom: 32px;
  animation: slideUp 0.4s ease-out forwards;
}

.wizard-field-divider {
  height: 1px;
  background: var(--color-border);
  margin: 32px 0;
  opacity: 0.5;
}

.dashboard-brand {
  margin-bottom: 24px;
}

.dashboard-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  /* Logo branco no fundo indigo */
}

.dashboard-hero-info {
  margin-bottom: 40px;
}

.dashboard-hero-info .hero-protocol {
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a52c5;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.dashboard-hero-info .hero-nome {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}

.dashboard-hero-info .hero-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
  align-items: flex-start;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-status-wrap {
  margin-top: 24px;
}

.dashboard-right {
  flex: 1;
  padding: 60px 80px;
  overflow-y: auto;
}

.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-brand-dark);
  margin-bottom: 6px;
}

.dash-subtitle {
  color: #64748b;
  font-size: 1rem;
}

.btn-edit-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0 18px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  line-height: 1.2;
  min-height: 42px;
  height: 42px;
  box-sizing: border-box;
}

.btn-edit-hero:hover {
  border-color: #6a73d9;
  color: #6a73d9;
  box-shadow: 0 4px 12px rgba(106, 115, 217, 0.1);
}

/* Status Badges Premium - Melhor Contraste */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 8px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-novo {
  background: #fdf4ff;
  color: #a21caf;
}

.status-novo::before {
  background: #d946ef;
}

.status-em_analise {
  background: #fffbeb;
  color: #b45309;
}

.status-em_analise::before {
  background: #f59e0b;
}

.status-aprovado {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-aprovado::before {
  background: #3b82f6;
}

.status-em_producao {
  background: #eef2ff;
  color: #4338ca;
}

.status-em_producao::before {
  background: #6a73d9;
}

.status-finalizado {
  background: #f0fdf4;
  color: #15803d;
}

.status-finalizado::before {
  background: #22c55e;
}

.dashboard-footer-hint {
  margin-top: auto;
  padding-top: 40px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.dashboard-footer-hint a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsivo Dashboard */
@media (max-width: 1024px) {
  .dashboard-wrap {
    flex-direction: column;
  }

  .dashboard-left {
    flex: 0 0 auto;
    height: auto;
    position: static;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dashboard-left-inner {
    width: 100%;
    align-items: center;
  }

  .dashboard-logo {
    height: 32px;
    margin-bottom: 24px;
  }

  .dashboard-hero-info {
    margin-bottom: 32px;
  }

  .dashboard-hero-info .hero-nome {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .dashboard-hero-info .hero-meta {
    align-items: center;
    gap: 6px;
  }

  .hero-meta-item {
    justify-content: center;
    text-align: center;
  }

  .dashboard-hero-info .hero-protocol {
    margin: 0 auto 12px;
    display: table; /* Centers inline-block with margin auto */
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero-stat {
    padding: 12px 10px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dashboard-right {
    padding: 32px 16px;
  }

  .dashboard-header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .header-right-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
  }

  #hero-status {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .btn-edit-hero {
    width: 100%;
  }

  .dash-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 4px 12px;
    margin: 0 -16px 24px;
    padding-left: 16px;
    padding-right: 16px;
    border-bottom: 1px solid var(--color-border);
    scrollbar-width: none;
  }

  .dash-tabs::-webkit-scrollbar {
    display: none;
  }

  .dash-tab {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .btn-voltar {
    margin-top: 32px;
    width: 100%;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
  }

  .dashboard-footer-hint {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
}

/* Hero — light, clean */
.lead-hero {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 28px 28px 0;
  margin-bottom: 16px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

/* Linha de acento indigo no topo */
.lead-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6a73d9, #a8f1d0);
  border-radius: 24px 24px 0 0;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-protocol {
  font-family: 'Inter', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #6a73d9;
  background: #eef2ff;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.hero-nome {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hero-meta {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
}

.hero-sep {
  color: #d1d5db;
  margin: 0 2px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.btn-edit-hero {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  color: #374151;
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-edit-hero:hover {
  border-color: #6a73d9;
  color: #6a73d9;
  background: #eef2ff;
  transform: translateY(-1px);
}

/* Dashboard Stats - Glass Style Premium */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-stat-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

/* Strategic Colors for Badges */
.stat-prioridade .hero-stat-badge {
  background: #f59e0b;
  color: #fff;
}

.stat-mentalidade .hero-stat-badge {
  background: #3b82f6;
  color: #fff;
}

.stat-investimento .hero-stat-badge {
  background: #10b981;
  color: #fff;
}

.stat-canais .hero-stat-badge {
  background: #8b5cf6;
  color: #fff;
}

.hero-stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  /* White text for glass contrast */
  line-height: 1.25;
}

/* Estrutura hierárquica nas tabs */
.tab-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand);
  margin: 32px 0 16px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tab-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-border), transparent);
}

.tab-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tab-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.4;
}

.tab-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: bold;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 12px;
  transition: all 0.2s;
}
.tab-link:hover { opacity: 0.8; transform: translateY(-1px); }
.tab-link-wpp  { color: #16a34a; background: #f0fdf4; border: 1px solid #dcfce7; }
.tab-link-ig   { color: #9333ea; background: #faf5ff; border: 1px solid #f3e8ff; }

.tab-card-value ul {
  margin-top: 8px;
}

.dash-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: #64748b;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 10px;
  transition: all 0.2s;
}

.dash-tab:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #1e293b;
}

.dash-tab.active {
  background: #fff;
  color: var(--color-brand);
  box-shadow: 0 4px 12px rgba(106, 115, 217, 0.15);
}

/* Tab content */
.dash-body {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.modal-section-header {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-top: 20px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f2f6;
}

.modal-section-header:first-child {
  margin-top: 0;
}

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

.tab-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}

.tab-card:hover {
  border-color: #c7d2fe;
}

.tab-card-wide {
  grid-column: 1 / -1;
}

.tab-card-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  margin-bottom: 4px;
}

.tab-card-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #111827;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.tab-empty {
  text-align: center;
  padding: 56px;
  color: #9ca3af;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
}

/* Resumo card */
.resumo-card {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

.resumo-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6a73d9;
  margin-bottom: 8px;
}

/* Edição */
.dash-edit {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
}

.edit-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.edit-header-actions {
  display: flex;
  gap: 8px;
}

.edit-campos {
  padding: 8px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.edit-secao {
  padding: 20px 0 8px;
  border-bottom: 1px solid #f3f4f6;
}

.edit-secao:last-child {
  border-bottom: none;
}

.edit-secao-titulo {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  margin-bottom: 16px;
}

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

.form-group-wide {
  grid-column: span 2;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 28px 20px;
  border-top: 1px solid #f3f4f6;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Responsivo */
@media (max-width: 640px) {
  .hero-stats {
    gap: 6px;
  }

  .hero-stat {
    min-width: 100px;
  }

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

  .tab-card-wide {
    grid-column: span 1;
  }

  .edit-campos {
    grid-template-columns: 1fr;
  }

  .hero-nome {
    font-size: 1.4rem;
  }
}

/* ── Status badge ── */

/* ── Resumo ── */
.resumo-box {
  background: #f9fafb;
  border-left: 3px solid var(--color-primary);
  padding: 12px 16px;
  border-radius: 0 7px 7px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
}

/* ── Admin ── */
.page-admin {
  padding: 0;
  background: #f1f3f9;
  align-items: stretch;
  min-height: 100vh;
}

/* ── Admin Layout — sidebar + main ── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  flex: 0 0 272px;
  background: linear-gradient(165deg, #4a52c5 0%, #35317c 100%);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 8px 0 32px rgba(53, 49, 124, 0.25);
  z-index: 10;
}

.admin-sidebar-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 36px 28px 40px;
  overflow-y: auto;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  display: block;
}

.admin-sidebar-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 9px;
  border-radius: 100px;
}

.admin-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-sidebar-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.admin-sidebar-select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.admin-sidebar-select option {
  color: #111827;
  background: #fff;
}

.admin-sidebar-select:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
}

.admin-sidebar-select.admin-filter-active {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.22);
  font-weight: 600;
  color: #fff;
}

.admin-sidebar-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-sidebar-refresh:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.admin-sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.admin-sidebar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-sidebar-logout:hover {
  background: rgba(255, 60, 60, 0.15);
  border-color: rgba(255, 100, 100, 0.4);
  color: #fca5a5;
}

/* Decorações da sidebar */
.admin-sidebar-deco-1 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -100px;
  right: -140px;
  pointer-events: none;
}

.admin-sidebar-deco-2 {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -50px;
  right: 20px;
  pointer-events: none;
}

/* Stats — 2×2 no sidebar */
.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px 14px 14px;
  transition: background 0.2s;
}

.admin-stat-card:hover {
  background: rgba(255, 255, 255, 0.17);
}

.admin-stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.admin-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.admin-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Main */
.admin-main {
  flex: 1;
  padding: 44px 48px 80px;
  overflow-y: auto;
  background: #f1f3f9;
}

/* Page header */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-brand-dark);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.admin-page-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Grid de cards */
.leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.leads-loading,
.leads-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ── Lead card ── */
.lead-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
}

.lead-card:hover {
  box-shadow: 0 8px 28px -4px rgba(106, 115, 217, 0.18);
  transform: translateY(-3px);
}

/* Header com tint dinâmico por status */
.lead-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--status-color, #94a3b8) 8%, transparent),
      transparent 70%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lead-head-info {
  flex: 1;
  min-width: 0;
}

/* Avatar */
.lead-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lead-avatar-novo {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.lead-avatar-em_analise {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.lead-avatar-aprovado {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.lead-avatar-em_producao {
  background: linear-gradient(135deg, #a78bfa, #6a73d9);
}

.lead-avatar-finalizado {
  background: linear-gradient(135deg, #34d399, #16a34a);
}

/* Texto */
.lead-card-nome {
  font-family: 'Outfit', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-card-empresa {
  font-family: 'Inter', sans-serif;
  font-size: 0.775rem;
  color: #9ca3af;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chips de metadados */
.lead-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px 18px 12px;
}

.lead-pill {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}

.pill-label {
  font-weight: 400;
  opacity: 0.65;
  margin-right: 2px;
}

.lead-pill-seg {
  background: #eef2ff;
  color: #6a73d9;
}

.pill-red {
  background: #fef2f2;
  color: #dc2626;
}

.pill-yellow {
  background: #fffbeb;
  color: #d97706;
}

.pill-green {
  background: #f0fdf4;
  color: #16a34a;
}

.pill-blue {
  background: #eff6ff;
  color: #2563eb;
}

.pill-purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.pill-gray {
  background: #f3f4f6;
  color: #6b7280;
}

/* Rodapé */
.lead-card-foot {
  margin-top: auto;
  padding: 10px 18px 14px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lead-foot-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.lead-foot-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.775rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-protocolo {
  font-family: 'Inter', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #c4c9d8;
}

/* Acesso negado — split screen */
.admin-denied {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.denied-left {
  flex: 0 0 48%;
  background: linear-gradient(145deg, #4a52c5 0%, #6a73d9 55%, #818cf8 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.denied-left-inner {
  position: relative;
  z-index: 1;
}

/* denied reutiliza .busca-deco-1 e .busca-deco-2 */

.denied-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.denied-pitch {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 340px;
  margin-bottom: 40px;
}

.denied-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: #f2f3f9;
}

.denied-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 28px;
  padding: 44px 40px 36px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 16px 56px rgba(106, 115, 217, 0.1);
  border: 1px solid rgba(106, 115, 217, 0.07);
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px;
}

/* Botão ver detalhes */
.lead-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-ver-detalhes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.775rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-brand);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(106, 115, 217, 0.3);
  flex-shrink: 0;
}

.btn-ver-detalhes:hover {
  background: #525bb3;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(106, 115, 217, 0.4);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

/* ── Diálogo de confirmação ── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 35, 0.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}

.confirm-box {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fffbeb;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
}

.confirm-msg {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.confirm-btn-cancel {
  flex: 1;
  padding: 11px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.confirm-btn-cancel:hover {
  border-color: #9ca3af;
  color: #374151;
}

.confirm-btn-ok {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: var(--color-brand);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(106, 115, 217, 0.35);
}

.confirm-btn-ok:hover {
  background: #525bb3;
  transform: translateY(-1px);
}

/* ── Modal split layout ── */
.modal-box {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
}

/* Sidebar esquerda */
.modal-left {
  flex: 0 0 264px;
  background: linear-gradient(165deg, #4a52c5 0%, #35317c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-left-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 28px;
  gap: 0;
  overflow-y: auto;
}

.modal-lead-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Reutiliza mesmas cores do lead-avatar */
.modal-avatar-novo {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.modal-avatar-em_analise {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.modal-avatar-aprovado {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.modal-avatar-em_producao {
  background: linear-gradient(135deg, #a78bfa, #6a73d9);
}

.modal-avatar-finalizado {
  background: linear-gradient(135deg, #34d399, #16a34a);
}

.modal-protocol-pill {
  font-family: 'Inter', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.modal-lead-nome {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.modal-lead-empresa {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.modal-quick-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-quick-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.modal-quick-fact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-sidebar-status {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-sidebar-status-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.modal-sidebar-status-select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 10px;
}

.modal-sidebar-status-select option {
  color: #111827;
  background: #fff;
}

.modal-sidebar-status-select:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
}

.modal-sidebar-close {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.modal-left-deco-1 {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -80px;
  right: -100px;
  pointer-events: none;
}

.modal-left-deco-2 {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -30px;
  right: 20px;
  pointer-events: none;
}

/* Painel direito */
.modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}

.modal-right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 4px;
  border-bottom: 1px solid #f1f2f6;
  flex-shrink: 0;
  gap: 8px;
}

.modal-tabs {
  display: flex;
  gap: 2px;
  padding: 12px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.modal-tabs::-webkit-scrollbar {
  display: none;
}

.modal-close {
  flex-shrink: 0;
  background: #f3f4f6;
  border: none;
  border-radius: 100px;
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 120px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
}

/* ── Responsivo admin — tablet ── */
@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    flex: 0 0 auto;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 24px rgba(53, 49, 124, 0.22);
  }

  .admin-sidebar-inner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
    overflow-y: visible;
  }

  /* Row 1: logo + action buttons */
  .admin-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .admin-sidebar-bottom {
    flex-direction: row;
    margin-top: 0;
    gap: 8px;
  }

  .admin-sidebar-refresh,
  .admin-sidebar-logout {
    width: auto;
    flex: 1;
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  /* Row 2: stats horizontal */
  .admin-stats-section {
    width: 100%;
  }

  .admin-stats-section .admin-sidebar-section-label {
    display: none;
  }

  .admin-stats {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .admin-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 6px;
    gap: 4px;
  }

  .admin-stat-dot {
    display: none;
  }

  .admin-stat-value {
    font-size: 1.1rem;
  }

  .admin-stat-label {
    font-size: 0.58rem;
    line-height: 1.2;
  }

  /* Row 3: filters side-by-side */
  .admin-filters-section {
    width: 100%;
  }

  .admin-filters-section .admin-sidebar-section-label {
    display: none;
  }

  .admin-filters-section {
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
  }

  .admin-filters-section .admin-sidebar-select {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .admin-sidebar-deco-1,
  .admin-sidebar-deco-2 {
    display: none;
  }

  .admin-main {
    padding: 20px 16px 60px;
  }

  .admin-page-title {
    font-size: 1.4rem;
  }

  .leads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* ── Responsivo admin — mobile ── */
@media (max-width: 580px) {
  .admin-sidebar-inner {
    padding: 14px 16px;
    gap: 12px;
  }

  .admin-sidebar-logo {
    height: 26px;
  }

  .admin-sidebar-refresh,
  .admin-sidebar-logout {
    padding: 7px 10px;
    font-size: 0.72rem;
    gap: 5px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stat-value {
    font-size: 1rem;
  }

  .admin-filters-section {
    flex-wrap: wrap;
  }

  .admin-filters-section .admin-sidebar-select {
    flex: 1 1 120px;
  }

  .admin-main {
    padding: 16px 14px 80px;
  }

  .leads-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-page-header {
    margin-bottom: 16px;
  }

  .admin-page-title {
    font-size: 1.2rem;
  }

  .admin-page-sub {
    font-size: 0.8rem;
  }
}

/* ── Modal mobile ── */
@media (max-width: 700px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-box {
    flex-direction: column;
    max-width: 100%;
    max-height: 95vh;
    border-radius: 24px 24px 0 0;
  }

  .modal-left {
    flex: 0 0 auto;
    max-height: 180px;
  }

  .modal-left-inner {
    flex-direction: row;
    align-items: center;
    padding: 20px 20px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .modal-lead-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .modal-lead-nome {
    font-size: 1rem;
  }

  .modal-lead-empresa {
    font-size: 0.75rem;
  }

  .modal-protocol-pill {
    font-size: 0.6rem;
  }

  .modal-quick-facts {
    display: none;
  }

  .modal-sidebar-status {
    display: none;
  }

  .modal-sidebar-close {
    display: none;
  }

  .modal-right {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .modal-right-header {
    padding: 0 16px;
    gap: 8px;
  }

  .modal-tabs {
    gap: 4px;
    padding: 12px 0 0;
  }

  .dash-tab {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-close {
    flex-shrink: 0;
  }
}

/* Responsivo — split screens */
@media (max-width: 900px) {

  .busca-wrap,
  .admin-denied,
  .wizard-page {
    flex-direction: column;
  }

  .busca-left,
  .denied-left,
  .wizard-left {
    flex: 0 0 auto;
    padding: 32px 24px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .busca-left-inner,
  .denied-left-inner,
  .wizard-left-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .busca-brand-img {
    height: 32px;
    width: auto;
    margin-bottom: 20px;
  }

  .busca-headline,
  .denied-headline {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .busca-pitch,
  .denied-pitch {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.8);
  }

  .busca-features,
  .denied-pitch-hidden,
  .wizard-left .busca-features {
    display: none;
  }

  .busca-right,
  .denied-right,
  .wizard-right {
    padding: 32px 20px 48px;
    flex: 1 0 auto;
    background: #f2f3f9;
    width: 100%;
  }
}

/* ── Modal: Esqueci meu código ── */
.esqueci-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  max-width: 400px;
  text-align: center;
  padding: 40px 36px;
  border-radius: 24px;
  background: white;
  margin: auto;
}

.esqueci-icon {
  width: 56px;
  height: 56px;
  background: #fffbeb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  margin: 0 auto 20px;
}

.esqueci-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.esqueci-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 28px;
}

.btn-wpp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #25d366;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  margin-bottom: 12px;
}

.btn-wpp:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}

.esqueci-fechar {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.esqueci-fechar:hover {
  color: #374151;
}

/* ── Nav links ── */
.nav-links {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--transition);
}

.nav-links a:hover {
  border-bottom-color: var(--color-primary);
}

/* ── Wizard ── */
.card-wizard {
  max-width: 580px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 16px 56px rgba(106, 115, 217, 0.1);
  border: 1px solid rgba(106, 115, 217, 0.07);
}

.wizard-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--color-border);
}

.wizard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.wizard-step-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wizard-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
}

.wizard-progress-bar {
  height: 8px;
  background: #eef2ff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6a73d9 0%, #818cf8 100%);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.wizard-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.wizard-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.wizard-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.wizard-body {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--transition);
}

.field-group.field-error .field-label {
  color: var(--color-danger);
}

.field-group.field-error .input {
  border-color: var(--color-danger) !important;
}

.field-group.field-error .option-grid {
  animation: shake 0.3s ease;
}

.field-hint-error {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--color-danger);
  font-weight: 500;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.field-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.field-hint {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(106, 115, 217, 0.1);
}

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

.option-card {
  padding: 9px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
  line-height: 1.3;
  text-align: left;
}

.option-card:hover {
  border-color: var(--color-primary);
  background: #f0effe;
  transform: translateY(-1px);
}

.option-card:active {
  background: #f0effe;
  transform: scale(0.96);
  transition: transform 0.05s;
}

.option-card.selected {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(106, 115, 217, 0.25);
}

.microcopy-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f9ff;
  border-left: 3px solid var(--color-info);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 14px;
  font-size: 0.875rem;
  color: #0369a1;
  line-height: 1.5;
}

.microcopy-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.wizard-footer {
  padding: 16px 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  gap: 12px;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}

.wizard-success {
  padding: 48px 32px;
  text-align: center;
}

.wizard-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.wizard-success h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.wizard-success-protocolo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #f5f3ff;
  border: 1.5px dashed #c4b5fd;
  border-radius: 16px;
  padding: 16px 28px;
  margin-bottom: 20px;
}

.wizard-success-protocolo-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a73d9;
}

.wizard-success-protocolo-value {
  font-family: 'Inter', monospace;
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.06em;
}

.wizard-success-protocolo-hint {
  font-size: 0.75rem;
  color: #9ca3af;
}

.wizard-success-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6366f1;
  background: #ededfd;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.wizard-success-copy-btn:hover { background: #ddddfb; }
.wizard-success-copy-btn.copied { color: #16a34a; background: #dcfce7; }

.wizard-success-back {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
  text-align: center;
}
.wizard-success-back:hover { color: #6b7280; }

.wizard-success p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Responsivo ── */
@media (max-width: 600px) {
  .wizard-right, .busca-right {
    padding: 24px 16px;
  }

  .wizard-footer {
    padding: 16px;
    flex-direction: column-reverse;
    gap: 12px;
    border-top: 1px solid #f1f2f6;
  }

  .wizard-footer .btn {
    width: 100%;
    height: 54px; /* Altura fixa para consistência */
    font-size: 1rem;
    border-radius: 14px;
  }

  .btn-secondary {
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-size: 0.9rem;
    height: auto !important;
    padding: 8px !important;
  }

  .wizard-body {
    padding: 20px 16px;
  }

  .wizard-progress {
    margin: 0 16px 20px;
  }

  .card, .card-wizard, .busca-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .busca-card-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .busca-card-title {
    font-size: 1.5rem;
  }

  .codigo-badge .codigo-valor {
    font-size: 1.5rem;
  }
}