/* ==============================================================
   AUTOACHOU - PAINEL OFICIAL & SISTEMA DE DESIGN COMPLETO
   Paleta: Navy Slate (#142438), Emerald (#10b981), Orange (#ea580c)
   100% Compatível com a API e endpoints oficiais do AutoAchou
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Tipografia */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta AutoAchou */
  --brand-navy: #142438;
  --brand-navy-dark: #0f1a29;
  --brand-navy-light: #1e3352;
  --brand-navy-lighter: #26436c;

  --brand-emerald: #14665e;
  --brand-emerald-vibrant: #10b981;
  --brand-emerald-light: #ecfdf5;
  --brand-emerald-border: #a7f3d0;

  --brand-orange: #ea580c;
  --brand-orange-light: #fff7ed;
  --brand-orange-border: #fed7aa;

  --status-amber: #f59e0b;
  --status-amber-light: #fef3c7;
  --status-amber-border: #fde68a;

  --status-red: #ef4444;
  --status-red-light: #fef2f2;
  --status-red-border: #fecaca;

  /* Superfícies & Layout */
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-sidebar: #142438;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.08);

  /* Transições */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

/* ==============================================================
   TELA DE AUTENTICAÇÃO / LOGIN (#auth)
   ============================================================== */
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  background: #ffffff;
}

.welcome {
  background: linear-gradient(135deg, #142438 0%, #1e3352 100%);
  color: #ffffff;
  padding: 56px 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.welcome::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.brand-dot {
  color: var(--brand-orange);
}

.welcome .eyebrow {
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.welcome h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.welcome h1 em {
  font-style: italic;
  font-weight: 400;
  color: #a7f3d0;
}

.welcome-copy {
  max-width: 400px;
  color: #94a3b8;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.welcome-footer {
  font-size: 0.8125rem;
  color: #64748b;
}

.auth-content {
  display: grid;
  place-items: center;
  padding: 48px 32px;
  background: #f8fafc;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.auth-card .eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-card > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  gap: 24px;
}

.tab {
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab.active {
  color: var(--brand-emerald-vibrant);
  border-bottom-color: var(--brand-emerald-vibrant);
}

.auth-card label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: #ffffff;
  outline: none;
  transition: var(--transition);
}

.auth-card input:focus {
  border-color: var(--brand-emerald-vibrant);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
  margin-bottom: 20px !important;
}

.checkbox-label input {
  margin-top: 2px;
}

.primary.wide {
  width: 100%;
  background: var(--brand-emerald-vibrant);
  color: #ffffff;
  border: 1px solid #059669;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.primary.wide:hover {
  background: #059669;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.secondary.wide {
  width: 100%;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.secondary.wide:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

.auth-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

.message {
  font-size: 0.8125rem;
  margin: 10px 0;
  color: #ef4444;
  font-weight: 600;
}

.message.success {
  color: #10b981;
}

/* ==============================================================
   BARRA DE STATUS E CONTROLES DE DEMO (TOPO)
   ============================================================== */
.preview-banner {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 8px 24px;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 100;
}

.preview-badge {
  background: var(--brand-emerald-vibrant);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 8px;
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.preview-btn:hover, .preview-btn.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

/* ==============================================================
   LAYOUT PRINCIPAL (#dashboard: SIDEBAR + WORKSPACE)
   ============================================================== */
.app-container {
  display: flex;
  min-height: calc(100vh - 37px);
}

/* SIDEBAR ESCURA AUTOACHOU */
.sidebar {
  width: 256px;
  min-width: 256px;
  background-color: var(--bg-sidebar);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
  user-select: none;
}

.sidebar-brand {
  padding: 24px 20px 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.sidebar-brand-name {
  color: #ffffff;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-section-title {
  padding: 16px 20px 8px 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: var(--transition);
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-nav-item:hover svg {
  opacity: 1;
}

.sidebar-nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand-emerald-vibrant);
}

.sidebar-nav-item.active svg {
  color: var(--brand-emerald-vibrant);
  opacity: 1;
}

.nav-counter {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 9999px;
}

/* FOOTER DA SIDEBAR COM PERFIL DO USUÁRIO */
.sidebar-footer {
  padding: 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #334155;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.sidebar-user-name {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-plan-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
  text-transform: uppercase;
}

.sidebar-logout-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ==============================================================
   WORKSPACE PRINCIPAL & TOPBAR
   ============================================================== */
.main-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
  overflow-y: auto;
  min-width: 0;
}

.topbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--brand-emerald-light);
  border: 1px solid var(--brand-emerald-border);
  color: #065f46;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-emerald-vibrant);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

.btn-primary {
  background: var(--brand-emerald-vibrant);
  border: 1px solid #059669;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.btn-primary:hover {
  background: #059669;
}

.btn-orange {
  background: var(--brand-orange);
  border: 1px solid #c2410c;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-orange:hover {
  background: #c2410c;
}

/* ==============================================================
   CONTEÚDO DAS ABAS (TABS CONTENT)
   ============================================================== */
.tab-pane {
  display: none;
  padding: 32px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================================
   ABA 1: VISÃO GERAL (HERO CARD AJUSTADO & METRICAS)
   ============================================================== */
.overview-grid-top {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

/* CARD ESCURO HERO (ÚLTIMA POSTAGEM - ENXUTO & EQUILIBRADO) */
.hero-dark-card {
  background: linear-gradient(135deg, #142438 0%, #1c324d 100%);
  border-radius: 16px;
  padding: 22px 24px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-dark-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  color: #94a3b8;
  font-size: 0.9375rem;
  margin-bottom: 14px;
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  transition: var(--transition);
}

.hero-metric-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-metric-val {
  font-size: 1.6875rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-metric-label {
  font-size: 0.8125rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-top: 4px;
}

/* COLUNA DA DIREITA (ALERTA ÂMBAR + ASSINATURA) */
.overview-right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CARD DE ALERTA ÂMBAR DOURADO (UX PILOT) */
.alert-gold-card {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1e293b;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.alert-gold-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.alert-gold-desc {
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.35;
  margin-bottom: 10px;
}

.alert-gold-btn {
  align-self: flex-start;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.alert-gold-btn:hover {
  background: #1e293b;
}

/* MINI CARD DE ASSINATURA NA VISÃO GERAL */
.mini-subscription-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mini-sub-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mini-sub-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mini-sub-exp {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill.success {
  background: var(--brand-emerald-light);
  color: #065f46;
  border: 1px solid var(--brand-emerald-border);
}

.status-pill.warning {
  background: var(--status-amber-light);
  color: #92400e;
  border: 1px solid var(--status-amber-border);
}

.status-pill.neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.status-pill.danger {
  background: var(--status-red-light);
  color: #991b1b;
  border: 1px solid var(--status-red-border);
}

/* SEÇÃO DESTINOS CONECTADOS (CARDS) */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-emerald-vibrant);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  text-decoration: underline;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.destination-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.destination-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.destination-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.destination-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
}

.destination-icon-box.warning {
  background: var(--status-amber-light);
  color: #d97706;
}

.destination-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.destination-topics {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* SEÇÃO ÚLTIMAS PUBLICAÇÕES (TABELA MODERNA) */
.table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background: #f8fafc;
  padding: 12px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: #fbfcfe;
}

.item-time {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.item-title-box {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-weight: 600;
  color: var(--text-primary);
}

.item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.discount-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ==============================================================
   ABA 2: CONFIGURAÇÃO (STEPPER & ACCORDION)
   ============================================================== */
.setup-stepper-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stepper-header-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.stepper-header-box h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.stepper-header-box p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.stepper-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.stepper-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.stepper-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-emerald);
}

/* ACCORDION CARDS */
.accordion-step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition);
}

.accordion-header:hover {
  background: #f8fafc;
}

.accordion-title-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-circle.completed {
  background: var(--brand-emerald-light);
  color: var(--brand-emerald-vibrant);
  border: 1px solid var(--brand-emerald-border);
}

.step-circle.active {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange-border);
}

.step-circle.pending {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.step-heading-box {
  display: flex;
  flex-direction: column;
}

.step-heading-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-heading-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.accordion-step-card.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 24px 28px 28px 28px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.accordion-step-card.open .accordion-body {
  display: block;
}

/* O GRID 2x2 DE GUIA ILUSTRADO DO TELEGRAM */
.telegram-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.guide-step-card {
  background: #fdfaf6;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-step-img-box {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.guide-step-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.guide-step-info h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.guide-step-info p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

/* FORMULÁRIO DE VERIFICAÇÃO */
.verify-action-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.challenge-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.challenge-code-val {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #38bdf8;
}

.challenge-timer {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--brand-emerald-vibrant);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ==============================================================
   ABA 3: DESTINOS (GESTÃO DE CANAIS & GRUPOS)
   ============================================================== */
.destinations-management-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.destination-manage-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.dest-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dest-info-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dest-avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.dest-title-area h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dest-meta-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dest-card-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.8125rem;
}

.dest-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dest-tag {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
}

.dest-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.dest-action-buttons {
  display: flex;
  gap: 8px;
}

/* TOGGLE SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--brand-emerald-vibrant);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* ==============================================================
   ABA 4: HISTÓRICO DE PUBLICAÇÕES
   ============================================================== */
.kpi-row-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.kpi-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.kpi-card-val {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.kpi-card-sub {
  font-size: 0.75rem;
  color: var(--brand-emerald-vibrant);
  font-weight: 600;
  margin-top: 2px;
}

.table-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input-box {
  flex: 1;
  position: relative;
}

.search-input-box input {
  width: 100%;
  padding-left: 36px;
}

.search-icon-pos {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

/* ==============================================================
   ABA 5: ASSINATURA (PLANOS & FATURAMENTO)
   ============================================================== */
.subscription-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.main-plan-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0;
}

.plan-price-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-price-period {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.plan-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px 0;
}

.plan-benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.plan-benefits-list svg {
  color: var(--brand-emerald-vibrant);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.billing-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==============================================================
   RESPONSIVIDADE E ESTADOS
   ============================================================== */
@media (max-width: 1024px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .welcome {
    display: none;
  }
  .overview-grid-top, .subscription-layout {
    grid-template-columns: 1fr;
  }
  .destinations-grid {
    grid-template-columns: 1fr;
  }
  .kpi-row-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  .telegram-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================
   CLASSES DO PAINEL OFICIAL
   O servidor bloqueia estilos inline (CSP). Os valores abaixo são
   exatamente os que estavam escritos direto no HTML do layout.
   ============================================================== */
.loading-screen { display: grid; place-items: center; min-height: 100vh; color: var(--text-muted); font-size: 0.875rem; }
.dashboard-notices { padding: 0 32px; margin-top: 16px; }
.preview-banner.demo-banner { border-radius: 10px; margin-bottom: 16px; }
.hero-metric-total { font-size: 1rem; font-weight: 500; color: #94a3b8; }
.pulse-dot.small { width: 6px; height: 6px; }
.btn-secondary.mini-sub-btn { margin-top: 12px; justify-content: center; }
.section-count { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.destination-card.is-warning { border-color: var(--status-amber-border); background: #fffbeb; }
.overview-empty { grid-column: span 2; padding: 16px 0; color: var(--text-muted); font-size: 0.875rem; }
.col-90 { width: 90px; }
.col-100 { width: 100px; }
.col-110 { width: 110px; }
.text-right { text-align: right; }
.table-empty { text-align: center; padding: 24px; color: #64748b; }

.panel-box { margin-top: 32px; background: #ffffff; border: 1px solid var(--border-color); border-radius: 14px; padding: 24px; }
.panel-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 16px; }
.panel-box-title { font-size: 1.0625rem; font-weight: 700; color: var(--text-primary); }
.panel-box-title.lg { font-size: 1.125rem; color: #0f172a; margin-bottom: 6px; }
.panel-box-sub { font-size: 0.875rem; color: var(--text-muted); margin-top: 2px; }
.panel-box-desc { font-size: 0.875rem; color: #64748b; margin-bottom: 16px; }
.panel-box-ok { font-size: 0.8125rem; color: #059669; font-weight: 600; }
.btn-group { display: flex; gap: 10px; }

.setup-steps-list { display: flex; flex-direction: column; gap: 16px; }
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.connection-status { font-size: 0.8125rem; color: #059669; }
.connection-status.pending { color: #d97706; }
.verify-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.verify-title { font-size: 0.9375rem; font-weight: 700; color: #0f172a; }
.verify-sub { font-size: 0.8125rem; color: #64748b; }
.telegram-status { min-height: 18px; margin: 0; }
.link-btn { align-self: flex-start; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.form-note { font-size: 0.8125rem; color: var(--text-muted); }
.telegram-guide-grid.three { grid-template-columns: repeat(3, 1fr); }
.btn-primary:disabled, .btn-secondary:disabled, .btn-orange:disabled, .alert-gold-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.form-control[readonly] { background: #f8fafc; color: var(--text-muted); }

.simulation-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-top: 16px; }
.simulation-box strong { display: block; margin-bottom: 8px; font-size: 0.875rem; }
.simulation-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; color: var(--text-secondary); }
.time-chip { background: #ffffff; border: 1px solid #cbd5e1; padding: 3px 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.75rem; }

.page-title { font-size: 1.375rem; font-weight: 700; color: #0f172a; }
.page-sub { font-size: 0.875rem; color: #64748b; }
.dest-controls { display: flex; align-items: center; gap: 12px; }
.dest-label { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.dest-label.warn { color: #92400e; }
.dest-tags-list.spaced { margin-top: 4px; }
.dest-count { text-align: right; }
.dest-small { font-size: 0.75rem; color: #64748b; }
.dest-count-val { display: block; font-size: 1.125rem; color: #0f172a; }
.btn-secondary.btn-sm { padding: 5px 10px; }
.btn-secondary.btn-xs { padding: 4px 8px; font-size: 0.75rem; display: inline-flex; }
.destination-manage-card.is-warning { border-color: var(--status-amber-border); background: #fffdf9; }
.dest-card-middle.is-warning { background: #fef3c7; }
.dest-diagnostic { font-size: 0.8125rem; color: #78350f; margin-top: 2px; }
.meta-warn { color: #d97706; font-weight: 600; }
.dest-avatar-icon.warning { background: var(--status-amber-light); color: #d97706; }
.dest-edit-form { border-top: 1px solid var(--border-color); padding-top: 16px; }
.dest-empty { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 32px; text-align: center; }
.dest-empty h4 { font-size: 1.125rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.dest-empty p { font-size: 0.875rem; color: #64748b; margin-bottom: 16px; }
.dest-empty .btn-primary { margin: 0 auto; }

.filter-select { width: 200px; }
.price-strong { font-weight: 700; color: #0f172a; }
.discount-tag.ml { margin-left: 6px; }
.muted-dash { color: #94a3b8; font-size: 0.75rem; }
.kpi-card-sub.kpi-blue { color: #0284c7; }
.kpi-card-sub.kpi-warn { color: #d97706; }

.plan-status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status-pill.lg { font-size: 0.8125rem; }
.meta-text { font-size: 0.8125rem; color: #64748b; }
.plan-title { font-size: 1.125rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.btn-row { display: flex; gap: 12px; align-items: center; }
.billing-details { font-size: 0.8125rem; color: #64748b; line-height: 1.6; }
.billing-link-box { padding: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.billing-link-label { font-size: 0.75rem; font-weight: 700; color: #0f172a; display: block; margin-bottom: 4px; }
.btn-secondary.checkout-link { font-size: 0.8125rem; color: #0284c7; font-weight: 600; display: inline-block; padding: 6px 12px; }
.access-note { font-size: 0.8125rem; color: var(--text-muted); }
.section-heading-lg { font-size: 1.125rem; font-weight: 700; color: #0f172a; margin-bottom: 14px; }
.table-card.note-card { padding: 24px; text-align: center; color: var(--text-muted); font-size: 0.875rem; }
.link-blue { color: #0284c7; font-weight: 600; }

/* Rotina pausada: mesmo componente, sem o verde "ao vivo" */
.live-indicator.is-paused { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
.live-indicator.is-paused .pulse-dot, .hero-header-badge.is-paused .pulse-dot { background-color: #94a3b8; animation: none; box-shadow: none; }
.hero-header-badge.is-paused { background: rgba(148, 163, 184, 0.18); border-color: rgba(148, 163, 184, 0.35); color: #cbd5e1; }

@media (max-width: 1024px) {
  .telegram-guide-grid.three { grid-template-columns: 1fr; }
  .overview-empty { grid-column: auto; }
}
@media (max-width: 768px) {
  .dashboard-notices { padding: 0 16px; }
  .tab-pane { padding: 20px 16px; }
  .topbar { padding: 12px 16px; }
  .form-row, .panel-box-head, .verify-head, .dest-card-top, .dest-card-actions, .section-header-row, .table-filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-metrics-row { grid-template-columns: 1fr; }
  .filter-select { width: 100%; }
  .table-card { overflow-x: auto; }
  .breadcrumb-nav span:not(.breadcrumb-current) { display: none; }
}

/* O aceite só aparece em "Criar conta" */
.checkbox-label[hidden] { display: none !important; }
.destination-manage-card > .message:empty { display: none; }

.extension-install-figure { margin: 20px 0; max-width: 900px; }
.extension-install-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.extension-install-figure figcaption { margin-top: 8px; font-size: 0.875rem; }

.extension-wizard { margin:20px 0; }
.extension-guide-dots,.extension-guide-navigation { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:16px 0; }
.extension-guide-dots [aria-pressed="true"] { border-color:#10b981; box-shadow:0 0 0 2px #10b98133; }
.extension-guide-slide { display:grid; grid-template-columns:minmax(180px,1fr) minmax(0,2fr); gap:24px; padding:24px; border:1px solid #dbe3ec; border-radius:12px; }
.extension-guide-slide[hidden] { display:none; }
.extension-guide-slide h4 { font-size:1.35rem; margin:8px 0 12px; }
.extension-guide-visual { min-width:0; }
.extension-guide-visual svg,.extension-guide-visual img { width:100%; height:auto; display:block; border-radius:8px; }
.extension-guide-visual figure { margin:0 0 16px; }
.extension-guide-visual figcaption { margin-top:6px; font-size:.875rem; }
.extension-guide-example { padding:20px; border:1px solid #dbe3ec; border-radius:12px; }
.extension-guide-example .btn-primary,.extension-guide-example .btn-secondary { display:inline-block; margin:16px 0; pointer-events:none; }
.extension-guide-example .form-control { overflow-wrap:anywhere; height:auto; margin-top:8px; }
.extension-guide-example .connection-status { color:#059669; }
.extension-guide-navigation { justify-content:space-between; }
@media(max-width:720px) { .extension-guide-slide { grid-template-columns:1fr; padding:16px; gap:16px; } }

/* Keep the tutorial text readable and the initial download easy to locate. */
.extension-guide-panel { margin:24px 0; padding:20px; border:1px solid #10b98166; border-radius:12px; background:rgba(16,185,129,.04); }
.extension-guide-panel > summary { cursor:pointer; font-size:1.12rem; font-weight:750; color:#0f172a; padding:4px 0; }
.extension-guide-panel .extension-guide-intro { margin:12px 0 16px; line-height:1.65; color:#172033; font-size:1rem; }
.extension-guide-panel .extension-guide-slide > div:first-child > p:not(.eyebrow) { color:#172033; font-size:1rem; line-height:1.75; }
.extension-guide-panel .extension-guide-slide h4 { color:#0f172a; }
.extension-guide-panel .extension-download-button { display:inline-flex; width:auto; align-items:center; padding:13px 20px; font-weight:750; background:linear-gradient(135deg,#059669,#047857); color:#fff; border:1px solid #047857; box-shadow:0 4px 10px #04785726; text-decoration:none; }
.extension-guide-panel .extension-download-button:hover { background:linear-gradient(135deg,#047857,#065f46); box-shadow:0 5px 14px #04785733; }
.extension-guide-panel .extension-download-button:focus-visible { outline:3px solid #34d399; outline-offset:3px; }
[data-theme="dark"] .extension-guide-panel > summary,
[data-theme="dark"] .extension-guide-panel .extension-guide-intro,
[data-theme="dark"] .extension-guide-panel .extension-guide-slide > div:first-child > p:not(.eyebrow),
[data-theme="dark"] .extension-guide-panel .extension-guide-slide h4 { color:#f1f5f9; }

/* Oferta Ligada brand mark; existing panel layout preserved. */
.oferta-brand-icon { display:inline-block; flex-shrink:0; width:34px; height:34px; vertical-align:middle; }

/* Affiliate marketplace tabs */
.marketplace-tabs { display:flex; gap:0; overflow-x:auto; border-bottom:1px solid var(--border-color); margin:0 0 20px; }
.marketplace-tab { flex:0 0 auto; display:inline-flex; align-items:center; gap:8px; padding:12px 18px; border:0; border-bottom:3px solid transparent; margin-bottom:-1px; background:transparent; color:var(--text-muted); font:inherit; font-weight:650; cursor:pointer; }
.marketplace-tab[aria-selected="true"] { color:var(--brand-emerald, #059669); border-bottom-color:var(--brand-emerald, #059669); }
.marketplace-tab:focus-visible { outline:3px solid var(--brand-emerald, #10b981); outline-offset:-3px; }
.marketplace-tab-status { font-size:.8em; }
.marketplace-panel[hidden] { display:none !important; }
.marketplace-note { margin-top:16px; padding:12px 14px; border:1px solid var(--border-color); border-radius:8px; color:var(--text-muted); line-height:1.5; }
.marketplace-connection-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
[data-theme="dark"] .marketplace-tabs { border-color:var(--border-color); }
[data-theme="dark"] .marketplace-tab { color:var(--text-muted); }
[data-theme="dark"] .marketplace-tab[aria-selected="true"] { color:#34d399; border-bottom-color:#34d399; }
[data-theme="dark"] .marketplace-note { background:rgba(255,255,255,.03); }

.marketplace-tab-status.connected { color:var(--brand-emerald-vibrant,#059669); }
#shopee-account-form .form-row { flex-wrap:wrap; gap:14px; }
#shopee-account-form .form-group { flex:1 1 240px; }
#shopee-account-form { margin-top:22px; }
.marketplace-tabs + .marketplace-panel, .marketplace-panel { min-width:0; }

.marketplace-tab { flex-direction:column; align-items:flex-start; gap:4px; min-width:160px; border-radius:10px 10px 0 0; background:var(--border-light); }
.marketplace-tab[aria-selected="true"] { background:rgba(16,185,129,.07); }
.marketplace-tab-status { color:var(--text-muted); font-size:.72rem; font-weight:500; }
#shopee-account-form > .marketplace-connection-actions { margin-top:16px; }
#marketplace-panel-shopee .guide-step-card { text-align:left; }
@media(max-width:720px) { #marketplace-panel-shopee .telegram-guide-grid.three { grid-template-columns:1fr; } .marketplace-tab { flex:1 0 130px; min-width:0; padding:12px; font-size:.875rem; } }
[data-theme="dark"] .marketplace-tab[aria-selected="true"] { background:rgba(16,185,129,.12); }
