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

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

/* ===== DESIGN TOKENS ===== */
:root {
  /* Backgrounds — pure black with purple tint */
  --bg-base:    #0A0A0F;
  --bg-surface: #12101A;
  --bg-card:    #1A1726;
  --bg-hover:   rgba(114,9,183,0.1);
  --bg-input:   #16131F;

  /* Borders */
  --border:     rgba(162,99,255,0.2);
  --border-md:  rgba(162,99,255,0.3);

  /* Brand gradient */
  --grad-start: #7209B7;
  --grad-end:   #A663FF;
  --grad:       linear-gradient(135deg, #7209B7, #A663FF);

  /* Accent solid */
  --accent:      #7209B7;
  --accent-glow: rgba(114,9,183,0.3);
  --highlight:   #A663FF;
  --cta:         #F72585;
  --blue-accent: #4CC9F0;

  /* Semantic */
  --success:     #06D6A0;
  --success-bg:  rgba(6,214,160,0.1);
  --danger:      #EF233C;
  --danger-bg:   rgba(239,35,60,0.12);
  --warning:     #FFD60A;
  --warning-bg:  rgba(255,214,10,0.1);
  --info:        #4CC9F0;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255,255,255,0.55);
  --text-muted:     rgba(255,255,255,0.3);

  /* Misc */
  --radius:     16px;
  --radius-sm:  10px;
  --radius-xs:  6px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.6);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.8);
  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.app { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 248px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  height: 100vh !important;
  z-index: 100;
  overflow: visible !important; /* allow pvp-toggle button at right:-20px to show */
}
/* Scrollbar on sidebar-nav, not the whole sidebar */
.sidebar-nav::-webkit-scrollbar { width: 5px !important; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(162,99,255,0.5) !important; border-radius: 4px !important; }
.sidebar-section-title { font-size: 10px !important; letter-spacing: 0.1em !important; color: rgba(255,255,255,0.2) !important; padding: 10px 16px 3px !important; text-transform: uppercase !important; font-weight: 600 !important; }
.nav-item { display: flex !important; align-items: center !important; gap: 10px !important; border-radius: 8px !important; margin: 1px 8px !important; padding: 7px 12px !important; transition: all 0.18s ease !important; text-decoration: none !important; color: rgba(255,255,255,0.7) !important; cursor: pointer !important; }
.nav-item:hover { background: rgba(162,99,255,0.1) !important; transform: translateX(2px) !important; color: #fff !important; }
.nav-item.active { background: rgba(162,99,255,0.18) !important; border-left: 3px solid #A663FF !important; color: #a78bfa !important; }

/* Gradient accent line top */
.sidebar::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--grad);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px;
  border-bottom: 1px solid var(--border);
}

.logo-icon {
  width: 38px; height: 38px;
  background: var(--grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px var(--accent-glow);
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.4px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 20px 24px 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important; /* required for flex child to scroll */
  scrollbar-width: thin !important;
  scrollbar-color: rgba(162,99,255,0.4) transparent !important;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 rgba(166,99,255,0.4), 0 0 8px rgba(166,99,255,0.1);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(114,9,183,0.2), rgba(166,99,255,0.12));
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(166,99,255,0.25);
  border-left: 3px solid #A663FF;
  box-shadow: 0 0 10px rgba(166,99,255,0.25), inset 0 0 16px rgba(166,99,255,0.05);
}

.nav-item.active .nav-icon-wrap {
  background: var(--grad);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.nav-icon-wrap {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: var(--bg-hover);
  flex-shrink: 0;
  transition: all var(--transition);
}

.nav-label { flex: 1; }

.badge-nav {
  background: var(--danger);
  color: #fff;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,83,112,0.5); }
  50% { box-shadow: 0 0 0 4px rgba(255,83,112,0); }
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0 !important;
}

/* sidebar-bottom (actual HTML class) must not scroll away */
.sidebar-bottom {
  flex-shrink: 0 !important;
}

/* ===== SIDEBAR USER ===== */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

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

.sidebar-user-nome {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-empresa {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 5px 8px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-logout:hover { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,83,112,0.3); }

/* ===== SIDEBAR BOTTOM ===== */
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.btn-indicar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 24px);
  margin: 0 12px 4px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(192,85,245,0.1));
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: var(--radius-sm);
  color: #b89eff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-indicar:hover {
  background: linear-gradient(135deg, rgba(124,92,252,0.25), rgba(192,85,245,0.18));
  border-color: rgba(124,92,252,0.4);
  color: #fff;
}

/* ===== FIN HERO ===== */
.fin-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.fin-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,92,252,0.04), transparent 60%);
  pointer-events: none;
}

.fin-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
}

.fin-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.fin-icon-wrap.green  { background: rgba(35,209,139,0.12); }
.fin-icon-wrap.red    { background: rgba(255,83,112,0.12); }
.fin-icon-wrap.purple { background: rgba(124,92,252,0.15); }
.fin-icon-wrap.yellow { background: rgba(255,184,108,0.12); }

.fin-info { display: flex; flex-direction: column; gap: 2px; }

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

.fin-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.fin-value.fin-red    { color: var(--danger); }
.fin-value.fin-green  { color: var(--success); }
.fin-value.fin-purple { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.fin-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.fin-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
  margin: 0 20px;
}

/* ===== DAILY PANEL ===== */
.daily-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.daily-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

.daily-title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.daily-date-input {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  padding: 5px 10px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  width: auto;
}
.daily-date-input:focus { border-color: var(--accent); }

.daily-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}

.daily-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.daily-metric-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.daily-metric-value.green { color: var(--success); }
.daily-metric-value.red   { color: var(--danger); }

.daily-metric-count {
  font-size: 11px;
  color: var(--text-muted);
}

.daily-vs {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 4px;
}

/* ===== ALERTAS ===== */
.alertas-container { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.alerta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid;
  animation: fadeIn 0.3s ease;
}
.alerta-success { background: rgba(35,209,139,0.08); border-color: var(--success); color: var(--text-primary); }
.alerta-warning { background: rgba(255,184,108,0.08); border-color: var(--warning); color: var(--text-primary); }
.alerta-danger  { background: rgba(255,83,112,0.08);  border-color: var(--danger);  color: var(--text-primary); }
.alerta-info    { background: rgba(124,92,252,0.08);  border-color: var(--accent);  color: var(--text-primary); }

/* ===== META MENSAL ===== */
.meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
}

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

.meta-left { display: flex; flex-direction: column; gap: 3px; }
.meta-label { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.meta-desc  { font-size: 12px; color: var(--text-muted); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

.meta-bar-track {
  height: 10px;
  background: var(--bg-hover);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.meta-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--grad);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
}

.meta-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.meta-pct-label { font-weight: 700; font-size: 13px; }

/* ===== FIN CHANGE (comparação mês anterior) ===== */
.fin-change {
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.fin-change.up   { color: var(--success); }
.fin-change.down { color: var(--danger); }
.fin-change.flat { color: var(--text-muted); }
.fin-rec {
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.9;
}
.fin-rec.green { color: #23d18b; }
.fin-rec.red   { color: #ff5370; }

/* ===== CHARTS ===== */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition);
}
.chart-card:hover { border-color: var(--border-md); }

.chart-wide { grid-column: 1 / -1; }

.chart-card-header { margin-bottom: 16px; }
.chart-card-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-wrap { position: relative; height: 200px; }
.chart-wide .chart-wrap { height: 220px; }

/* ===== HERO FATURAMENTO ===== */
.hero-faturamento {
  background: linear-gradient(135deg, rgba(124,92,252,0.14), rgba(192,85,245,0.08), rgba(35,209,139,0.05));
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.hero-faturamento::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(124,92,252,0.12), transparent 70%);
  pointer-events: none;
}

.hero-left { display: flex; flex-direction: column; gap: 6px; }

.hero-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-right { flex-shrink: 0; }

/* ===== MAIN ===== */
.main {
  margin-left: 248px;
  flex: 1;
  padding: 36px 40px;
  min-height: 100vh;
  background: var(--bg-base);
}

/* ===== PAGES ===== */
.page { display: none; animation: fadeIn 0.2s ease; }
.page.active { display: block; }

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

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  flex: 1;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.month-label {
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border-md);
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

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

.card-red {
  border-color: rgba(255,83,112,0.25);
  background: linear-gradient(135deg, rgba(255,83,112,0.06), var(--bg-card));
}
.card-red:hover { border-color: rgba(255,83,112,0.4); }

.card-green {
  border-color: rgba(35,209,139,0.2);
  background: linear-gradient(135deg, rgba(35,209,139,0.05), var(--bg-card));
}

.card-dark {
  background: linear-gradient(135deg, rgba(124,92,252,0.12), rgba(192,85,245,0.06));
  border-color: rgba(124,92,252,0.25);
}
.card-dark:hover { border-color: rgba(124,92,252,0.4); }

.card-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.card-icon-wrap.purple { background: linear-gradient(135deg, rgba(124,92,252,0.25), rgba(192,85,245,0.15)); }
.card-icon-wrap.red    { background: rgba(255,83,112,0.15); }
.card-icon-wrap.green  { background: rgba(35,209,139,0.12); }
.card-icon-wrap.yellow { background: rgba(255,184,108,0.12); }

.card-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.card-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; }
.card-red   .card-value { color: var(--danger); }
.card-dark  .card-value { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.card-green .card-value { color: var(--success); }

/* ===== DESTAQUE TOP VENDEDOR ===== */
.destaque-vendedor {
  background: linear-gradient(135deg, rgba(124,92,252,0.12), rgba(192,85,245,0.07), rgba(35,209,139,0.04));
  border: 1px solid rgba(124,92,252,0.22);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.destaque-vendedor::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(124,92,252,0.15), transparent 70%);
  pointer-events: none;
}

.destaque-icon {
  font-size: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(255,184,0,0.3));
}

.destaque-info { display: flex; flex-direction: column; gap: 3px; }
.destaque-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.destaque-nome {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.destaque-valor { font-size: 13px; color: var(--success); font-weight: 600; }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== TABLE ===== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table { width: 100%; border-collapse: collapse; }

.table thead {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-bottom: 1px solid var(--border-md);
}

.table th {
  padding: 13px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

.table td {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary);
  vertical-align: middle;
  font-size: 13.5px;
}

.table tbody tr {
  transition: background var(--transition);
}

.table tbody tr:hover {
  background: rgba(255,255,255,0.025);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ativo   { background: var(--success-bg); color: var(--success); border: 1px solid rgba(35,209,139,0.25); }
.badge-inativo { background: rgba(85,92,120,0.15); color: var(--text-muted); border: 1px solid rgba(85,92,120,0.2); }

.badge-pendente-red {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(255,83,112,0.25);
  animation: badgePulse 2.5s infinite;
}

.badge-funcao {
  background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(192,85,245,0.1));
  color: #b89eff;
  border: 1px solid rgba(124,92,252,0.2);
}

.badge-pago { background: rgba(6,214,160,0.15); color: #06d6a0; border: 1px solid rgba(6,214,160,0.3); }
.badge-parcial { background: rgba(255,193,7,0.15); color: #ffc107; border: 1px solid rgba(255,193,7,0.3); }
.badge-andamento { background: rgba(76,201,240,0.15); color: #4CC9F0; border: 1px solid rgba(76,201,240,0.3); }
.badge-cancelado { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.1); }

.vendas-filtros {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.vendas-filtros select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: var(--bg-card, #1A1726);
  color: var(--text-primary, #e8e4f0);
  font-size: 13px;
  cursor: pointer;
}
.fin-card-receber {
  background: rgba(255,152,0,0.08);
  border: 1px solid rgba(255,152,0,0.2);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.fin-icon-wrap.orange { background: rgba(255,152,0,0.15); color: #FF9800; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.1px;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,92,252,0.5);
  filter: brightness(1.08);
}
.btn-primary:active { transform: translateY(0); }

.btn-success {
  background: linear-gradient(135deg, #23d18b, #1aac70);
  color: #fff;
  box-shadow: 0 4px 14px rgba(35,209,139,0.3);
}
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(35,209,139,0.4); filter: brightness(1.06); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-md);
}
.btn-secondary:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-md); }

.btn-icon {
  padding: 7px 10px;
  font-size: 14px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}
.btn-icon:hover { background: rgba(255,255,255,0.07); color: var(--text-primary); }
.btn-icon-danger:hover { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,83,112,0.3); }

.btn-actions { display: flex; gap: 6px; align-items: center; }

/* ===== EMPTY STATE ===== */
.empty-state {
  padding: 56px 40px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 40px; display: block; margin-bottom: 14px; opacity: 0.5; }
.empty-state p { font-size: 14px; color: var(--text-secondary); }
.empty-state small { font-size: 12px; color: var(--text-muted); }

/* ===== PAINEL ===== */
.painel-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.badge-pendente {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(255,83,112,0.3);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  animation: pendentePulse 2s infinite;
}

@keyframes pendentePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,83,112,0.3); }
  50% { opacity: 0.85; box-shadow: 0 0 0 5px rgba(255,83,112,0); }
}

.painel-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.info-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  transition: border-color var(--transition);
}
.info-chip:hover { border-color: var(--border-md); }

.info-chip-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.info-chip span:last-child { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }

.painel-acoes { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,92,252,0.1);
  animation: modalSlide 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-sm { max-width: 420px; }

@keyframes modalSlide {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);     opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.modal-close {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,83,112,0.3); }

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: 0 0 20px 20px;
  flex-shrink: 0; /* sticky footer — don't shrink when modal body scrolls */
}

/* ===== FORMS ===== */
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.form-group.full { flex: 1 1 100%; }

label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, select, textarea {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 11px 14px;
  font-size: 14px;
  width: 100%;
  transition: all var(--transition);
  font-family: inherit;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(124,92,252,0.04);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.15);
}

input:hover, select:hover { border-color: var(--border-md); }

input::placeholder { color: var(--text-muted); }
select option { background: var(--bg-card); color: var(--text-primary); }

/* ===== COMISSÃO PREVIEW ===== */
.comissao-preview {
  background: linear-gradient(135deg, rgba(35,209,139,0.08), rgba(35,209,139,0.04));
  border: 1.5px solid rgba(35,209,139,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comissao-preview-label { color: var(--text-secondary); font-size: 13px; }
.comissao-preview-valor {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--success);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.comissao-preview-pct { color: var(--text-muted); font-size: 12px; }

/* ===== PAGAMENTO ===== */
.pagamento-info { margin-bottom: 14px; color: var(--text-secondary); font-size: 14px; }
.pagamento-info strong { color: var(--text-primary); }

/* ===== VALORES NA TABELA ===== */
.pendente-valor .badge-pendente-red { }
.zero-valor { color: var(--text-muted) !important; }

/* nome do colaborador como link */
.colab-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.colab-link:hover { color: #b89eff; }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ===== GLOW EFFECT on active card ===== */
.card-dark::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(124,92,252,0.2), transparent 70%);
  pointer-events: none;
}

/* ===== TOAST / NOTIFICATION placeholder ===== */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  animation: toastIn 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger);  }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main { padding: 28px 24px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { width: 68px; }
  .logo-text, .nav-label, .badge-nav, .sidebar-section-label, .sidebar-footer { display: none; }
  .sidebar-logo { justify-content: center; padding: 18px 0 16px; }
  .sidebar::before { height: 2px; }
  .nav-item { justify-content: center; padding: 10px; }
  .nav-icon-wrap { margin: 0; }
  .main { margin-left: 68px; max-width: calc(100vw - 68px); }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .form-row { flex-direction: column; }
  .cards-grid { grid-template-columns: 1fr; }
  .main { padding: 16px; }
  .page-header h1 { font-size: 20px; }
}


/* ===== FIX SECTION TOP SPACING ===== */
#page-meulink, #page-sejapro { padding-top: 0; }
#page-meulink > .page-header:first-child,
#page-sejapro > .page-header:first-child { margin-top: 0; }


/* ===== SEARCH ROW ===== */
.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search-row input {
  flex: 1;
  min-width: 200px;
}

/* ===== NEGÓCIOS ===== */
.negocios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.negocio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: border-color 0.2s, transform 0.15s;
}
.negocio-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.negocio-card-ativo { border-color: #23d18b !important; background: rgba(35,209,139,0.05) !important; }
.negocio-card .neg-icon { font-size: 32px; margin-bottom: 10px; }
.negocio-card .neg-nome { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.negocio-card .neg-seg  { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.negocio-card .neg-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.negocio-card .neg-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.neg-ativo-badge {
  position: absolute; top: 10px; right: 10px;
  background: #23d18b; color: #000; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 8px; letter-spacing: 0.5px;
}

/* ===== POTÊNCIANET ===== */
.net-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.net-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
}
.net-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.net-card .net-foto {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--border);
  margin-bottom: 12px; background: var(--bg-surface);
  font-size: 30px; display: flex; align-items: center; justify-content: center;
}
.net-card .net-nome { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.net-card .net-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; flex: 1; }
.net-tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.net-tag {
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: #2D2640; color: #FFFFFF; cursor: pointer;
  border: 1px solid #A663FF; transition: background 0.15s;
}
.net-tag:hover, .net-tag.active { background: #7209B7; color: #fff; border-color: #7209B7; }
.net-card .net-card-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 12px; }
.net-card .net-card-tag { padding: 2px 8px; border-radius: 12px; font-size: 10px; background: rgba(124,77,255,0.1); color: var(--accent); }
.net-card .net-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.net-meu-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.net-visivel-off { opacity: 0.55; }
/* Tags input */
.tags-input-wrap {
  display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px;
  padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card);
}
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #2D2640; color: #FFFFFF;
  padding: 2px 8px 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid #A663FF;
}
.tag-chip button { background: none; border: none; color: #FFFFFF; cursor: pointer; font-size: 14px; padding: 0; line-height: 1; }
/* Info banner */
.info-banner {
  background: rgba(255,184,108,0.1); border: 1px solid rgba(255,184,108,0.3);
  border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #ffb86c;
  margin-bottom: 16px;
}
.info-banner a { color: #ffb86c; font-weight: 700; }

/* ===== POTÊNCIANET GALERIA ===== */
.net-galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.net-galeria-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 2px solid var(--border);
}
.net-galeria-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-remover-galeria {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.75); color: #fff;
  border: none; cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
/* Directory card carousel */
.net-card-carousel {
  width: 100%; margin-bottom: 10px;
  border-radius: 8px; overflow: hidden;
  position: relative;
}
.net-card-carousel img {
  width: 100%; height: 110px; object-fit: cover; display: block;
}

/* ===== PROPOSTAS ===== */
.proposta-status { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.proposta-status.aguardando { background: rgba(255,184,108,0.15); color: var(--warn); }
.proposta-status.aceita { background: rgba(35,209,139,0.15); color: var(--success); }
.proposta-status.expirada { background: rgba(255,83,112,0.15); color: var(--danger); }
.servico-row { display: flex; gap: 8px; align-items: flex-start; padding: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.servico-row .servico-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.servico-row .servico-total { font-size: 13px; font-weight: 700; color: var(--success); white-space: nowrap; min-width: 70px; text-align: right; padding-top: 2px; }
.servico-row .btn-rm-servico { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 16px; padding: 2px 4px; }
.proposta-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; transition: border-color 0.2s; }
.proposta-card:hover { border-color: var(--accent-dim); }
.proposta-card .pc-info { flex: 1; }
.proposta-card .pc-titulo { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.proposta-card .pc-meta { font-size: 12px; color: var(--text-muted); }
.proposta-card .pc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.proposta-link-box { display: flex; gap: 8px; align-items: center; background: var(--bg-surface); border: 1px dashed var(--border); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--text-muted); margin-top: 6px; word-break: break-all; }

/* ===== COBRANÇA ===== */
.cobranca-history { margin-top: 10px; }
.cobranca-item { font-size: 12px; color: var(--text-muted); padding: 6px 10px; background: var(--bg-surface); border-radius: 8px; margin-bottom: 4px; }

/* ===== WHATSAPP FLOAT (dentro do sistema) ===== */
.wa-float-app { position:fixed; bottom:90px; right:24px; z-index:8800; display:inline-flex; align-items:center; gap:10px; background:#25d366; color:#fff; font-family:'Inter',sans-serif; font-size:14px; font-weight:600; padding:12px 20px 12px 14px; border-radius:50px; box-shadow:0 4px 24px rgba(37,211,102,0.4); transition:transform 0.2s,box-shadow 0.2s; text-decoration:none; width:auto; white-space:nowrap; }
.wa-float-app:hover { transform:translateY(-3px); box-shadow:0 8px 36px rgba(37,211,102,0.5); }
@media (max-width:768px) { .wa-float-app span { display:none; } .wa-float-app { padding:13px; border-radius:50%; bottom:90px; right:16px; } }

/* ===== TABS ===== */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
}
.tab-btn {
  background: none;
  border: none;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.tab-btn.active { background: var(--grad); color: #fff; }
.tab-badge {
  background: var(--success);
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  line-height: 14px;
}

/* ===== COLLABORATOR ACCESS CARD ===== */
.acesso-colab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 8px;
}
.acesso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.acesso-header h3 {
  font-size: 15px;
  font-weight: 700;
}
.acesso-perms {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 4px;
}
.perm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.perm-row:last-child { border-bottom: none; }

/* ===== NAV ICON COLORS PER PAGE ===== */
.nav-item[data-page="dashboard"]     .nav-icon-wrap { background: rgba(255,107,53,0.18); }
.nav-item[data-page="vendas"]        .nav-icon-wrap { background: rgba(6,214,160,0.18); }
.nav-item[data-page="custos"]        .nav-icon-wrap { background: rgba(239,35,60,0.18); }
.nav-item[data-page="clientes"]      .nav-icon-wrap { background: rgba(76,201,240,0.18); }
.nav-item[data-page="colaboradores"] .nav-icon-wrap { background: rgba(255,214,10,0.18); }
.nav-item[data-page="negocios"]      .nav-icon-wrap { background: rgba(100,181,246,0.18); }
.nav-item[data-page="potencianet"]   .nav-icon-wrap { background: rgba(35,209,139,0.18); }
.nav-item[data-page="meulink"]       .nav-icon-wrap { background: rgba(166,99,255,0.18); }
.nav-item[data-page="sejapro"]       .nav-icon-wrap { background: rgba(255,214,10,0.2); }
.nav-item[data-page="parceiro"]      .nav-icon-wrap { background: rgba(255,214,10,0.2); }
.nav-item[data-page="ajuda"]         .nav-icon-wrap { background: rgba(76,201,240,0.18); }
.nav-item[data-page="relatorio"]     .nav-icon-wrap { background: rgba(239,35,60,0.15); }
.nav-item[data-page="meu-plano"]     .nav-icon-wrap { background: rgba(166,99,255,0.2); }

/* Destaque dourado — Seja Pro e Seja Parceiro */
@keyframes goldGlow {
  0%, 100% { box-shadow: inset 3px 0 0 rgba(255,214,10,0.2), 0 0 8px rgba(255,214,10,0.15); }
  50%       { box-shadow: inset 3px 0 0 rgba(255,214,10,0.5), 0 0 16px rgba(255,214,10,0.35); }
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}
.nav-item[data-page="sejapro"] {
  animation: goldGlow 2.8s ease-in-out infinite;
}
.nav-item[data-page="parceiro"] {
  animation: goldGlow 2.4s ease-in-out infinite;
}
.nav-item[data-page="parceiro"] .nav-icon-wrap {
  animation: iconPulse 2.4s ease-in-out infinite;
}

/* ===== AFFILIATE / PARCEIRO PAGE ===== */
.parceiro-aviso {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,214,10,0.1); border: 1px solid rgba(255,214,10,0.35);
  border-radius: var(--radius-sm); padding: 14px 18px;
  color: rgba(255,214,10,0.95); font-size: 14px; line-height: 1.6;
  margin-bottom: 20px;
}
.parceiro-link-card { margin-bottom: 20px; }
.parceiro-link-display {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.parceiro-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.pm-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 16px; text-align: center;
}
.pm-icon { font-size: 24px; margin-bottom: 8px; }
.pm-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.pm-value { font-size: 22px; font-weight: 800; }
.pm-value.green { color: var(--success); }
.parceiro-tabs {
  display: flex; gap: 6px; border-bottom: 1px solid var(--border);
  padding-bottom: 12px; margin-bottom: 4px;
}
.parc-tab {
  padding: 8px 16px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
}
.parc-tab.active, .parc-tab:hover {
  background: rgba(166,99,255,0.15); border-color: rgba(166,99,255,0.4);
  color: var(--text-primary);
}
.parc-saldo-info {
  background: rgba(6,214,160,0.08); border: 1px solid rgba(6,214,160,0.2);
  border-radius: var(--radius-xs); padding: 12px 16px;
  font-size: 14px; color: var(--text-secondary);
}
.parc-aviso-saque {
  background: rgba(255,214,10,0.1); border: 1px solid rgba(255,214,10,0.3);
  border-radius: var(--radius-xs); padding: 12px 14px;
  font-size: 13px; color: rgba(255,214,10,0.9); line-height: 1.6;
  margin-bottom: 8px;
}
.parceiro-regras h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--highlight); margin: 18px 0 6px;
}
.parceiro-regras h4:first-child { margin-top: 0; }
.parceiro-regras-texto p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.parc-rede-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.parc-rede-item:last-child { border-bottom: none; }
.parc-rede-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 16px;
}
.parc-rede-nome { font-weight: 600; font-size: 14px; }
.parc-rede-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.parc-niveis-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.parc-nivel-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 14px 12px; text-align: center;
}
.parc-nivel-header { font-size: 11px; font-weight: 700; color: var(--highlight); text-transform: uppercase; margin-bottom: 6px; }
.parc-nivel-count  { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.parc-nivel-fat    { font-size: 11px; color: var(--text-muted); }
.parc-nivel-com    { font-size: 12px; color: var(--success); margin-top: 4px; }
.parc-total-rede {
  background: rgba(166,99,255,0.08); border: 1px solid rgba(166,99,255,0.2);
  border-radius: var(--radius-xs); padding: 12px 16px; font-size: 14px;
  color: var(--text-secondary);
}
@media (max-width: 600px) {
  .parceiro-metrics { grid-template-columns: 1fr 1fr; }
  .parc-niveis-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== RANKING ===== */
.ranking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ranking-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.ranking-title { font-size: 13px; font-weight: 700; color: var(--highlight); margin-bottom: 12px; }
.ranking-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; }
.ranking-row:last-child { border-bottom: none; }
.rank-medal { font-size: 15px; width: 22px; text-align: center; flex-shrink: 0; }
.rank-nome { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-qtd { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.rank-valor { font-size: 12px; font-weight: 700; color: var(--success); white-space: nowrap; }
.ranking-empty { font-size: 12px; color: var(--text-muted); padding: 12px 0; text-align: center; }

/* ===== FAQ ===== */
.faq-search-wrap { margin-bottom: 20px; }
.faq-categoria { margin-bottom: 20px; }
.faq-cat-titulo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--highlight); margin-bottom: 8px; padding: 0 4px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xs); margin-bottom: 6px; cursor: pointer; transition: border-color 0.18s; }
.faq-item:hover { border-color: rgba(166,99,255,0.4); }
.faq-pergunta { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 14px; font-weight: 500; }
.faq-arrow { color: var(--text-muted); font-size: 18px; flex-shrink: 0; transition: transform 0.18s; }
.faq-resposta { padding: 0 16px 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; border-top: 1px solid var(--border); margin-top: 0; }

/* ===== RELATÓRIO PAGE ===== */
.rel-preview-list { display: flex; flex-direction: column; gap: 10px; }
.rel-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--bg-surface); border-radius: var(--radius-xs); font-size: 13px; }

/* ===== MEU PLANO PAGE ===== */
.meu-plano-card { margin-bottom: 24px; }
.plano-expira-alerta { background: rgba(239,35,60,0.12); border: 1px solid rgba(239,35,60,0.35); border-radius: var(--radius-xs); padding: 12px 16px; color: #ff6b7a; font-size: 13px; margin: 12px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; animation: blink-border 1.5s ease-in-out infinite; }
@keyframes blink-border { 0%,100% { border-color: rgba(239,35,60,0.35); } 50% { border-color: rgba(239,35,60,0.8); } }
.plano-comparativo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.plano-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.plano-col.plano-pro { border-color: rgba(255,214,10,0.4); box-shadow: 0 0 20px rgba(255,214,10,0.1); }
.plano-col-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#FFD60A,#ff9500); color: #000; font-size: 9px; font-weight: 800; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px; white-space: nowrap; }
.plano-col-header { text-align: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.plano-col-nome { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.plano-col-preco { font-size: 24px; font-weight: 800; }
.plano-col.plano-pro .plano-col-preco { color: #FFD60A; }
.plano-features { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.feat-ok { font-size: 13px; color: var(--text-secondary); }
.feat-no { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
@media (max-width: 600px) { .plano-comparativo { grid-template-columns: 1fr; } .ranking-grid { grid-template-columns: 1fr; } }

/* ===== NOTIFICAÇÕES ===== */
.btn-notif { background: transparent; border: none; cursor: pointer; font-size: 16px; position: relative; padding: 4px 6px; color: var(--text-secondary); transition: color 0.18s; }
.btn-notif:hover { color: var(--text-primary); }
.notif-badge { position: absolute; top: -2px; right: -2px; background: var(--danger); color: #fff; font-size: 9px; font-weight: 700; border-radius: 10px; padding: 1px 4px; min-width: 14px; text-align: center; }
.notif-panel { position: fixed; bottom: 80px; left: 8px; width: 300px; max-height: 380px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1000; display: flex; flex-direction: column; overflow: hidden; }
.notif-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-lista { overflow-y: auto; flex: 1; }
.notif-item { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; transition: background 0.15s; }
.notif-item:hover { background: var(--bg-hover); }
.notif-item.lida { opacity: 0.5; }
.notif-texto { font-size: 13px; line-height: 1.5; }
.notif-data { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ===== ONBOARDING ===== */
.onboard-steps { display: flex; align-items: center; justify-content: center; gap: 0; padding: 16px 0 12px; }
.onboard-step { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-muted); transition: all 0.3s; }
.onboard-step.active { background: var(--grad); border-color: var(--highlight); color: #fff; }
.onboard-line { width: 40px; height: 2px; background: var(--border); }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.toggle-switch-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
}
.toggle-switch-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--grad); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
/* toggle-wrap: alias for toggle-switch (used in PotênciaNet modal) */
.toggle-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-wrap .toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-wrap .toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-wrap input:checked + .toggle-slider { background: var(--accent); }
.toggle-wrap input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ===== SEJA PRO PAGE ===== */
#page-sejapro { }
.sejapro-hero {
  background: linear-gradient(135deg, #0A0A0F 0%, #1A0A2E 50%, #0A0A0F 100%);
  border: 1px solid rgba(166,99,255,0.3);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.sejapro-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(114,9,183,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.sejapro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255,214,10,0.15), rgba(255,214,10,0.05));
  border: 1px solid rgba(255,214,10,0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #FFD60A;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.sejapro-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 12px;
}
.sejapro-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.sejapro-price {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
}
.sejapro-price-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.sejapro-price-value span { font-size: 22px; font-weight: 600; color: var(--text-secondary); }
.sejapro-price-period { font-size: 13px; color: var(--text-muted); }
.btn-sejapro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
}
.btn-sejapro:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }
.sejapro-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.sejapro-benefit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.sejapro-benefit:hover {
  border-color: rgba(166,99,255,0.4);
  transform: translateY(-2px);
}
.sejapro-benefit-icon {
  font-size: 28px;
  line-height: 1;
}
.sejapro-benefit-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.sejapro-benefit-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.sejapro-cta-bottom {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sejapro-cta-bottom p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}
@media (max-width: 640px) {
  .sejapro-title { font-size: 22px; }
  .sejapro-price-value { font-size: 38px; }
  .sejapro-hero { padding: 32px 20px; }
}

/* ─────────────────────────────── AGENDA ─────────────────────────────────── */
.agenda-filtros {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.agenda-filtro-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s;
}
.agenda-filtro-btn:hover, .agenda-filtro-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.agenda-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}
.agenda-item:hover { border-color: rgba(166,99,255,0.35); }
.agenda-item.atrasado { border-left: 3px solid var(--danger); background: rgba(255,77,79,0.04); }
.agenda-item.hoje     { border-left: 3px solid #FFD60A; background: rgba(255,214,10,0.04); }
.agenda-item-left { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.agenda-tipo-badge {
  background: rgba(166,99,255,0.12);
  color: var(--accent);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 2px;
}
.agenda-titulo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.agenda-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.agenda-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.agenda-badge.vermelho { background: rgba(255,77,79,0.15); color: var(--danger); }
.agenda-badge.amarelo  { background: rgba(255,214,10,0.15); color: #FFD60A; }
.agenda-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.agenda-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ─────────────────────────────── METAS ──────────────────────────────────── */
.metas-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 4px;
}
.meta-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.meta-card-item:hover { border-color: rgba(166,99,255,0.35); transform: translateY(-2px); }
.meta-card-icon { font-size: 28px; }
.meta-card-label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.meta-card-valores { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meta-card-real { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.meta-card-sep  { font-size: 12px; color: var(--text-muted); }
.meta-card-meta { font-size: 14px; color: var(--text-muted); }
.meta-prog-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.meta-prog-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.meta-prog-fill.verde   { background: linear-gradient(90deg, #06d6a0, #00b395); }
.meta-prog-fill.amarelo { background: linear-gradient(90deg, #FFD60A, #ff9500); }
.meta-prog-fill.vermelho{ background: linear-gradient(90deg, #ff4d4f, #c0392b); }
.meta-card-pct { font-size: 13px; font-weight: 700; }
.meta-card-pct.verde    { color: #06d6a0; }
.meta-card-pct.amarelo  { color: #FFD60A; }
.meta-card-pct.vermelho { color: var(--danger); }
.meta-card-msg { font-size: 11px; color: var(--text-muted); }

/* ─────────────────────────── MODELOS ───────────────────────────────────── */
.modelos-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.modelos-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s;
}
.modelos-tab:hover, .modelos-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mod-tab-content { }
.modelo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color 0.18s;
}
.modelo-card:hover { border-color: rgba(166,99,255,0.35); }
.modelo-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.modelo-cat {
  background: rgba(166,99,255,0.12);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.modelo-texto {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.modelo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─────────────────────── GERADOR DE IMAGENS IA (novo) ────────────────────── */
#ia-gerar-btn {
  width: 100%;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #7209B7, #A663FF);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  margin-top: 4px;
}
#ia-gerar-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(114,9,183,0.4); }
#ia-gerar-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ia-fmt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  flex: 1;
  min-width: 100px;
}
.ia-fmt strong { font-size: 13px; color: white; }
.ia-fmt small { font-size: 11px; opacity: 0.5; }
.ia-fmt.active { border-color: #A663FF; background: rgba(162,99,255,0.15); color: white; }
.ia-fmt:hover { border-color: rgba(162,99,255,0.4); }

.ia-ex {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(162,99,255,0.25);
  background: rgba(162,99,255,0.08);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  white-space: nowrap;
}
.ia-ex:hover { background: rgba(162,99,255,0.2); color: white; border-color: rgba(162,99,255,0.5); }

/* ────────────────────── CALCULADORA DE PRECIFICAÇÃO ──────────────────────── */
.calc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.calc-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s;
}
.calc-tab:hover, .calc-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) { .calc-grid { grid-template-columns: 1fr; } }
.prec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.prec-row:last-child { border-bottom: none; }
.prec-label { font-size: 13px; color: var(--text-secondary); }
.prec-val   { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.prec-row.green .prec-val { color: var(--success); }
.prec-row.red   .prec-val { color: var(--danger); }
.prec-destaque { background: rgba(166,99,255,0.06); border-radius: 8px; padding: 12px; border-bottom: none !important; }
.calc-rapida-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.calc-result {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(166,99,255,0.07);
  border-radius: 8px;
  border: 1px solid rgba(166,99,255,0.18);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ────────────────────── HISTÓRICO DE ATIVIDADES ─────────────────────────── */
.ativ-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: border-color 0.18s;
}
.ativ-item.ativ-venda   { border-left-color: var(--success); }
.ativ-item.ativ-del     { border-left-color: var(--danger); }
.ativ-item.ativ-cliente { border-left-color: #4CC9F0; }
.ativ-item.ativ-colab   { border-left-color: var(--accent); }
.ativ-item.ativ-custo   { border-left-color: #ff9500; }
.ativ-item.ativ-login   { border-left-color: var(--text-muted); }
.ativ-item.ativ-pro     { border-left-color: #FFD60A; }
.ativ-icon { font-size: 20px; margin-top: 1px; flex-shrink: 0; }
.ativ-corpo { flex: 1; }
.ativ-texto { font-size: 13px; color: var(--text-primary); margin-bottom: 3px; }
.ativ-data  { font-size: 11px; color: var(--text-muted); }

/* ────────────────────── ANOTAÇÕES RÁPIDAS ───────────────────────────────── */
.anot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}
.anot-card {
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}
.anot-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.anot-pin { position: absolute; top: 8px; right: 10px; font-size: 14px; }
.anot-card-titulo { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.anot-card-texto  { font-size: 12px; line-height: 1.55; flex: 1; white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.anot-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.anot-btn { background: none; border: none; cursor: pointer; font-size: 14px; padding: 2px 4px; opacity: 0.7; transition: opacity 0.18s; }
.anot-btn:hover { opacity: 1; }
.anot-cores { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.anot-cor {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.18s;
}
.anot-cor.active { border-color: #fff !important; }

/* ────────────────────── PROJETOS (TRELLO) ───────────────────────────────── */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.18s, transform 0.18s;
}
.proj-card:hover { border-color: rgba(166,99,255,0.35); transform: translateY(-2px); }
.proj-card-nome { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.proj-card-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.proj-card-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.proj-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
  min-height: 60vh;
}
.proj-coluna {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 260px;
  max-width: 280px;
  flex-shrink: 0;
}
.proj-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.proj-col-nome {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}
.proj-col-nome:focus { background: rgba(166,99,255,0.08); border-radius: 4px; padding: 2px 4px; }
.proj-col-count { font-size: 11px; background: rgba(255,255,255,0.08); border-radius: 10px; padding: 2px 7px; color: var(--text-muted); }
.proj-col-del { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 0 4px; line-height: 1; transition: color 0.15s; }
.proj-col-del:hover { color: var(--danger); }
.proj-cards-list { min-height: 40px; }
.proj-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.proj-card-item:hover { border-color: rgba(166,99,255,0.3); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.btn-excluir-tarefa {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255,77,79,0.15);
  color: #ff4d4f;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
  padding: 0;
  line-height: 1;
}
.proj-card-item:hover .btn-excluir-tarefa { opacity: 1; }
.btn-excluir-tarefa:hover { background: #ff4d4f !important; color: #fff !important; }
.proj-card-titulo { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.proj-card-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card-ghost { opacity: 0.4; background: rgba(166,99,255,0.1) !important; }
/* ── Column drag-and-drop ── */
.proj-col-drag { cursor: grab; color: rgba(255,255,255,0.25); padding: 0 4px; font-size: 16px; user-select: none; line-height: 1; transition: color .15s; }
.proj-col-drag:hover { color: rgba(166,99,255,0.7); }
.proj-col-drag:active { cursor: grabbing; }
.proj-coluna.col-ghost { opacity: 0.35; background: rgba(124,58,237,0.12) !important; border: 2px dashed rgba(124,58,237,0.4) !important; }
.proj-coluna.col-chosen { box-shadow: 0 8px 30px rgba(0,0,0,0.4); transform: rotate(1deg); }
/* mobile arrow buttons */
.proj-col-arrow { display: none; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: rgba(255,255,255,0.5); cursor: pointer; width: 24px; height: 24px; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.proj-col-arrow:hover { background: rgba(124,58,237,0.2); color: #a78bfa; }
@media (max-width: 768px) {
  .proj-col-drag { display: none; }
  .proj-col-arrow { display: flex; }
}
.proj-add-card {
  width: 100%;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 8px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.proj-add-card:hover { border-color: var(--accent); color: var(--accent); }
.card-proj-cores {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cp-cor {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
  border: 2px solid transparent;
}
.cp-cor:hover { transform: scale(1.2); }
.cp-cor.active { border-color: #fff !important; transform: scale(1.2); }

/* ═══════════════════════════════════════════════════════════════════════════
   MELHORIAS VISUAIS GERAIS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Card hover suave */
.card, .panel {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Botões primários com gradiente consistente */
.btn-primary, .btn-purple {
  background: linear-gradient(135deg, #7209B7, #A663FF) !important;
  border: none !important;
  transition: all 0.2s !important;
}
.btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(114,9,183,0.35) !important;
}
.btn-primary:disabled { transform: none !important; opacity: 0.6 !important; }

/* Inputs com foco mais visível */
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: #A663FF !important;
  box-shadow: 0 0 0 3px rgba(162,99,255,0.15) !important;
}

/* Toggle de plano anual */
.plano-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 50px;
  padding: 6px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.plano-toggle-btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.plano-toggle-btn.active {
  background: linear-gradient(135deg, #7209B7, #A663FF);
  color: white;
  box-shadow: 0 4px 12px rgba(114,9,183,0.35);
}
.plano-anual-badge {
  font-size: 10px;
  background: linear-gradient(135deg, #06d6a0, #0abf85);
  color: #000;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  display: block;
  margin-top: 2px;
}
.dash-cobr-alerta {
  background: rgba(239,35,60,0.08);
  border: 1px solid rgba(239,35,60,0.25);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.dash-cobr-alerta a {
  color: #ff6b6b;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.dash-cobr-alerta a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — Mobile First (Definitivo)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Global reset protections ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden !important; max-width: 100vw; }
.app { overflow-x: hidden; }
img, canvas, svg, iframe { max-width: 100% !important; height: auto; }

/* ── Mobile header (hidden on desktop) ── */
.mobile-header {
  display: none;
}
.mobile-logo {
  color: #A663FF;
  font-weight: 700;
  font-size: 18px;
}
.hamburger-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* legacy class aliases */
.mobile-header-btn { background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; padding: 8px; line-height: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.mobile-header-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: absolute; left: 50%; transform: translateX(-50%); }
.hamburger { display: none; }

/* ── Sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ── Desktop sidebar: collapsible ── */
.sidebar { transition: width 0.3s ease; position: relative; }
.sidebar.collapsed { width: 64px !important; }
.sidebar.collapsed .nav-label,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .sidebar-section-label,
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-user-nome,
.sidebar.collapsed .sidebar-user-empresa,
.sidebar.collapsed .btn-indicar span,
.sidebar.collapsed #colab-notice { display: none !important; }
.sidebar.collapsed .sidebar-logo { justify-content: center; padding: 18px 0 16px; }
.sidebar.collapsed .nav-item { justify-content: center !important; padding: 10px 0 !important; }
.sidebar.collapsed .nav-icon-wrap { margin: 0 auto !important; }
.sidebar.collapsed .btn-indicar { justify-content: center; padding: 10px 0; width: 100%; }
.sidebar.collapsed .sidebar-user { justify-content: center; padding: 10px 8px; }
.sidebar.collapsed + .main { margin-left: 64px !important; }

/* Tooltip on hover when collapsed */
.sidebar.collapsed .nav-item { position: relative; }
.sidebar.collapsed .nav-item:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 58px; top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.sidebar { overflow: visible !important; position: fixed !important; top: 0 !important; left: 0 !important; height: 100vh !important; z-index: 100 !important; transition: width 0.3s ease !important; }
.sidebar .sidebar-nav { overflow-y: auto !important; overflow-x: hidden !important; min-height: 0 !important; }
#pvp-toggle { display: flex !important; }
#pvp-toggle:hover { transform: scale(1.1) !important; box-shadow: 0 4px 20px rgba(114,9,183,0.7) !important; }
@media (max-width: 768px) { #pvp-toggle { display: none !important; } }

/* ── Table → cards (mobile class-based) ── */
.table-card-mobile table thead { display: table-header-group; }
.comissoes-cards-mobile { display: none; }

/* ── scroll-x-mobile helper ── */
.scroll-x-mobile {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ════════════════════════════════════════════
   @media 768px — Mobile breakpoint
   ════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Mobile header */
  .mobile-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 56px !important;
    background: var(--bg-surface) !important;
    z-index: 997 !important;
    padding: 0 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  }

  /* Sidebar: off-screen drawer */
  .sidebar {
    position: fixed !important;
    left: 0 !important; top: 0 !important;
    height: 100vh !important;
    width: 260px !important;
    transform: translateX(-260px) !important;
    transition: transform 0.3s ease !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 100px !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .sidebar.open, .sidebar.pvp-mobile-open { transform: translateX(0) !important; }

  /* Override collapsed on mobile — always full */
  .sidebar.collapsed { width: 260px !important; }
  .sidebar.collapsed .nav-label,
  .sidebar.collapsed .logo-text,
  .sidebar.collapsed .sidebar-section-label,
  .sidebar.collapsed .sidebar-user-info,
  .sidebar.collapsed .sidebar-user-nome,
  .sidebar.collapsed .sidebar-user-empresa { display: initial !important; }
  .sidebar.collapsed .nav-label { display: block !important; flex: 1; }
  .sidebar.collapsed .nav-item { justify-content: flex-start !important; padding: 11px 14px !important; }
  .sidebar.collapsed .sidebar-logo { justify-content: flex-start !important; padding: 22px 24px 20px !important; }
  .sidebar.collapsed + .main { margin-left: 0 !important; }

  /* Restore hidden labels (900px rule override) */
  .logo-text, .sidebar-section-label { display: block !important; }
  .nav-label { display: block !important; flex: 1; }
  .badge-nav { display: none !important; }
  .sidebar-logo { justify-content: flex-start !important; padding: 22px 24px 20px !important; }
  .nav-item { justify-content: flex-start !important; padding: 11px 14px !important; }
  .nav-icon-wrap { margin: 0 !important; }

  /* Main */
  .main {
    margin-left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 72px 16px 80px 16px !important;
    overflow-x: hidden !important;
  }
  .app { display: block !important; }

  /* ── Global rules ── */
  .page {
    padding: 16px !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  input, select, textarea {
    font-size: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  button { min-height: 44px !important; }
  .modal {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: 5vh auto !important;
  }
  .modal-overlay { padding: 16px !important; align-items: flex-start !important; overflow-y: auto !important; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; min-width: 120px; }
  p, span, label, td, th { word-break: break-word !important; overflow-wrap: break-word !important; max-width: 100% !important; }

  /* ── Form rows: stack ── */
  .form-row, .form-grid, .form-cols, .input-group-row {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .form-group { width: 100% !important; }
  .btn-group { flex-direction: column !important; gap: 8px !important; }
  .btn-group button, .btn-group a { width: 100% !important; }
  textarea { min-height: 80px; }

  /* ── Tables → cards ── */
  .table-container { overflow-x: visible !important; }
  .table thead { display: none !important; }
  .table tr {
    display: block !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    padding: 12px !important;
    background: var(--bg-card);
  }
  .table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    font-size: 14px !important;
    gap: 8px;
  }
  .table td:last-child { border-bottom: none !important; }
  .table td::before {
    content: attr(data-label) !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 12px !important;
    flex-shrink: 0;
    min-width: 80px;
  }
  /* Table-card-mobile class version */
  .table-card-mobile table thead { display: none !important; }
  .table-card-mobile table tbody tr {
    display: block !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    padding: 12px !important;
    background: var(--bg-card);
  }
  .table-card-mobile table tbody td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    font-size: 14px !important;
  }
  .table-card-mobile table tbody td:last-child { border-bottom: none !important; }
  .table-card-mobile table tbody td::before {
    content: attr(data-label) !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.5) !important;
    font-weight: 500 !important;
  }

  /* ── Dashboard ── */
  .fin-hero {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 16px !important;
  }
  .fin-card { padding: 12px !important; min-width: 0 !important; }
  .fin-divider { display: none !important; }
  .fin-value { font-size: 16px !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  .charts-grid { grid-template-columns: 1fr !important; }
  .chart-wide { grid-column: auto !important; }
  .chart-container, .chart-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  .hero-faturamento { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .hero-value { font-size: 26px !important; }
  .daily-panel { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .daily-metrics { gap: 10px; flex-wrap: wrap; }
  .daily-vs { display: none; }
  #btn-exportar-pdf { display: none !important; }

  /* ── Cards grid ── */
  .cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .card { padding: 16px 14px !important; }
  .card-value { font-size: 18px !important; }

  /* ── Page header ── */
  .page-header { gap: 8px; flex-wrap: wrap; margin-bottom: 20px !important; }
  .page-header h1 { font-size: 20px !important; width: 100%; }

  /* ── Layouts ── */
  .two-col { grid-template-columns: 1fr !important; }
  .meulink-layout, .biolink-layout, .editor-preview-wrapper { grid-template-columns: 1fr !important; display: flex !important; flex-direction: column !important; }
  #page-meulink .meulink-editor, #page-meulink .meulink-preview-wrap { width: 100% !important; max-width: 100% !important; }

  /* ── Section actions / tabs ── */
  .section-actions { flex-wrap: wrap; gap: 8px; }
  .tab-bar { flex-wrap: wrap; gap: 4px; }
  .tab-btn { flex: 1; min-width: 100px; font-size: 13px; }

  /* ── Parceiro ── */
  .parceiro-metrics { grid-template-columns: repeat(2, 1fr) !important; }
  .comissoes-table-desktop { display: none !important; }
  .comissoes-cards-mobile { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  .comissao-row-mobile {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }
  #page-parceiro .parceiro-link-display { flex-direction: column !important; gap: 8px !important; }
  #page-parceiro .parceiro-link-display input,
  #page-parceiro .parceiro-link-display button { width: 100% !important; }

  /* ── Metas ── */
  .metas-cards-grid { grid-template-columns: 1fr !important; }
  #page-metas .form-row { flex-direction: column !important; }
  #page-metas input { width: 100% !important; font-size: 16px !important; }
  #page-metas .meta-progress-card { width: 100% !important; padding: 16px !important; margin-bottom: 12px !important; }
  .metas-historico-wrap { overflow-x: auto !important; display: block !important; }

  /* ── Anotações ── */
  .anot-grid { grid-template-columns: 1fr !important; }

  /* ── Projetos Trello ── */
  .projetos-grid { grid-template-columns: 1fr !important; }
  .proj-board, .kanban-board {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    min-height: 50vh;
    gap: 12px !important;
    padding-bottom: 24px !important;
    scroll-snap-type: x mandatory !important;
  }
  .proj-coluna, .kanban-col {
    min-width: 260px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }

  /* ── Calculadora ── */
  .calc-grid { grid-template-columns: 1fr !important; }
  .calc-rapida-grid { display: flex !important; flex-direction: column !important; gap: 16px !important; }
  .calc-float-btn, .calc-float-panel, .calc-flutuante { display: none !important; }

  .ia-fmt { min-width: 80px !important; padding: 12px !important; }
  .ia-fmt strong { font-size: 12px !important; }
  #ia-gerar-btn { font-size: 16px !important; padding: 16px !important; }
  #ia-formatos { overflow-x: auto !important; flex-wrap: nowrap !important; -webkit-overflow-scrolling: touch !important; padding-bottom: 4px !important; }

  /* ── Modelos ── */
  .modelos-grid { grid-template-columns: 1fr !important; }

  /* ── Negocios / Vitrine ── */
  .negocios-grid { grid-template-columns: 1fr !important; }
  .net-dir-grid { grid-template-columns: 1fr !important; }

  /* ── Relatório ── */
  #page-relatorio .form-row { flex-direction: column !important; width: 100% !important; }
  #page-relatorio select, #page-relatorio input { width: 100% !important; font-size: 16px !important; }
  #page-relatorio .btn { width: 100% !important; }

  /* ── Notif panel ── */
  .notif-panel { width: calc(100vw - 32px) !important; right: 0 !important; left: 0 !important; margin: 0 16px; }

  /* ── Vendas filtros ── */
  .vendas-filtros { flex-direction: column; }
  .vendas-filtros select { width: 100%; }

  /* ── Meu Link ── */
  #page-meulink {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  #page-meulink * { max-width: 100% !important; box-sizing: border-box !important; }
  #page-meulink .biolink-layout,
  #page-meulink .biolink-container,
  #page-meulink .biolink-wrapper,
  #page-meulink .editor-preview,
  #page-meulink > div {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
  }
  #page-meulink .biolink-preview,
  #page-meulink .preview-panel,
  #page-meulink [class*="preview"] { display: none !important; }
  #page-meulink .biolink-editor,
  #page-meulink .editor-panel,
  #page-meulink [class*="editor"] {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
  }
  #page-meulink input,
  #page-meulink textarea,
  #page-meulink select,
  #page-meulink button {
    width: 100% !important;
    min-width: unset !important;
    font-size: 16px !important;
    min-height: 44px !important;
  }
  #page-meulink .tema-grid,
  #page-meulink .temas,
  #page-meulink [class*="tema"],
  #page-meulink .cores,
  #page-meulink [class*="cor-"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }



  /* ── Cobranças ── */
  #page-cobrancas .cobranca-summary,
  #page-cobrancas .cards-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  #page-cobrancas .cobranca-card { width: 100% !important; padding: 16px !important; }
  #page-cobrancas .cobranca-actions { flex-direction: column !important; gap: 8px !important; }
  #page-cobrancas .cobranca-actions button { width: 100% !important; }

  /* ── Seja Pro / Toggle Plano ── */
  .plano-toggle { flex-direction: row !important; }
  .sejapro-hero { padding: 24px 16px !important; }

  /* ── Seja Parceiro ── */
  #page-parceiro {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  #page-parceiro * { max-width: 100% !important; box-sizing: border-box !important; }
  #page-parceiro .parceiro-layout,
  #page-parceiro .afiliado-layout,
  #page-parceiro > div,
  #page-parceiro .card,
  #page-parceiro [class*="section"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  #page-parceiro table { width: 100% !important; display: block !important; overflow-x: auto !important; }
  #page-parceiro table thead { display: none !important; }
  #page-parceiro table tr {
    display: flex !important;
    flex-direction: column !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
    background: rgba(255,255,255,0.04) !important;
    border-radius: 10px !important;
  }
  #page-parceiro table td {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 3px 0 !important;
    font-size: 14px !important;
    text-align: left !important;
  }
  #page-parceiro input,
  #page-parceiro select,
  #page-parceiro button {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 15px !important;
  }
  #page-parceiro .metrics-cards,
  #page-parceiro .cards-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  /* ── CRM Kanban mobile ── */
  #page-crm .kanban-board {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  #page-crm .kanban-col {
    width: 100% !important;
    min-width: unset !important;
  }

  /* ── Global mobile fixes ── */
  html, body { overflow-x: hidden !important; }
  input, select, textarea { font-size: 16px !important; width: 100% !important; max-width: 100% !important; }
  button { min-height: 44px !important; }
  .modal {
    width: 95vw !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    margin: 6vh auto !important;
    border-radius: 16px !important;
  }
}

/* ════════════════════════════════════════════
   DESIGN QUALITY — Zeus-inspired
   ════════════════════════════════════════════ */

/* Cards com brilho nas bordas */
.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(114,9,183,0.15), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* Botões primários mais bonitos */
.btn-primary {
  background: linear-gradient(135deg, #7209B7, #A663FF) !important;
  box-shadow: 0 4px 16px rgba(114,9,183,0.3) !important;
  border: none !important;
  transition: all 0.2s !important;
}
.btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(114,9,183,0.45) !important;
}

/* Inputs mais elegantes */
input:focus, textarea:focus, select:focus {
  border-color: #A663FF !important;
  box-shadow: 0 0 0 3px rgba(162,99,255,0.12) !important;
  outline: none !important;
}

/* Sidebar mais elegante */
.sidebar {
  background: linear-gradient(180deg, #0D0B14 0%, #0A0910 100%) !important;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
}

/* Header da página */
.page-header h1 {
  background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(20px, 4vw, 30px) !important;
}

/* Scrollbar global elegante */
* { scrollbar-width: thin; scrollbar-color: rgba(162,99,255,0.3) transparent; }
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-thumb { background: rgba(162,99,255,0.4); border-radius: 4px; }

/* Animação de entrada nas páginas */
.page { animation: fadeInUp 0.25s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .page-header { padding: 16px 16px 8px !important; }
  .page-header h1 { font-size: 20px !important; }
}

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

/* ═══ CALCULADORA PRECIFICAÇÃO — MOBILE COLUMN ═══ */
@media (max-width: 768px) {
  #page-calculadora .calc-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }
  #page-calculadora .calc-grid > .card {
    width: 100% !important;
  }
  #page-calculadora .calc-grid .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
  }
  #page-calculadora input[type="number"] {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }
}

/* ═══ MEU LINK — MOBILE OVERFLOW FIX ═══ */
@media (max-width: 768px) {
  #page-meulink {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  #page-meulink > *,
  #page-meulink .biolink-layout,
  #page-meulink .biolink-editor,
  #page-meulink .biolink-form,
  #page-meulink .form-section,
  #page-meulink .config-section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  #page-meulink input,
  #page-meulink textarea,
  #page-meulink select,
  #page-meulink button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }
  #page-meulink .biolink-preview {
    display: none !important;
  }
  #page-meulink .tema-grid,
  #page-meulink .cor-grid,
  #page-meulink .btn-cores {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }
  #page-meulink .tema-btn,
  #page-meulink .cor-btn {
    flex: 1 !important;
    min-width: 80px !important;
    max-width: calc(33% - 8px) !important;
  }
}

/* ═══ HOME PAGE GROUPS — RESPONSIVE GRID ═══ */
.home-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
@media (max-width: 560px) {
  .home-modules-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 561px) and (max-width: 820px) {
  .home-modules-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ═══ SIDEBAR — SCROLL FIX DEFINITIVO ═══ */
.sidebar {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  overflow: visible !important; /* permite pvp-toggle ficar visível fora da borda */
}
.sidebar-nav {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(162,99,255,0.4) transparent !important;
  padding-bottom: 12px !important;
}
.sidebar-nav::-webkit-scrollbar { width: 3px !important; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(162,99,255,0.4) !important;
  border-radius: 3px !important;
}
.sidebar-bottom {
  flex-shrink: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  background: var(--bg-surface) !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ═══ SIDEBAR TOGGLE BUTTON — REPOSITIONED ═══ */
#pvp-toggle {
  position: absolute !important;
  top: 20px !important;
  right: -20px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #7209B7, #A663FF) !important;
  border: 3px solid #08060F !important;
  color: white !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 300 !important;
  box-shadow: 0 2px 16px rgba(114,9,183,0.6) !important;
  transition: all 0.2s !important;
  flex-shrink: 0 !important;
}
#pvp-toggle:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 4px 24px rgba(114,9,183,0.8) !important;
}
@media (max-width: 768px) {
  #pvp-toggle { display: none !important; }
}

/* ═══ CRM PIPELINE BARRA ═══ */
.crm-pipeline-bar { display: flex; gap: 4px; height: 10px; border-radius: 8px; overflow: hidden; margin: 10px 0; }
.crm-pipeline-bar-seg { height: 100%; transition: flex 0.4s ease; }

/* ═══ CRM KANBAN DRAG-AND-DROP ═══ */
.crm-card-sortable-ghost {
  opacity: 0.35;
  background: rgba(162, 99, 255, 0.15) !important;
  border: 2px dashed rgba(162, 99, 255, 0.5) !important;
  border-radius: 10px;
}
.crm-card-sortable-chosen {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: rotate(1deg);
}
.crm-cards-list {
  min-height: 50px;
}

/* ═══ MODAL TAREFA — STICKY FOOTER ═══ */
#modal-card .modal {
  display: flex !important;
  flex-direction: column !important;
  max-height: 92vh !important;
}
#modal-card .modal-body {
  flex: 1 !important;
  overflow-y: auto !important;
  min-height: 0 !important;
}
#modal-card .modal-footer {
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
}

/* ═══ CALCULADORA PRECIFICAÇÃO MOBILE ═══ */
@media (max-width: 768px) {
  #page-calculadora .calc-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  #page-calculadora .calc-grid .card {
    width: 100% !important;
  }
  #page-calculadora .form-group {
    width: 100% !important;
  }
  #page-calculadora input {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }
  .calc-rapida-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* ═══ MELHORIAS VISUAIS GLOBAIS ═══ */
.card, .panel {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: #A663FF !important;
  box-shadow: 0 0 0 3px rgba(162,99,255,0.15) !important;
}

/* CRM kanban scroll no mobile */
@media (max-width: 768px) {
  #crm-kanban {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 20px !important;
  }
  .kanban-col.crm-etapa-col {
    min-width: 220px !important;
    max-width: 220px !important;
  }
  #crm-pipeline-valor { font-size: 13px; }
}

/* --- VIDEO EXEMPLOS VIRAIS --- */
.video-ex-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 10px !important;
  color: rgba(255,255,255,0.7) !important;
  font-size: 13px !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.2s !important;
  width: 100% !important;
}
.video-ex-btn:hover {
  background: rgba(114,9,183,0.15) !important;
  border-color: rgba(162,99,255,0.3) !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

/* --- IA CHAT TYPING ANIMATION --- */
@keyframes iaLoad {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

/* IA chat wrap scrollbar */
#ia-chat-wrap::-webkit-scrollbar { width: 4px; }
#ia-chat-wrap::-webkit-scrollbar-thumb { background: rgba(162,99,255,0.3); border-radius: 4px; }

/* IA preview img */
#ia-img-preview { display: flex !important; }
#ia-img-preview[style*=display:none] { display: none !important; }

/* Video empresa input */
#video-empresa-nome:focus {
  border-color: rgba(162,99,255,0.6) !important;
  background: rgba(162,99,255,0.08) !important;
  box-shadow: 0 0 0 3px rgba(162,99,255,0.12) !important;
}

@media (max-width: 768px) {
  #video-exemplos {
    grid-template-columns: 1fr !important;
  }
  .video-ex-btn { font-size: 12px !important; }
}

/* ═══ SIDEBAR COLLAPSIBLE GROUPS ═══ */
.sidebar-group-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  cursor: pointer;
}
.sidebar-group-toggle:hover {
  color: rgba(255,255,255,0.8) !important;
}
/* Conteúdo dos grupos colapsáveis — max-height para animação suave */
.sidebar-group-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.sidebar-group-content.fechado,
.sidebar-group-content.collapsed {
  max-height: 0 !important;
}
/* Quando sidebar está minimizado, sempre mostra conteúdo dos grupos (ícones visíveis) */
.pvp-sidebar-min .sidebar-group-content {
  max-height: 2000px !important;
  overflow: visible !important;
}
/* Grupos colapsáveis (nova abordagem inline) — garantia de itens visíveis */
#grupo-ia, #grupo-ferramentas, #grupo-crescimento {
  display: block !important;
}
#grupo-ia > .nav-item,
#grupo-ferramentas > .nav-item,
#grupo-crescimento > .nav-item {
  display: flex !important;
}

/* ═══ PROFILE COMPLETENESS BAR ═══ */
#home-perfil {
  transition: all 0.3s ease;
}

/* ═══ ONBOARDING HOME BLOCK ═══ */
#home-onboarding {
  transition: all 0.3s ease;
}

/* ═══ MODAL UPGRADE ═══ */
#modal-upgrade .modal {
  max-width: 440px;
}

/* ═══ SUPPORT BUTTON FIX ═══ */
/* Ensure floating help button doesn't conflict with mobile nav */
#btn-ajuda-flutuante {
  bottom: 160px !important;
  z-index: 8000 !important;
}
#ajuda-flutuante-panel {
  bottom: 220px !important;
  z-index: 8001 !important;
}
/* Fix any dynamically injected chat/support widgets */
.zchat-launcher,
.intercom-launcher,
[id*="support-btn"],
[id*="chat-btn"],
body > a[href*="wa.me"],
body > a[href*="whatsapp"],
body > div[class*="whatsapp-float"],
body > div[id*="whatsapp-float"],
body > div[class*="support"],
body > div[id*="support"],
.zsiq_floatmain,
#zsiq_float {
  bottom: 80px !important;
  z-index: 990 !important;
  right: 20px !important;
}

/* IA nav items glow */
.nav-item-ia { border-left: 2px solid rgba(114,9,183,0.0) !important; transition: all 0.18s ease !important; }
.nav-item-ia:hover { background: rgba(114,9,183,0.18) !important; border-left: 2px solid rgba(166,99,255,0.6) !important; color: #c4b5fd !important; }
.nav-item-ia.active { background: linear-gradient(135deg,rgba(114,9,183,0.25),rgba(166,99,255,0.15)) !important; border-left: 3px solid #A663FF !important; box-shadow: 0 0 14px rgba(114,9,183,0.3) !important; }

/* CRM Kanban — arrastar colunas */
.crm-col-ghost {
  opacity: 0.4;
  background: rgba(124,58,237,0.15) !important;
  border: 2px dashed rgba(124,58,237,0.5) !important;
}
.crm-col-chosen {
  box-shadow: 0 8px 32px rgba(124,58,237,0.3) !important;
}
.crm-coluna-header {
  cursor: grab;
  user-select: none;
}
.crm-coluna-header:active {
  cursor: grabbing;
}

/* Badge de créditos baixos */
#badge-creditos {
  font-size: 9px !important;
  padding: 1px 5px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  #home-perfil { padding: 12px 14px 0 !important; }
  #home-onboarding { padding: 0 14px !important; }
}

/* ── Sidebar Minimizado — esconde TUDO exceto ícones ── */
.sidebar.pvp-sidebar-min { width: 70px !important; overflow: hidden !important; }
.sidebar.pvp-sidebar-min .nav-label,
.sidebar.pvp-sidebar-min .sidebar-section-title,
.sidebar.pvp-sidebar-min .sidebar-brand-text,
.sidebar.pvp-sidebar-min .sidebar-creditos,
.sidebar.pvp-sidebar-min .sidebar-negocio,
.sidebar.pvp-sidebar-min .sidebar-group-toggle span:first-child,
.sidebar.pvp-sidebar-min .sidebar-group-toggle,
.sidebar.pvp-sidebar-min .badge-nav,
.sidebar.pvp-sidebar-min .nav-label-text,
.sidebar.pvp-sidebar-min .sidebar-user-nome,
.sidebar.pvp-sidebar-min .sidebar-user-empresa,
.sidebar.pvp-sidebar-min .sidebar-user-info,
.sidebar.pvp-sidebar-min #sidebar-grp-arrow-ia,
.sidebar.pvp-sidebar-min #sidebar-grp-arrow-gestao,
.sidebar.pvp-sidebar-min #sidebar-grp-arrow-ferramentas,
.sidebar.pvp-sidebar-min #sidebar-grp-arrow-crescimento,
.sidebar.pvp-sidebar-min #sidebar-grp-arrow-conta { display: none !important; }
.sidebar.pvp-sidebar-min .nav-item { justify-content: center !important; padding: 12px 0 !important; }
.sidebar.pvp-sidebar-min .nav-icon-wrap { margin: 0 auto !important; }
.sidebar.pvp-sidebar-min .sidebar-logo { justify-content: center !important; padding: 16px 0 !important; }
.sidebar.pvp-sidebar-min .sidebar-logo img { max-width: 36px !important; }
.sidebar.pvp-sidebar-min + .main { margin-left: 70px !important; }

/* ── Fix: sidebar min — forçar esconder TODOS os textos restantes ── */
.sidebar.pvp-sidebar-min * { overflow: hidden !important; }
.sidebar.pvp-sidebar-min .sidebar-logo span,
.sidebar.pvp-sidebar-min .sidebar-logo div:not(:first-child),
.sidebar.pvp-sidebar-min p,
.sidebar.pvp-sidebar-min .sidebar-footer,
.sidebar.pvp-sidebar-min .badge-nav,
.sidebar.pvp-sidebar-min [class*='brand'],
.sidebar.pvp-sidebar-min [class*='credito'],
.sidebar.pvp-sidebar-min [class*='negocio'] { display: none !important; visibility: hidden !important; }
.sidebar.pvp-sidebar-min .nav-item .badge-nav,
.sidebar.pvp-sidebar-min .nav-item span:not(.nav-icon-wrap):not([class*='icon']) { display: none !important; }
/* removed duplicate - using 70px from line 3515 */
/* removed duplicate */
.sidebar.pvp-sidebar-min .nav-item { padding: 10px 0 !important; width: 70px !important; }

/* ── Fix final: esconder textos restantes no sidebar minimizado ── */
.sidebar.pvp-sidebar-min .sidebar-logo > span,
.sidebar.pvp-sidebar-min .sidebar-logo > div { display: none !important; }
.sidebar.pvp-sidebar-min .sidebar-logo { padding: 12px 0 !important; justify-content: center !important; }
.sidebar.pvp-sidebar-min .sidebar-logo img,
.sidebar.pvp-sidebar-min .sidebar-logo svg { display: block !important; max-width: 32px !important; margin: 0 auto !important; }
.sidebar.pvp-sidebar-min .nav-item .badge-nav,
.sidebar.pvp-sidebar-min .nav-item > span:not(.nav-icon-wrap) { display: none !important; }
.sidebar.pvp-sidebar-min .sidebar-nav { overflow-x: hidden !important; }

/* ── Fix: esconder sidebar-bottom e creditos no minimizado ── */
.sidebar.pvp-sidebar-min .sidebar-bottom,
.sidebar.pvp-sidebar-min .sidebar-bottom * { display: none !important; }
