/* ==========================================================================
   Modern SaaS Light UI/UX Design System - Full Feature Layout with Thumbnails
   Exact match to French SaaS CRM Print + Organic Stream Funnel + Visual Ad Cards
   ========================================================================== */

:root {
  /* Light Theme Palette */
  --bg-app: #f4f7fb;
  --bg-canvas: #edf2f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-input: #f1f5f9;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #3b82f6;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(90, 110, 140, 0.07);
  --shadow-float: 0 12px 32px -4px rgba(90, 110, 140, 0.12);
  --shadow-primary: 0 4px 14px rgba(59, 130, 246, 0.35);

  /* Typography Colors */
  --text-main: #0f172a;
  --text-heading: #1e293b;
  --text-muted: #64748b;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  /* Brand & Status Colors */
  --primary-blue: #3b82f6;
  --primary-blue-dark: #2563eb;
  --primary-blue-light: #eff6ff;
  --primary-blue-hover: #1d4ed8;

  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-emerald-bg: #ecfdf5;
  --accent-amber: #f59e0b;
  --accent-amber-bg: #fffbeb;
  --accent-rose: #f43f5e;
  --accent-rose-bg: #fff1f2;
  --accent-cyan: #06b6d4;

  /* Gradients */
  --gradient-blue-card: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-avatar: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --gradient-instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  background-image: 
    radial-gradient(900px circle at 90% 10%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
    radial-gradient(900px circle at 10% 90%, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
  background-attachment: fixed;
}

/* Container Fluido e Responsivo */
.main-canvas {
  width: 95%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 2vw, 2.5rem) 5rem;
  transition: width 0.25s ease, max-width 0.25s ease;
}

/* Top Navigation Bar Header */
.top-navbar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.brand-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-blue-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  box-shadow: var(--shadow-primary);
}

.greeting-block h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.greeting-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==============================================================================
   HEADER DATE & CRON HIGHLIGHT PANEL (DESTAQUE NA DIREITA)
   ============================================================================== */
.header-sub-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.btn-blue-outline {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-blue-outline:hover {
  background: #2563eb;
  color: #ffffff;
}

.header-date-highlight-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 320px;
}

.date-highlight-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.date-highlight-badge .d-icon-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.date-highlight-badge .d-label-tiny {
  font-size: 0.65rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}

.date-highlight-badge .d-period-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.timestamp-sync-box {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.timestamp-sync-box strong {
  color: #0f172a;
  font-weight: 800;
}

.sync-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid #e2e8f0;
}

.cron-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 9999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.api-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 9999px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Light Pills & Buttons */
.light-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
}

.currency-segmented {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: var(--radius-full);
}

.seg-btn {
  background: transparent;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.seg-btn.active {
  background: var(--bg-card);
  color: var(--primary-blue);
  box-shadow: var(--shadow-xs);
}

.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-primary);
  font-family: inherit;
}

.btn-blue:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
}

/* Light Card Container */
.light-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.light-card:hover {
  box-shadow: var(--shadow-float);
  border-color: #cbd5e1;
}

/* Top 4 KPI Metrics Grid */
.top-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-metric-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
}

/* Featured Blue Card */
.kpi-metric-box.featured-blue {
  background: var(--gradient-blue-card);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-primary);
}

.kpi-metric-box.featured-blue .kpi-label-text {
  color: rgba(255, 255, 255, 0.85);
}

.kpi-metric-box.featured-blue .kpi-val-text {
  color: #ffffff;
}

.kpi-metric-box.featured-blue .kpi-icon-circ {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.kpi-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.kpi-label-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-icon-circ {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--bg-input);
  color: var(--primary-blue);
}

.kpi-val-text {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.kpi-badge-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-top: 0.4rem;
}

.kpi-badge-trend.green {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}

.kpi-badge-trend.blue-light {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.kpi-badge-trend.pink {
  background: var(--accent-rose-bg);
  color: var(--accent-rose);
}

/* Sparkline Wave Container */
.sparkline-svg {
  width: 100%;
  height: 34px;
  margin-top: 0.75rem;
  overflow: visible;
}

/* ==========================================================================
   SMOOTH ORGANIC STREAM FUNNEL (Exact Match to Reference Print)
   ========================================================================== */
.organic-funnel-card {
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.funnel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.funnel-header-row h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.funnel-actions-icons {
  display: flex;
  gap: 0.75rem;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.funnel-actions-icons i {
  cursor: pointer;
  transition: color 0.2s;
}

.funnel-actions-icons i:hover {
  color: var(--primary-blue);
}

.stream-funnel-container {
  width: 100%;
  position: relative;
  margin: 0.5rem 0 1.25rem;
}

.stream-svg {
  width: 100%;
  height: auto;
  min-height: 230px;
  display: block;
}

.funnel-bottom-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.5rem;
  text-align: center;
}

.funnel-stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.stage-metric-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.stage-sub-info {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ==========================================================================
   MINIATURAS DOS ANÚNCIOS (INSTAGRAM VISUAL AD CARDS & THUMBNAILS)
   ========================================================================== */
.light-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.light-section-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ads-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.ad-card-light {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ad-card-light:hover {
  box-shadow: var(--shadow-float);
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.ad-card-light.is-winner {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

/* Instagram Header on Ad Card */
.ig-light-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.15rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.ig-light-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ig-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gradient-instagram);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--primary-blue);
}

.ig-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.ig-sub-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Miniatura Visual / Banner Preview Real */
.ad-thumbnail-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background-size: cover;
  background-position: center;
}

.thumb-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.thumb-center-overlay {
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.thumb-center-overlay .play-icon-pulse {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  transition: transform 0.2s;
}

.ad-card-light:hover .play-icon-pulse {
  transform: scale(1.1);
}

.thumb-center-overlay h5 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.thumb-center-overlay p {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Meta Ads CTA Button Strip */
.thumb-cta-strip {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.thumb-cta-text {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-heading);
}

.thumb-cta-action {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Miniatura personalizada de cada anúncio */
.thumb-bg-ad03 {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.85) 0%, rgba(139, 92, 246, 0.85) 100%),
              url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=600&q=80');
  background-size: cover;
}

.thumb-bg-ad01 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(99, 102, 241, 0.85) 100%),
              url('https://images.unsplash.com/photo-1580894732444-8ecded7900cd?auto=format&fit=crop&w=600&q=80');
  background-size: cover;
}

.thumb-bg-reels {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.85) 0%, rgba(251, 146, 60, 0.85) 100%),
              url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=600&q=80');
  background-size: cover;
}

.thumb-bg-ad04 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.85) 0%, rgba(6, 182, 212, 0.85) 100%),
              url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?auto=format&fit=crop&w=600&q=80');
  background-size: cover;
}

.thumb-bg-ad02 {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85) 0%, rgba(236, 72, 153, 0.85) 100%),
              url('https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=600&q=80');
  background-size: cover;
}

.thumb-bg-direct {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.85) 0%, rgba(59, 130, 246, 0.85) 100%),
              url('https://images.unsplash.com/photo-1573496799652-408c2ac9fe98?auto=format&fit=crop&w=600&q=80');
  background-size: cover;
}

.thumb-bg-ad05 {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.85) 0%, rgba(71, 85, 105, 0.85) 100%),
              url('https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=600&q=80');
  background-size: cover;
}

/* Ad Stats Panel Below Thumbnail */
.ad-stats-light {
  padding: 1.15rem 1.25rem;
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ad-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.ad-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.ad-stat-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.ad-stat-cell .s-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  display: block;
}

.ad-stat-cell .s-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.ad-verdict-box {
  background: #f8fafc;
  border-left: 3px solid var(--primary-blue);
  padding: 0.65rem 0.85rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   CHARTS & MINI HIGHLIGHTS
   ========================================================================== */
.charts-split-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card-light {
  padding: 1.5rem;
}

.chart-header-crm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-header-crm h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-frame {
  position: relative;
  width: 100%;
  height: 270px;
}

.mini-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mini-metric-card {
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s;
}

.mini-metric-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.mini-icon-sq {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mini-icon-sq.blue { background: #eff6ff; color: var(--primary-blue); }
.mini-icon-sq.emerald { background: #ecfdf5; color: var(--accent-emerald); }
.mini-icon-sq.amber { background: #fffbeb; color: var(--accent-amber); }

.mini-info-wrap .mini-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mini-info-wrap .mini-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.mini-info-wrap .mini-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
}

.mini-info-wrap .mini-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* ==========================================================================
   DATA TABLE
   ========================================================================== */
.table-card-light {
  padding: 1.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-search-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-heading);
  width: 280px;
}

.table-search-input input {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-heading);
  width: 100%;
}

.saas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.saas-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
  white-space: nowrap;
}

.saas-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-heading);
}

.saas-table tr:hover td {
  background: #f8fafc;
}

.status-pill-saas {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.status-pill-saas.green {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}

.status-pill-saas.blue {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

/* App Footer */
.app-footer-light {
  text-align: center;
  padding-top: 2rem;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  border-top: 1px solid var(--border-light);
}

/* Responsive */
@media (max-width: 992px) {
  .charts-split-grid {
    grid-template-columns: 1fr;
  }
  .mini-strip-grid {
    grid-template-columns: 1fr;
  }
  .funnel-bottom-stages {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}


/* ==============================================================================
   PASSWORD AUTHENTICATION GATE MODAL
   ============================================================================== */
.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-gate-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  text-align: center;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.auth-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.auth-gate-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.auth-gate-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
}

.auth-input-group {
  position: relative;
  margin-bottom: 1rem;
}

.auth-input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
}

.auth-input-group input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
}

.auth-input-group input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.auth-error-text {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.shake-anim {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.auth-btn-submit {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: all 0.2s;
}

.auth-btn-submit:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

.auth-footer-hint {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.btn-lock-logout {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-lock-logout:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.api-pill-badge {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
  font-weight: 700;
}

/* ==============================================================================
   DEMOGRAPHICS & GEOLOCATION GRID
   ============================================================================== */
.demographics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .demographics-grid {
    grid-template-columns: 1fr;
  }
}

.demo-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-pill-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.demo-metric-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin-top: 1rem;
}

.demo-stat {
  display: flex;
  flex-direction: column;
}

.demo-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.demo-lbl {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.geo-highlight-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.geo-flag-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.placement-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.placement-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.placement-lbl-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #334155;
  font-weight: 600;
}

.placement-track {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.placement-fill {
  height: 100%;
  border-radius: 9999px;
}


/* ==============================================================================
   AD CREATIVE & PERFORMANCE DETAIL MODAL STYLES
   ============================================================================== */
.ad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.ad-modal-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3);
  width: 100%;
  max-width: 1040px;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  animation: modalScaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ad-modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.ad-modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Modal Body Layout */
.ad-modal-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .ad-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Real Visible Image Preview Column */
.ad-modal-media-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ad-modal-img-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-modal-img-frame img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.ad-modal-badge-float {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ad-modal-ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
  transition: all 0.2s ease;
}

.ad-modal-ig-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.45);
}

/* Modal Info Column */
.ad-modal-info-col {
  display: flex;
  flex-direction: column;
}

.ad-modal-title-row {
  margin-bottom: 0.85rem;
}

.ad-modal-title-row h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.ad-modal-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.ad-modal-copy-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.ad-modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ad-modal-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.ad-modal-stat-box .val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

.ad-modal-stat-box .lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.ad-modal-verdict-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
  color: #1e40af;
  line-height: 1.45;
}

/* Table Avatar & Interactive Rows */
.table-ad-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.table-ad-thumb-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  flex-shrink: 0;
  background: #f1f5f9;
}

.btn-open-modal-ad {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b82f6;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn-open-modal-ad:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.clickable-row {
  cursor: pointer;
  transition: background 0.15s;
}

.clickable-row:hover td {
  background: #f8fafc;
}

/* ==============================================================================
   ESTILOS DOS TOP 3 CARDS HORIZONTAIS COM FOTO NÍTIDA NA LATERAL ESQUERDA
   ============================================================================== */
.top-ads-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 1100px) {
  .top-ads-horizontal-grid {
    grid-template-columns: 1fr;
  }
}

.top-ad-card-h {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(90, 110, 140, 0.07);
  display: flex;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  height: 190px;
}

.top-ad-card-h:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(90, 110, 140, 0.14);
  border-color: #93c5fd;
}

.top-ad-card-h.winner-1 {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
}

/* Coluna da Imagem na Lateral */
.top-ad-photo-col {
  width: 125px;
  min-width: 125px;
  height: 100%;
  position: relative;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-ad-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.top-ad-card-h:hover .top-ad-photo-col img {
  transform: scale(1.06);
}

.top-ad-rank-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.top-ad-type-badge {
  position: absolute;
  bottom: 8px;
  left: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Coluna das Métricas e Informações */
.top-ad-body-col {
  flex: 1;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-ad-head-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.top-ad-name-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.top-ad-set-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.top-ad-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.4rem 0;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 0.45rem 0.35rem;
  text-align: center;
}

.top-ad-metric-cell .m-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
  line-height: 1.1;
}

.top-ad-metric-cell .m-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.top-ad-foot-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.top-ad-foot-action .traffic-pct {
  font-weight: 700;
  color: #2563eb;
}

.top-ad-foot-action .btn-raio-x {
  color: #3b82f6;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.top-ad-card-h:hover .top-ad-foot-action .btn-raio-x {
  color: #1d4ed8;
}

/* Card Explicativo de Gênero */
.gender-explainer-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #ec4899;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-top: 0.85rem;
  font-size: 0.76rem;
  color: #334155;
  line-height: 1.45;
}

/* ==============================================================================
   TOP 3 CARDS VERTICAIS MODERNOS COM IMAGEM INTEGRAL COMPLETA
   ============================================================================== */
.top-ads-showcase-grid,
.ads-cards-row,
.top-ads-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .top-ads-showcase-grid,
  .ads-cards-row,
  .top-ads-horizontal-grid {
    grid-template-columns: 1fr;
  }
}

.top-ad-card-v {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(90, 110, 140, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.top-ad-card-v:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(90, 110, 140, 0.14);
  border-color: #93c5fd;
}

.top-ad-card-v.winner-1 {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.top-ad-header-v {
  padding: 0.85rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.top-ad-badge-rank {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Creative image frame showing 100% integral image */
.top-ad-media-frame {
  position: relative;
  background: #0f172a;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-ad-media-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.top-ad-format-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.top-ad-body-v {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-ad-title-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.top-ad-set-name {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.top-ad-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  margin-bottom: 0.85rem;
}

.top-ad-stats-row .st-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

.top-ad-stats-row .st-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.top-ad-btn-modal {
  width: 100%;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
}

.top-ad-card-v:hover .top-ad-btn-modal {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ==============================================================================
   DESTAQUE: PÁGINA DE DESTINO DOS ANÚNCIOS (LANDING PAGE TICKETSPICE)
   ============================================================================== */
.destination-highlight-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dest-card-left {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  flex: 1;
  min-width: 320px;
}

.dest-icon-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid #dbeafe;
}

.dest-tag-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #2563eb;
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.dest-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.dest-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.dest-url-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  max-width: 100%;
  overflow: hidden;
}

.dest-url-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2563eb;
}

.dest-card-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.dest-stat-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  text-align: center;
}

.dest-stat-pill .d-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
  line-height: 1.1;
}

.dest-stat-pill .d-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.btn-dest-visit {
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-dest-visit:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ==============================================================================
   SETTINGS / CAMPAIGN MANAGER MODAL STYLES
   ============================================================================== */
.settings-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.settings-trigger-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.settings-badge-count {
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Force Live Sync Button */
.btn-force-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}
.btn-force-sync:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
}
.btn-force-sync:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}
.btn-force-sync i {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.settings-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.settings-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  animation: modalScaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.settings-modal-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.settings-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.settings-modal-header p {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.25rem;
}
.settings-modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.settings-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.settings-modal-controls {
  padding: 1rem 1.75rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.settings-search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.settings-search-box input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.85rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s;
}
.settings-search-box input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.settings-search-box i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}
.settings-filter-tabs {
  display: flex;
  gap: 0.35rem;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 10px;
}
.settings-tab-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.settings-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.settings-campaigns-list {
  padding: 1rem 1.75rem;
  overflow-y: auto;
  max-height: 48vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.campaign-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}
.campaign-item-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.campaign-item-card.selected {
  border-color: #3b82f6;
  background: #f0f7ff;
}
.campaign-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}
.campaign-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  background: #ffffff;
  color: transparent;
  font-size: 0.75rem;
}
.campaign-item-card.selected .campaign-checkbox {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.campaign-info-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.campaign-info-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  flex-wrap: wrap;
}
.camp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.camp-badge.active {
  background: #dcfce7;
  color: #16a34a;
}
.camp-badge.paused {
  background: #f1f5f9;
  color: #64748b;
}
.camp-badge.objective {
  background: #f3e8ff;
  color: #7e22ce;
}
.settings-modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.settings-footer-info {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
.settings-footer-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.btn-settings-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-settings-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.btn-settings-save {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.35rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-settings-save:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.btn-settings-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==============================================================================
   CAMPANHAS EM BLOCOS NA TABELA & STATUS PAUSADO
   ============================================================================== */
.campaign-section-banner td {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.campaign-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 2px solid #e2e8f0;
  border-bottom: 2px solid #e2e8f0;
  margin-top: 0.5rem;
  gap: 1rem;
}

.campaign-banner-content:first-child {
  margin-top: 0;
}

.camp-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.camp-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.camp-banner-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.camp-banner-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3px;
  flex-wrap: wrap;
}

.camp-badge-obj {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  padding: 2px 7px;
  border-radius: 4px;
}

.camp-banner-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.camp-stat-chip {
  font-size: 0.75rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.status-pill-saas.gray,
.status-pill-saas.paused {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

@media (max-width: 900px) {
  .campaign-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==============================================================================
   CONTROLES DIRETOS NO META ADS (TOGGLES DE STATUS & EDIÇÃO DE ORÇAMENTO)
   ============================================================================== */

/* 1. Botões Interativos de Status (Toggles) */
.status-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f1f5f9;
  color: #64748b;
  position: relative;
  user-select: none;
}

.status-toggle-btn .toggle-icon-hint {
  font-size: 0.65rem;
  opacity: 0.4;
  margin-left: 2px;
  transition: opacity 0.2s, transform 0.2s;
}

.status-toggle-btn:hover .toggle-icon-hint {
  opacity: 1;
  transform: scale(1.15);
}

.status-toggle-btn.green {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.status-toggle-btn.green:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.15);
}

.status-toggle-btn.green:hover .toggle-icon-hint {
  color: #b91c1c;
}

.status-toggle-btn.gray,
.status-toggle-btn.paused {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

.status-toggle-btn.gray:hover,
.status-toggle-btn.paused:hover {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.15);
}

.status-toggle-btn.mini {
  padding: 2px 8px;
  font-size: 0.7rem;
}

/* 2. Botão de Edição de Orçamento (Pencil) */
.btn-edit-budget {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-edit-budget:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-1px);
}

/* 3. Barra de Gestão Direta dentro do Modal do Anúncio */
.ad-modal-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.ad-modal-control-bar .control-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #334155;
}

.ad-modal-control-bar .control-label span {
  color: #64748b;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.btn-meta-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-meta-toggle.btn-pause {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.btn-meta-toggle.btn-pause:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-meta-toggle.btn-activate {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.btn-meta-toggle.btn-activate:hover {
  background: #16a34a;
  color: #ffffff;
}

/* 4. Modais de Ação Direta Meta Ads (Confirmação & Orçamento) */
.meta-action-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.meta-action-modal-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.meta-action-modal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.meta-action-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.meta-action-icon-circle.danger {
  background: #fee2e2;
  color: #dc2626;
}

.meta-action-icon-circle.success {
  background: #dcfce7;
  color: #16a34a;
}

.meta-action-icon-circle.budget-circle {
  background: #eff6ff;
  color: #2563eb;
}

.meta-action-modal-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.meta-action-modal-header p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.meta-action-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
}

.meta-action-modal-close:hover {
  color: #0f172a;
}

.meta-action-modal-body {
  padding: 1.25rem 1.5rem;
}

.meta-confirm-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

.meta-action-warning-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  color: #92400e;
  line-height: 1.4;
}

.meta-action-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.btn-meta-cancel {
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-meta-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-meta-confirm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-meta-confirm:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-meta-confirm.danger {
  background: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.btn-meta-confirm.danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn-meta-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Inputs de Orçamento */
.meta-budget-target-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  color: #1e40af;
}

.meta-budget-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

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

.currency-prefix {
  position: absolute;
  left: 14px;
  font-weight: 800;
  color: #64748b;
  font-size: 1.1rem;
}

.currency-input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.2rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.currency-input-wrapper input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.brl-preview-text {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

/* 5. Toasts Flutuantes */
.meta-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.meta-toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.meta-toast.success {
  border-left: 5px solid #10b981;
}

.meta-toast.success i {
  color: #10b981;
  font-size: 1.1rem;
}

.meta-toast.error {
  border-left: 5px solid #ef4444;
}

.meta-toast.error i {
  color: #ef4444;
  font-size: 1.1rem;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==============================================================================
   MODO PRIVACIDADE (ANONIMIZAÇÃO DO CLIENTE / MODO APRESENTAÇÃO)
   Diretriz Estrita:
   - 100% VISÍVEIS: Números, valores monetários, gráficos, funil e mapa.
   - OCULTADOS / BLURRED: Nome do cliente, marca, criativos (imagens/vídeos),
     nomes de anúncios, copys, conjuntos, campanhas, URLs, links e endereço.
   ============================================================================== */

/* Botão de Alternar Modo Privacidade no Topo */
.btn-privacy-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.95rem;
}

.btn-privacy-toggle:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.btn-privacy-toggle.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.38) !important;
}

.btn-privacy-toggle.active i {
  color: #ffffff !important;
}

/* 1. Anonimização do Nome/Marca do Cliente no Cabeçalho e Rodapé */
body.wm-privacy-mode-active .greeting-block h2,
body.wm-privacy-mode-active .user-role-badge,
body.wm-privacy-mode-active .app-footer-light p .wm-privacy-blur,
body.wm-privacy-mode-active #auth-gate-modal p {
  filter: blur(7px) !important;
  user-select: none !important;
  transition: filter 0.2s ease !important;
  display: inline-block;
  cursor: default;
}

/* 2. Censura das Imagens e Vídeos dos Criativos */
body.wm-privacy-mode-active .wm-privacy-blur-img,
body.wm-privacy-mode-active .top-ad-media-frame img,
body.wm-privacy-mode-active .table-ad-thumb-img,
body.wm-privacy-mode-active .ad-modal-img-frame img,
body.wm-privacy-mode-active .ad-modal-media img,
body.wm-privacy-mode-active .ad-modal-media video {
  filter: blur(14px) grayscale(50%) !important;
  user-select: none !important;
  transition: filter 0.2s ease !important;
  cursor: pointer;
}

/* 3. Anonimização de Anúncios, Campanhas, Conjuntos e Copys (Texto Identificador) */
body.wm-privacy-mode-active .wm-privacy-blur,
body.wm-privacy-mode-active .top-ad-header-v > div:first-child,
body.wm-privacy-mode-active .top-ad-title-main,
body.wm-privacy-mode-active .top-ad-set-name strong,
body.wm-privacy-mode-active .table-ad-cell > div,
body.wm-privacy-mode-active .camp-banner-title,
body.wm-privacy-mode-active .ad-modal-title-row h2,
body.wm-privacy-mode-active .ad-modal-meta-pills .light-pill,
body.wm-privacy-mode-active .ad-modal-copy-box,
body.wm-privacy-mode-active .ad-modal-verdict-card p,
body.wm-privacy-mode-active .campaign-info-col h4,
body.wm-privacy-mode-active .campaign-info-col code,
body.wm-privacy-mode-active .settings-campaign-item h4,
body.wm-privacy-mode-active .settings-campaign-item code {
  filter: blur(6px) !important;
  user-select: none !important;
  transition: filter 0.2s ease !important;
  cursor: default;
}

/* 4. Ocultação de URLs, Links Externos do Cliente e Endereço Físico */
body.wm-privacy-mode-active .dest-title,
body.wm-privacy-mode-active .dest-url-text,
body.wm-privacy-mode-active .dest-url-box,
body.wm-privacy-mode-active .ad-modal-ig-btn,
body.wm-privacy-mode-active .btn-dest-visit,
body.wm-privacy-mode-active .geo-address-details,
body.wm-privacy-mode-active .geo-box .demo-pill-badge,
body.wm-privacy-mode-active .leaflet-popup-content {
  filter: blur(7px) !important;
  user-select: none !important;
  transition: filter 0.2s ease !important;
  cursor: default;
}

/* 5. Hover Peek: Permite espiar temporariamente ao passar o mouse */
body.wm-privacy-mode-active .greeting-block h2:hover,
body.wm-privacy-mode-active .user-role-badge:hover,
body.wm-privacy-mode-active .app-footer-light p .wm-privacy-blur:hover,
body.wm-privacy-mode-active .wm-privacy-blur:hover,
body.wm-privacy-mode-active .top-ad-header-v > div:first-child:hover,
body.wm-privacy-mode-active .top-ad-title-main:hover,
body.wm-privacy-mode-active .top-ad-set-name strong:hover,
body.wm-privacy-mode-active .table-ad-cell > div:hover,
body.wm-privacy-mode-active .camp-banner-title:hover,
body.wm-privacy-mode-active .ad-modal-title-row h2:hover,
body.wm-privacy-mode-active .ad-modal-meta-pills .light-pill:hover,
body.wm-privacy-mode-active .ad-modal-copy-box:hover,
body.wm-privacy-mode-active .ad-modal-verdict-card p:hover,
body.wm-privacy-mode-active .dest-title:hover,
body.wm-privacy-mode-active .dest-url-text:hover,
body.wm-privacy-mode-active .dest-url-box:hover,
body.wm-privacy-mode-active .ad-modal-ig-btn:hover,
body.wm-privacy-mode-active .btn-dest-visit:hover,
body.wm-privacy-mode-active .geo-address-details:hover,
body.wm-privacy-mode-active .geo-box .demo-pill-badge:hover,
body.wm-privacy-mode-active .leaflet-popup-content:hover,
body.wm-privacy-mode-active .campaign-info-col h4:hover,
body.wm-privacy-mode-active .campaign-info-col code:hover,
body.wm-privacy-mode-active .settings-campaign-item h4:hover,
body.wm-privacy-mode-active .settings-campaign-item code:hover {
  filter: blur(0px) !important;
}

body.wm-privacy-mode-active .wm-privacy-blur-img:hover,
body.wm-privacy-mode-active .top-ad-media-frame img:hover,
body.wm-privacy-mode-active .table-ad-thumb-img:hover,
body.wm-privacy-mode-active .ad-modal-img-frame img:hover,
body.wm-privacy-mode-active .ad-modal-media img:hover,
body.wm-privacy-mode-active .ad-modal-media video:hover {
  filter: blur(0px) grayscale(0%) !important;
}

/* 6. GARANTIA EXPRESSA: NÚMEROS, MÉTRICAS E GRÁFICOS NUNCA SÃO BORRADOS */
body.wm-privacy-mode-active .kpi-val-text,
body.wm-privacy-mode-active .kpi-metric-box,
body.wm-privacy-mode-active .dest-stat-pill,
body.wm-privacy-mode-active .dest-stat-pill .d-val,
body.wm-privacy-mode-active .funnel-bottom-stages,
body.wm-privacy-mode-active .funnel-bottom-stages .stage-metric-val,
body.wm-privacy-mode-active .funnel-bottom-stages .stage-sub-info,
body.wm-privacy-mode-active .stream-funnel-container,
body.wm-privacy-mode-active .stream-funnel-container text,
body.wm-privacy-mode-active .top-ad-stats-row,
body.wm-privacy-mode-active .top-ad-stats-row .st-val,
body.wm-privacy-mode-active .demo-stat,
body.wm-privacy-mode-active .demo-stat .demo-num,
body.wm-privacy-mode-active .demo-stat .demo-lbl,
body.wm-privacy-mode-active #chart-results-badge,
body.wm-privacy-mode-active #chart-spend-badge,
body.wm-privacy-mode-active .mini-metric-card,
body.wm-privacy-mode-active .mini-value-row .mini-val,
body.wm-privacy-mode-active .camp-stat-chip,
body.wm-privacy-mode-active .chart-frame canvas,
body.wm-privacy-mode-active #map-texas,
body.wm-privacy-mode-active .saas-table tbody td:nth-child(3),
body.wm-privacy-mode-active .saas-table tbody td:nth-child(4),
body.wm-privacy-mode-active .saas-table tbody td:nth-child(5),
body.wm-privacy-mode-active .saas-table tbody td:nth-child(6),
body.wm-privacy-mode-active .saas-table tbody td:nth-child(7),
body.wm-privacy-mode-active .saas-table tbody td:nth-child(8),
body.wm-privacy-mode-active .ad-modal-stats-grid,
body.wm-privacy-mode-active .ad-modal-stats-grid .val,
body.wm-privacy-mode-active .status-toggle-btn,
body.wm-privacy-mode-active .status-toggle-btn *,
body.wm-privacy-mode-active .btn-open-modal-ad,
body.wm-privacy-mode-active .btn-open-modal-ad * {
  filter: none !important;
}


