/* ============================================
   BzzViral - Dark Neon Glow Design System (Gemini Inspired)
   Ambiente de Testes: public/testes/styles.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Surface & Dark Backgrounds */
  --bg-main: #0b0914;
  --bg-surface: #131024;
  --bg-surface-elevated: #1c1836;
  --bg-glass: rgba(19, 16, 36, 0.75);
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --bg-hover: rgba(255, 255, 255, 0.08);

  /* BzzViral Brand Colors & Neon Glows */
  --primary-brand: #ff5500;
  --primary-brand-hover: #ff6b1a;
  --primary-brand-light: rgba(255, 85, 0, 0.15);
  --primary-brand-border: rgba(255, 85, 0, 0.4);
  --brand-gradient: linear-gradient(135deg, #ff5500 0%, #ff7733 100%);
  --brand-purple-gradient: linear-gradient(135deg, #7c3aed 0%, #ff5500 100%);

  --brand-glow: 0 0 25px rgba(255, 85, 0, 0.4);
  --neon-orange-border: 0 0 15px rgba(255, 85, 0, 0.35), inset 0 0 10px rgba(255, 85, 0, 0.12);
  --neon-purple-border: 0 0 15px rgba(124, 58, 237, 0.35);
  --neon-green-border: 0 0 15px rgba(37, 211, 102, 0.4);

  /* Compatibility Aliases */
  --primary-blue: #ff5500;
  --primary-blue-hover: #ff6b1a;
  --primary-blue-light: rgba(255, 85, 0, 0.15);

  /* Status Colors */
  --emerald: #10b981;
  --emerald-light: rgba(16, 185, 129, 0.15);
  --emerald-border: rgba(16, 185, 129, 0.4);

  --amber: #f59e0b;
  --amber-light: rgba(245, 158, 11, 0.15);
  --amber-border: rgba(245, 158, 11, 0.4);

  --red: #ef4444;
  --red-light: rgba(239, 68, 68, 0.15);
  --red-border: rgba(239, 68, 68, 0.4);

  --purple: #8b5cf6;
  --purple-light: rgba(139, 92, 246, 0.15);
  --purple-border: rgba(139, 92, 246, 0.4);

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: #a19db9;
  --text-muted: #6b6684;
  --text-on-primary: #ffffff;

  /* Borders & Elevation Shadows */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-orange: 0 0 25px rgba(255, 85, 0, 0.45);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Light (Branco / Modo Claro) Override */
[data-theme="light"] {
  --bg-main: #f4f6f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-on-primary: #ffffff;

  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  --primary-brand-light: rgba(255, 85, 0, 0.1);
  --primary-brand-border: rgba(255, 85, 0, 0.3);
}

[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, rgba(244, 246, 249, 0) 70%);
}

[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(255, 85, 0, 0.06) 0%, rgba(244, 246, 249, 0) 70%);
}


/* Brand Logo Image Styling */
.brand-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  transition: var(--transition);
  filter: drop-shadow(0 0 12px rgba(255, 85, 0, 0.35));
}

.brand-logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 20px rgba(255, 85, 0, 0.6));
}

.brand-logo-img.hero-logo {
  height: 64px;
}

.brand-logo-img.lg {
  height: 110px;
}

.brand-logo-img.sm {
  height: 44px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Ambient Radial Glowing Meshes */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, rgba(11, 9, 20, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 100px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 85, 0, 0.15) 0%, rgba(11, 9, 20, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* ============================================
   B2B HOMEPAGE (index.html) STYLES
   ============================================ */

.b2b-header {
  height: 88px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

.b2b-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.b2b-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.b2b-nav {
  display: flex;
  gap: 32px;
}

.b2b-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.b2b-nav a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.b2b-header-actions {
  display: flex;
  gap: 12px;
}

/* B2B Hero 2-Column Layout (Gemini Inspired) */
.b2b-hero {
  padding: 150px 0 90px 0;
  position: relative;
}

.b2b-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.b2b-hero-left {
  text-align: left;
}

.b2b-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-brand-light);
  color: var(--primary-brand);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid var(--primary-brand-border);
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.2);
}

.b2b-hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.b2b-hero-title .text-blue,
.glow-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 85, 0, 0.35));
}

.b2b-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 560px;
}

.b2b-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Right Mockup Window Card (Gemini Inspired) */
.hero-mockup-window {
  background: rgba(19, 16, 36, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 58, 237, 0.15);
  position: relative;
}

.mockup-header-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.neon-stat-card {
  background: rgba(28, 24, 54, 0.7);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.neon-stat-card.orange-glow {
  border-color: rgba(255, 85, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.25);
}

.neon-stat-card.purple-glow {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

.neon-stat-card.green-glow {
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.25);
}

.neon-stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.neon-stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
}

.mockup-chart-card {
  background: rgba(28, 24, 54, 0.7);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.chart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.chart-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Stats Banner */
.b2b-stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.b2b-stats-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  box-shadow: var(--brand-glow);
}

.b2b-stat-item {
  text-align: center;
}

.b2b-stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary-brand);
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px rgba(255, 85, 0, 0.35);
}

.b2b-stat-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Sections */
.b2b-section {
  padding: 90px 0;
}

.b2b-section.bg-subtle {
  background-color: rgba(19, 16, 36, 0.4);
}

.b2b-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px auto;
}

.b2b-section-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.b2b-section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.b2b-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.b2b-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(255, 85, 0, 0.15);
  border-color: var(--primary-brand-border);
}

.b2b-card-num {
  width: 48px;
  height: 48px;
  background: var(--primary-brand-light);
  color: var(--primary-brand);
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--primary-brand-border);
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.2);
}

.b2b-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.b2b-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.b2b-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
}

.b2b-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

/* Floating WhatsApp Neon Widget (Gemini Style) */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(19, 16, 36, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, 0.6);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.floating-whatsapp-widget:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.6);
  background: rgba(28, 24, 54, 0.95);
}

.floating-wa-icon {
  width: 32px;
  height: 32px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.8);
}

/* ============================================
   LAYOUT PORTAIS (Sidebar + Header + Content)
   ============================================ */

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  height: 84px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--primary-brand-light);
  color: var(--primary-brand);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-brand-border);
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 24px 14px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 12px 12px 6px 12px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-item:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.sidebar-item.active {
  background-color: var(--primary-brand-light);
  color: var(--primary-brand);
  font-weight: 800;
  border-left: 4px solid var(--primary-brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.15);
}

.sidebar-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Sidebar Earnings Box */
.sidebar-earnings-box {
  margin: 14px 16px 4px 16px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.earnings-label {
  font-size: 0.75rem;
  color: #f59e0b;
  font-weight: 700;
}

.earnings-amount {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fbbf24;
}

.sidebar-footer {
  padding: 18px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(11, 9, 20, 0.5);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-user-info {
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Top Header Portais */
.top-header {
  height: 84px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  right: 0;
  left: 270px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}

.top-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Perfil de Usuário Topo Direito */
.top-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  box-shadow: var(--shadow-sm);
}

.top-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-orange);
  flex-shrink: 0;
}

.top-header-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.top-header-user-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.top-header-user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.main-content {
  margin-left: 270px;
  flex: 1;
  min-height: 100vh;
  padding: 108px 36px 54px 36px;
  background-color: var(--bg-main);
}

/* ============================================
   ELEMENTOS DE UI & FORMULÁRIOS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 85, 0, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-brand-border);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.15);
}

.btn-secondary:hover {
  background-color: var(--primary-brand-light);
  border-color: var(--primary-brand);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(255, 85, 0, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

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

.btn-md {
  padding: 12px 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.6);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text-primary);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary-brand);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.3);
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Cards & Grids */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

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

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  box-shadow: var(--brand-glow);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 25px rgba(255, 85, 0, 0.2);
  border-color: var(--primary-brand-border);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-icon {
  font-size: 1.4rem;
  padding: 10px;
  border-radius: var(--radius-md);
  background-color: var(--primary-brand-light);
  color: var(--primary-brand);
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-active, .badge-emerald {
  background-color: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.badge-blocked, .badge-canceled {
  background-color: var(--red-light);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.badge-warning, .badge-paused {
  background-color: var(--amber-light);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.badge-blue {
  background-color: var(--primary-brand-light);
  color: var(--primary-brand);
  border: 1px solid var(--primary-brand-border);
}


.badge-purple {
  background-color: var(--primary-brand-light);
  color: var(--primary-brand);
  border: 1px solid var(--primary-brand-border);
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  text-align: left;
  font-size: 0.9rem;
}

.table th {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.04em;
}

.table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

.table tr:hover td {
  background-color: var(--primary-brand-light);
}

.auth-screen {
  max-width: 460px;
  margin: 40px auto;
}

.auth-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--primary-brand-border);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(255, 85, 0, 0.18);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
  box-shadow: var(--brand-glow);
}

.auth-card-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 9, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin: auto;
}

.modal-content.modal-lg {
  max-width: 1120px;
  width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px 36px;
}

.modal-body-scrollable {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--primary-brand-light);
  border-color: var(--primary-brand-border);
  color: var(--primary-brand);
  transform: translateY(-1px);
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--red);
  transform: scale(1.15);
}


#toastContainer {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary-brand);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  color: var(--text-primary);
}

.toast.success {
  border-left-color: var(--emerald);
}

.toast.error {
  border-left-color: var(--red);
}

.toast.warning {
  border-left-color: var(--amber);
}

.hidden {
  display: none !important;
}

.text-emerald {
  color: var(--emerald);
}

.text-blue {
  color: var(--primary-brand);
}

.text-red {
  color: var(--red);
}

.text-muted {
  color: var(--text-muted);
}

.font-mono {
  font-family: monospace;
}

/* ============================================
   ESTADO DA PÁGINA DE LOGIN (SEM MENUS)
   ============================================ */
body.not-logged-in .sidebar {
  display: none !important;
}

body.not-logged-in .top-header {
  display: none !important;
}

body.not-logged-in .main-content {
  margin-left: 0 !important;
  padding: 80px 20px 40px 20px !important;
  width: 100% !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-main);
}

.login-top-logo {
  display: none;
}

body.not-logged-in .login-top-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 28px;
  left: 36px;
  z-index: 100;
}

body.not-logged-in .auth-screen {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

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

  .b2b-hero-left {
    text-align: center;
  }

  .b2b-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .b2b-cta-group {
    justify-content: center;
  }
}