@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ==========================================================================
   DEVFLUX BIO — DESIGN SYSTEM EDITORIAL IMPECCABLE (ANTI-SLOP)
   Inspirado no design artesanal, limpo e sofisticado de estúdio suíço
   ========================================================================== */

:root {
  --bg: #f5f5f1;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --ink: #242824;
  --muted: #797e77;
  --line: #e3e6df;
  --line-focus: #8fbd66;
  
  /* Acentos de Marca Bio KDX */
  --green: #c7f397;
  --green-dark: #223618;
  --green-soft: #edf3e7;
  --lime: #84cc16;
  --purple: #8f2cff;
  --purple-soft: #f3e8ff;
  --amber-soft: #ffedcf;
  --amber-dark: #916d36;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

/* Prefixo fixo +55 e campos de telefone padronizados */
.phone-input-wrap {
  display: flex;
  align-items: stretch;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e3e6df);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-input-wrap:focus-within {
  border-color: var(--purple, #8f2cff);
  box-shadow: 0 0 0 3px rgba(143, 44, 255, 0.12);
}
.phone-prefix-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  border-right: 1px solid var(--line, #e3e6df);
  user-select: none;
  white-space: nowrap;
}
.phone-prefixed {
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 9px 12px;
  font-size: 13px;
  width: 100%;
  color: var(--ink, #242824);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

/* Scrollbar visível e moderna em todo o painel admin */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #f1f2ec;
}

::-webkit-scrollbar-thumb {
  background: #c3c8bc;
  border-radius: 6px;
  border: 2px solid #f1f2ec;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ea496;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  font-synthesis: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  transition: all 0.18s ease;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   BOTÕES & AÇÕES GERAIS
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--green-dark);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  background: #fbfbf9;
  border-color: #d2d6cd;
}

.btn-danger-outline {
  padding: 8px 12px;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.btn-danger-outline:hover {
  background: #fef2f2;
}

/* ==========================================================================
   LAYOUT GERAL: SIDEBAR + MAIN AREA
   ========================================================================== */
.workspace {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Fixa à Esquerda */
.sidebar {
  width: 250px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 24px 20px 20px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 24px;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--green);
  color: var(--green-dark);
  width: 38px;
  height: 38px;
  font-size: 20px;
  font-weight: 800;
}

.nav-section-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #91998c;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
  transition: background 0.15s ease;
}

.nav-item:hover {
  background: #f8faf5;
}

.nav-item.active {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
}

.nav-item .icon {
  font-size: 16px;
}

.nav-item .count-pill {
  margin-left: auto;
  background: #ffffff;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--line);
}

/* Card de Dica de Venda de Placas NFC na Sidebar */
.sidebar-box {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px;
  background: linear-gradient(135deg, #f3f6ee 0%, #ffffff 100%);
  margin-bottom: 14px;
}

.sidebar-box span.badge-tip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #657e4e;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.sidebar-box strong {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  display: block;
}

.sidebar-box p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 11px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info strong {
  font-size: 11px;
  color: var(--ink);
}

.user-info span {
  font-size: 9px;
  color: var(--muted);
}

/* Área Principal */
.main-content {
  margin-left: 250px;
  width: calc(100% - 250px);
  padding: 0 44px 160px;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb strong {
  color: var(--ink);
}

.system-status {
  font-size: 11px;
  color: #6c7565;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #8caa6a;
  border-radius: 50%;
  display: inline-block;
}

/* Título Editorial da Página */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 36px 0 28px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 6px;
}

.page-header h1 span {
  color: #799d54;
}

.page-header p {
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   ESTATÍSTICAS EM CARDS BRANCOS
   ========================================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.stat-box .label {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}

.stat-box .number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin: 14px 0 8px;
  display: block;
}

.stat-box .caption {
  font-size: 11px;
  color: #8a9086;
}

/* ==========================================================================
   GRID DE CLIENTES / COLEÇÃO
   ========================================================================== */
.collection-section {
  margin-top: 36px;
}

.collection-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.collection-top h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.collection-top p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

#dashboardSection {
  padding-bottom: 60px;
}

.clients-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.client-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.client-item:hover {
  border-color: #ced6c6;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.client-cover-art {
  height: 140px;
  position: relative;
  padding: 16px;
  background-color: #1a1e1b;
  background-size: cover;
  background-position: center;
}

.status-badge {
  padding: 5px 9px;
  font-size: 9px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}

.status-badge.live {
  background: var(--green);
  color: var(--green-dark);
}

.status-badge.paused {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.client-avatar-monogram {
  position: absolute;
  left: 20px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}

.client-avatar-monogram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eyebrow-category {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.client-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 6px 0 4px;
}

.client-desc {
  font-size: 11px;
  color: #798375;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.client-bottom-bar {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mrr-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.mrr-tag small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  display: block;
}

.actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Menu Popover Flutuante de Opções do Mini-Site (...) */
.client-card-popover {
  position: fixed;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.12);
  padding: 6px;
  min-width: 220px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: popoverFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.client-popover-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  padding: 6px 10px 4px;
}

.client-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}

.client-popover-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.client-popover-item.text-danger {
  color: #dc2626;
}

.client-popover-item.text-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.client-popover-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

/* Card "+ Criar Novo Estabelecimento" */
.create-new-card {
  min-height: 280px;
  border: 1px dashed #cbd5c1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f0f4ea;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  padding: 20px;
}

.create-new-card:hover {
  background: #e8efe0;
  border-color: #9dbb7d;
  transform: translateY(-2px);
}

.create-plus-icon {
  width: 44px;
  height: 44px;
  background: #dfe8d4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--green-dark);
}

.create-new-card strong {
  font-size: 16px;
  font-weight: 600;
}

.create-new-card small {
  font-size: 11px;
  color: #7d8b72;
}

/* ==========================================================================
   VIEW 2: EDITOR VISUAL SPLIT-SCREEN (ESTILO BIO.SITE)
   ========================================================================= */
.editor-wrapper {
  padding-top: 28px;
}

.editor-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.editor-header-bar h1 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.8px;
}

.editor-header-bar .slug-url {
  font-size: 12px;
  color: #718067;
  margin-top: 4px;
}

.editor-grid-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 40px;
}

.editor-panel-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  gap: 20px;
  overflow-x: auto;
}

.tab-link {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 18px 0;
  border-bottom: 2px solid transparent;
  color: #81897a;
}

.tab-link.active {
  color: #29381c;
  border-color: #8ebc64;
  font-weight: 700;
}

.tab-pane {
  padding: 28px;
}

.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.input-text, .select-box, .textarea-box {
  display: block;
  width: 100%;
  border: 1px solid #dfe4d9;
  border-radius: 9px;
  background: #fdfdfc;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 12px;
  outline: none;
  transition: all 0.15s ease;
}

.input-text:focus, .select-box:focus, .textarea-box:focus {
  border-color: var(--line-focus);
  box-shadow: 0 0 0 3px rgba(199, 243, 151, 0.3);
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Celular / Mockup iPhone */
.phone-sticky-container {
  position: sticky;
  top: 24px;
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #929a89;
  margin-bottom: 14px;
}

.phone-casing {
  position: relative;
  border: 8px solid #20241f;
  border-radius: 40px;
  background: #20241f;
  padding-top: 18px;
  box-shadow: 0 25px 60px rgba(39, 61, 19, 0.12);
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
}

.phone-speaker-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 10px;
  background: #0f110e;
  border-radius: 10px;
  z-index: 10;
  pointer-events: none;
}

.phone-screen-iframe {
  height: 560px;
  width: 100%;
  border: none;
  background: #000;
  border-radius: 8px 8px 30px 30px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  max-height: min(92vh, 800px);
  overflow-y: auto;
  margin: auto;
  padding: 28px 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-dialog::-webkit-scrollbar {
  width: 6px;
}
.modal-dialog::-webkit-scrollbar-track {
  background: transparent;
}
.modal-dialog::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
.modal-dialog::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.modal-dialog h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--ink);
}

.modal-dialog p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 20px;
}

/* ==========================================================================
   ELEMENTOS DE INTERFACE MOBILE NATIVOS (DRAWER, BOTTOM NAV, TOGGLES)
   ========================================================================== */

/* Botão Menu Hambúrguer Topbar */
.btn-mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 9px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-mobile-menu:active {
  transform: scale(0.92);
  background: #f1f5f9;
}
.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink, #1e293b);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.topbar-left-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-brand-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px rgba(143, 44, 255, 0.45));
}
.topbar-right-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-text-mobile {
  display: none;
}

/* Mobile Drawer (Menu Gaveta Lateral) */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 86vw;
  max-width: 310px;
  background: #ffffff;
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 20px 16px 24px;
  box-shadow: 16px 0 40px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  margin-bottom: 14px;
}
.btn-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line, #e2e8f0);
  background: #f8fafc;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-drawer-close:active {
  background: #e2e8f0;
  transform: scale(0.92);
}

.mobile-drawer-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mobile-drawer-user-card:active {
  background: #f1f5f9;
}
.mobile-drawer-user-card .user-info strong {
  font-size: 13px;
  color: var(--ink, #1e293b);
  display: block;
}
.mobile-drawer-user-card .user-info span {
  font-size: 11px;
  color: var(--muted, #64748b);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  margin-top: 8px;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e2e8f0);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.btn-drawer-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #1e293b);
  background: transparent;
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-drawer-action:hover, .btn-drawer-action:active {
  background: #f1f5f9;
}
.btn-drawer-logout {
  color: #dc2626;
}
.btn-drawer-logout:hover, .btn-drawer-logout:active {
  background: #fef2f2;
}

/* Bottom Navigation Bar Fixa no Mobile */
.mobile-bottom-nav {
  display: none;
}

/* Alternador de Modo no Editor (Formulário vs Celular) */
.mobile-editor-view-toggle {
  display: none;
}
.mobile-fab-preview {
  display: none;
}
.phone-mobile-control-bar {
  display: none;
}
.pulse-green-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px rgba(22, 163, 74, 0.6); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Dropdown de Opções Extras no Editor */
.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-wrap: wrap;
}
.btn-editor-options-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 9px;
  line-height: 1;
}
.editor-options-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 6px;
  min-width: 210px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.editor-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #1e293b);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.editor-dropdown-item:hover, .editor-dropdown-item:active {
  background: #f8fafc;
}
.editor-dropdown-danger {
  color: #dc2626;
}
.editor-dropdown-danger:hover, .editor-dropdown-danger:active {
  background: #fef2f2;
}

/* ==========================================================================
   RESPONSIVIDADE COMPLETA E IMPECÁVEL (DESKTOP -> TABLET -> SMARTPHONE)
   ========================================================================== */

@media (max-width: 1050px) {
  .sidebar { width: 80px; padding: 20px 10px; align-items: center; }
  .sidebar-brand span, .nav-section-label, .sidebar-box, .user-info, .sidebar-brand small, .nav-item .count-pill { display: none; }
  .main-content { margin-left: 80px; width: calc(100% - 80px); padding: 0 24px 140px; }
  .editor-grid-split { grid-template-columns: 1fr; }
  .phone-sticky-container { position: static; width: 320px; margin: 30px auto 0; }
}

@media (max-width: 768px) {
  /* Oculta Sidebar física e dá 100% de largura ao conteúdo */
  .sidebar { display: none !important; }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 14px calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 100vh;
  }

  /* Exibe o Botão Hambúrguer e ajusta a Topbar */
  .btn-mobile-menu { display: flex; }
  .topbar {
    height: 60px;
    padding: 0;
    border-bottom: 1px solid var(--line, #e2e8f0);
  }
  .breadcrumb strong {
    font-size: 13px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .system-status { display: none !important; }
  .profile-btn-label { display: none; }
  .btn-topbar-profile { padding: 8px 10px; font-size: 14px; }
  .btn-topbar-new { padding: 8px 12px; font-size: 12px; }
  .btn-topbar-back { padding: 7px 11px; font-size: 12px; font-weight: 700; }
  .btn-text-full { display: none; }
  .btn-text-mobile { display: inline; font-weight: 700; }

  /* Bottom Navigation Bar fixa estilo App */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line, #e2e8f0);
    z-index: 900;
    padding: 0 6px calc(env(safe-area-inset-bottom, 0px) + 2px);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    background: none;
    padding: 2px 0;
    transition: color 0.15s ease, transform 0.1s ease;
    cursor: pointer;
  }
  .bottom-nav-item .b-icon {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 2px;
    transition: transform 0.15s ease;
  }
  .bottom-nav-item:active {
    transform: scale(0.92);
  }
  .bottom-nav-item.active {
    color: var(--green-dark, #223618);
    font-weight: 800;
  }
  .bottom-nav-item.active .b-icon {
    transform: scale(1.15);
  }

  /* Cabeçalho de página */
  .page-header {
    padding: 20px 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .page-header h1 {
    font-size: 24px;
    letter-spacing: -0.6px;
    margin-bottom: 4px;
  }
  .page-header p {
    font-size: 12px;
  }

  /* Estatísticas em 3 colunas compactas */
  .stats-strip {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
  }
  .stat-box {
    padding: 12px 8px !important;
    border-radius: 10px !important;
    text-align: center;
  }
  .stat-box .label {
    font-size: 8px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stat-box .number {
    font-size: 16px !important;
    margin: 4px 0 0 !important;
    letter-spacing: -0.5px;
  }
  .stat-box .caption {
    display: none !important;
  }

  /* Lista de Mini-sites */
  .clients-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 24px;
  }
  .client-item {
    border-radius: 14px;
  }
  .client-cover-art {
    height: 120px;
  }
  .client-details {
    padding: 16px 14px;
  }
  .client-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
  }
  .actions-row {
    width: 100%;
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .actions-row .btn-primary {
    flex: 2;
    min-height: 40px;
    font-size: 12px;
    font-weight: 700;
  }
  .actions-row .btn-secondary, .actions-row .btn-danger-outline {
    flex: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  /* Form / Inputs no Mobile */
  .field-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* =========================================================================
     SISTEMA REVOLUCIONÁRIO DO EDITOR NO SMARTPHONE
     ========================================================================= */
  .editor-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0 12px;
    margin-bottom: 12px;
  }
  .editor-header-meta h1 {
    font-size: 22px;
    letter-spacing: -0.5px;
  }
  .editor-header-meta .slug-url {
    font-size: 11px;
    word-break: break-all;
  }
  .editor-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .btn-editor-save-main {
    flex: 2;
    min-height: 42px;
    font-size: 13px;
  }
  .btn-editor-open-link {
    flex: 1;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12px;
    text-align: center;
  }
  .btn-editor-options-toggle {
    min-height: 42px;
    padding: 0 14px;
  }

  /* Barra de Alternância de Visualização Mobile (Editor vs Celular) */
  .mobile-editor-view-toggle {
    display: flex;
    background: #e2e8f0;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
  }
  .mobile-toggle-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }
  .mobile-toggle-btn.active {
    background: #ffffff;
    color: var(--ink, #1e293b);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  /* Comportamento de alternância: modo editor vs modo preview */
  .editor-wrapper.mobile-mode-editor .editor-panel-box {
    display: block !important;
    width: 100% !important;
  }
  .editor-wrapper.mobile-mode-editor .phone-sticky-container {
    display: none !important;
  }
  .editor-wrapper.mobile-mode-editor .mobile-fab-preview {
    display: flex;
  }

  .editor-wrapper.mobile-mode-preview .editor-panel-box {
    display: none !important;
  }
  .editor-wrapper.mobile-mode-preview .phone-sticky-container {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
  }
  .editor-wrapper.mobile-mode-preview .phone-mobile-control-bar {
    display: flex;
  }
  .editor-wrapper.mobile-mode-preview .mobile-fab-preview {
    display: none !important;
  }

  /* Mockup do Celular adaptado para caber no display */
  .phone-casing {
    max-width: 320px !important;
    margin: 0 auto !important;
    border-width: 6px !important;
    border-radius: 36px !important;
    padding-top: 14px !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18) !important;
  }
  .phone-screen-iframe {
    height: calc(100vh - 220px) !important;
    max-height: 600px !important;
    min-height: 460px !important;
  }
  .phone-mobile-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
  }
  .phone-sync-indicator {
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Botão Flutuante FAB para ver prévia rapidamente */
  .mobile-fab-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    right: 18px;
    bottom: 74px;
    background: var(--green, #c7f397);
    color: var(--green-dark, #223618);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(34, 54, 24, 0.28);
    border-radius: 30px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 800;
    z-index: 850;
    cursor: pointer;
  }
  .mobile-fab-preview:active {
    transform: scale(0.93);
  }

  /* Abas do editor com rolagem suave no mobile */
  .tabs-nav {
    padding: 0 10px !important;
    gap: 14px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .tabs-nav::-webkit-scrollbar {
    display: none !important;
  }
  .tab-link {
    padding: 14px 4px !important;
    font-size: 12px !important;
  }
  .tab-pane {
    padding: 18px 14px !important;
  }

  /* Modais em tela de celular */
  .modal-dialog {
    width: calc(100% - 20px) !important;
    max-width: 480px !important;
    max-height: 88vh !important;
    margin: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 16px !important;
    padding: 22px 16px !important;
  }

  /* CRM Kanban com rolagem por snap no celular */
  .crm-kanban-board {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 24px !important;
    min-height: auto !important;
  }
  .kanban-col {
    flex: 0 0 calc(100vw - 44px) !important;
    max-width: 320px !important;
    scroll-snap-align: center !important;
    min-height: 420px !important;
  }

  /* Radar de Leads com IA no mobile */
  .radar-search-card {
    padding: 18px 14px !important;
    border-radius: 14px !important;
  }
  .radar-quick-tags-wrap {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
  }
  .radar-quick-tags-wrap::-webkit-scrollbar {
    display: none !important;
  }
  .radar-lead-card {
    padding: 16px 14px !important;
  }
  .radar-lead-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

@media (max-width: 420px) {
  .page-header h1 {
    font-size: 21px;
  }
  .topbar-brand-logo {
    height: 20px;
  }
  .btn-topbar-new {
    padding: 7px 10px;
    font-size: 11px;
  }
  .stats-strip {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .stat-box {
    padding: 10px 6px !important;
  }
  .stat-box .number {
    font-size: 14px !important;
  }
}

/* ==========================================================================
   DEVFLUX BIO — SEÇÕES & CARDS MODULARES (BUILDER ESTILO BIO.SITE)
   ========================================================================== */

#btnToggleAuthPassword:hover {
  color: var(--ink);
  transform: scale(1.08);
}

.sections-builder-top {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.add-section-toolbar {
  background: var(--bg);
  border: 1px dashed #d5d9cf;
  border-radius: 10px;
  padding: 14px;
}

.add-section-btn-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 8px;
}

.btn-add-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.15s ease;
  text-align: center;
}

.btn-add-sec .sec-icon {
  font-size: 16px;
}

.btn-add-sec:hover {
  background: var(--green-soft);
  border-color: var(--line-focus);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sections-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card individual de uma Seção no Editor */
.sec-block-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.sec-block-card:hover {
  border-color: #cbd2c5;
}

.sec-block-card.collapsed {
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sec-block-card.collapsed .sec-block-header {
  border-bottom: none;
  background: #ffffff;
  cursor: pointer;
}

.sec-block-card.collapsed .sec-block-header:hover {
  background: #f8faf6;
}

.sec-block-card.collapsed .sec-block-body {
  display: none;
}

.sec-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fafaf8;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  transition: background 0.15s ease;
}

.sec-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-reorder-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-reorder-arrow {
  width: 20px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
}

.btn-reorder-arrow:hover:not(:disabled) {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: var(--line-focus);
}

.sec-type-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--purple-soft);
  color: var(--purple);
}

.sec-type-pill.text-type {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.sec-type-pill.booking-type {
  background: #dcfce7;
  color: #15803d;
}

.sec-type-pill.tour360-type {
  background: #e0f2fe;
  color: #0369a1;
}

.sec-type-pill.instagram-type {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.sec-type-pill.menu-type {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.sec-type-pill.catalog-type {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.sec-header-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.sec-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sec-del {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #fee2e2;
  color: #dc2626;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-sec-del:hover {
  background: #fef2f2;
}

.btn-sec-toggle {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-sec-toggle:hover {
  background: var(--green-soft);
  border-color: var(--line-focus);
  color: var(--green-dark);
}

.btn-sec-toggle.btn-sec-expand {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.btn-sec-toggle.btn-sec-expand:hover {
  background: #dcfce7;
}

.sec-block-body {
  padding: 18px;
}

/* Seletor de Formato do Layout de Cards */
.layout-picker-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}

.layout-picker-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.layout-pill-btn {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.layout-pill-btn.active {
  background: var(--green);
  border-color: var(--green-dark);
  color: var(--green-dark);
  font-weight: 700;
}

/* Lista de Cards da Seção */
.cards-editor-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.card-item-editor {
  display: flex;
  gap: 14px;
  background: #fafaf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  align-items: flex-start;
}

.card-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 80px;
}

.card-thumb-box {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-color: #eee;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-thumb-empty {
  font-size: 24px;
  color: #a0a69a;
}

.btn-upload-thumb {
  width: 100%;
  padding: 5px 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.btn-upload-thumb:hover {
  background: var(--green-soft);
  border-color: var(--line-focus);
}

.card-inputs-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.card-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-item-del-btn {
  background: none;
  border: none;
  color: #999;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

.card-item-del-btn:hover {
  color: #dc2626;
  background: #fee2e2;
}

.btn-add-card-to-sec {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--line-focus);
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-card-to-sec:hover {
  background: #dff0d4;
  border-style: solid;
}

/* ==========================================================================
   ALINHAMENTO DE TEXTO & PROPORÇÕES DE CARROSSEL
   ========================================================================== */
.align-picker-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.btn-align-pill {
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-align-pill.active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.aspect-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #fafaf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.aspect-pill-btn {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.aspect-pill-btn.active {
  background: var(--green);
  border-color: var(--green-dark);
  color: var(--green-dark);
  font-weight: 700;
}

.btn-crop-existing {
  width: 100%;
  padding: 4px 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.btn-crop-existing:hover {
  background: var(--purple-soft);
  color: var(--purple);
  border-color: var(--purple);
}

/* ==========================================================================
   MODAL DE RECORTE CROPPER.JS COM GRADE 3X3
   ========================================================================== */
.modal-cropper-box {
  max-width: 640px !important;
  width: 95% !important;
  max-height: 90vh !important;
  display: flex;
  flex-direction: column;
  padding: 22px !important;
}

.cropper-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cropper-modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.cropper-modal-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.btn-close-modal {
  font-size: 18px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-close-modal:hover {
  background: #f1f3ed;
  color: var(--ink);
}

.cropper-stage-wrap {
  width: 100%;
  height: 380px;
  background: #0d0f0d;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cropper-stage-wrap img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.cropper-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.cropper-ratios-group, .cropper-tools-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cropper-bar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.btn-crop-ratio {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-crop-ratio.active {
  background: var(--green);
  border-color: var(--green-dark);
  color: var(--green-dark);
  font-weight: 700;
}

.btn-crop-tool {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.btn-crop-tool:hover {
  background: var(--green-soft);
  border-color: var(--line-focus);
}

.cropper-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   CARDS DE CAPA & AVATAR (UPLOAD + RECORTE)
   ========================================================================== */
.identity-media-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.identity-thumb-box {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-color: #f1f3ed;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.identity-thumb-box.cover-thumb {
  width: 80px;
  height: 52px;
}

.identity-thumb-box.avatar-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.identity-thumb-box.favicon-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.btn-use-avatar-fav {
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-use-avatar-fav:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.thumb-placeholder-icon {
  font-size: 20px;
  color: #9aa095;
}

/* ==========================================================================
   MODELOS PRONTOS (TEMPLATES DE NICHO) — ESTILOS VISUAIS
   ========================================================================== */
#templatesSection {
  padding-bottom: 80px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.template-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.template-card:hover {
  transform: translateY(-3px);
  border-color: #cbd3c5;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.template-cover-art {
  height: 145px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #1a1a1f;
}

.template-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.6) 100%);
}

.template-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 18, 24, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.template-avatar-badge {
  position: absolute;
  bottom: -22px;
  left: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 3;
}

.template-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.template-details {
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.template-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.template-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-features-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.feature-tag {
  font-size: 10.5px;
  font-weight: 700;
  background: #f1f4ed;
  color: #384630;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.template-bottom-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-primary-actions {
  display: flex;
  gap: 8px;
}

.template-admin-actions {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.btn-tpl-action {
  flex: 1;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-tpl-action:hover {
  background: #f1f4ed;
  border-color: #cbd3c5;
}

.btn-tpl-action.edit:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
  color: #7c3aed;
}

.btn-tpl-action.delete {
  color: #ef4444;
}

.btn-tpl-action.delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.template-custom-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(99, 102, 241, 0.9));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Modal de Pré-visualização do Template */
.modal-preview-box {
  max-width: 520px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.preview-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.preview-stage-wrap {
  flex: 1;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 8px 0;
  scrollbar-width: none;
}

.preview-stage-wrap::-webkit-scrollbar {
  display: none;
}

/* =============================================================================
   CRM DE PROSPECÇÃO COMERCIAL — KANBAN BOARD
   ============================================================================= */
.crm-stats-strip {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
}

.crm-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.crm-search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 440px;
  width: 100%;
}

.crm-search-box .search-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0.6;
}

.crm-search-box input {
  padding-left: 40px;
  width: 100%;
  border-radius: 9999px;
  background: #ffffff;
}

.crm-kanban-hint {
  font-size: 12px;
  color: var(--muted, #64748b);
  background: #ffffff;
  border: 1px dashed var(--line, #e2e8f0);
  padding: 8px 16px;
  border-radius: 9999px;
}

/* Kanban Board Container */
.crm-kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 24px;
  min-height: 580px;
  align-items: stretch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.crm-kanban-board::-webkit-scrollbar {
  height: 8px;
}

.crm-kanban-board::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Kanban Column */
.kanban-col {
  flex: 0 0 290px;
  width: 290px;
  background: #f8fafc;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 250px);
  min-height: 480px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.kanban-col-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 14px 14px 0 0;
  border-top: 3px solid transparent;
}

.kanban-col[data-status="novo"] .kanban-col-header { border-top-color: #3b82f6; }
.kanban-col[data-status="contatado"] .kanban-col-header { border-top-color: #8b5cf6; }
.kanban-col[data-status="negociando"] .kanban-col-header { border-top-color: #f59e0b; }
.kanban-col[data-status="fechado"] .kanban-col-header { border-top-color: #10b981; }
.kanban-col[data-status="perdido"] .kanban-col-header { border-top-color: #ef4444; }

.kanban-col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}

.kanban-count-pill {
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.btn-col-quick-add {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-col-quick-add:hover {
  background: #f1f5f9;
  border-color: var(--line);
  color: var(--ink);
}

/* Kanban Cards Body */
.kanban-cards-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  transition: all 0.2s ease;
  border-radius: 0 0 14px 14px;
}

.kanban-cards-container.drag-over {
  background: rgba(99, 102, 241, 0.08);
  outline: 2px dashed #6366f1;
  outline-offset: -3px;
}

.kanban-empty-drop {
  padding: 24px 12px;
  text-align: center;
  border: 1px dashed var(--line, #cbd5e1);
  border-radius: 10px;
  color: var(--muted, #94a3b8);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

/* Kanban Card */
.kanban-card {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.kanban-card.is-dragging {
  opacity: 0.35;
  border: 1.5px dashed #6366f1;
  transform: scale(0.97);
  cursor: grabbing;
}

/* Card Header */
.k-card-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.k-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #1e293b;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

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

.k-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px 0;
}

.k-cat {
  font-size: 10.5px;
  color: var(--muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Card Links Micro-buttons */
.k-links-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.btn-k-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-k-link:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.btn-k-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.btn-k-gmb {
  background: #1a73e8;
  color: #ffffff;
}

.btn-k-whatsapp {
  background: #10b981;
  color: #ffffff;
}

.btn-k-disabled {
  background: #f1f5f9;
  color: #94a3b8;
  pointer-events: none;
  opacity: 0.6;
}

/* Card Notes Preview */
.k-notes {
  background: #f8fafc;
  border-left: 2.5px solid #cbd5e1;
  padding: 5px 8px;
  border-radius: 0 6px 6px 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Card Footer */
.k-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  gap: 6px;
}

.k-date {
  font-size: 10px;
  color: var(--muted);
}

.k-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-k-action {
  background: none;
  border: 1px solid transparent;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s ease;
}

.btn-k-action:hover {
  background: #f1f5f9;
  border-color: var(--line);
  color: var(--ink);
}

.btn-k-action.del:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.btn-k-convert {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.25);
}

.btn-k-convert:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.35);
}

.btn-k-convert.converted {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  box-shadow: none;
  cursor: default;
}

@media (max-width: 900px) {
  .crm-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .crm-stats-strip {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MULTI-TENANT & GESTÃO DE ASSINANTES KIWIFY
   ========================================================================== */
.auth-tabs-bar {
  display: flex;
  gap: 6px;
  background: var(--line);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.btn-tab-auth {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  transition: all 0.15s ease;
}

.btn-tab-auth.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.badge-role-admin {
  background: rgba(138, 63, 252, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(138, 63, 252, 0.3);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge-role-subscriber {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge-status-active {
  background: #ecfdf5;
  color: #059669;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.badge-status-suspended {
  background: #fef2f2;
  color: #dc2626;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.subscribers-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  margin-top: 20px;
}

.subscribers-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.subscribers-table th {
  background: #fafaf8;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.subscribers-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

.subscribers-table tr:last-child td {
  border-bottom: none;
}

.subscribers-table tr:hover td {
  background: #fafaf8;
}

.btn-action-small {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-action-small:hover {
  background: var(--line);
}

/* ==========================================================================
   DEVFLUX BIO — ESTILOS DO DESIGN STUDIO (PRESETS, CORES & TIPOGRAFIA)
   ========================================================================== */

/* Grid de Presets Visuais */
.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.theme-preset-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.theme-preset-card:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.theme-preset-card.active {
  border-color: #6366f1;
  background: #f5f7ff;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.preset-color-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.preset-color-strip span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: inline-block;
  flex-shrink: 0;
}

.preset-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}

.theme-preset-card.theme-preset-custom {
  background: #fdfcff;
  border-color: #d8b4fe;
}

.theme-preset-card.theme-preset-custom:hover {
  border-color: #a855f7;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.theme-preset-card.theme-preset-custom.active {
  border-color: #8b5cf6;
  background: #f5f0ff;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.btn-apply-theme-colors {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: #6366f1;
  border: 1px solid #4f46e5;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
  transition: all 0.15s ease;
}

.btn-apply-theme-colors:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(99, 102, 241, 0.3);
}

.btn-apply-theme-colors:active {
  transform: translateY(0);
}

.btn-restore-theme-colors {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-restore-theme-colors:hover {
  color: var(--ink);
  border-color: #94a3b8;
  background: #f8fafc;
}

/* Grid de Seletores de Cores */
.color-pickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.color-item-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s ease;
}

.color-item-box:hover {
  border-color: #cbd5e1;
}

.color-item-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  user-select: none;
}

.color-circle-icon {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
  background: #6366f1;
}

.color-input-combo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-native-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.color-native-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-native-input::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}

.color-native-input::-moz-color-swatch {
  border: none;
  border-radius: 5px;
}

.color-hex-input {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid #dfe4d9;
  border-radius: 6px;
  background: #fdfdfc;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

.color-hex-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* Painel de Estilo Customizado de Seção */
.sec-custom-style-details {
  margin-top: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
}

.sec-custom-style-summary {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.sec-custom-style-summary:hover {
  color: #6366f1;
}

.sec-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

/* =============================================================================
   PASTAS DE USUÁRIOS & ISOLAMENTO DE PROJETOS (SUPER ADMIN)
   ============================================================================= */
.user-folders-strip {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.user-folder-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fdfdfd;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.user-folder-card:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  background: #fafafa;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}

.folder-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.user-folder-card:hover .folder-icon-box {
  transform: scale(1.08);
  background: #e0e7ff;
}

.folder-body {
  flex: 1;
  min-width: 0;
}

.folder-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.folder-user-email {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.folder-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.folder-count-pill {
  font-size: 11px;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.folder-open-arrow {
  font-size: 18px;
  color: #94a3b8;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}

.user-folder-card:hover .folder-open-arrow {
  color: #6366f1;
  transform: translateX(4px);
}

/* Banner de Pasta Ativa */
.active-folder-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.05);
}

.active-folder-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.active-folder-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #4f46e5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.active-folder-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-folder-subtitle {
  font-size: 12.5px;
  color: #4b5563;
  margin: 0;
}

.active-folder-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-back-folder {
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-back-folder:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* ==========================================================================
   DEVFLUX BIO — GESTÃO ADM (PASTAS DE USUÁRIOS & WORKSPACE INDIVIDUAL)
   ========================================================================== */

.adm-global-stats {
  margin-bottom: 24px;
}

.adm-user-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.adm-folder-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.adm-folder-card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.adm-folder-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-folder-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.adm-folder-meta {
  flex: 1;
  min-width: 0;
}

.adm-folder-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.adm-folder-email {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-folder-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.adm-folder-stat-col {
  text-align: center;
}

.adm-folder-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.adm-folder-stat-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.adm-folder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.adm-folder-badges-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-folder-open-btn {
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef2ff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #c7d2fe;
  transition: all 0.15s;
}

.adm-folder-card:hover .adm-folder-open-btn {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

/* User Workspace Banner */
.adm-workspace-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.adm-banner-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.adm-banner-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adm-banner-avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #6366f1;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.adm-banner-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adm-banner-email {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.adm-banner-metrics-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.adm-banner-metric-item {
  display: flex;
  flex-direction: column;
}

.adm-banner-metric-item[onclick] {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
  user-select: none;
}

.adm-banner-metric-item[onclick]:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.adm-banner-metric-item .val {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.adm-banner-metric-item .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Sub-tabs Navigation inside User Workspace */
.adm-subtabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.adm-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.adm-subtab-btn:hover {
  color: var(--ink);
}

.adm-subtab-btn.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

.adm-subtab-btn .count-pill {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
}

.adm-subtab-btn.active .count-pill {
  background: #eef2ff;
  color: #4338ca;
}

.adm-subtab-pane {
  display: none;
}

.adm-subtab-pane.active {
  display: block;
}

/* ==========================================================================
   RADAR DE PROSPECÇÃO INTELIGENTE COM IA — DESIGN SYSTEM IMPECCABLE
   Estilo dark premium / obsidian / slate com acentos esmeralda anti-slop
   ========================================================================== */

/* Navegação Lateral — Badge Novo */
.radar-pill-new {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
}

.radar-pill-soon {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
}

/* Header da Seção Radar */
.radar-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.radar-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.radar-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: radar-pulse-dot 1.8s infinite ease-in-out;
}

@keyframes radar-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.radar-main-title {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-display, sans-serif);
  color: var(--ink, #1e293b);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.radar-main-title span {
  color: #059669;
}

.radar-subtitle-text {
  font-size: 13.5px;
  color: var(--muted, #64748b);
  margin-top: 5px;
  max-width: 680px;
  line-height: 1.5;
}

.radar-btn-config-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #1e293b);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.radar-btn-config-key:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #059669;
  transform: translateY(-1px);
}

/* Card de Busca Superior */
.radar-search-card {
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 28px;
  box-shadow: 0 12px 36px rgba(11, 17, 32, 0.12);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.radar-search-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.radar-search-inputs-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr auto;
  gap: 14px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .radar-search-inputs-grid {
    grid-template-columns: 1fr;
  }
}

.radar-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radar-input-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.radar-input-wrapper {
  display: flex;
  align-items: center;
  background: #060911;
  border: 1px solid #334155;
  border-radius: 11px;
  padding: 0 14px;
  height: 48px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-input-wrapper:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  background: #080d18;
}

.radar-input-icon {
  font-size: 15px;
  margin-right: 10px;
  opacity: 0.85;
  user-select: none;
}

.radar-input-field {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #f8fafc !important;
  font-size: 13.5px;
  font-family: var(--font-main, sans-serif);
}

.radar-input-field::placeholder {
  color: #64748b;
}

.radar-action-group {
  display: flex;
}

.radar-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 26px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  white-space: nowrap;
  width: 100%;
}

.radar-btn-submit:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

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

.radar-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Pílulas de Nichos Rápidos */
.radar-quick-tags-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.radar-quick-tags-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.radar-pills-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-pill-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.radar-pill-chip:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
  transform: translateY(-1px);
}

.radar-pill-chip.active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Estado Inicial (Zero Resultados) */
.radar-empty-state-card {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.radar-empty-icon-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-sonar-rings {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-sonar-rings .ring {
  position: absolute;
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  animation: radar-sonar-expand 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.radar-sonar-rings .ring-1 { width: 36px; height: 36px; animation-delay: 0s; }
.radar-sonar-rings .ring-2 { width: 62px; height: 62px; animation-delay: 0.9s; }
.radar-sonar-rings .ring-3 { width: 88px; height: 88px; animation-delay: 1.8s; }

.radar-sonar-rings .center-dot {
  font-size: 28px;
  z-index: 2;
  position: relative;
}

@keyframes radar-sonar-expand {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.radar-empty-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink, #1e293b);
  font-family: var(--font-display, sans-serif);
  margin-top: 18px;
  margin-bottom: 8px;
}

.radar-empty-desc {
  font-size: 13.5px;
  color: var(--muted, #64748b);
  max-width: 620px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.radar-golden-criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.radar-criteria-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-criteria-box:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.criteria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.criteria-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge-red {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.badge-amber {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fef3c7;
}

.badge-emerald {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.criteria-icon {
  font-size: 18px;
}

.radar-criteria-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  margin-bottom: 6px;
}

.radar-criteria-box p {
  font-size: 12.5px;
  color: var(--muted, #64748b);
  line-height: 1.5;
  margin: 0;
}

/* Estado Carregando (Radar Scanner) */
.radar-loading-card {
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(11, 17, 32, 0.15);
  color: #f8fafc;
}

.radar-scanner-animation {
  margin: 0 auto 24px auto;
  width: 140px;
  height: 140px;
  position: relative;
}

.radar-dish {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(6, 9, 17, 0.95) 75%);
  border: 2px solid rgba(16, 185, 129, 0.45);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}

.radar-grid-rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: 
    radial-gradient(circle at center, transparent 30%, rgba(16, 185, 129, 0.15) 31%, transparent 32%),
    radial-gradient(circle at center, transparent 60%, rgba(16, 185, 129, 0.15) 61%, transparent 62%);
}

.radar-grid-rings::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, transparent 49.5%, rgba(16, 185, 129, 0.12) 50%, transparent 50.5%),
    linear-gradient(to bottom, transparent 49.5%, rgba(16, 185, 129, 0.12) 50%, transparent 50.5%);
}

.radar-sweep-beam {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(16, 185, 129, 0.6) 0deg, rgba(16, 185, 129, 0.08) 55deg, transparent 75deg);
  animation: radar-sweep 2.4s linear infinite;
  transform-origin: center;
}

@keyframes radar-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-blip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #10b981;
  animation: radar-blip-pulse 2s infinite ease-in-out;
}

.radar-blip.blip-1 { top: 32%; left: 68%; animation-delay: 0.3s; }
.radar-blip.blip-2 { top: 62%; left: 35%; animation-delay: 1.1s; }
.radar-blip.blip-3 { top: 25%; left: 30%; animation-delay: 1.7s; }

@keyframes radar-blip-pulse {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.4); }
}

.radar-loading-title {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-display, sans-serif);
  color: #ffffff;
  margin-bottom: 6px;
}

.radar-loading-dynamic-msg {
  font-size: 13.5px;
  color: #34d399;
  font-weight: 500;
  margin-bottom: 24px;
  min-height: 22px;
  transition: opacity 0.25s ease;
}

.radar-loading-bar-track {
  width: 260px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.radar-loading-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #10b981;
  border-radius: 999px;
  animation: radar-bar-progress 1.6s infinite ease-in-out;
}

@keyframes radar-bar-progress {
  0% { left: -50%; width: 30%; }
  50% { left: 25%; width: 50%; }
  100% { left: 110%; width: 40%; }
}

/* Barra de Ações Superior dos Resultados */
.radar-results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.radar-results-counter-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-counter-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.radar-counter-text {
  font-size: 13px;
  color: var(--muted, #64748b);
}

.radar-results-bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.radar-btn-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #1e293b);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-btn-select-all:hover {
  background: #edf2f7;
  border-color: #cbd5e1;
}

.radar-custom-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid #94a3b8;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: all 0.15s ease;
}

.radar-custom-checkbox.checked {
  background: #10b981;
  border-color: #10b981;
}

.radar-custom-checkbox.checked::after {
  content: '✓';
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.radar-btn-bulk-import {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.28);
}

.radar-btn-bulk-import:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(5, 150, 105, 0.38);
}

.radar-btn-bulk-import:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.radar-bulk-count {
  background: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 2px;
}

.radar-btn-export-csv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.radar-btn-export-csv:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Painel de Filtros e Ordenação */
.radar-filters-panel {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.radar-filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.radar-filter-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

.radar-filter-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.radar-filter-pill .pill-count {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

.radar-filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.radar-controls-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.radar-search-within-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
}

.radar-search-within-icon {
  position: absolute;
  left: 11px;
  font-size: 13px;
  color: #94a3b8;
  pointer-events: none;
}

.radar-search-within-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 32px 7px 32px;
  font-size: 12.5px;
  color: var(--ink, #1e293b);
  transition: all 0.18s ease;
}

.radar-search-within-input:focus {
  background: #ffffff;
  border-color: #059669;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.radar-search-clear-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.radar-search-clear-btn:hover {
  color: #475569;
}

.radar-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-sort-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.radar-sort-select {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #1e293b);
  cursor: pointer;
}

.radar-sort-select:focus {
  border-color: #059669;
  outline: none;
}

/* Badges e Tags de Telefone */
.radar-phone-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.radar-phone-tag.tag-whatsapp {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.radar-phone-tag.tag-landline {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Abas de Estilo de Pitch */
.radar-pitch-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 7px;
  align-self: flex-start;
}

.radar-pitch-tab {
  background: none;
  border: none;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.radar-pitch-tab:hover {
  color: #1e293b;
}

.radar-pitch-tab.active {
  background: #ffffff;
  color: #059669;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Grade de Leads e Cards Modernos */
.radar-leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 450px) {
  .radar-leads-grid {
    grid-template-columns: 1fr;
  }
}

.radar-lead-card {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
  position: relative;
}

.radar-lead-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.radar-lead-card.selected {
  border-color: #10b981;
  background: #fafdfb;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.radar-lead-card.imported {
  opacity: 0.85;
  background: #fbfcfb;
  border-color: #a7f3d0;
}

.radar-lead-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.radar-lead-checkbox-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  margin-top: 2px;
  display: flex;
}

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

.radar-lead-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.radar-lead-name {
  font-size: 16.5px;
  font-weight: 800;
  font-family: var(--font-display, sans-serif);
  color: var(--ink, #1e293b);
  line-height: 1.3;
  margin: 0;
  word-break: break-word;
}

.radar-lead-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.radar-lead-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted, #64748b);
}

.radar-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-meta-item a {
  color: inherit;
  text-decoration: none;
}

.radar-meta-item a:hover {
  color: #059669;
  text-decoration: underline;
}

/* Badges de Oportunidade */
.radar-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.radar-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-opp-no-site {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}

.badge-opp-whatsapp-site {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 700;
}

.badge-opp-rating {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
}

.badge-opp-stagnant {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-opp-generic {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

/* Box do Script Consultivo */
.radar-pitch-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #10b981;
  border-radius: 11px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radar-pitch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.radar-pitch-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 5px;
}

.radar-pitch-text {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.radar-pitch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.radar-btn-copy-script {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #1e293b);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-btn-copy-script:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.radar-btn-copy-script.copied {
  background: #ecfdf5;
  border-color: #10b981;
  color: #059669;
}

.radar-btn-whatsapp-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.radar-btn-whatsapp-call:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  color: #ffffff;
}

/* Card Ações Finais / Rodapé */
.radar-lead-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line, #e2e8f0);
  margin-top: auto;
}

.radar-btn-import-single {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-btn-import-single:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #10b981;
  color: #059669;
  transform: translateY(-1px);
}

.radar-btn-import-single.imported {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
  cursor: default;
  transform: none !important;
}

/* Modal de Chave do Gemini AI Studio */
.gemini-key-modal-card {
  max-width: 520px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  margin: auto;
  background: #ffffff;
}

.gemini-key-modal-header {
  background: #0b1120;
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gemini-key-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #34d399;
}

.gemini-key-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.gemini-key-modal-subtitle {
  margin: 3px 0 0 0;
  font-size: 11.5px;
  color: #94a3b8;
}

.gemini-key-btn-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gemini-key-btn-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gemini-key-modal-body {
  padding: 22px 24px;
}

.gemini-tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.gemini-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gemini-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.gemini-step-content strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink, #1e293b);
  margin-bottom: 2px;
}

.gemini-step-content p {
  font-size: 11.5px;
  color: var(--muted, #64748b);
  margin: 0;
  line-height: 1.4;
}

.gemini-step-content a {
  color: #059669;
  font-weight: 600;
  text-decoration: underline;
}

.gemini-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.gemini-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
}

.gemini-key-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gemini-key-input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: monospace;
  background: #ffffff;
  color: var(--ink, #1e293b);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.gemini-key-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.gemini-key-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 16px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.gemini-field-hint {
  font-size: 11px;
  color: var(--muted, #64748b);
  line-height: 1.4;
}

.gemini-alert-box {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.gemini-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.gemini-btn-save-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.gemini-btn-save-key:hover {
  background: #047857;
  transform: translateY(-1px);
}

/* Impeccable Toast Container */
.impeccable-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.impeccable-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  background: #0b1120;
  color: #ffffff;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.impeccable-toast.toast-hiding {
  animation: toast-out 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(14px) scale(0.95); }
}

.impeccable-toast-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.impeccable-toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.impeccable-toast-action-btn {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.impeccable-toast-action-btn:hover {
  background: #10b981;
  color: #ffffff;
}

.impeccable-toast-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.impeccable-toast-close:hover {
  color: #ffffff;
}

/* ==========================================================================
   ESTÚDIO DE PLACAS & ARTES GRÁFICAS 300 DPI (PRINT STUDIO)
   ========================================================================== */

.print-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.print-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.print-pill {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.print-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.print-pill.active {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
}

.print-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.print-template-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.print-template-card:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.print-card-preview-wrapper {
  background: radial-gradient(circle at 50% 30%, #1e293b, #0f172a);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 240px;
}

.print-card-mini-mockup {
  width: 140px;
  height: 210px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 0 1.5px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  overflow: hidden;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.print-template-card:hover .print-card-mini-mockup {
  transform: scale(1.03);
}

.print-card-base-stand {
  position: absolute;
  bottom: 14px;
  width: 160px;
  height: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.print-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.print-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.print-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.print-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.print-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.print-card-format-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.btn-customize-print {
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-customize-print:hover {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
}

/* Header do Editor */
.print-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Layout Split */
.print-editor-split {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.print-controls-panel {
  width: 400px;
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.print-control-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.print-control-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.print-control-header .p-icon {
  font-size: 16px;
}

.print-logo-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

/* Painel de Preview Realista */
.print-preview-panel {
  flex: 1;
  background: radial-gradient(circle at 50% 30%, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  position: sticky;
  top: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.print-acrylic-stand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.print-acrylic-glass {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease;
}

.print-canvas {
  width: 100%;
  max-width: 330px;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.print-acrylic-base {
  width: 112%;
  height: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-radius: 6px;
  margin-top: 3px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.print-info-badge-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.print-info-pill {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Dropzone de Arte Personalizada */
.custom-print-dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-print-dropzone:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}

@media (max-width: 960px) {
  .print-editor-split {
    flex-direction: column-reverse;
  }
  .print-controls-panel {
    width: 100%;
  }
  .print-preview-panel {
    width: 100%;
    min-height: 420px;
    position: static;
  }
}

/* Estúdio de Placas - Interatividade e Dimensões Livres */
.print-hero-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.02) 100%);
  border: 1.5px dashed #10b981;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transition: all 0.25s ease;
}

.print-hero-card:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
}

.print-preset-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.btn-print-preset {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-print-preset small {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 500;
}

.btn-print-preset:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-print-preset.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 0 0 1px #10b981;
}

.btn-print-preset.active small {
  color: #047857;
}

.print-custom-dim-row {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.print-custom-dim-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.print-custom-dim-field label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.print-custom-dim-field input {
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
}

.print-stage-viewport {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.print-interactive-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  border-radius: 8px;
}

.print-draggable-qr {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s ease;
  z-index: 10;
}

.print-draggable-qr:hover,
.print-draggable-qr.active {
  outline: 2px dashed #10b981;
  outline-offset: 3px;
}

.print-draggable-qr.dragging {
  cursor: grabbing !important;
  outline: 2px solid #059669;
  outline-offset: 3px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4) !important;
}

.print-qr-white-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: all 0.15s ease;
}

.btn-qr-style-pill {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-qr-style-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-qr-style-pill.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 0 0 1px #10b981;
}

.btn-qr-mini-preset {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.btn-qr-mini-preset:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.print-qr-transparent-card {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.qr-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  display: none;
}

.print-draggable-qr:hover .qr-handle,
.print-draggable-qr.active .qr-handle {
  display: block;
}

.qr-handle-se {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}

.qr-handle-sw {
  left: -6px;
  bottom: -6px;
  cursor: nesw-resize;
}

.qr-handle-ne {
  right: -6px;
  top: -6px;
  cursor: nesw-resize;
}

.qr-handle-nw {
  left: -6px;
  top: -6px;
  cursor: nwse-resize;
}

.qr-coord-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.print-draggable-qr.dragging .qr-coord-tooltip {
  opacity: 1;
}

/* Abas de Origem da Arte (Modelos Oficiais vs Upload Próprio) */
.print-art-tabs-bar {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 14px;
}

.btn-print-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-print-tab:hover {
  color: #1e293b;
}

.btn-print-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Filtros de Categoria dos Modelos Oficiais */
.print-official-filter-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.chip-print-filter {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.chip-print-filter:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.chip-print-filter.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* Grid de Modelos Oficiais */
.print-official-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.print-official-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.print-official-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.print-official-card.active {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px #10b981;
}

.print-official-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 6px;
  overflow: hidden;
  background: #0b0c0e;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.print-official-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.print-official-card:hover .print-official-thumb-wrap img {
  transform: scale(1.04);
}

.print-official-format-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.print-official-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

.print-official-card-badge {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* =============================================================================
   LAYOUT DO CABEÇALHO & CAPA (ESTILO LINKTREE)
   ============================================================================= */
.header-layout-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}
.header-layout-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.header-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.header-layout-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  user-select: none;
}
.header-layout-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.header-layout-card.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}
.header-layout-preview {
  width: 100%;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-layout-classic {
  background: #09090b;
}
.preview-layout-classic .mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border: 2px solid #ffffff;
}
.preview-layout-hero {
  background: linear-gradient(135deg, #312e81, #1e1b4b);
}
.preview-layout-hero .mini-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(99, 102, 241, 0.8) 100%);
}
.preview-layout-hero .mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #000;
  position: absolute;
  bottom: 2px;
  z-index: 2;
}
.preview-layout-banner {
  background: #09090b;
  display: flex;
  flex-direction: column;
}
.preview-layout-banner .mini-banner-top {
  width: 100%;
  height: 28px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}
.preview-layout-banner .mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #09090b;
  position: absolute;
  top: 17px;
  z-index: 2;
}
.preview-layout-video {
  background: linear-gradient(135deg, #059669, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-layout-video .mini-play-badge {
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.header-layout-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
}
.header-layout-sublabel {
  font-size: 9.5px;
  color: var(--muted);
}

/* ==========================================================================
   DASHBOARD ANALYTICS & LIXEIRA INTELIGENTE (EDITORIAL OPERATE)
   ========================================================================== */
.analytics-panel {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e3e6df);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 24px;
  max-width: 100%;
  overflow: hidden;
}
.analytics-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.analytics-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink, #242824);
  font-family: var(--font-display);
}
.analytics-panel-sub {
  margin: 2px 0 0 0;
  font-size: 12.5px;
  color: var(--muted, #797e77);
}
.analytics-panel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (min-width: 769px) {
  .analytics-panel-controls {
    width: auto;
    min-width: 240px;
  }
}
@media (max-width: 600px) {
  .analytics-panel {
    padding: 14px;
  }
}
.analytics-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.analytics-kpi-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.analytics-kpi-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
}
.analytics-kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}
.analytics-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}
.analytics-grid-stacked {
  grid-template-columns: 1fr;
}
.analytics-editor-panel {
  margin-bottom: 0;
  border: 1px solid #e2e8f0;
  padding: 18px;
}
.analytics-editor-panel .analytics-kpi-row {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.analytics-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}
.analytics-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #0f172a;
}
.analytics-box-hint {
  font-size: 11.5px;
  color: #64748b;
}
.analytics-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}
.analytics-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
}
.analytics-legend .dot-views {
  background: #0f172a;
}
.analytics-legend .dot-clicks {
  background: #10b981;
}
.analytics-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 164px;
  padding-top: 18px;
}
.analytics-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}
.analytics-day-pair {
  width: 100%;
  height: 122px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.analytics-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 14px;
}
.analytics-bar-num {
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
  font-variant-numeric: tabular-nums;
  margin-bottom: 3px;
  line-height: 1;
}
.analytics-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.analytics-bar.is-views {
  background: #0f172a;
}
.analytics-bar.is-clicks {
  background: #10b981;
}
.analytics-day-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.analytics-channels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.analytics-channel-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.analytics-channel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}
.analytics-channel-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #334155;
}
.analytics-channel-track {
  width: 100%;
  height: 7px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
.analytics-channel-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lixeira Inteligente */
.trash-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trash-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.trash-item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  flex: 1;
}
.trash-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.trash-type-badge.is-subscriber {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.trash-type-badge.is-client {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.trash-days-badge {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 6px;
}
.trash-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-restore-trash {
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-restore-trash:hover {
  background: #1e293b;
}
