/* admin.css - Estilos Premium Hick Insights */

:root {
  --admin-bg: #040508;
  --admin-card-bg: #0c0d12;
  --admin-card-border: rgba(212, 175, 55, 0.15);
  --admin-border-light: rgba(255, 255, 255, 0.06);
  --admin-text-primary: #ffffff;
  --admin-text-secondary: #9ea3b0;
  --admin-gold: #d4af37;
  --admin-gold-hover: #f3e5ab;
  --admin-emerald: #10b981;
  --admin-red: #ef4444;
  --admin-sidebar-width: 260px;
}

/* Reset local ao escopo do admin */
.admin-scope {
  background-color: var(--admin-bg) !important;
  color: var(--admin-text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.admin-scope *, .admin-scope *::before, .admin-scope *::after {
  box-sizing: border-box;
}

/* === LOGIN INTERFACE === */
.admin-login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at center, #0e111a 0%, #040508 100%);
  padding: 20px;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 175, 55, 0.03);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--admin-emerald), var(--admin-gold));
}

.admin-login-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  text-transform: uppercase;
  color: var(--admin-text-primary);
}

.admin-login-header p {
  color: var(--admin-text-secondary);
  font-size: 0.85rem;
  margin: 0 0 30px;
}

.admin-form-group {
  text-align: left;
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--admin-text-secondary);
  margin-bottom: 8px;
}

.admin-form-input {
  width: 100%;
  background: #040508;
  border: 1px solid var(--admin-border-light);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.admin-form-input:focus {
  outline: none;
  border-color: var(--admin-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.admin-btn-primary {
  width: 100%;
  background: var(--admin-gold);
  color: #040508;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  margin-top: 10px;
}

.admin-btn-primary:hover {
  background: var(--admin-gold-hover);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.admin-login-error {
  color: var(--admin-red);
  font-size: 0.8rem;
  margin-top: 15px;
  min-height: 20px;
  font-weight: 600;
}

/* === DASHBOARD LAYOUT === */
.admin-dashboard-container {
  display: flex;
  min-height: 100vh;
  background: var(--admin-bg);
}

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background: #08090d;
  border-right: 1px solid var(--admin-border-light);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.admin-sidebar-logo {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-sidebar-logo span {
  color: var(--admin-gold);
}

.admin-sidebar-logo-icon {
  width: 8px;
  height: 8px;
  background: var(--admin-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--admin-gold);
}

.admin-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--admin-text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.admin-nav-item.active {
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.04);
  color: var(--admin-gold);
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--admin-border-light);
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--admin-red);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.admin-logout-btn:hover {
  background: rgba(239, 68, 68, 0.05);
}

/* Main Content Area */
.admin-main-content {
  flex: 1;
  margin-left: var(--admin-sidebar-width);
  padding: 40px;
  min-height: 100vh;
  overflow-y: auto;
}

/* Header */
.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.admin-page-title h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 5px;
  color: #fff;
  letter-spacing: -0.01em;
}

.admin-page-title p {
  color: var(--admin-text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

/* Controls (Date selector, status indicators) */
.admin-header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-date-select {
  background: #0c0d12;
  border: 1px solid var(--admin-border-light);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.admin-date-select:focus {
  border-color: var(--admin-gold);
}

/* Status badge */
.admin-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--admin-emerald);
}

.admin-online-dot {
  width: 6px;
  height: 6px;
  background: var(--admin-emerald);
  border-radius: 50%;
  animation: pulse-online 1.8s infinite alternate;
}

@keyframes pulse-online {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  100% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px 2px rgba(16, 185, 129, 0.4); }
}

/* Tab Panels container */
.admin-tab-panel {
  display: none;
}
.admin-tab-panel.active {
  display: block;
}

/* === GENERAL CARDS === */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-card:hover {
  border-color: rgba(212, 175, 55, 0.12);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.admin-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--admin-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.admin-card-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.admin-card-sub {
  font-size: 0.75rem;
  color: var(--admin-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-card-sub.up {
  color: var(--admin-emerald);
}

.admin-card-sub.down {
  color: var(--admin-red);
}

/* === TAB 1: VISÃO GERAL === */
.admin-double-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.admin-chart-card {
  min-height: 380px;
}

.admin-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.admin-chart-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* SVG Chart styles */
.admin-chart-container {
  width: 100%;
  height: 250px;
  position: relative;
}

.admin-svg-graph {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.admin-svg-grid-line {
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 1;
}

.admin-svg-line {
  stroke: var(--admin-gold);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
}

.admin-svg-area {
  fill: url(#chart-gradient);
  stroke: none;
}

.admin-svg-dot {
  fill: var(--admin-gold);
  stroke: var(--admin-card-bg);
  stroke-width: 2;
  transition: r 0.2s ease;
  cursor: pointer;
}

.admin-svg-dot:hover {
  r: 6;
}

/* Stream card for active leads */
.admin-stream-card {
  max-height: 380px;
  display: flex;
  flex-direction: column;
}

.admin-stream-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Scrollbar styling for lists */
.admin-stream-list::-webkit-scrollbar,
.admin-table-wrapper::-webkit-scrollbar,
.admin-stream-card::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.admin-stream-list::-webkit-scrollbar-thumb,
.admin-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.admin-stream-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  align-items: flex-start;
  animation: slide-stream 0.4s ease-out;
}

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

.admin-stream-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.admin-stream-text {
  flex: 1;
  font-size: 0.76rem;
  color: var(--admin-text-secondary);
  line-height: 1.35;
}

.admin-stream-text strong {
  color: #fff;
}

.admin-stream-time {
  font-size: 0.65rem;
  color: var(--admin-gold);
  opacity: 0.8;
  white-space: nowrap;
}

/* === TAB 2: FUNIL VISUAL === */
.admin-funnel-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.admin-funnel-row {
  display: flex;
  align-items: center;
  position: relative;
}

.admin-funnel-row::after {
  content: '';
  position: absolute;
  left: 60px;
  bottom: -16px;
  width: 2px;
  height: 16px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.admin-funnel-row:last-child::after {
  display: none;
}

.admin-funnel-step-num {
  width: 40px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--admin-text-secondary);
}

.admin-funnel-content {
  flex: 1;
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-light);
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  transition: border-color 0.2s ease;
}

.admin-funnel-content:hover {
  border-color: rgba(212, 175, 55, 0.15);
}

.admin-funnel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-funnel-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.admin-funnel-meta {
  font-size: 0.72rem;
  color: var(--admin-text-secondary);
}

.admin-funnel-bar-wrapper {
  width: 40%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-funnel-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.admin-funnel-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--admin-emerald) 0%, var(--admin-gold) 100%);
  width: 0;
  transition: width 1s ease-out;
}

.admin-funnel-stats {
  display: flex;
  gap: 25px;
  text-align: right;
}

.admin-funnel-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-funnel-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.admin-funnel-stat-lbl {
  font-size: 0.65rem;
  color: var(--admin-text-secondary);
  text-transform: uppercase;
}

.admin-funnel-stat-lbl.drop {
  color: var(--admin-red);
}

/* === TAB 3: MÍDIA E VÍDEO === */
.admin-video-retention-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.admin-second-dropoff-table {
  max-height: 400px;
  overflow-y: auto;
}

/* === TAB 4: MAPA DE COMPORTAMENTO === */
.admin-heatmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-heatmap-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.admin-heatmap-progress-row:last-child {
  border-bottom: none;
}

.admin-heatmap-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  width: 140px;
}

.admin-heatmap-progress-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  overflow: hidden;
  margin: 0 20px;
}

.admin-heatmap-progress-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--admin-gold) 0%, var(--admin-emerald) 100%);
  width: 0;
  transition: width 1s ease-out;
}

.admin-heatmap-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  width: 45px;
  text-align: right;
}

.admin-heatmap-drop {
  font-size: 0.72rem;
  color: var(--admin-red);
  width: 50px;
  text-align: right;
}

/* === TAB 5: ORIGENS & UTMS === */
.admin-sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Pixel diagnostic card */
.admin-pixel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-pixel-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--admin-emerald);
}

.admin-pixel-event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.admin-pixel-event-row:last-child {
  border-bottom: none;
}

.admin-pixel-event-name {
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--admin-gold);
}

.admin-pixel-event-count {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

.admin-pixel-event-status {
  font-size: 0.7rem;
  color: var(--admin-emerald);
  font-weight: 700;
}

/* === TABLES GENERAL === */
.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 14px 16px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-secondary);
  border-bottom: 1px solid var(--admin-border-light);
}

.admin-table td {
  padding: 16px;
  font-size: 0.8rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

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

.admin-table-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.admin-table-tag.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--admin-emerald);
}

.admin-table-tag.outline-gold {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--admin-gold);
}

/* === TAB 7: IA ANALÍTICA (HICK INSIGHTS) === */
.admin-ai-report-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-ai-report-card {
  background: #08090d;
  border: 1px solid var(--admin-card-border);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  position: relative;
}

.admin-ai-report-card::before {
  content: '✦ ANALYST AI ENGINE';
  position: absolute;
  top: 15px;
  right: 25px;
  font-family: monospace;
  font-size: 0.68rem;
  color: var(--admin-gold);
  opacity: 0.8;
  letter-spacing: 0.1em;
}

.admin-ai-report-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--admin-border-light);
  padding-bottom: 20px;
}

.admin-ai-icon-bg {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-gold);
}

.admin-ai-report-header-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.admin-ai-report-header-info p {
  color: var(--admin-text-secondary);
  font-size: 0.78rem;
  margin: 0;
}

.admin-ai-report-body {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.admin-ai-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--admin-gold);
  margin-top: 30px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-ai-section-title::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--admin-gold);
  border-radius: 50%;
}

.admin-ai-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-ai-bullets li {
  padding-left: 20px;
  position: relative;
}

.admin-ai-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--admin-gold);
}

.admin-ai-recommendation-box {
  background: rgba(16, 185, 129, 0.04);
  border: 1px dashed rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  color: #fff;
}

.admin-ai-recommendation-title {
  color: var(--admin-emerald);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === RESPONSIVIDADE & MOBILE === */
.admin-mobile-header {
  display: none;
  background: #08090d;
  border-bottom: 1px solid var(--admin-border-light);
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 101;
  justify-content: space-between;
  align-items: center;
}

.admin-mobile-toggle {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px;
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-main-content {
    margin-left: 0;
    padding: 90px 20px 40px; /* Safe padding for fixed header */
  }
  
  .admin-mobile-header {
    display: flex;
  }
  
  .admin-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .admin-double-grid, .admin-video-retention-grid, .admin-heatmap-grid, .admin-sources-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-funnel-bar-wrapper {
    display: none;
  }
}

/* === ANDRÔMEDA V1 CUSTOM COMPONENT STYLES === */
.admin-section-title-wrapper {
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 10px;
}

.admin-section-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-section-heading span {
  color: var(--admin-gold);
}

.admin-bottlenecks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.admin-bottleneck-card {
  background: rgba(239, 68, 68, 0.02);
  border: 1px dashed rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.admin-bottleneck-card:hover {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.4);
}

.admin-bottleneck-period {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--admin-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.admin-bottleneck-metric {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.admin-bottleneck-desc {
  font-size: 0.76rem;
  color: var(--admin-text-secondary);
  line-height: 1.4;
}

.admin-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 35px;
}

.admin-time-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border-light);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.admin-time-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--admin-gold);
  margin-bottom: 4px;
}

.admin-time-label {
  font-size: 0.72rem;
  color: var(--admin-text-secondary);
  font-weight: 600;
}

/* Funnel chart flow nodes */
.admin-funnel-node-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--admin-border-light);
  border-radius: 16px;
  padding: 30px;
}

.admin-funnel-flow-step {
  display: flex;
  align-items: center;
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-light);
  border-radius: 8px;
  padding: 10px 18px;
  width: 100%;
  max-width: 420px;
  justify-content: space-between;
  position: relative;
}

.admin-funnel-flow-step::after {
  content: '↓';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--admin-text-secondary);
  font-size: 0.9rem;
  font-weight: bold;
}

.admin-funnel-flow-step:last-child::after {
  display: none;
}

.admin-funnel-flow-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.admin-funnel-flow-count {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--admin-gold);
  font-family: monospace;
}

.admin-funnel-flow-percent {
  font-size: 0.7rem;
  color: var(--admin-text-secondary);
}

/* User journey timeline cards */
.admin-journey-flow-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--admin-text-secondary);
  line-height: 1.5;
  margin-top: 5px;
}

.admin-journey-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
}

.admin-journey-node.active-step {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
  color: var(--admin-gold);
}

.admin-journey-arrow {
  color: var(--admin-gold);
  opacity: 0.7;
}

/* Campaign table tags */
.admin-table-roi-badge {
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.admin-table-roi-badge.positive {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--admin-emerald);
}

.admin-table-roi-badge.negative {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--admin-red);
}
